This is the description
Dependencies: mbed Menu Joystick
Enemy/Enemy.h@0:59cbc5800eb6, 2020-04-27 (annotated)
- Committer:
- mrkang
- Date:
- Mon Apr 27 14:04:30 2020 +0000
- Revision:
- 0:59cbc5800eb6
Starwars
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mrkang | 0:59cbc5800eb6 | 1 | #ifndef ENEMY_H |
mrkang | 0:59cbc5800eb6 | 2 | #define ENEMY_H |
mrkang | 0:59cbc5800eb6 | 3 | #include "mbed.h" |
mrkang | 0:59cbc5800eb6 | 4 | #include "N5110.h" |
mrkang | 0:59cbc5800eb6 | 5 | #include "Joystick.h" |
mrkang | 0:59cbc5800eb6 | 6 | #include "Bitmap.h" |
mrkang | 0:59cbc5800eb6 | 7 | |
mrkang | 0:59cbc5800eb6 | 8 | class Enemy{ |
mrkang | 0:59cbc5800eb6 | 9 | |
mrkang | 0:59cbc5800eb6 | 10 | public: |
mrkang | 0:59cbc5800eb6 | 11 | Enemy(int mode); |
mrkang | 0:59cbc5800eb6 | 12 | ~Enemy(); |
mrkang | 0:59cbc5800eb6 | 13 | void init(int _sizeX,int _sizeY); |
mrkang | 0:59cbc5800eb6 | 14 | Vector2D getPos(); |
mrkang | 0:59cbc5800eb6 | 15 | void update(); |
mrkang | 0:59cbc5800eb6 | 16 | void draw(N5110 &lcd,int mode); |
mrkang | 0:59cbc5800eb6 | 17 | void setSpeed(int speed); |
mrkang | 0:59cbc5800eb6 | 18 | int getSpeed(); |
mrkang | 0:59cbc5800eb6 | 19 | int getBlood(); |
mrkang | 0:59cbc5800eb6 | 20 | void setBlood(int harm); |
mrkang | 0:59cbc5800eb6 | 21 | private: |
mrkang | 0:59cbc5800eb6 | 22 | int _x; |
mrkang | 0:59cbc5800eb6 | 23 | int _y; |
mrkang | 0:59cbc5800eb6 | 24 | int _sizeX; |
mrkang | 0:59cbc5800eb6 | 25 | int _sizeY; |
mrkang | 0:59cbc5800eb6 | 26 | int _speed; |
mrkang | 0:59cbc5800eb6 | 27 | int _blood; |
mrkang | 0:59cbc5800eb6 | 28 | }; |
mrkang | 0:59cbc5800eb6 | 29 | #endif |
mrkang | 0:59cbc5800eb6 | 30 |