YaAlgorithmForCell.h 549 B

1234567891011121314151617181920212223
  1. #ifndef YASERVER_ALGORITHM_FOR_CELL_H_
  2. #define YASERVER_ALGORITHM_FOR_CELL_H_
  3. #include "cell_struct.h"
  4. #include "../structdef.h"
  5. #include "../../classdef.h"
  6. using namespace std;
  7. // 格子相关算法流程, 所有函数均非线程安全
  8. class YaAlgorithmForCell
  9. {
  10. public:
  11. static int do_algorithm(Card* card, int n);// 开始执行算法流程
  12. private:
  13. enum GenerateBYLinearFitting
  14. {
  15. GENERATE_SUCCESS, // 生成成功
  16. GENERATE_FAIL_BY_DIRECTION, // 生成数据方向错误, 失败
  17. GENERATE_FAIL_DATA // 生成失败, 因为拟合输入值有误
  18. };
  19. };
  20. #endif