ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
34:754915ce9de5
Parent:
33:c623c6d5ed16
Child:
37:6a2bf4488022
--- a/game/game.h	Mon Apr 29 08:10:52 2019 +0000
+++ b/game/game.h	Tue Apr 30 19:24:41 2019 +0000
@@ -11,6 +11,7 @@
 public:
     static int game_score;
     static int score_count_for_difficulty;
+    static int score_count_for_boss_mode;
     static int player_lifes;
     static int high_score;
     static bool is_shield_on;
@@ -26,7 +27,7 @@
 public:
     /** 
      * Constructor. 
-     * @brief It's crucial to init game_over to true, so it calls
+     * @brief It is crucial to init game_over to true, so it calls
      * startNewGame on the first update. 
      */ 
     Game() : game_state(GameState_newgame) { }
@@ -57,12 +58,14 @@
     bool forceShildActivate();
     
 private:
+
     void checkButtonToShoot();
     bool checkForGameOver();
     void collideEnemiesAndBlasts();
     void collideEnemiesBlastsAndPlayer();
     void collideEnemiesAndPlayer();
     void collideBossAndPlayerBlasts();
+    void collideBossBlastsAndPlayer();
     void starsSpawnDelay();
     void increaseGameDifficultyAndEnemySpawnDelay();
     void printMusicCountersTest();
@@ -74,8 +77,9 @@
 
     int enemy_ship_delay_counter;
     int enemy_ship_delay_max;
+    bool is_boss_active;
 
-    
+
     enum GameState {
         GameState_newgame,
         GameState_gameplay,