Project Submission (late)
Dependencies: mbed
Player/Player.h@0:72f372170a73, 2019-05-10 (annotated)
- Committer:
- el17tc
- Date:
- Fri May 10 08:07:10 2019 +0000
- Revision:
- 0:72f372170a73
- Child:
- 3:83e79d31930c
Save at functioning version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17tc | 0:72f372170a73 | 1 | #ifndef PLAYER_H |
el17tc | 0:72f372170a73 | 2 | #define PLAYER_H |
el17tc | 0:72f372170a73 | 3 | |
el17tc | 0:72f372170a73 | 4 | #include "Maze.h" |
el17tc | 0:72f372170a73 | 5 | #include "Vector2Di.h" |
el17tc | 0:72f372170a73 | 6 | |
el17tc | 0:72f372170a73 | 7 | class Player { |
el17tc | 0:72f372170a73 | 8 | |
el17tc | 0:72f372170a73 | 9 | public: |
el17tc | 0:72f372170a73 | 10 | Player(Maze* maze); |
el17tc | 0:72f372170a73 | 11 | bool checkLocation(Vector2Di origin, double angle, int checkVal); |
el17tc | 0:72f372170a73 | 12 | void walk(); |
el17tc | 0:72f372170a73 | 13 | void turnLeft(); |
el17tc | 0:72f372170a73 | 14 | void turnRight(); |
el17tc | 0:72f372170a73 | 15 | void stepBack(); |
el17tc | 0:72f372170a73 | 16 | |
el17tc | 0:72f372170a73 | 17 | Vector2Di pos; |
el17tc | 0:72f372170a73 | 18 | Vector2Di direction; |
el17tc | 0:72f372170a73 | 19 | Maze* maze; |
el17tc | 0:72f372170a73 | 20 | |
el17tc | 0:72f372170a73 | 21 | }; |
el17tc | 0:72f372170a73 | 22 | |
el17tc | 0:72f372170a73 | 23 | #endif // PLAYER_H |