Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ShipStats Class Reference

#include <SimEvent.h>

List of all members.

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
CombatGroupGetCombatGroup () const
CombatUnitGetCombatUnit () 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 ()
SimEventAddEvent (SimEvent *e)
SimEventAddEvent (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 ShipStatsFind (const char *name)
static int NumStats ()
static ShipStatsGetStats (int i)

Detailed Description

Definition at line 72 of file SimEvent.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void ShipStats::AddCommandPoints ( int  p)
inline

Definition at line 132 of file SimEvent.h.

SimEvent * ShipStats::AddEvent ( SimEvent e)

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.

void ShipStats::AddGunHit ( )
inline

Definition at line 128 of file SimEvent.h.

void ShipStats::AddGunShot ( )
inline

Definition at line 127 of file SimEvent.h.

void ShipStats::AddMissileHit ( )
inline

Definition at line 130 of file SimEvent.h.

void ShipStats::AddMissileShot ( )
inline

Definition at line 129 of file SimEvent.h.

void ShipStats::AddPoints ( int  p)
inline

Definition at line 131 of file SimEvent.h.

void ShipStats::Close ( )
static

Definition at line 225 of file SimEvent.cpp.

ShipStats * ShipStats::Find ( const char *  name)
static

Definition at line 245 of file SimEvent.cpp.

int ShipStats::GetColls ( ) const
inline

Definition at line 100 of file SimEvent.h.

CombatGroup* ShipStats::GetCombatGroup ( ) const
inline

Definition at line 92 of file SimEvent.h.

CombatUnit* ShipStats::GetCombatUnit ( ) const
inline

Definition at line 93 of file SimEvent.h.

int ShipStats::GetCommandPoints ( ) const
inline

Definition at line 102 of file SimEvent.h.

int ShipStats::GetDeaths ( ) const
inline

Definition at line 99 of file SimEvent.h.

int ShipStats::GetElementIndex ( ) const
inline

Definition at line 94 of file SimEvent.h.

List<SimEvent>& ShipStats::GetEvents ( )
inline

Definition at line 112 of file SimEvent.h.

int ShipStats::GetGunHits ( ) const
inline

Definition at line 105 of file SimEvent.h.

int ShipStats::GetGunKills ( ) const
inline

Definition at line 97 of file SimEvent.h.

int ShipStats::GetGunShots ( ) const
inline

Definition at line 104 of file SimEvent.h.

int ShipStats::GetIFF ( ) const
inline

Definition at line 96 of file SimEvent.h.

int ShipStats::GetMissileHits ( ) const
inline

Definition at line 107 of file SimEvent.h.

int ShipStats::GetMissileKills ( ) const
inline

Definition at line 98 of file SimEvent.h.

int ShipStats::GetMissileShots ( ) const
inline

Definition at line 106 of file SimEvent.h.

const char* ShipStats::GetName ( ) const
inline

Definition at line 88 of file SimEvent.h.

int ShipStats::GetPoints ( ) const
inline

Definition at line 101 of file SimEvent.h.

const char* ShipStats::GetRegion ( ) const
inline

Definition at line 91 of file SimEvent.h.

const char* ShipStats::GetRole ( ) const
inline

Definition at line 90 of file SimEvent.h.

int ShipStats::GetShipClass ( ) const
inline

Definition at line 95 of file SimEvent.h.

ShipStats * ShipStats::GetStats ( int  i)
static

Definition at line 236 of file SimEvent.cpp.

const char* ShipStats::GetType ( ) const
inline

Definition at line 89 of file SimEvent.h.

bool ShipStats::HasEvent ( int  event)

Definition at line 213 of file SimEvent.cpp.

void ShipStats::Initialize ( )
static

Definition at line 224 of file SimEvent.cpp.

bool ShipStats::IsPlayer ( ) const
inline

Definition at line 109 of file SimEvent.h.

int ShipStats::NumStats ( )
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.

void ShipStats::SetIFF ( int  i)
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.

void ShipStats::SetShipClass ( int  c)
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.

static const char* ShipStats::TYPENAME ( )
inlinestatic

Definition at line 75 of file SimEvent.h.


The documentation for this class was generated from the following files: