Kaif Kutchwala 201267448 ELEC2645 Project

Dependencies:   mbed

Revision:
20:c697902b844f
Parent:
17:2fbe40177b9c
Child:
21:d5b1160f349f
--- a/Game/Game.h	Fri May 22 23:51:06 2020 +0000
+++ b/Game/Game.h	Sun May 24 17:40:56 2020 +0000
@@ -8,6 +8,7 @@
 #include "N5110.h"
 #include "Ball.h"
 #include "Splash.h"
+#include "GoalSounds.h"
 
 
 class Game {
@@ -38,6 +39,11 @@
           * @param val @details array containing values to write to each led
           */
         void updateLeds( int val[6]);
+         /** @brief plays sound effect for when new highscore is reached
+          * @param sound @details determines which sound to play (1-miss,2-goal,
+          * 3-game over)
+          */
+        void playGoalSound(int sound);
         
         //accessors and mutators
         void set_highscore(int score);
@@ -65,6 +71,7 @@
           * @param n @details 0- Miss 1- Goal
           */
         void print_goal_message(int n);
+        
         //variables
         bool _is_goal;
         int _score;
@@ -78,6 +85,7 @@
         int _shot_y;
         float _speed;
         float _new_speed_threshold;
+        
     };
 
 #endif
\ No newline at end of file