GameObjc.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. @interface GameObjc : NSObject
  4. + (instancetype)new NS_UNAVAILABLE;
  5. - (instancetype)init NS_UNAVAILABLE;
  6. - (instancetype)initWithGametype:(int)gametype NS_DESIGNATED_INITIALIZER;
  7. - (void)gameProcess:(int)timeStamp
  8. rightPos:(int *)rightPos
  9. rightAtt:(int *)rightAtt
  10. rightZupt:(int)rightZupt
  11. right_press:(int)right_press
  12. leftPos:(int *)leftPos
  13. leftAtt:(int *)leftAtt
  14. leftZupt:(int)leftZupt
  15. left_press:(int)left_press
  16. jump:(int)jump
  17. down:(int)down
  18. rssi:(int)rssi
  19. girl_shoes:(int)girl_shoes;
  20. - (void)runGameProcess:(int *)rightPos
  21. rightAtt:(int *)rightAtt
  22. rightZupt:(int)rightZupt
  23. leftPos:(int *)leftPos
  24. leftAtt:(int *)leftAtt
  25. leftZupt:(int)leftZupt
  26. jump:(int)jump
  27. down:(int)down
  28. girl_shoes:(int)girl_shoes;
  29. - (void)getGameResult:(int *)matrix;
  30. - (int)getStepFreq:(int)leftOrRight;
  31. - (int)getStepStatus:(int)leftOrRight;
  32. - (int)getStepCount:(int)leftOrRight;
  33. - (float)getGamePos:(int)left_or_right index:(int)index;
  34. - (void)start;
  35. - (void)end;
  36. - (void)isBingo;
  37. -(int)getInteractionCMD;
  38. /// 向外提供,手动释放,如需要,可调用
  39. - (void)handRelease;
  40. @end
  41. @interface RunGameObjc : NSObject
  42. - (int)getResultLeftRight:(int *)pos
  43. devNum:(short)devNum;
  44. - (int)getResultJump:(short)jump;
  45. - (int)getResultDown:(short)down;
  46. - (void)setResultConLeft:(short)zupt;
  47. - (void)setResultConRight:(short)zupt;
  48. - (int)getResultLeft:(int *)pos girl_shoes:(int)girl_shoes;
  49. - (int)getResultRight:(int *)pos girl_shoes:(int)girl_shoes;
  50. - (void)process:(int *)rightPos
  51. rightAtt:(int *)rightAtt
  52. rightZupt:(int)rightZupt
  53. leftPos:(int *)leftPos
  54. leftAtt:(int *)leftAtt
  55. leftZupt:(int)leftZupt
  56. jump:(int)jump
  57. down:(int)down
  58. girl_shoes:(int)girl_shoes;
  59. - (void)getResult:(int *)dec;
  60. /// 向外提供,手动释放
  61. - (void)handRelease;
  62. @end
  63. @interface DanceGameObjc : NSObject
  64. //- (int)gamePositionProcess:(int *)pos
  65. // stepPos:(int *)stepPos
  66. // rssi:(int)rssi
  67. // hostOrSlave:(short)hostOrSlave;
  68. //- (void)gameBoundary:(int *)globalPos;
  69. //- (int)getDirectionFloat:(float *)pos rssi:(int)rssi;
  70. //- (short)danceGameProcess:(int *)pos
  71. // zupt:(short)zupt
  72. // rssi:(int)rssi
  73. // hostOrSlave:(short)hostOrSlave;
  74. - (void)process:(int *)rightPos
  75. rightAtt:(int *)rightAtt
  76. rightZupt:(int)rightZupt
  77. right_press:(int)right_press
  78. leftPos:(int *)leftPos
  79. leftAtt:(int *)leftAtt
  80. leftZupt:(int)leftZupt
  81. left_press:(int)left_press
  82. jump:(int)jump
  83. down:(int)down
  84. rssi:(int)rssi;
  85. - (void)getResult:(int *)matrix;
  86. //- (float)getRssiDistance:(int)rssi;
  87. //- (int)savePosAndRssi:(int *)pos
  88. // zupt:(short)zupt
  89. // rssi:(int)rssi
  90. // hostOrSlave:(short)hostOrSlave;
  91. /// 向外提供,手动释放,如需要,可调用
  92. - (void)handRelease;
  93. @end
  94. @interface FootStepObjc : NSObject
  95. //pos开辟3个空间
  96. - (void)stepCal:(int)timeStamp posList:(int *)pos zupt:(int)zupt;
  97. - (int)getStepFreq;
  98. - (int)getStepStatus;
  99. - (int)getStepCount;
  100. /// 向外提供,手动释放,如需要,可调用
  101. - (void)handRelease;
  102. @end
  103. @interface InertialTrajProcessObjc : NSObject
  104. - (void)trajRotate:(int *)pos;
  105. //rotateMatrix只能开辟4个空间
  106. - (void)trajRotate:(int *)pos
  107. rotateMatrix:(float *)rotateMatrix;
  108. - (void)resetHeading:(short)heading;
  109. /// 向外提供,手动释放
  110. - (void)handRelease;
  111. @end
  112. //@interface OriginTrajObj : NSObject
  113. //- (void)process:(int*)right_pos
  114. // right_att:(int*)right_att
  115. // right_zupt:(int)right_zupt
  116. // left_pos:(int*)left_pos
  117. // left_att:(int*)left_att
  118. // left_zupt:(int) left_zupt;
  119. //
  120. //- (float)getGamePos:(int)left_or_right
  121. // index:(int)index;
  122. //@end
  123. NS_ASSUME_NONNULL_END