RunGame.h 811 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #ifndef _RunGame_H_
  3. #define _RunGame_H_
  4. class RunGame
  5. {
  6. public:
  7. RunGame();
  8. int getResultLeftRight(int* pos, int devNum);
  9. int getResultJump(int jump);
  10. int getResultDown(int down);
  11. void setResultConLeft(int zupt);
  12. void setResultConRight(int zupt);
  13. int getResultLeft(int *pos, int girl_shoes);
  14. int getResultRight(int *pos, int girl_shoes);
  15. void Process(int* right_pos, int* right_att, int right_zupt, int* left_pos,
  16. int* left_att, int left_zupt, int jump, int down, int girl_shoes);
  17. void getResult(int *dec);
  18. private:
  19. int last_down;
  20. int last_jump;
  21. int left_has_result;
  22. int right_has_result;
  23. int left_zupt;
  24. int right_zupt;
  25. int left_pos_offset_min;
  26. int right_pos_offset_min;
  27. int left_last_pos[3];
  28. int right_last_pos[3];
  29. int result[4];
  30. };
  31. #endif