Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Player/Player.h
- Revision:
- 9:96969b1c6bde
- Parent:
- 8:21b6d4dbce44
- Child:
- 10:58cf89dd878c
--- a/Player/Player.h Fri Apr 19 17:54:09 2019 +0000
+++ b/Player/Player.h Wed Apr 24 10:18:45 2019 +0000
@@ -22,6 +22,9 @@
void update(Gamepad &pad, Block blocks [],int number_of_blocks);
void init(int height,int width,Vector2D pos);
+ void check_out_of_range();
+ bool check_goal_reached(Vector2D goal);
+
bool can_move_up(Block blocks [],int number_of_blocks);
bool can_move_down(Block blocks [],int number_of_blocks);
bool can_move_left(Block blocks [],int number_of_blocks);
@@ -30,6 +33,7 @@
private:
int _orientation;
int _direction;
+ Vector2D _initial_pos;
};
#endif
\ No newline at end of file