#include <Thruster.h>
List of all members.
Public Types |
enum | Constants {
LEFT,
RIGHT,
FORE,
AFT,
TOP,
BOTTOM,
YAW_L,
YAW_R,
PITCH_D,
PITCH_U,
ROLL_L,
ROLL_R
} |
enum | CATEGORY {
MISC_SYSTEM = 0,
DRIVE = 1,
WEAPON,
SHIELD,
SENSOR,
COMPUTER,
POWER_SOURCE,
FLIGHT_DECK,
FARCASTER
} |
enum | STATUS {
DESTROYED,
CRITICAL,
DEGRADED,
NOMINAL,
MAINT
} |
enum | POWER_FLAGS { POWER_WATTS = 1,
POWER_CRITICAL = 2
} |
Public Member Functions |
| Thruster (int dtype, double thrust, float flare_scale=0) |
| Thruster (const Thruster &rhs) |
virtual | ~Thruster () |
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 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 |
| System (CATEGORY t, int s, const char *n, int maxv, double energy=0, double capacity=100, double sink_rate=1) |
| System (const System &s) |
virtual | ~System () |
int | operator== (const System &s) const |
CATEGORY | Type () const |
int | Subtype () const |
const char * | Name () const |
const char * | Abbreviation () const |
void | SetName (const char *n) |
void | SetAbbreviation (const char *a) |
void | SetDesign (SystemDesign *d) |
virtual int | Value () const |
int | MaxValue () const |
STATUS | Status () const |
double | Availability () const |
double | Safety () const |
double | Stability () const |
virtual void | CalcStatus () |
virtual void | Repair () |
double | NetAvail () const |
void | SetNetAvail (double d) |
List< Component > & | GetComponents () |
virtual void | ApplyDamage (double damage) |
virtual void | ExecMaintFrame (double seconds) |
virtual void | DoEMCON (int emcon) |
virtual void | Mount (Point loc, float radius, float hull_factor=0.5f) |
virtual void | Mount (const System &system) |
Point | MountLocation () const |
double | Radius () const |
double | HullProtection () const |
bool | IsPowerCritical () const |
bool | UsesWatts () const |
virtual void | Distribute (double delivered_energy, double seconds) |
int | GetSourceIndex () const |
void | SetSourceIndex (int i) |
virtual int | Charge () const |
bool | IsPowerOn () const |
virtual void | PowerOn () |
virtual void | PowerOff () |
virtual double | GetPowerLevel () const |
virtual void | SetPowerLevel (double level) |
virtual void | SetOverride (bool over) |
virtual void | DrainPower (double to_level) |
void | SetCapacity (double c) |
double | GetCapacity () const |
double | GetEnergy () const |
double | GetSinkRate () const |
void | SetEMCONPower (int emcon, int power_level) |
int | GetEMCONPower (int emcon) |
int | GetExplosionType () const |
void | SetExplosionType (int t) |
Ship * | GetShip () const |
int | GetID () const |
void | SetID (int n) |
Protected Member Functions |
void | IncBurn (int inc, int dec) |
void | DecBurn (int a, int b) |
Detailed Description
Definition at line 45 of file Thruster.h.
Member Enumeration Documentation
- Enumerator:
LEFT |
|
RIGHT |
|
FORE |
|
AFT |
|
TOP |
|
BOTTOM |
|
YAW_L |
|
YAW_R |
|
PITCH_D |
|
PITCH_U |
|
ROLL_L |
|
ROLL_R |
|
Definition at line 50 of file Thruster.h.
Constructor & Destructor Documentation
Thruster::Thruster |
( |
int |
dtype, |
|
|
double |
thrust, |
|
|
float |
flare_scale = 0 |
|
) |
| |
Thruster::Thruster |
( |
const Thruster & |
rhs | ) |
|
Member Function Documentation
void Thruster::AddPort |
( |
int |
type, |
|
|
const Point & |
loc, |
|
|
DWORD |
fire, |
|
|
float |
flare_scale = 0 |
|
) |
| |
|
virtual |
void Thruster::CreatePort |
( |
int |
type, |
|
|
const Point & |
loc, |
|
|
DWORD |
fire, |
|
|
float |
flare_scale |
|
) |
| |
|
virtual |
void Thruster::DecBurn |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
|
protected |
void Thruster::ExecFrame |
( |
double |
seconds | ) |
|
|
virtual |
void Thruster::ExecTrans |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
virtual |
Graphic * Thruster::Flare |
( |
int |
engine | ) |
const |
double Thruster::GetRequest |
( |
double |
seconds | ) |
const |
|
virtual |
void Thruster::IncBurn |
( |
int |
inc, |
|
|
int |
dec |
|
) |
| |
|
protected |
void Thruster::Initialize |
( |
| ) |
|
|
static |
int Thruster::NumThrusters |
( |
| ) |
const |
void Thruster::Orient |
( |
const Physical * |
rep | ) |
|
|
virtual |
void Thruster::SetShip |
( |
Ship * |
s | ) |
|
|
virtual |
Graphic * Thruster::Trail |
( |
int |
engine | ) |
const |
double Thruster::TransXLimit |
( |
| ) |
|
|
virtual |
double Thruster::TransYLimit |
( |
| ) |
|
|
virtual |
double Thruster::TransZLimit |
( |
| ) |
|
|
virtual |
static const char* Thruster::TYPENAME |
( |
| ) |
|
|
inlinestatic |
Member Data Documentation
float Thruster::pitch_drag |
|
protected |
float Thruster::pitch_rate |
|
protected |
float Thruster::roll_drag |
|
protected |
float Thruster::roll_rate |
|
protected |
The documentation for this class was generated from the following files: