Game.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #pragma once
  2. #ifndef _Game_H_
  3. #define _Game_H_
  4. #include "pub.h"
  5. #include "RunGame.h"
  6. #include "InertialTrajProcess.h"
  7. #include "DanceGame.h"
  8. #include "FootStep.h"
  9. #include "OriginTraj.h"
  10. class Game
  11. {
  12. public:
  13. Game(int gametype);
  14. void GameProcess(int timeStamp, int* right_pos, int* right_att, int right_zupt, int* left_pos,
  15. int* left_att, int left_zupt, int jump, int down, int rssi, int girl_shoes);
  16. void RunGameProcess(int* right_pos, int* right_att, int right_zupt, int* left_pos, int* left_att, int left_zupt, int jump, int down, int girl_shoes);
  17. void getGameResult(int* matrix);
  18. int getStepStatus(int left_or_right);
  19. int getStepFreq(int left_or_right);
  20. int getStepCount(int left_or_right);
  21. float getGamePos(int left_or_right, int index);
  22. private:
  23. int GameType;
  24. RunGame rungame;
  25. DanceGame dancegame;
  26. InertialTrajProcess rotateTrajLeft;
  27. InertialTrajProcess rotateTrajRight;
  28. FootStep leftFootStep;
  29. FootStep rightFootStep;
  30. OriginTraj originTraj;
  31. int leftStepRate;
  32. int rightStepRate;
  33. int leftRate;
  34. int rightRate;
  35. int resultMatrix[4];
  36. float rotateMatrix[4];
  37. float leftRotate[4];
  38. float rightRotate[4];
  39. };
  40. #endif