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: Character/Character.h
- Revision:
- 2:c25ec0da7636
- Child:
- 4:b16b6078a432
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Character/Character.h Sun May 17 12:34:15 2020 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + +class Character +{ +public: + + Character(); + ~Character(); + void init(int x,int y); + void draw(N5110 &lcd); + void update(Direction d,float mag); + void level_up(); + int get_level(); + Vector2D get_pos(); + +private: + + int _x; + int _y; + int _speed; + int _level; + int _dir; +}; \ No newline at end of file