diff options
Diffstat (limited to 'src/UFO.h')
-rw-r--r-- | src/UFO.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/UFO.h b/src/UFO.h new file mode 100644 index 0000000..cf67461 --- /dev/null +++ b/src/UFO.h @@ -0,0 +1,27 @@ +#ifndef UFO_H +#define UFO_H + +#include "point.h" +#include "velocity.h" + +class UFO +{ + public: + UFO(); + Point getPoint() const; + Velocity getVelocity() const; + bool isAlive() const; + void setAlive ( bool isAlive ); + void setPoint( const Point &point ); + void setVelocity( const Velocity &velocity ); + void setVelocity ( float dx , float dy ); + void advance(); + void kill(); + virtual void draw() = 0; + protected: + bool alive; + Point point; + Velocity velocity; +}; + +#endif |