This is the description
Dependencies: mbed Menu Joystick
Plane/Plane.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 Plane_H |
mrkang | 0:59cbc5800eb6 | 2 | #define Plane_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 | #include "Sound.h" |
mrkang | 0:59cbc5800eb6 | 8 | |
mrkang | 0:59cbc5800eb6 | 9 | class Plane{ |
mrkang | 0:59cbc5800eb6 | 10 | |
mrkang | 0:59cbc5800eb6 | 11 | public: |
mrkang | 0:59cbc5800eb6 | 12 | Plane(); |
mrkang | 0:59cbc5800eb6 | 13 | ~Plane(); |
mrkang | 0:59cbc5800eb6 | 14 | void init(int x,int y,int sizeX,int sizeY); |
mrkang | 0:59cbc5800eb6 | 15 | void draw(N5110 &lcd); |
mrkang | 0:59cbc5800eb6 | 16 | void update(int d); |
mrkang | 0:59cbc5800eb6 | 17 | Vector2D getPos(); |
mrkang | 0:59cbc5800eb6 | 18 | private: |
mrkang | 0:59cbc5800eb6 | 19 | int _x; |
mrkang | 0:59cbc5800eb6 | 20 | int _y; |
mrkang | 0:59cbc5800eb6 | 21 | int _sizeX; |
mrkang | 0:59cbc5800eb6 | 22 | int _sizeY; |
mrkang | 0:59cbc5800eb6 | 23 | int _speed; |
mrkang | 0:59cbc5800eb6 | 24 | }; |
mrkang | 0:59cbc5800eb6 | 25 | #endif |