Josh Davy / Mbed 2 deprecated Flip

Dependencies:   mbed el17jd

Revision:
10:58cf89dd878c
Parent:
9:96969b1c6bde
Child:
14:1e6f74233e8e
--- a/Player/Player.h	Wed Apr 24 10:18:45 2019 +0000
+++ b/Player/Player.h	Mon May 06 10:11:42 2019 +0000
@@ -10,9 +10,10 @@
 #include "PlayerMap.h"
 
 #define GRAVITY 2
-/*Sprite Class*/
+#define PLAYER_HEIGHT 6
+#define PLAYER_WIDTH 6
+#define SPEED 2
 
-//extern N5110 lcd;
 
 class Player : public Sprite{
 
@@ -20,16 +21,22 @@
     Player();
     ~Player();
     void update(Gamepad &pad, Block blocks [],int number_of_blocks);
-    void init(int height,int width,Vector2D pos);
+    void init(Vector2D pos);
     
     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);
+    void gravity(Block blocks [], int number_of_blocks);
     
     bool can_move_up(Block blocks [],int number_of_blocks);
     bool can_move_down(Block blocks [],int number_of_blocks);
     bool can_move_left(Block blocks [],int number_of_blocks);
     bool can_move_right(Block blocks [],int number_of_blocks);
     
+    
+    
 private:
     int _orientation;
     int _direction;