diff options
Diffstat (limited to 'Stars45/Thruster.h')
-rw-r--r-- | Stars45/Thruster.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/Stars45/Thruster.h b/Stars45/Thruster.h index c7f9e00..ec28661 100644 --- a/Stars45/Thruster.h +++ b/Stars45/Thruster.h @@ -1,15 +1,15 @@ /* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: Thruster.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: Thruster.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Conventional Thruster (system) class
+ OVERVIEW
+ ========
+ Conventional Thruster (system) class
*/
#ifndef Thruster_h
@@ -26,18 +26,18 @@ class Ship; // +--------------------------------------------------------------------+
struct ThrusterPort {
- static const char* TYPENAME() { return "ThrusterPort"; }
-
- ThrusterPort(int t, const Point& l, DWORD f, float s);
- ~ThrusterPort();
-
- int type;
- DWORD fire;
- float burn;
- float scale;
- Point loc;
- Graphic* flare;
- Graphic* trail;
+ static const char* TYPENAME() { return "ThrusterPort"; }
+
+ ThrusterPort(int t, const Point& l, DWORD f, float s);
+ ~ThrusterPort();
+
+ int type;
+ DWORD fire;
+ float burn;
+ float scale;
+ Point loc;
+ Graphic* flare;
+ Graphic* trail;
};
// +--------------------------------------------------------------------+
@@ -45,52 +45,52 @@ struct ThrusterPort { class Thruster : public System
{
public:
- static const char* TYPENAME() { return "Thruster"; }
+ static const char* TYPENAME() { return "Thruster"; }
- enum Constants {
- LEFT, RIGHT, FORE, AFT, TOP, BOTTOM,
- YAW_L, YAW_R, PITCH_D, PITCH_U, ROLL_L, ROLL_R
- };
+ enum Constants {
+ LEFT, RIGHT, FORE, AFT, TOP, BOTTOM,
+ YAW_L, YAW_R, PITCH_D, PITCH_U, ROLL_L, ROLL_R
+ };
- Thruster(int dtype, double thrust, float flare_scale=0);
- Thruster(const Thruster& rhs);
- virtual ~Thruster();
+ Thruster(int dtype, double thrust, float flare_scale=0);
+ Thruster(const Thruster& rhs);
+ virtual ~Thruster();
- static void Initialize();
- static void Close();
+ static void Initialize();
+ static void Close();
- virtual void ExecFrame(double seconds);
- virtual void ExecTrans(double x, double y, double z);
- virtual void SetShip(Ship* s);
+ virtual void ExecFrame(double seconds);
+ virtual void ExecTrans(double x, double y, double z);
+ virtual void SetShip(Ship* s);
- virtual double TransXLimit();
- virtual double TransYLimit();
- virtual double TransZLimit();
+ virtual double TransXLimit();
+ virtual double TransYLimit();
+ virtual double TransZLimit();
- virtual void AddPort(int type, const Point& loc, DWORD fire, float flare_scale=0);
- virtual void CreatePort(int type, const Point& loc, DWORD fire, float flare_scale);
+ virtual void AddPort(int type, const Point& loc, DWORD fire, float flare_scale=0);
+ virtual void CreatePort(int type, const Point& loc, DWORD fire, float flare_scale);
- int NumThrusters() const;
- Graphic* Flare(int engine) const;
- Graphic* Trail(int engine) const;
- virtual void Orient(const Physical* rep);
- virtual double GetRequest(double seconds) const;
+ int NumThrusters() const;
+ Graphic* Flare(int engine) const;
+ Graphic* Trail(int engine) const;
+ virtual void Orient(const Physical* rep);
+ virtual double GetRequest(double seconds) const;
protected:
- void IncBurn(int inc, int dec);
- void DecBurn(int a, int b);
+ void IncBurn(int inc, int dec);
+ void DecBurn(int a, int b);
- Ship* ship;
- float thrust;
- float scale;
- float burn[12];
+ Ship* ship;
+ float thrust;
+ float scale;
+ float burn[12];
- float avail_x, avail_y, avail_z;
- float trans_x, trans_y, trans_z;
- float roll_rate, pitch_rate, yaw_rate;
- float roll_drag, pitch_drag, yaw_drag;
+ float avail_x, avail_y, avail_z;
+ float trans_x, trans_y, trans_z;
+ float roll_rate, pitch_rate, yaw_rate;
+ float roll_drag, pitch_drag, yaw_drag;
- List<ThrusterPort> ports;
+ List<ThrusterPort> ports;
};
#endif Thruster_h
|