Kostadin Chakarov / Mbed 2 deprecated el17kec

Dependencies:   mbed

Revision:
7:cd3cafda3dd4
Parent:
6:39bda45efeed
Child:
8:9b77eea95088
--- a/GameObject/GameObject.h	Mon Apr 08 09:14:33 2019 +0000
+++ b/GameObject/GameObject.h	Wed Apr 10 09:18:25 2019 +0000
@@ -19,13 +19,13 @@
     
     virtual void move();
     virtual void draw(N5110 &lcd);
-    const Vector2D& getballPos();
+    const Vector2D& getPos();
     int getW() { return w; };
     int getH() { return h; };
     
 protected:
     int w, h;
-    Vector2D ballpos;
+    Vector2D pos;
 };
 
 
@@ -33,6 +33,7 @@
 {
 public:
     virtual void move();
+    Vector2D& getVelocity() { return velocity; }
     
 protected:
     Vector2D velocity;