From 70ea8877ace50d2ce609d7d5f721c887b0ea83ec Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Wed, 12 Aug 2020 14:13:50 -0600 Subject: Added files --- src/UFO.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/UFO.h (limited to 'src/UFO.h') 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 -- cgit v1.2.3-70-g09d2