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.
Fighter/Fighter.h
- Committer:
- ChenZirui
- Date:
- 2020-05-23
- Revision:
- 2:cb2fd25433ee
File content as of revision 2:cb2fd25433ee:
#ifndef FIGHTER_H #define FIGHTER_H #include "mbed.h" #include "N5510.h" #include "Gamepad.h" class fighter { public: fighter(); ~fighter(); void init(int x,int y,int height,int width); void draw(N5110 &lcd); void update(Direction d,float mag); void add_score(); int get_score(); Vector2D get_pos(); private: int _height; int _width; int _x; int _y; int _speed; int _score; };