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

#include <Combatant.h>

List of all members.

Public Member Functions

 Combatant (const char *com_name, const char *file_name, int iff)
 Combatant (const char *com_name, CombatGroup *force)
 ~Combatant ()
const char * Name () const
int GetIFF () const
int Score () const
const char * GetDescription () const
CombatGroupGetForce ()
CombatGroupFindGroup (int type, int id=-1)
List< CombatGroup > & GetTargetList ()
List< CombatGroup > & GetDefendList ()
List< Mission > & GetMissionList ()
void AddMission (Mission *m)
void SetScore (int points)
void AddScore (int points)
double GetTargetStratFactor (int type)
void SetTargetStratFactor (int type, double f)

Static Public Member Functions

static const char * TYPENAME ()

Detailed Description

Definition at line 30 of file Combatant.h.


Constructor & Destructor Documentation

Combatant::Combatant ( const char *  com_name,
const char *  file_name,
int  iff 
)

Definition at line 37 of file Combatant.cpp.

Combatant::Combatant ( const char *  com_name,
CombatGroup force 
)

Definition at line 49 of file Combatant.cpp.

Combatant::~Combatant ( )

Definition at line 65 of file Combatant.cpp.


Member Function Documentation

void Combatant::AddMission ( Mission m)

Definition at line 87 of file Combatant.cpp.

void Combatant::AddScore ( int  points)
inline

Definition at line 54 of file Combatant.h.

CombatGroup * Combatant::FindGroup ( int  type,
int  id = -1 
)

Definition at line 76 of file Combatant.cpp.

List<CombatGroup>& Combatant::GetDefendList ( )
inline

Definition at line 49 of file Combatant.h.

const char* Combatant::GetDescription ( ) const
inline

Definition at line 45 of file Combatant.h.

CombatGroup* Combatant::GetForce ( )
inline

Definition at line 46 of file Combatant.h.

int Combatant::GetIFF ( ) const
inline

Definition at line 43 of file Combatant.h.

List<Mission>& Combatant::GetMissionList ( )
inline

Definition at line 50 of file Combatant.h.

List<CombatGroup>& Combatant::GetTargetList ( )
inline

Definition at line 48 of file Combatant.h.

double Combatant::GetTargetStratFactor ( int  type)

Definition at line 95 of file Combatant.cpp.

const char* Combatant::Name ( ) const
inline

Definition at line 42 of file Combatant.h.

int Combatant::Score ( ) const
inline

Definition at line 44 of file Combatant.h.

void Combatant::SetScore ( int  points)
inline

Definition at line 53 of file Combatant.h.

void Combatant::SetTargetStratFactor ( int  type,
double  f 
)

Definition at line 132 of file Combatant.cpp.

static const char* Combatant::TYPENAME ( )
inlinestatic

Definition at line 33 of file Combatant.h.


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