diff options
author | Logan Hunt <loganthebean222@gmail.com> | 2020-08-12 14:13:50 -0600 |
---|---|---|
committer | Logan Hunt <loganthebean222@gmail.com> | 2020-08-12 14:13:50 -0600 |
commit | 70ea8877ace50d2ce609d7d5f721c887b0ea83ec (patch) | |
tree | 514aa4f3d10b0a1db21928f8a002aa10458ecbb5 /src/UFO.h | |
parent | 495f771530ce1869098bc568f34c243697cab73c (diff) | |
download | skeet-cs165-70ea8877ace50d2ce609d7d5f721c887b0ea83ec.tar.gz skeet-cs165-70ea8877ace50d2ce609d7d5f721c887b0ea83ec.zip |
Added files
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 |