ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
7:0d9cee90ab0d
Parent:
6:848d1e4c1a31
Child:
8:90e789413e0b
--- a/Doodler/Doodler.h	Sat Apr 13 19:50:00 2019 +0000
+++ b/Doodler/Doodler.h	Sun Apr 14 17:07:02 2019 +0000
@@ -12,15 +12,20 @@
     ~Doodler();
     void init(int radius);
     void draw(N5110 &lcd);
-    void jump();
-    void update (Direction d, float mag);
-    Vector2D get_pos(); 
+    void update(Direction d, float mag);
+    Vector2D get_position(); 
+    Vector2D get_velocity();
+    void set_velocity(Vector2D v);
+    void set_position(Vector2D p);
+    
     
 private:
     int _radius;
     int _x;
-    int _y;
-    int _speed;
+    int _y;    
+    Vector2D _velocity;
+    float _gravity;
+    float _up;
     
 };
 #endif
\ No newline at end of file