zhenye yang
/
el17zy
Yang Zhenye 201199680
Diff: Rooney/Rooney.h
- Revision:
- 5:fcad75e9b9e1
- Parent:
- 4:eb8dca1dc341
- Child:
- 6:4abef55fee88
--- a/Rooney/Rooney.h Wed May 13 14:55:07 2020 +0000 +++ b/Rooney/Rooney.h Thu May 14 14:13:03 2020 +0000 @@ -4,7 +4,7 @@ #include "mbed.h" #include "N5110.h" #include "Gamepad.h" -enum ronneybody{left, right, stand}; +enum rooneybody{left, right, stand}; class player { public: @@ -19,19 +19,21 @@ ~player(); void init(); -void set_palyer_x(float joy_x int speed); +void set_palyer_x(float joy_x, int speed); +void draw_gate(N5110 &lcd); bool collisicon_flag(); -int *get_form(rooneybody); +int * get_form(rooneybody body); int get_y(); int get_x(); int get_speed(); private: -int_player_x; -int_player_y; -bool_c_flag; -int_speed; -} +int _player_x; +int _player_y; +bool _c_flag; +int _speed; +rooneybody body; +}; #endif