1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #pragma once
- #ifndef _Game_H_
- #define _Game_H_
- #include "pub.h"
- #include "RunGame.h"
- #include "InertialTrajProcess.h"
- #include "DanceGame.h"
- #include "FootStep.h"
- #include "OriginTraj.h"
- class Game
- {
- public:
- Game(int gametype);
- void GameProcess(int timeStamp, int* right_pos, int* right_att, int right_zupt, int* left_pos,
- int* left_att, int left_zupt, int jump, int down, int rssi, int girl_shoes);
- 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);
- void getGameResult(int* matrix);
- int getStepStatus(int left_or_right);
- int getStepFreq(int left_or_right);
- int getStepCount(int left_or_right);
- float getGamePos(int left_or_right, int index);
- private:
- int GameType;
- RunGame rungame;
- DanceGame dancegame;
- InertialTrajProcess rotateTrajLeft;
- InertialTrajProcess rotateTrajRight;
- FootStep leftFootStep;
- FootStep rightFootStep;
- OriginTraj originTraj;
- int leftStepRate;
- int rightStepRate;
-
- int leftRate;
- int rightRate;
- int resultMatrix[4];
- float rotateMatrix[4];
- float leftRotate[4];
-
- float rightRotate[4];
- };
- #endif
|