Starshatter_Open
Open source Starshatter engine
|
#include <Instruction.h>
Public Types | |
enum | ACTION { VECTOR, LAUNCH, DOCK, RTB, DEFEND, ESCORT, PATROL, SWEEP, INTERCEPT, STRIKE, ASSAULT, RECON, NUM_ACTIONS } |
enum | STATUS { PENDING, ACTIVE, SKIPPED, ABORTED, FAILED, COMPLETE, NUM_STATUS } |
enum | FORMATION { DIAMOND, SPREAD, BOX, TRAIL, NUM_FORMATIONS } |
enum | PRIORITY { PRIMARY = 1, SECONDARY, BONUS } |
Public Member Functions | |
Instruction (int action, const char *tgt) | |
Instruction (const char *rgn, Point loc, int act=VECTOR) | |
Instruction (SimRegion *rgn, Point loc, int act=VECTOR) | |
Instruction (const Instruction &instr) | |
virtual | ~Instruction () |
Instruction & | operator= (const Instruction &n) |
const char * | RegionName () const |
SimRegion * | Region () const |
Point | Location () const |
RLoc & | GetRLoc () |
int | Action () const |
int | Status () const |
int | Formation () const |
int | Speed () const |
int | EMCON () const |
int | WeaponsFree () const |
int | Priority () const |
int | Farcast () const |
double | HoldTime () const |
const char * | TargetName () const |
const char * | TargetDesc () const |
SimObject * | GetTarget () |
void | Evaluate (Ship *s) |
const char * | GetShortDescription () const |
const char * | GetDescription () const |
void | SetRegion (SimRegion *r) |
void | SetLocation (const Point &l) |
void | SetAction (int s) |
void | SetStatus (int s) |
void | SetFormation (int s) |
void | SetSpeed (int s) |
void | SetEMCON (int e) |
void | SetWeaponsFree (int f) |
void | SetPriority (int p) |
void | SetFarcast (int f) |
void | SetHoldTime (double t) |
void | SetTarget (const char *n) |
void | SetTarget (SimObject *s) |
void | SetTargetDesc (const char *d) |
void | ClearTarget () |
virtual bool | Update (SimObject *s) |
virtual const char * | GetObserverName () const |
Public Member Functions inherited from SimObserver | |
virtual | ~SimObserver () |
int | operator== (const SimObserver &o) const |
virtual void | Observe (SimObject *obj) |
virtual void | Ignore (SimObject *obj) |
Static Public Member Functions | |
static const char * | TYPENAME () |
static const char * | ActionName (int a) |
static const char * | StatusName (int s) |
static const char * | FormationName (int f) |
static const char * | PriorityName (int p) |
Protected Attributes | |
Text | rgn_name |
SimRegion * | region |
RLoc | rloc |
int | action |
int | formation |
int | status |
int | speed |
Text | tgt_name |
Text | tgt_desc |
SimObject * | target |
int | emcon |
int | wep_free |
int | priority |
int | farcast |
double | hold_time |
Protected Attributes inherited from SimObserver | |
List< SimObject > | observe_list |
Definition at line 30 of file Instruction.h.
enum Instruction::ACTION |
VECTOR | |
LAUNCH | |
DOCK | |
RTB | |
DEFEND | |
ESCORT | |
PATROL | |
SWEEP | |
INTERCEPT | |
STRIKE | |
ASSAULT | |
RECON | |
NUM_ACTIONS |
Definition at line 35 of file Instruction.h.
Definition at line 69 of file Instruction.h.
Definition at line 79 of file Instruction.h.
enum Instruction::STATUS |
Definition at line 57 of file Instruction.h.
Instruction::Instruction | ( | int | action, |
const char * | tgt | ||
) |
Definition at line 27 of file Instruction.cpp.
Definition at line 33 of file Instruction.cpp.
Definition at line 43 of file Instruction.cpp.
Instruction::Instruction | ( | const Instruction & | instr | ) |
Definition at line 53 of file Instruction.cpp.
|
virtual |
Definition at line 65 of file Instruction.cpp.
|
inline |
Definition at line 104 of file Instruction.h.
|
static |
Definition at line 509 of file Instruction.cpp.
void Instruction::ClearTarget | ( | ) |
Definition at line 162 of file Instruction.cpp.
|
inline |
Definition at line 108 of file Instruction.h.
void Instruction::Evaluate | ( | Ship * | s | ) |
Definition at line 191 of file Instruction.cpp.
|
inline |
Definition at line 111 of file Instruction.h.
|
inline |
Definition at line 106 of file Instruction.h.
|
static |
Definition at line 546 of file Instruction.cpp.
const char * Instruction::GetDescription | ( | ) | const |
Definition at line 423 of file Instruction.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 183 of file Instruction.cpp.
|
inline |
Definition at line 103 of file Instruction.h.
const char * Instruction::GetShortDescription | ( | ) | const |
Definition at line 337 of file Instruction.cpp.
SimObject * Instruction::GetTarget | ( | ) |
Definition at line 114 of file Instruction.cpp.
|
inline |
Definition at line 112 of file Instruction.h.
Point Instruction::Location | ( | ) | const |
Definition at line 97 of file Instruction.cpp.
Instruction & Instruction::operator= | ( | const Instruction & | n | ) |
Definition at line 71 of file Instruction.cpp.
|
inline |
Definition at line 110 of file Instruction.h.
|
static |
Definition at line 559 of file Instruction.cpp.
|
inline |
Definition at line 101 of file Instruction.h.
|
inline |
Definition at line 100 of file Instruction.h.
|
inline |
Definition at line 125 of file Instruction.h.
|
inline |
Definition at line 129 of file Instruction.h.
|
inline |
Definition at line 132 of file Instruction.h.
|
inline |
Definition at line 127 of file Instruction.h.
|
inline |
Definition at line 133 of file Instruction.h.
void Instruction::SetLocation | ( | const Point & | l | ) |
Definition at line 104 of file Instruction.cpp.
|
inline |
Definition at line 131 of file Instruction.h.
|
inline |
Definition at line 123 of file Instruction.h.
|
inline |
Definition at line 128 of file Instruction.h.
void Instruction::SetStatus | ( | int | s | ) |
Definition at line 329 of file Instruction.cpp.
void Instruction::SetTarget | ( | const char * | n | ) |
Definition at line 133 of file Instruction.cpp.
void Instruction::SetTarget | ( | SimObject * | s | ) |
Definition at line 145 of file Instruction.cpp.
void Instruction::SetTargetDesc | ( | const char * | d | ) |
Definition at line 155 of file Instruction.cpp.
|
inline |
Definition at line 130 of file Instruction.h.
|
inline |
Definition at line 107 of file Instruction.h.
|
inline |
Definition at line 105 of file Instruction.h.
|
static |
Definition at line 531 of file Instruction.cpp.
|
inline |
Definition at line 115 of file Instruction.h.
|
inline |
Definition at line 114 of file Instruction.h.
|
inlinestatic |
Reimplemented from SimObserver.
Definition at line 33 of file Instruction.h.
|
virtual |
Reimplemented from SimObserver.
Definition at line 174 of file Instruction.cpp.
|
inline |
Definition at line 109 of file Instruction.h.
|
protected |
Definition at line 147 of file Instruction.h.
|
protected |
Definition at line 155 of file Instruction.h.
|
protected |
Definition at line 158 of file Instruction.h.
|
protected |
Definition at line 148 of file Instruction.h.
|
protected |
Definition at line 160 of file Instruction.h.
|
protected |
Definition at line 157 of file Instruction.h.
|
protected |
Definition at line 145 of file Instruction.h.
|
protected |
Definition at line 144 of file Instruction.h.
|
protected |
Definition at line 146 of file Instruction.h.
|
protected |
Definition at line 150 of file Instruction.h.
|
protected |
Definition at line 149 of file Instruction.h.
|
protected |
Definition at line 154 of file Instruction.h.
|
protected |
Definition at line 153 of file Instruction.h.
|
protected |
Definition at line 152 of file Instruction.h.
|
protected |
Definition at line 156 of file Instruction.h.