#include <FlightComp.h>
List of all members.
Public Types |
enum | CompType { AVIONICS = 1,
FLIGHT,
TACTICAL
} |
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 |
| FlightComp (int comp_type, const char *comp_name) |
| FlightComp (const Computer &rhs) |
virtual | ~FlightComp () |
virtual void | ExecSubFrame () |
int | Mode () const |
double | Throttle () const |
void | SetMode (int m) |
void | SetVelocityLimit (double v) |
void | SetTransLimit (double x, double y, double z) |
void | FullStop () |
| Computer (int comp_type, const char *comp_name) |
| Computer (const Computer &rhs) |
virtual | ~Computer () |
virtual void | ApplyDamage (double damage) |
virtual void | ExecFrame (double seconds) |
virtual void | Distribute (double delivered_energy, double seconds) |
| 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 | ExecMaintFrame (double seconds) |
virtual void | DoEMCON (int emcon) |
virtual void | Orient (const Physical *rep) |
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 double | GetRequest (double seconds) const |
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 |
void | SetShip (Ship *s) |
int | GetID () const |
void | SetID (int n) |
Detailed Description
Definition at line 28 of file FlightComp.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
FlightComp::FlightComp |
( |
int |
comp_type, |
|
|
const char * |
comp_name |
|
) |
| |
FlightComp::FlightComp |
( |
const Computer & |
rhs | ) |
|
FlightComp::~FlightComp |
( |
| ) |
|
|
virtual |
Member Function Documentation
void FlightComp::ExecSubFrame |
( |
| ) |
|
|
virtual |
void FlightComp::ExecThrottle |
( |
| ) |
|
|
protectedvirtual |
void FlightComp::ExecTrans |
( |
| ) |
|
|
protectedvirtual |
void FlightComp::FullStop |
( |
| ) |
|
|
inline |
int FlightComp::Mode |
( |
| ) |
const |
|
inline |
void FlightComp::SetMode |
( |
int |
m | ) |
|
|
inline |
void FlightComp::SetTransLimit |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
void FlightComp::SetVelocityLimit |
( |
double |
v | ) |
|
|
inline |
double FlightComp::Throttle |
( |
| ) |
const |
|
inline |
Member Data Documentation
float FlightComp::throttle |
|
protected |
float FlightComp::trans_x_limit |
|
protected |
float FlightComp::trans_y_limit |
|
protected |
float FlightComp::trans_z_limit |
|
protected |
The documentation for this class was generated from the following files: