summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
authorSimponic <loganthebean222@gmail.com>2020-08-13 12:07:52 -0600
committerSimponic <loganthebean222@gmail.com>2020-08-13 12:07:52 -0600
commitd8b164e4727c887979d4da6a4011a444749862fc (patch)
tree63ae5ebfab9c1e438c0c2ccc97668e3ab809bdbd /src/ship.h
parent40a568c50224c2832aeb13bd469d714d126118e1 (diff)
downloadasteroids-cs165-d8b164e4727c887979d4da6a4011a444749862fc.tar.gz
asteroids-cs165-d8b164e4727c887979d4da6a4011a444749862fc.zip
Better file structure, stuff is better in general
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/ship.h b/src/ship.h
deleted file mode 100644
index 46b6817..0000000
--- a/src/ship.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef ship_h
-#define ship_h
-
-#define SHIP_SIZE 10
-#define ROTATE_AMOUNT 6
-#define THRUST_AMOUNT 0.5
-
-#include "flyingObject.h"
-#include "uiDraw.h"
-#include "uiInteract.h"
-
-using namespace std;
-
-class Ship : public FlyingObject
-{
-private:
- float angle;
- bool isThrusting;
- int fuel;
-public:
- Ship( const Point &point ) : FlyingObject() , fuel ( 1000 ) , angle ( 90.0 ) , isThrusting( false ) { setPoint ( point ); }
- float getAngle() const { return this->angle; }
- float getFuel() { return this->fuel; }
- void setFuel ( const int fuel ) { this->fuel - fuel; }
- void thrust( const bool isUp );
- void rotate( const bool isRight );
- bool getIsThrusting() { return isThrusting; }
- void setThrusting( const bool isThrusting ) { this->isThrusting = isThrusting; }
- void draw() const;
-};
-
-#endif /* ship_h */