hongyun AHN
/
project_Maze
200943373hongyun
player/player.h@0:e70cf0da7c72, 2017-05-04 (annotated)
- Committer:
- hongyunAHN
- Date:
- Thu May 04 11:46:46 2017 +0000
- Revision:
- 0:e70cf0da7c72
200943373
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hongyunAHN | 0:e70cf0da7c72 | 1 | #ifndef PLAYER_H |
hongyunAHN | 0:e70cf0da7c72 | 2 | #define PLAYER_H |
hongyunAHN | 0:e70cf0da7c72 | 3 | |
hongyunAHN | 0:e70cf0da7c72 | 4 | #include "mbed.h" |
hongyunAHN | 0:e70cf0da7c72 | 5 | #include "N5110.h" |
hongyunAHN | 0:e70cf0da7c72 | 6 | #include "background.h" |
hongyunAHN | 0:e70cf0da7c72 | 7 | |
hongyunAHN | 0:e70cf0da7c72 | 8 | class player |
hongyunAHN | 0:e70cf0da7c72 | 9 | { |
hongyunAHN | 0:e70cf0da7c72 | 10 | public: |
hongyunAHN | 0:e70cf0da7c72 | 11 | |
hongyunAHN | 0:e70cf0da7c72 | 12 | player(); |
hongyunAHN | 0:e70cf0da7c72 | 13 | ~player(); |
hongyunAHN | 0:e70cf0da7c72 | 14 | void init(int x,int height,int width); |
hongyunAHN | 0:e70cf0da7c72 | 15 | void read_input(background pad); |
hongyunAHN | 0:e70cf0da7c72 | 16 | void update(Direction d,float mag); |
hongyunAHN | 0:e70cf0da7c72 | 17 | void draw(N5110 &lcd); |
hongyunAHN | 0:e70cf0da7c72 | 18 | Vector2D get_pos(); |
hongyunAHN | 0:e70cf0da7c72 | 19 | |
hongyunAHN | 0:e70cf0da7c72 | 20 | private: |
hongyunAHN | 0:e70cf0da7c72 | 21 | |
hongyunAHN | 0:e70cf0da7c72 | 22 | |
hongyunAHN | 0:e70cf0da7c72 | 23 | int _x; |
hongyunAHN | 0:e70cf0da7c72 | 24 | int _y; |
hongyunAHN | 0:e70cf0da7c72 | 25 | |
hongyunAHN | 0:e70cf0da7c72 | 26 | }; |
hongyunAHN | 0:e70cf0da7c72 | 27 | #endif |