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: Game/Game.h
- Revision:
- 9:96969b1c6bde
- Parent:
- 7:68e06dda79f7
- Child:
- 11:db27d3838514
--- a/Game/Game.h Fri Apr 19 17:54:09 2019 +0000 +++ b/Game/Game.h Wed Apr 24 10:18:45 2019 +0000 @@ -8,6 +8,7 @@ #include "Sprite.h" #include "Player.h" #include "Level.h" +#include "LevelDefinitions.h" @@ -17,14 +18,17 @@ Game(); ~Game(); void init(); - void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); + void load_level(int level_number); + bool game_won(); private: Direction _d; float _mag; Player _player; Level _level; + int _current_level; + bool _game_won; }; #endif \ No newline at end of file