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.
Dependencies: mbed
Diff: Doodler/Doodler.h
- Revision:
- 5:8814d6de77d0
- Parent:
- 4:8ec314f806ae
- Child:
- 6:848d1e4c1a31
diff -r 8ec314f806ae -r 8814d6de77d0 Doodler/Doodler.h
--- a/Doodler/Doodler.h Thu Apr 11 14:44:14 2019 +0000
+++ b/Doodler/Doodler.h Sat Apr 13 17:37:52 2019 +0000
@@ -5,22 +5,21 @@
#include "N5110.h"
#include "Gamepad.h"
#include "Floors.h"
+
class Doodler{
public:
Doodler();
~Doodler();
- void init(int x, int y, int radius);
+ void init(int radius);
void draw(N5110 &lcd);
- Vector2D get_velocity(); //accesors
+ void update (Direction d, float mag);
Vector2D get_pos();
- void set_pos(Vector2D p); // mutators
- void set_velocity (Vector2D v);
private:
int _radius;
int _x;
int _y;
- Vector2D _velocity;
+ int _speed;
};
#endif
\ No newline at end of file