#include <System.h>
List of all members.
Public Types |
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 |
| 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 | ExecFrame (double seconds) |
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 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) |
Static Public Member Functions |
static const char * | TYPENAME () |
Detailed Description
Definition at line 33 of file System.h.
Member Enumeration Documentation
- Enumerator:
MISC_SYSTEM |
|
DRIVE |
|
WEAPON |
|
SHIELD |
|
SENSOR |
|
COMPUTER |
|
POWER_SOURCE |
|
FLIGHT_DECK |
|
FARCASTER |
|
Definition at line 40 of file System.h.
- Enumerator:
POWER_WATTS |
|
POWER_CRITICAL |
|
Definition at line 43 of file System.h.
- Enumerator:
DESTROYED |
|
CRITICAL |
|
DEGRADED |
|
NOMINAL |
|
MAINT |
|
Definition at line 42 of file System.h.
Constructor & Destructor Documentation
System::System |
( |
System::CATEGORY |
t, |
|
|
int |
s, |
|
|
const char * |
n, |
|
|
int |
maxv, |
|
|
double |
energy = 0 , |
|
|
double |
capacity = 100 , |
|
|
double |
sink_rate = 1 |
|
) |
| |
System::System |
( |
const System & |
s | ) |
|
Member Function Documentation
const char* System::Abbreviation |
( |
| ) |
const |
|
inline |
void System::ApplyDamage |
( |
double |
damage | ) |
|
|
virtual |
double System::Availability |
( |
| ) |
const |
|
inline |
void System::CalcStatus |
( |
| ) |
|
|
virtual |
virtual int System::Charge |
( |
| ) |
const |
|
inlinevirtual |
void System::Distribute |
( |
double |
delivered_energy, |
|
|
double |
seconds |
|
) |
| |
|
virtual |
void System::DoEMCON |
( |
int |
emcon | ) |
|
|
virtual |
void System::DrainPower |
( |
double |
to_level | ) |
|
|
virtual |
void System::ExecFrame |
( |
double |
seconds | ) |
|
|
virtual |
Reimplemented in FlightDeck, Weapon, Thruster, QuantumDrive, Sensor, Farcaster, LandingGear, NavSystem, Shield, NavLight, Computer, and PowerSource.
Definition at line 185 of file System.cpp.
void System::ExecMaintFrame |
( |
double |
seconds | ) |
|
|
virtual |
double System::GetCapacity |
( |
| ) |
const |
|
inline |
int System::GetEMCONPower |
( |
int |
emcon | ) |
|
double System::GetEnergy |
( |
| ) |
const |
|
inline |
int System::GetExplosionType |
( |
| ) |
const |
|
inline |
int System::GetID |
( |
| ) |
const |
|
inline |
virtual double System::GetPowerLevel |
( |
| ) |
const |
|
inlinevirtual |
double System::GetRequest |
( |
double |
seconds | ) |
const |
|
virtual |
Ship* System::GetShip |
( |
| ) |
const |
|
inline |
double System::GetSinkRate |
( |
| ) |
const |
|
inline |
int System::GetSourceIndex |
( |
| ) |
const |
|
inline |
double System::HullProtection |
( |
| ) |
const |
|
inline |
bool System::IsPowerCritical |
( |
| ) |
const |
|
inline |
bool System::IsPowerOn |
( |
| ) |
const |
|
inline |
int System::MaxValue |
( |
| ) |
const |
|
inline |
void System::Mount |
( |
Point |
loc, |
|
|
float |
radius, |
|
|
float |
hull_factor = 0.5f |
|
) |
| |
|
virtual |
void System::Mount |
( |
const System & |
system | ) |
|
|
virtual |
Point System::MountLocation |
( |
| ) |
const |
|
inline |
const char* System::Name |
( |
| ) |
const |
|
inline |
double System::NetAvail |
( |
| ) |
const |
|
inline |
int System::operator== |
( |
const System & |
s | ) |
const |
|
inline |
void System::Orient |
( |
const Physical * |
rep | ) |
|
|
virtual |
virtual void System::PowerOff |
( |
| ) |
|
|
inlinevirtual |
virtual void System::PowerOn |
( |
| ) |
|
|
inlinevirtual |
double System::Radius |
( |
| ) |
const |
|
inline |
double System::Safety |
( |
| ) |
const |
|
inline |
void System::SetAbbreviation |
( |
const char * |
a | ) |
|
|
inline |
void System::SetCapacity |
( |
double |
c | ) |
|
|
inline |
void System::SetEMCONPower |
( |
int |
emcon, |
|
|
int |
power_level |
|
) |
| |
void System::SetExplosionType |
( |
int |
t | ) |
|
|
inline |
void System::SetID |
( |
int |
n | ) |
|
|
inline |
void System::SetName |
( |
const char * |
n | ) |
|
|
inline |
void System::SetNetAvail |
( |
double |
d | ) |
|
|
inline |
void System::SetOverride |
( |
bool |
over | ) |
|
|
virtual |
void System::SetPowerLevel |
( |
double |
level | ) |
|
|
virtual |
void System::SetShip |
( |
Ship * |
s | ) |
|
|
inline |
void System::SetSourceIndex |
( |
int |
i | ) |
|
|
inline |
double System::Stability |
( |
| ) |
const |
|
inline |
STATUS System::Status |
( |
| ) |
const |
|
inline |
int System::Subtype |
( |
| ) |
const |
|
inline |
static const char* System::TYPENAME |
( |
| ) |
|
|
inlinestatic |
bool System::UsesWatts |
( |
| ) |
const |
|
inline |
virtual int System::Value |
( |
| ) |
const |
|
inlinevirtual |
Member Data Documentation
float System::availability |
|
protected |
BYTE System::emcon_power[3] |
|
protected |
int System::explosion_type |
|
protected |
float System::hull_factor |
|
protected |
DWORD System::power_flags |
|
protected |
float System::power_level |
|
protected |
float System::safety_overload |
|
protected |
The documentation for this class was generated from the following files: