DanceGame.h 797 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #ifndef __dance_game_h__
  3. #define __dance_game_h__
  4. #include "DanceFoot.h"
  5. class DanceGame {
  6. public :
  7. DanceGame();
  8. //void Process(int* right_pos, int* right_att, int right_zupt, int* left_pos, int* left_att, int left_zupt, int jump, int down, int rssi);
  9. void Process(int* right_pos, int* right_att, int* right_acc, int right_zupt, int right_press,
  10. int* left_pos, int* left_att, int* left_acc, int left_zupt, int left_press,
  11. int jump, int down, int rssi);
  12. void getResult(int *matrix);
  13. float getGamePos(int left_or_right, int index);
  14. int isBalance(float acc_buff[3][15]);
  15. private:
  16. DanceFoot leftFoot;
  17. DanceFoot rightFoot;
  18. int result[4];
  19. int left_result;
  20. int right_result;
  21. float left_acc_buff[3][15];
  22. float right_acc_buff[3][15];
  23. };
  24. #endif