This is the description
Dependencies: mbed Menu Joystick
Diff: Enemy/Enemy.h
- Revision:
- 0:59cbc5800eb6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Enemy/Enemy.h Mon Apr 27 14:04:30 2020 +0000 @@ -0,0 +1,30 @@ +#ifndef ENEMY_H +#define ENEMY_H +#include "mbed.h" +#include "N5110.h" +#include "Joystick.h" +#include "Bitmap.h" + +class Enemy{ + +public: + Enemy(int mode); + ~Enemy(); + void init(int _sizeX,int _sizeY); + Vector2D getPos(); + void update(); + void draw(N5110 &lcd,int mode); + void setSpeed(int speed); + int getSpeed(); + int getBlood(); + void setBlood(int harm); +private: + int _x; + int _y; + int _sizeX; + int _sizeY; + int _speed; + int _blood; +}; +#endif + \ No newline at end of file