#include <QuantumDrive.h>
List of all members.
Public Types |
enum | SUBTYPE { QUANTUM,
HYPER
} |
enum | ACTIVE_STATES { ACTIVE_READY,
ACTIVE_COUNTDOWN,
ACTIVE_PREWARP,
ACTIVE_POSTWARP
} |
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 |
| QuantumDrive (SUBTYPE s, double capacity, double sink_rate) |
| QuantumDrive (const QuantumDrive &rhs) |
virtual | ~QuantumDrive () |
void | SetDestination (SimRegion *rgn, const Point &loc) |
bool | Engage (bool immediate=false) |
int | ActiveState () const |
double | WarpFactor () const |
double | JumpTime () const |
virtual void | PowerOff () |
virtual void | ExecFrame (double seconds) |
void | SetShip (Ship *s) |
Ship * | GetShip () const |
double | GetCountdown () const |
void | SetCountdown (double d) |
| 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 | 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 |
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 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) |
int | GetID () const |
void | SetID (int n) |
Additional Inherited Members |
static const char * | TYPENAME () |
Detailed Description
Definition at line 29 of file QuantumDrive.h.
Member Enumeration Documentation
- Enumerator:
ACTIVE_READY |
|
ACTIVE_COUNTDOWN |
|
ACTIVE_PREWARP |
|
ACTIVE_POSTWARP |
|
Definition at line 38 of file QuantumDrive.h.
Constructor & Destructor Documentation
QuantumDrive::QuantumDrive |
( |
SUBTYPE |
s, |
|
|
double |
capacity, |
|
|
double |
sink_rate |
|
) |
| |
QuantumDrive::~QuantumDrive |
( |
| ) |
|
|
virtual |
Member Function Documentation
void QuantumDrive::AbortJump |
( |
| ) |
|
|
protected |
int QuantumDrive::ActiveState |
( |
| ) |
const |
|
inline |
bool QuantumDrive::Engage |
( |
bool |
immediate = false | ) |
|
void QuantumDrive::ExecFrame |
( |
double |
seconds | ) |
|
|
virtual |
double QuantumDrive::GetCountdown |
( |
| ) |
const |
|
inline |
Ship* QuantumDrive::GetShip |
( |
| ) |
const |
|
inline |
void QuantumDrive::Jump |
( |
| ) |
|
|
protected |
double QuantumDrive::JumpTime |
( |
| ) |
const |
|
inline |
void QuantumDrive::PowerOff |
( |
| ) |
|
|
virtual |
void QuantumDrive::SetCountdown |
( |
double |
d | ) |
|
|
inline |
void QuantumDrive::SetDestination |
( |
SimRegion * |
rgn, |
|
|
const Point & |
loc |
|
) |
| |
void QuantumDrive::SetShip |
( |
Ship * |
s | ) |
|
|
inline |
double QuantumDrive::WarpFactor |
( |
| ) |
const |
|
inline |
Member Data Documentation
int QuantumDrive::active_state |
|
protected |
double QuantumDrive::countdown |
|
protected |
Point QuantumDrive::dst_loc |
|
protected |
double QuantumDrive::jump_time |
|
protected |
double QuantumDrive::warp_fov |
|
protected |
The documentation for this class was generated from the following files: