RunGame.h 729 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #ifndef _RunGame_H_
  3. #define _RunGame_H_
  4. class RunGame
  5. {
  6. public:
  7. RunGame();
  8. int getResultLeftRight(short* pos, short devNum);
  9. int getResultJump(short jump);
  10. int getResultDown(short down);
  11. void setResultConLeft(int zupt);
  12. void setResultConRight(int zupt);
  13. int getResultLeft(short *pos);
  14. int getResultRight(short *pos);
  15. void Process(short* right_pos, short* right_att, int right_zupt, short* left_pos,
  16. short* left_att, int left_zupt, int jump, int down);
  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 result[4];
  28. };
  29. #endif