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.
Character/Character.h
- Committer:
- Albutt
- Date:
- 2020-05-17
- Revision:
- 2:c25ec0da7636
- Child:
- 4:b16b6078a432
File content as of revision 2:c25ec0da7636:
#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; };