Yang Zhenye 201199680
Dependencies: mbed
Rooney/Rooney.h
- Committer:
- yangzhenye
- Date:
- 2020-05-14
- Revision:
- 7:a69ae964412c
- Parent:
- 6:4abef55fee88
- Child:
- 9:a5a82b3d1102
File content as of revision 7:a69ae964412c:
#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(); int drawrooney(N5110 &lcd); private: int _player_x; int _player_y; bool _collision_flag; int _speed; int _x; int _y; int _score; rooneybody body; }; #endif