This is the description
Dependencies: mbed Menu Joystick
Bullet/Bullet.h@1:099632454013, 2020-04-27 (annotated)
- Committer:
- mrkang
- Date:
- Mon Apr 27 14:22:07 2020 +0000
- Revision:
- 1:099632454013
- Parent:
- 0:59cbc5800eb6
Star wars; ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mrkang | 0:59cbc5800eb6 | 1 | #ifndef BULLET_H |
mrkang | 0:59cbc5800eb6 | 2 | #define BULLET_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 Bullet{ |
mrkang | 0:59cbc5800eb6 | 9 | public: |
mrkang | 0:59cbc5800eb6 | 10 | Bullet(); |
mrkang | 0:59cbc5800eb6 | 11 | ~Bullet(); |
mrkang | 0:59cbc5800eb6 | 12 | void init(int x,int y,int sizeX,int sizeY); |
mrkang | 0:59cbc5800eb6 | 13 | void draw(N5110 &lcd); |
mrkang | 0:59cbc5800eb6 | 14 | void update(); |
mrkang | 0:59cbc5800eb6 | 15 | Vector2D getPos(); |
mrkang | 0:59cbc5800eb6 | 16 | private: |
mrkang | 0:59cbc5800eb6 | 17 | int _x; |
mrkang | 0:59cbc5800eb6 | 18 | int _y; |
mrkang | 0:59cbc5800eb6 | 19 | int _sizeX; |
mrkang | 0:59cbc5800eb6 | 20 | int _sizeY; |
mrkang | 0:59cbc5800eb6 | 21 | int _speed; |
mrkang | 0:59cbc5800eb6 | 22 | }; |
mrkang | 0:59cbc5800eb6 | 23 | #endif |