Josh Davy / Mbed 2 deprecated Flip

Dependencies:   mbed el17jd

Revision:
14:1e6f74233e8e
Parent:
10:58cf89dd878c
--- a/Player/Player.h	Mon May 06 15:07:28 2019 +0000
+++ b/Player/Player.h	Wed May 08 14:41:56 2019 +0000
@@ -13,6 +13,19 @@
 #define PLAYER_HEIGHT 6
 #define PLAYER_WIDTH 6
 #define SPEED 2
+/** Player Class
+
+@brief Player Class handles the updating,location and collision detection of the
+player as well as rendering the player on screen depending on the current
+orientation.
+@version 1.0
+
+@author Joshua Davy el17jd
+
+@date April 2019
+
+*/
+
 
 
 class Player : public Sprite{
@@ -22,9 +35,13 @@
     ~Player();
     void update(Gamepad &pad, Block blocks [],int number_of_blocks);
     void init(Vector2D pos);
+    bool check_goal_reached(Vector2D goal);
     
+
+    
+private:
     void check_out_of_range();
-    bool check_goal_reached(Vector2D goal);
+   
     void update_sprite(int orientation,int direction);
     void process_inputs(Gamepad &pad,
                         Block blocks [], int number_of_blocks);
@@ -36,8 +53,6 @@
     bool can_move_right(Block blocks [],int number_of_blocks);
     
     
-    
-private:
     int _orientation;
     int _direction;
     Vector2D _initial_pos;