Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
29:579e00b7f118
Parent:
28:35af3843de8f
Child:
30:d454d0cb72bc
--- a/game/game.h	Wed Apr 10 15:42:10 2019 +0000
+++ b/game/game.h	Mon Apr 15 12:59:51 2019 +0000
@@ -1,8 +1,7 @@
 #ifndef GAME_H
 #define GAME_H
 
-#include "geometry.h"
-
+/** This variable is used in game.cpp, enemy.h, player.h and hud.h*/
 extern int game_score;
 extern int score_count_for_difficulty;
 extern int player_lifes;
@@ -10,17 +9,25 @@
 extern int red_led_flashing;
 extern int high_score;
 
+/** Game Class
+ * @brief A library for drawing the game.
+ * @author Dmitrijs Griskovs
+ * @date 15/04/2019
+ */
 class Game{
 public:
-/**   This is the main function of game.cpp, where the actual gameplay happens.
-    * Here all other functions are activeated, and when the player dies, it
-    * returns back to main menu "main.cpp". 
-    */
+/** @brief The main game function where all the gamplay happens.
+ * @details This is the main function of game.cpp, where the actual gameplay happens.
+ * Here all other functions are activeated, and when the player dies, it
+ * returns back to main menu "main.cpp".
+ * @returns bool want_to_pause, when "START" butto nis pressed.
+ */
     bool updateAndDraw();
-/** This function resets all the values to their intial states when the game is
-    * first began when the player dies and wants to restart the game.
-    * It does not reset the values when the game is paused.
-    */  
+/** @brief Resets all the in game variable when new game begins.
+ * @details This function resets all the values to their intial states when 
+ * the game is first began when the player dies and wants to restart the game.
+ * It does not reset the values when the game is paused.
+ */  
     void startNewGame();
 private:
     bool checkForGameOver();
@@ -31,6 +38,11 @@
     void increaseGameDifficultyAndEnemySpawnDelay();
     void gameOver();
     void drawGameOver();
+    void ledsGameOver();
+    void musicGameOver();
+    void printMusicCountersTest();
+    void lowFrequencyPartMusic();
+    void highFrequencyPartMusic();
 };