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