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
Fork of el17dg by
Diff: game/game.h
- Revision:
- 21:0eb394495b8a
- Parent:
- 20:557e84189a57
- Child:
- 22:4dc3c95f2146
--- a/game/game.h Tue Mar 26 10:52:53 2019 +0000 +++ b/game/game.h Wed Mar 27 00:00:32 2019 +0000 @@ -1,12 +1,22 @@ #ifndef GAME_H #define GAME_H +#include "geometry.h" + class Game{ public: + Game(); bool updateAndDraw(); - bool checkGameOver(); - //void gameValuesInit(); + void startNewGame(); private: + void collideEnemiesAndBlasts(); + void fireNewBlast(); + void collideEnemiesBlastsAndPlayer(); + void updateAndDrawBlasts(); + void shipMovment(); + + CircleBounds player_bounds; + CircleBounds blast_bounds; };