ELEC2645 (2018/19) / Mbed 2 deprecated el17ebs

Dependencies:   mbed FATFileSystem

Revision:
16:c8d68cbd1ae2
Parent:
14:08ac9aaa34c3
Child:
17:98127ac75195
--- a/Ball/Ball.h	Wed May 08 18:51:59 2019 +0000
+++ b/Ball/Ball.h	Thu May 09 09:58:51 2019 +0000
@@ -48,19 +48,16 @@
 };
 
 /** Ball Class
-* @brief Class for controlling a golf ball
+* @brief Class for controlling a  ball
 * @author Ellis Blackford Stroud
 * @date May, 2018
 */
-
 class Ball 
 {
-
 public:
-
     /** Constructor */
     Ball();
-
+    
     /** Destructor */
     ~Ball();
     
@@ -73,7 +70,7 @@
     * @param the class used to interact with the lcd display
     */ 
     void drawBall(N5110 &lcd);
-        
+    
     /** Prints shot count 
     * @param the class used to interact with the lcd display
     */ 
@@ -109,6 +106,12 @@
     *   @return the total shot count
     */ 
     int get_total_shot_count();
+    
+    /** Gets current level shout count
+    *   @return the shot countof current level
+    */ 
+    int get_shot_count();
+        
         
     /** Checks if ball is in hole
     *   @return true if ball is in the hole and false if not
@@ -119,7 +122,7 @@
     *   @param array of WallMap struct values storing wall types and coordinates
     *   @param integer used to control loop which runs bounce check
     */ 
-    void check_wall_bounce(WallMap map[], int size);
+    void check_wall_bounce(const WallMap map[], int size);
     
     /** Sets frame rate
     *   @param frequency of frame rate in Hz