#ifndef SHIP_H #define SHIP_H #include #include #include #define MAXSPEED 1 #define ACCEL 0.1 class Ship { public: Ship (); Ship (float x, float y, float vx, float vy); Ship (float x, float y, float vx, float vy, float time); vector NewPosition (float theta, bool fire, float pTime); vector GetPosition (); vector GetVelocity (); point GetShape (); float GetTime (); friend istream& operator >> (istream& in, Ship &s); friend ostream& operator << (ostream& out, const Ship &s); float fuel; point shape; float x, y, vx, vy; float time; }; float abs (float x); double abs (double x); #endif