diff options
author | Simponic <loganthebean222@gmail.com> | 2020-08-13 12:07:52 -0600 |
---|---|---|
committer | Simponic <loganthebean222@gmail.com> | 2020-08-13 12:07:52 -0600 |
commit | d8b164e4727c887979d4da6a4011a444749862fc (patch) | |
tree | 63ae5ebfab9c1e438c0c2ccc97668e3ab809bdbd /src/flyingObject.h | |
parent | 40a568c50224c2832aeb13bd469d714d126118e1 (diff) | |
download | asteroids-cs165-d8b164e4727c887979d4da6a4011a444749862fc.tar.gz asteroids-cs165-d8b164e4727c887979d4da6a4011a444749862fc.zip |
Better file structure, stuff is better in general
Diffstat (limited to 'src/flyingObject.h')
-rw-r--r-- | src/flyingObject.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/flyingObject.h b/src/flyingObject.h deleted file mode 100644 index 3296c5a..0000000 --- a/src/flyingObject.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef flyingObject_h -#define flyingObject_h - -#include "point.h" -#include "velocity.h" -#include "uiDraw.h" - -class FlyingObject -{ -protected: - Point point; - Velocity velocity; - bool alive; -public: - FlyingObject() : point( Point() ) , velocity( Velocity() ) , alive( true ) {} - Point getPoint() const { return this->point; } - void setPoint( const Point &point ) { this->point = point; } - Velocity getVelocity() const { return this->velocity; } - void setVelocity( const Velocity &velocity) { this->velocity = velocity; } - bool isAlive() { return this->alive; } - void kill() { alive = false; }; - virtual void draw() { drawDot( point ); }; - virtual void advance(); -}; - - - -#endif /* flyingObject_h */ |