A simple asteroids-like game utilizing various Mbed-compatible sensors
Dependencies: mbed 4DGL-uLCD-SE PinDetect
AbsAst.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 ABSAST_H |
sralph3 | 0:f2cc64948895 | 2 | #define ABSAST_H |
sralph3 | 0:f2cc64948895 | 3 | |
sralph3 | 0:f2cc64948895 | 4 | #include <string> |
sralph3 | 0:f2cc64948895 | 5 | #include <iostream> |
sralph3 | 0:f2cc64948895 | 6 | #include "ScreenObject.h" |
sralph3 | 0:f2cc64948895 | 7 | |
sralph3 | 0:f2cc64948895 | 8 | class AbsAst : public ScreenObject |
sralph3 | 0:f2cc64948895 | 9 | { |
sralph3 | 0:f2cc64948895 | 10 | public: |
sralph3 | 0:f2cc64948895 | 11 | virtual void draw() = 0; |
sralph3 | 0:f2cc64948895 | 12 | virtual void update() = 0; |
sralph3 | 0:f2cc64948895 | 13 | bool outB(); |
sralph3 | 0:f2cc64948895 | 14 | |
sralph3 | 0:f2cc64948895 | 15 | protected: |
sralph3 | 0:f2cc64948895 | 16 | int dx; |
sralph3 | 0:f2cc64948895 | 17 | int dy; |
sralph3 | 0:f2cc64948895 | 18 | }; |
sralph3 | 0:f2cc64948895 | 19 | #endif |