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.
Dependencies: mbed
Diff: Frogger/Frogger.h
- Revision:
- 48:8ccfc74b60a5
- Parent:
- 47:29c4796a49e5
- Child:
- 50:9ffeb4a10c0a
--- a/Frogger/Frogger.h Sat May 23 03:53:33 2020 +0000 +++ b/Frogger/Frogger.h Sat May 23 21:47:19 2020 +0000 @@ -32,7 +32,8 @@ public: int current_level; int state_frog; - bool frogWater; + bool frogDie; + float water_level; bool frogOnLog; // attached public: @@ -70,9 +71,10 @@ public: void checkFrogOnWater(); + void drownedFrog(); void checkFrogAction(Object log); void setupLevelTwoRows(); - void moveFrogWithLog(Object *log); + void moveFrogWithLog(Object log); void levelOneCollision(); void levelTwoCollision(); @@ -93,6 +95,7 @@ //void moveLogLevelTwo(); void moveLogsLevelOne(); + void checkFrogReachedRiver(); void moveLogsLevelTwo(); void drawFrogStates();