Starshatter_Open
Open source Starshatter engine
|
#include <SimEvent.h>
Public Member Functions | |
ShipStats (const char *name, int iff=0) | |
~ShipStats () | |
void | Summarize () |
const char * | GetName () const |
const char * | GetType () const |
const char * | GetRole () const |
const char * | GetRegion () const |
CombatGroup * | GetCombatGroup () const |
CombatUnit * | GetCombatUnit () const |
int | GetElementIndex () const |
int | GetShipClass () const |
int | GetIFF () const |
int | GetGunKills () const |
int | GetMissileKills () const |
int | GetDeaths () const |
int | GetColls () const |
int | GetPoints () const |
int | GetCommandPoints () const |
int | GetGunShots () const |
int | GetGunHits () const |
int | GetMissileShots () const |
int | GetMissileHits () const |
bool | IsPlayer () const |
List< SimEvent > & | GetEvents () |
SimEvent * | AddEvent (SimEvent *e) |
SimEvent * | AddEvent (int event, const char *tgt=0, const char *info=0) |
bool | HasEvent (int event) |
void | SetShipClass (int c) |
void | SetIFF (int i) |
void | SetType (const char *t) |
void | SetRole (const char *r) |
void | SetRegion (const char *r) |
void | SetCombatGroup (CombatGroup *g) |
void | SetCombatUnit (CombatUnit *u) |
void | SetElementIndex (int n) |
void | SetPlayer (bool p) |
void | AddGunShot () |
void | AddGunHit () |
void | AddMissileShot () |
void | AddMissileHit () |
void | AddPoints (int p) |
void | AddCommandPoints (int p) |
Static Public Member Functions | |
static const char * | TYPENAME () |
static void | Initialize () |
static void | Close () |
static ShipStats * | Find (const char *name) |
static int | NumStats () |
static ShipStats * | GetStats (int i) |
Definition at line 72 of file SimEvent.h.
ShipStats::ShipStats | ( | const char * | name, |
int | iff = 0 |
||
) |
Definition at line 102 of file SimEvent.cpp.
ShipStats::~ShipStats | ( | ) |
Definition at line 111 of file SimEvent.cpp.
|
inline |
Definition at line 132 of file SimEvent.h.
Definition at line 198 of file SimEvent.cpp.
SimEvent * ShipStats::AddEvent | ( | int | event, |
const char * | tgt = 0 , |
||
const char * | info = 0 |
||
) |
Definition at line 205 of file SimEvent.cpp.
|
inline |
Definition at line 128 of file SimEvent.h.
|
inline |
Definition at line 127 of file SimEvent.h.
|
inline |
Definition at line 130 of file SimEvent.h.
|
inline |
Definition at line 129 of file SimEvent.h.
|
inline |
Definition at line 131 of file SimEvent.h.
|
static |
Definition at line 225 of file SimEvent.cpp.
|
static |
Definition at line 245 of file SimEvent.cpp.
|
inline |
Definition at line 100 of file SimEvent.h.
|
inline |
Definition at line 92 of file SimEvent.h.
|
inline |
Definition at line 93 of file SimEvent.h.
|
inline |
Definition at line 102 of file SimEvent.h.
|
inline |
Definition at line 99 of file SimEvent.h.
|
inline |
Definition at line 94 of file SimEvent.h.
Definition at line 112 of file SimEvent.h.
|
inline |
Definition at line 105 of file SimEvent.h.
|
inline |
Definition at line 97 of file SimEvent.h.
|
inline |
Definition at line 104 of file SimEvent.h.
|
inline |
Definition at line 96 of file SimEvent.h.
|
inline |
Definition at line 107 of file SimEvent.h.
|
inline |
Definition at line 98 of file SimEvent.h.
|
inline |
Definition at line 106 of file SimEvent.h.
|
inline |
Definition at line 88 of file SimEvent.h.
|
inline |
Definition at line 101 of file SimEvent.h.
|
inline |
Definition at line 91 of file SimEvent.h.
|
inline |
Definition at line 90 of file SimEvent.h.
|
inline |
Definition at line 95 of file SimEvent.h.
|
static |
Definition at line 236 of file SimEvent.cpp.
|
inline |
Definition at line 89 of file SimEvent.h.
bool ShipStats::HasEvent | ( | int | event | ) |
Definition at line 213 of file SimEvent.cpp.
|
static |
Definition at line 224 of file SimEvent.cpp.
|
inline |
Definition at line 109 of file SimEvent.h.
|
static |
Definition at line 230 of file SimEvent.cpp.
void ShipStats::SetCombatGroup | ( | CombatGroup * | g | ) |
Definition at line 140 of file SimEvent.cpp.
void ShipStats::SetCombatUnit | ( | CombatUnit * | u | ) |
Definition at line 146 of file SimEvent.cpp.
void ShipStats::SetElementIndex | ( | int | n | ) |
Definition at line 152 of file SimEvent.cpp.
|
inline |
Definition at line 118 of file SimEvent.h.
void ShipStats::SetPlayer | ( | bool | p | ) |
Definition at line 158 of file SimEvent.cpp.
void ShipStats::SetRegion | ( | const char * | r | ) |
Definition at line 133 of file SimEvent.cpp.
void ShipStats::SetRole | ( | const char * | r | ) |
Definition at line 126 of file SimEvent.cpp.
|
inline |
Definition at line 117 of file SimEvent.h.
void ShipStats::SetType | ( | const char * | t | ) |
Definition at line 119 of file SimEvent.cpp.
void ShipStats::Summarize | ( | ) |
Definition at line 166 of file SimEvent.cpp.
|
inlinestatic |
Definition at line 75 of file SimEvent.h.