Dependencies: 4DGL-uLCD-SE PinDetect mbed
Display/Shot.h@0:5c666e5cd22d, 2016-03-17 (annotated)
- Committer:
- jaspinall3
- Date:
- Thu Mar 17 20:47:11 2016 +0000
- Revision:
- 0:5c666e5cd22d
March 17, 2016 Vertical Scrolling Space Shooter
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jaspinall3 | 0:5c666e5cd22d | 1 | #ifndef SHOT_H |
jaspinall3 | 0:5c666e5cd22d | 2 | #define SHOT_H |
jaspinall3 | 0:5c666e5cd22d | 3 | |
jaspinall3 | 0:5c666e5cd22d | 4 | #include "Circle.h" |
jaspinall3 | 0:5c666e5cd22d | 5 | |
jaspinall3 | 0:5c666e5cd22d | 6 | class Shot : public Circle { |
jaspinall3 | 0:5c666e5cd22d | 7 | public: |
jaspinall3 | 0:5c666e5cd22d | 8 | Shot(int x, int y, int dy, int color, uLCD_4DGL *uLCD); |
jaspinall3 | 0:5c666e5cd22d | 9 | int getY(); |
jaspinall3 | 0:5c666e5cd22d | 10 | int getX(); |
jaspinall3 | 0:5c666e5cd22d | 11 | void update(); |
jaspinall3 | 0:5c666e5cd22d | 12 | |
jaspinall3 | 0:5c666e5cd22d | 13 | protected: |
jaspinall3 | 0:5c666e5cd22d | 14 | int _dy; |
jaspinall3 | 0:5c666e5cd22d | 15 | int _color; |
jaspinall3 | 0:5c666e5cd22d | 16 | }; |
jaspinall3 | 0:5c666e5cd22d | 17 | |
jaspinall3 | 0:5c666e5cd22d | 18 | #endif |