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: Engine/Engine.h
- Revision:
- 13:81573be8fac6
- Parent:
- 12:d3eef5ea3f43
- Child:
- 14:a57a40ff9430
--- a/Engine/Engine.h Mon May 07 18:06:50 2018 +0000 +++ b/Engine/Engine.h Mon May 07 19:41:09 2018 +0000 @@ -18,13 +18,9 @@ void gameOverScreen(N5110 &lcd); string convertString(int a); void gameOver(N5110 &lcd); - int getScore(); + float getScore(); bool getGameOver(); void setLvl(int _levelToSet); - void loadLvl(); - void lvlOne(); - void lvlTwo(); - void lvlThree(); private: @@ -35,4 +31,12 @@ Food _noodles; //Common foodstuffs in MGS, once again to reduce confusion bool _gameOver; int _lvl; + + //Private Methods + void loadLvl(); + void lvlOne(); + void lvlTwo(); + void lvlThree(); + bool checkFood(); + void growSnake(Gamepad &pad); }; \ No newline at end of file