#pragma once #ifndef _RunGame_H_ #define _RunGame_H_ class RunGame { public: RunGame(); int getResultLeftRight(short* pos, short devNum); int getResultJump(short jump); int getResultDown(short down); void setResultConLeft(int zupt); void setResultConRight(int zupt); int getResultLeft(short *pos); int getResultRight(short *pos); void Process(short* right_pos, short* right_att, int right_zupt, short* left_pos, short* left_att, int left_zupt, int jump, int down); void getResult(int *dec); private: int last_down; int last_jump; int left_has_result; int right_has_result; int left_zupt; int right_zupt; int left_pos_offset_min; int right_pos_offset_min; int result[4]; }; #endif