200943373MAZE
Dependencies: mbed
Fork of 200943373MAZE by
Player/Player.h@1:bd92ef8d00ac, 2017-05-04 (annotated)
- Committer:
- hongyunAHN
- Date:
- Thu May 04 14:08:31 2017 +0000
- Revision:
- 1:bd92ef8d00ac
- Parent:
- 0:df4347043adf
200943373 hongyun AHN
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hongyunAHN | 0:df4347043adf | 1 | #ifndef PLAYER_H |
hongyunAHN | 0:df4347043adf | 2 | #define PLAYER_H |
hongyunAHN | 0:df4347043adf | 3 | |
hongyunAHN | 0:df4347043adf | 4 | #include "mbed.h" |
hongyunAHN | 0:df4347043adf | 5 | #include "N5110.h" |
hongyunAHN | 0:df4347043adf | 6 | #include "Gamepad.h" |
hongyunAHN | 0:df4347043adf | 7 | #include "Background.h" |
hongyunAHN | 0:df4347043adf | 8 | |
hongyunAHN | 0:df4347043adf | 9 | class Player |
hongyunAHN | 0:df4347043adf | 10 | { |
hongyunAHN | 0:df4347043adf | 11 | public: |
hongyunAHN | 0:df4347043adf | 12 | |
hongyunAHN | 0:df4347043adf | 13 | Player(); |
hongyunAHN | 0:df4347043adf | 14 | ~Player(); |
hongyunAHN | 0:df4347043adf | 15 | void init(); |
hongyunAHN | 0:df4347043adf | 16 | void draw(N5110 &lcd); |
hongyunAHN | 0:df4347043adf | 17 | void update(Direction d,N5110 &lcd,Gamepad &pad); |
hongyunAHN | 0:df4347043adf | 18 | |
hongyunAHN | 0:df4347043adf | 19 | Vector2D get_pos(); |
hongyunAHN | 0:df4347043adf | 20 | |
hongyunAHN | 0:df4347043adf | 21 | private: |
hongyunAHN | 0:df4347043adf | 22 | |
hongyunAHN | 1:bd92ef8d00ac | 23 | //Background _background; |
hongyunAHN | 0:df4347043adf | 24 | |
hongyunAHN | 0:df4347043adf | 25 | int _x; |
hongyunAHN | 0:df4347043adf | 26 | int _y; |
hongyunAHN | 0:df4347043adf | 27 | |
hongyunAHN | 0:df4347043adf | 28 | }; |
hongyunAHN | 0:df4347043adf | 29 | #endif |