Starshatter_Open
Open source Starshatter engine
|
#include <MissionTemplate.h>
Public Member Functions | |
MissionTemplate (int id, const char *filename=0, const char *path=0) | |
virtual | ~MissionTemplate () |
virtual bool | Load (const char *filename=0, const char *path=0) |
virtual MissionElement * | FindElement (const char *name) |
virtual void | AddElement (MissionElement *elem) |
virtual bool | MapElement (MissionElement *elem) |
virtual Text | MapShip (Text name) |
virtual CombatGroup * | GetPlayerSquadron () const |
virtual void | SetPlayerSquadron (CombatGroup *ps) |
virtual Text | MapCallsign (const char *name, int iff) |
virtual bool | MapEvent (MissionEvent *event) |
Public Member Functions inherited from Mission | |
Mission (int id, const char *filename=0, const char *path=0) | |
virtual | ~Mission () |
int | operator== (const Mission &m) const |
virtual void | Validate () |
virtual bool | Save () |
virtual bool | ParseMission (const char *buffer) |
virtual void | SetPlayer (MissionElement *player_element) |
virtual MissionElement * | GetPlayer () |
int | Identity () const |
const char * | FileName () const |
const char * | Name () const |
const char * | Description () const |
const char * | Situation () const |
const char * | Objective () const |
const char * | Subtitles () const |
int | Start () const |
double | Stardate () const |
int | Type () const |
const char * | TypeName () const |
int | Team () const |
bool | IsOK () const |
bool | IsActive () const |
bool | IsComplete () const |
StarSystem * | GetStarSystem () const |
List< StarSystem > & | GetSystemList () |
const char * | GetRegion () const |
List< MissionElement > & | GetElements () |
List< MissionEvent > & | GetEvents () |
MissionEvent * | FindEvent (int event_type) const |
virtual void | AddEvent (MissionEvent *event) |
MissionElement * | GetTarget () const |
MissionElement * | GetWard () const |
void | SetName (const char *n) |
void | SetDescription (const char *d) |
void | SetSituation (const char *sit) |
void | SetObjective (const char *obj) |
void | SetStart (int s) |
void | SetType (int t) |
void | SetTeam (int iff) |
void | SetStarSystem (StarSystem *s) |
void | SetRegion (const char *rgn) |
void | SetOK (bool a) |
void | SetActive (bool a) |
void | SetComplete (bool c) |
void | SetTarget (MissionElement *t) |
void | SetWard (MissionElement *w) |
void | ClearSystemList () |
void | IncreaseElemPriority (int index) |
void | DecreaseElemPriority (int index) |
void | IncreaseEventPriority (int index) |
void | DecreaseEventPriority (int index) |
Text | ErrorMessage () const |
void | AddError (Text err) |
Text | Serialize (const char *player_elem=0, int player_index=0) |
Static Public Member Functions | |
static const char * | TYPENAME () |
Static Public Member Functions inherited from Mission | |
static const char * | RoleName (int role) |
static int | TypeFromName (const char *n) |
Protected Member Functions | |
CombatGroup * | FindCombatGroup (int iff, const ShipDesign *dsn) |
void | ParseAlias (TermStruct *val) |
void | ParseCallsign (TermStruct *val) |
bool | ParseOptional (TermStruct *val) |
void | CheckObjectives () |
Protected Member Functions inherited from Mission | |
MissionElement * | ParseElement (TermStruct *val) |
MissionEvent * | ParseEvent (TermStruct *val) |
MissionShip * | ParseShip (TermStruct *val, MissionElement *element) |
Instruction * | ParseInstruction (TermStruct *val, MissionElement *element) |
void | ParseLoadout (TermStruct *val, MissionElement *element) |
RLoc * | ParseRLoc (TermStruct *val) |
Protected Attributes | |
List< MissionAlias > | aliases |
List< MissionCallsign > | callsigns |
CombatGroup * | player_squadron |
Protected Attributes inherited from Mission | |
int | id |
char | filename [64] |
char | path [64] |
Text | region |
Text | name |
Text | desc |
int | type |
int | team |
int | start |
double | stardate |
bool | ok |
bool | active |
bool | complete |
bool | degrees |
Text | objective |
Text | sitrep |
Text | errmsg |
Text | subtitles |
StarSystem * | star_system |
List< StarSystem > | system_list |
List< MissionElement > | elements |
List< MissionEvent > | events |
MissionElement * | target |
MissionElement * | ward |
MissionElement * | current |
Additional Inherited Members | |
Public Types inherited from Mission | |
enum | TYPE { PATROL, SWEEP, INTERCEPT, AIR_PATROL, AIR_SWEEP, AIR_INTERCEPT, STRIKE, ASSAULT, DEFEND, ESCORT, ESCORT_FREIGHT, ESCORT_SHUTTLE, ESCORT_STRIKE, INTEL, SCOUT, RECON, BLOCKADE, FLEET, BOMBARDMENT, FLIGHT_OPS, TRANSPORT, CARGO, TRAINING, OTHER } |
Definition at line 30 of file MissionTemplate.h.
MissionTemplate::MissionTemplate | ( | int | id, |
const char * | filename = 0 , |
||
const char * | path = 0 |
||
) |
Definition at line 38 of file MissionTemplate.cpp.
|
virtual |
Definition at line 43 of file MissionTemplate.cpp.
|
virtual |
Reimplemented from Mission.
Definition at line 52 of file MissionTemplate.cpp.
|
protected |
Definition at line 823 of file MissionTemplate.cpp.
|
protected |
Definition at line 221 of file MissionTemplate.cpp.
|
virtual |
Reimplemented from Mission.
Definition at line 246 of file MissionTemplate.cpp.
|
inlinevirtual |
Definition at line 45 of file MissionTemplate.h.
|
virtual |
Reimplemented from Mission.
Definition at line 279 of file MissionTemplate.cpp.
|
virtual |
Definition at line 181 of file MissionTemplate.cpp.
|
virtual |
Definition at line 61 of file MissionTemplate.cpp.
|
virtual |
Definition at line 161 of file MissionTemplate.cpp.
Definition at line 128 of file MissionTemplate.cpp.
|
protected |
Definition at line 485 of file MissionTemplate.cpp.
|
protected |
Definition at line 701 of file MissionTemplate.cpp.
|
protected |
Definition at line 727 of file MissionTemplate.cpp.
|
inlinevirtual |
Definition at line 46 of file MissionTemplate.h.
|
inlinestatic |
Reimplemented from Mission.
Definition at line 33 of file MissionTemplate.h.
|
protected |
Definition at line 58 of file MissionTemplate.h.
|
protected |
Definition at line 59 of file MissionTemplate.h.
|
protected |
Definition at line 60 of file MissionTemplate.h.