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: Head/Head.h
- Revision:
- 9:f3259d652208
- Parent:
- 5:e0f08e8022de
diff -r 59b01b57f0da -r f3259d652208 Head/Head.h --- a/Head/Head.h Sun May 31 16:06:31 2020 +0000 +++ b/Head/Head.h Thu Jun 04 18:47:58 2020 +0000 @@ -11,19 +11,26 @@ Head(); ~Head(); + void init(int _x, int _y, int _length, int _speed); void draw(N5110 &lcd); void update(); - void update(enum Direction d, float mag); + void read_input(Gamepad &pad); + void update(Direction d,float mag); Vector2D get_pos(); - + void set_velocity(Vector2D v); + Vector2D get_velocity(); + Vector2D get_Direction(); private: Gamepad pad; + Vector2D _velocity; + Vector2D _d; int _x; int _y; int _length; int _speed; + }; #endif \ No newline at end of file