Starshatter_Open
Open source Starshatter engine
|
#include <Element.h>
Public Member Functions | |
Element (const char *call_sign, int iff, int type=0) | |
virtual | ~Element () |
int | operator== (const Element &e) const |
int | Identity () const |
int | Type () const |
const Text & | Name () const |
void | SetName (const char *s) |
virtual int | GetIFF () const |
int | Player () const |
void | SetPlayer (int p) |
DWORD | GetLaunchTime () const |
void | SetLaunchTime (DWORD t) |
int | IntelLevel () const |
void | SetIntelLevel (int i) |
int | NumShips () const |
int | AddShip (Ship *, int index=-1) |
void | DelShip (Ship *) |
Ship * | GetShip (int index) |
int | GetShipClass () |
int | FindIndex (const Ship *s) |
bool | Contains (const Ship *s) |
bool | IsActive () const |
bool | IsFinished () const |
bool | IsNetObserver () const |
bool | IsSquadron () const |
bool | IsStatic () const |
bool | IsHostileTo (const Ship *s) const |
bool | IsHostileTo (int iff_code) const |
bool | IsObjectiveTargetOf (const Ship *s) const |
bool | IsRogue () const |
bool | IsPlayable () const |
int * | Loadout () |
void | SetRogue (bool r) |
void | SetPlayable (bool p) |
void | SetLoadout (int *l) |
virtual void | SetIFF (int iff) |
virtual void | ExecFrame (double seconds) |
virtual bool | Update (SimObject *obj) |
virtual const char * | GetObserverName () const |
void | ClearObjectives () |
void | AddObjective (Instruction *obj) |
Instruction * | GetObjective (int index) |
Instruction * | GetTargetObjective () |
int | NumObjectives () const |
void | ClearInstructions () |
void | AddInstruction (const char *instr) |
Text | GetInstruction (int index) |
int | NumInstructions () const |
double | GetHoldTime () |
void | SetHoldTime (double t) |
bool | GetZoneLock () |
void | SetZoneLock (bool z) |
void | AddNavPoint (Instruction *pt, Instruction *afterPoint=0, bool send=true) |
void | DelNavPoint (Instruction *pt, bool send=true) |
void | ClearFlightPlan (bool send=true) |
Instruction * | GetNextNavPoint () |
int | GetNavIndex (const Instruction *n) |
List< Instruction > & | GetFlightPlan () |
int | FlightPlanLength () |
virtual void | HandleRadioMessage (RadioMessage *msg) |
Element * | GetCommander () const |
void | SetCommander (Element *e) |
Element * | GetAssignment () const |
void | SetAssignment (Element *e) |
void | ResumeAssignment () |
bool | CanCommand (Element *e) |
Ship * | GetCarrier () const |
void | SetCarrier (Ship *c) |
int | GetCommandAILevel () const |
void | SetCommandAILevel (int n) |
const Text & | GetSquadron () const |
void | SetSquadron (const char *s) |
CombatGroup * | GetCombatGroup () |
void | SetCombatGroup (CombatGroup *g) |
CombatUnit * | GetCombatUnit () |
void | SetCombatUnit (CombatUnit *u) |
int | GetCount () const |
void | SetCount (int n) |
Public Member Functions inherited from SimObserver | |
virtual | ~SimObserver () |
int | operator== (const SimObserver &o) const |
virtual void | Observe (SimObject *obj) |
virtual void | Ignore (SimObject *obj) |
Protected Attributes | |
int | id |
int | iff |
int | type |
int | player |
int | command_ai |
int | respawns |
int | intel |
Text | name |
int | count |
List< Ship > | ships |
List< Text > | ship_names |
List< Text > | instructions |
List< Instruction > | objectives |
List< Instruction > | flight_plan |
Element * | commander |
Element * | assignment |
Ship * | carrier |
Text | squadron |
CombatGroup * | combat_group |
CombatUnit * | combat_unit |
DWORD | launch_time |
double | hold_time |
bool | rogue |
bool | playable |
bool | zone_lock |
int | load [16] |
Protected Attributes inherited from SimObserver | |
List< SimObject > | observe_list |
Additional Inherited Members | |
Static Public Member Functions inherited from SimObserver | |
static const char * | TYPENAME () |
Element::Element | ( | const char * | call_sign, |
int | iff, | ||
int | type = 0 |
||
) |
Definition at line 30 of file Element.cpp.
|
virtual |
Definition at line 45 of file Element.cpp.
void Element::AddInstruction | ( | const char * | instr | ) |
Definition at line 534 of file Element.cpp.
void Element::AddNavPoint | ( | Instruction * | pt, |
Instruction * | afterPoint = 0 , |
||
bool | send = true |
||
) |
Definition at line 357 of file Element.cpp.
void Element::AddObjective | ( | Instruction * | obj | ) |
Definition at line 478 of file Element.cpp.
int Element::AddShip | ( | Ship * | ship, |
int | index = -1 |
||
) |
Definition at line 60 of file Element.cpp.
bool Element::CanCommand | ( | Element * | e | ) |
Definition at line 630 of file Element.cpp.
void Element::ClearFlightPlan | ( | bool | send = true | ) |
Definition at line 403 of file Element.cpp.
void Element::ClearInstructions | ( | ) |
Definition at line 528 of file Element.cpp.
void Element::ClearObjectives | ( | ) |
Definition at line 472 of file Element.cpp.
bool Element::Contains | ( | const Ship * | s | ) |
Definition at line 119 of file Element.cpp.
void Element::DelNavPoint | ( | Instruction * | pt, |
bool | send = true |
||
) |
Definition at line 382 of file Element.cpp.
void Element::DelShip | ( | Ship * | ship | ) |
Definition at line 83 of file Element.cpp.
|
virtual |
Definition at line 644 of file Element.cpp.
int Element::FindIndex | ( | const Ship * | s | ) |
Definition at line 113 of file Element.cpp.
int Element::FlightPlanLength | ( | ) |
Definition at line 464 of file Element.cpp.
|
inline |
|
inline |
List< Instruction > & Element::GetFlightPlan | ( | ) |
Definition at line 458 of file Element.cpp.
double Element::GetHoldTime | ( | ) |
Definition at line 292 of file Element.cpp.
Text Element::GetInstruction | ( | int | index | ) |
Definition at line 540 of file Element.cpp.
int Element::GetNavIndex | ( | const Instruction * | n | ) |
Definition at line 439 of file Element.cpp.
Instruction * Element::GetNextNavPoint | ( | ) |
Definition at line 418 of file Element.cpp.
Instruction * Element::GetObjective | ( | int | index | ) |
Definition at line 484 of file Element.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 349 of file Element.cpp.
Ship * Element::GetShip | ( | int | index | ) |
Definition at line 95 of file Element.cpp.
int Element::GetShipClass | ( | ) |
Definition at line 104 of file Element.cpp.
Instruction * Element::GetTargetObjective | ( | ) |
Definition at line 499 of file Element.cpp.
bool Element::GetZoneLock | ( | ) |
Definition at line 305 of file Element.cpp.
|
virtual |
Definition at line 599 of file Element.cpp.
bool Element::IsActive | ( | ) | const |
Definition at line 125 of file Element.cpp.
bool Element::IsFinished | ( | ) | const |
Definition at line 139 of file Element.cpp.
bool Element::IsHostileTo | ( | const Ship * | s | ) | const |
Definition at line 197 of file Element.cpp.
bool Element::IsHostileTo | ( | int | iff_code | ) | const |
Definition at line 220 of file Element.cpp.
bool Element::IsNetObserver | ( | ) | const |
Definition at line 161 of file Element.cpp.
bool Element::IsObjectiveTargetOf | ( | const Ship * | s | ) | const |
Definition at line 235 of file Element.cpp.
bool Element::IsSquadron | ( | ) | const |
Definition at line 176 of file Element.cpp.
bool Element::IsStatic | ( | ) | const |
Definition at line 182 of file Element.cpp.
void Element::ResumeAssignment | ( | ) |
Definition at line 557 of file Element.cpp.
|
inline |
|
inline |
void Element::SetHoldTime | ( | double | t | ) |
Definition at line 298 of file Element.cpp.
|
virtual |
Definition at line 663 of file Element.cpp.
void Element::SetLaunchTime | ( | DWORD | t | ) |
Definition at line 285 of file Element.cpp.
void Element::SetLoadout | ( | int * | l | ) |
Definition at line 317 of file Element.cpp.
void Element::SetZoneLock | ( | bool | z | ) |
Definition at line 311 of file Element.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 331 of file Element.cpp.
|
protected |
|
protected |
|
protected |
|
protected |