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: Level/Level.h
- Revision:
- 9:96969b1c6bde
- Parent:
- 8:21b6d4dbce44
- Child:
- 11:db27d3838514
diff -r 21b6d4dbce44 -r 96969b1c6bde Level/Level.h --- a/Level/Level.h Fri Apr 19 17:54:09 2019 +0000 +++ b/Level/Level.h Wed Apr 24 10:18:45 2019 +0000 @@ -13,13 +13,13 @@ }; struct MovingBlock { - int block_index; - int x; - int y; - int s; - int f; - int yo; - int lol; + int index; + int distance; + + int initial_pos; + bool extending; + + }; const int goalMap[11][6] = { @@ -44,12 +44,15 @@ public: Level(); ~Level(); - void init(Block blocks [],MovingBlock moving_block [], + void init(Block blocks [], int number_of_blocks, - int number_of_moving_blocks, Vector2D goal); - void update(); + void update_moving_blocks(); void render(N5110 &lcd); + void declare_moving_block(int index,bool extending,int distance); + Block * get_blocks(); + int get_number_of_blocks(); + Vector2D get_goal();