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:
- 11:db27d3838514
- Parent:
- 9:96969b1c6bde
- Child:
- 12:5549a299d41e
diff -r 58cf89dd878c -r db27d3838514 Level/Level.h --- a/Level/Level.h Mon May 06 10:11:42 2019 +0000 +++ b/Level/Level.h Mon May 06 14:43:01 2019 +0000 @@ -1,16 +1,12 @@ #ifndef LEVEL_H #define LEVEL_H + #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Bitmap.h" - - -struct Block { - Vector2D first; - Vector2D second; -}; +#include "LevelDefinitions.h" struct MovingBlock { int index; @@ -46,7 +42,9 @@ ~Level(); void init(Block blocks [], int number_of_blocks, - Vector2D goal); + Vector2D goal, + MovingBlockDefinition moving_blocks[], + int number_of_moving_blocks); void update_moving_blocks(); void render(N5110 &lcd); void declare_moving_block(int index,bool extending,int distance);