Starshatter_Open
Open source Starshatter engine
|
#include <TacticalAI.h>
Public Types | |
enum | ROE { NONE, SELF_DEFENSIVE, DEFENSIVE, DIRECTED, FLEXIBLE, AGRESSIVE } |
Public Member Functions | |
TacticalAI (ShipAI *ai) | |
virtual | ~TacticalAI () |
virtual void | ExecFrame (double seconds) |
virtual ROE | RulesOfEngagement () const |
virtual double | ThreatLevel () const |
virtual double | SupportLevel () const |
Public Member Functions inherited from Director | |
Director () | |
virtual | ~Director () |
virtual int | Type () const |
virtual int | Subframe () const |
Protected Member Functions | |
virtual void | CheckOrders () |
virtual bool | CheckShipOrders () |
virtual bool | ProcessOrders () |
virtual bool | CheckFlightPlan () |
virtual bool | CheckObjectives () |
virtual void | SelectTarget () |
virtual void | SelectTargetDirected (Ship *tgt=0) |
virtual void | SelectTargetOpportunity () |
virtual void | CheckTarget () |
virtual void | FindThreat () |
virtual void | FindSupport () |
virtual void | FindFormationSlot (int formation) |
virtual bool | CanTarget (Ship *tgt) |
virtual void | ClearRadioOrders () |
Protected Attributes | |
Ship * | ship |
ShipAI * | ship_ai |
CarrierAI * | carrier_ai |
Instruction * | navpt |
Instruction * | orders |
double | agression |
ROE | roe |
int | element_index |
int | action |
int | exec_time |
int | directed_tgtid |
double | threat_level |
double | support_level |
Definition at line 30 of file TacticalAI.h.
enum TacticalAI::ROE |
Definition at line 36 of file TacticalAI.h.
TacticalAI::TacticalAI | ( | ShipAI * | ai | ) |
Definition at line 43 of file TacticalAI.cpp.
|
virtual |
Definition at line 66 of file TacticalAI.cpp.
|
protectedvirtual |
Definition at line 565 of file TacticalAI.cpp.
|
protectedvirtual |
Reimplemented in FighterTacticalAI.
Definition at line 353 of file TacticalAI.cpp.
|
protectedvirtual |
Definition at line 141 of file TacticalAI.cpp.
|
protectedvirtual |
Definition at line 116 of file TacticalAI.cpp.
|
protectedvirtual |
Definition at line 133 of file TacticalAI.cpp.
|
protectedvirtual |
Definition at line 746 of file TacticalAI.cpp.
|
protectedvirtual |
Definition at line 337 of file TacticalAI.cpp.
|
virtual |
Reimplemented from Director.
Reimplemented in StarshipTacticalAI.
Definition at line 74 of file TacticalAI.cpp.
|
protectedvirtual |
Reimplemented in FighterTacticalAI.
Definition at line 920 of file TacticalAI.cpp.
|
protectedvirtual |
Reimplemented in StarshipTacticalAI.
Definition at line 890 of file TacticalAI.cpp.
|
protectedvirtual |
Reimplemented in FighterTacticalAI, and StarshipTacticalAI.
Definition at line 822 of file TacticalAI.cpp.
|
protectedvirtual |
Definition at line 195 of file TacticalAI.cpp.
|
inlinevirtual |
Definition at line 47 of file TacticalAI.h.
|
protectedvirtual |
Reimplemented in FighterTacticalAI.
Definition at line 420 of file TacticalAI.cpp.
|
protectedvirtual |
Reimplemented in FighterTacticalAI.
Definition at line 517 of file TacticalAI.cpp.
|
protectedvirtual |
Reimplemented in FighterTacticalAI.
Definition at line 580 of file TacticalAI.cpp.
|
inlinevirtual |
Definition at line 49 of file TacticalAI.h.
|
inlinevirtual |
Definition at line 48 of file TacticalAI.h.
|
protected |
Definition at line 80 of file TacticalAI.h.
|
protected |
Definition at line 77 of file TacticalAI.h.
|
protected |
Definition at line 72 of file TacticalAI.h.
|
protected |
Definition at line 82 of file TacticalAI.h.
|
protected |
Definition at line 79 of file TacticalAI.h.
|
protected |
Definition at line 81 of file TacticalAI.h.
|
protected |
Definition at line 74 of file TacticalAI.h.
|
protected |
Definition at line 75 of file TacticalAI.h.
|
protected |
Definition at line 78 of file TacticalAI.h.
|
protected |
Definition at line 70 of file TacticalAI.h.
|
protected |
Definition at line 71 of file TacticalAI.h.
|
protected |
Definition at line 85 of file TacticalAI.h.
|
protected |
Definition at line 84 of file TacticalAI.h.