ELEC2645 (2019/20)
/
ELEC2645_Project_el18jb
test 1 doc
Player/Player.h
- Committer:
- joebarhouch
- Date:
- 2020-05-18
- Revision:
- 3:e4e1cbf750b6
- Parent:
- 2:f22cb01c43bc
- Child:
- 5:928c2eee4109
File content as of revision 3:e4e1cbf750b6:
#ifndef PLAYER_H #define PLAYER_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Bitmap.h" class Player { public: Player(); ~Player(); void init(int x, int y); //bool health; bool jump(Gamepad &pad); //bool is_jumping(); void draw(N5110 &lcd); void update(Direction d, float mag); Vector2D get_pos(); private: int _vx; int _vy; int _playerX; int _playerY; bool _jmp; char _dir; }; #endif