Yang Zhenye 201199680
Dependencies: mbed
Rooney/Rooney.h
- Committer:
- yangzhenye
- Date:
- 2020-05-14
- Revision:
- 6:4abef55fee88
- Parent:
- 5:fcad75e9b9e1
- Child:
- 7:a69ae964412c
File content as of revision 6:4abef55fee88:
#ifndef ROONEY_H #define ROONEY_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" enum rooneybody{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); //void draw_gate(N5110 &lcd);] bool collision_flag(); int * get_form(rooneybody body); int get_y(); int get_x(); int get_speed(); void add_score(); int get_score(); private: int _player_x; int _player_y; bool _collision_flag; int _speed; int _x; int _y; int _score; rooneybody body; }; #endif