A simple asteroids-like game utilizing various Mbed-compatible sensors
Dependencies: mbed 4DGL-uLCD-SE PinDetect
ScreenObject.h@0:f2cc64948895, 2018-11-30 (annotated)
- Committer:
- sralph3
- Date:
- Fri Nov 30 04:49:11 2018 +0000
- Revision:
- 0:f2cc64948895
.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sralph3 | 0:f2cc64948895 | 1 | #ifndef SCREENOBJECT_H |
sralph3 | 0:f2cc64948895 | 2 | #define SCREENOBJECT_H |
sralph3 | 0:f2cc64948895 | 3 | #include <string> |
sralph3 | 0:f2cc64948895 | 4 | #include <iostream> |
sralph3 | 0:f2cc64948895 | 5 | |
sralph3 | 0:f2cc64948895 | 6 | class ScreenObject |
sralph3 | 0:f2cc64948895 | 7 | { |
sralph3 | 0:f2cc64948895 | 8 | public: |
sralph3 | 0:f2cc64948895 | 9 | int xpos; |
sralph3 | 0:f2cc64948895 | 10 | int ypos; |
sralph3 | 0:f2cc64948895 | 11 | |
sralph3 | 0:f2cc64948895 | 12 | virtual void draw() = 0; |
sralph3 | 0:f2cc64948895 | 13 | virtual void update() = 0; |
sralph3 | 0:f2cc64948895 | 14 | virtual bool outB() = 0; |
sralph3 | 0:f2cc64948895 | 15 | |
sralph3 | 0:f2cc64948895 | 16 | private: |
sralph3 | 0:f2cc64948895 | 17 | |
sralph3 | 0:f2cc64948895 | 18 | |
sralph3 | 0:f2cc64948895 | 19 | }; |
sralph3 | 0:f2cc64948895 | 20 | #endif |
sralph3 | 0:f2cc64948895 | 21 | |
sralph3 | 0:f2cc64948895 | 22 |