zhenye yang
/
el17zy
Yang Zhenye 201199680
Diff: Rooney/Rooney.h
- Revision:
- 4:eb8dca1dc341
- Child:
- 5:fcad75e9b9e1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Rooney/Rooney.h Wed May 13 14:55:07 2020 +0000 @@ -0,0 +1,37 @@ +#ifndef ROONEY_H +#define ROONEY_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +enum ronneybody{left, right, stand}; +class player +{ +public: + // Constructor and destructor. + /** + * @brief Constructor @details Non user specified. + */ +player(); + /** + * @brief Destructor @details Non user specified. + */ +~player(); + +void init(); +void set_palyer_x(float joy_x int speed); +bool collisicon_flag(); + +int *get_form(rooneybody); +int get_y(); +int get_x(); +int get_speed(); + +private: + +int_player_x; +int_player_y; +bool_c_flag; +int_speed; +} +#endif