Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: GameObject/GameObject.h
- Revision:
- 7:cd3cafda3dd4
- Parent:
- 6:39bda45efeed
- Child:
- 8:9b77eea95088
diff -r 39bda45efeed -r cd3cafda3dd4 GameObject/GameObject.h --- 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;