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

#include <StarshipTacticalAI.h>

Inheritance diagram for StarshipTacticalAI:
TacticalAI Director

List of all members.

Public Member Functions

 StarshipTacticalAI (ShipAI *ai)
virtual ~StarshipTacticalAI ()
virtual void ExecFrame (double seconds)
- Public Member Functions inherited from TacticalAI
 TacticalAI (ShipAI *ai)
virtual ~TacticalAI ()
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 FindThreat ()
virtual void FindSupport ()
virtual void CheckBugOut (Ship *c_ship, double range)
- Protected Member Functions inherited from TacticalAI
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 FindFormationSlot (int formation)
virtual bool CanTarget (Ship *tgt)
virtual void ClearRadioOrders ()

Protected Attributes

DWORD THREAT_REACTION_TIME
int ai_level
double drop_time
double initial_integrity
bool bugout
- Protected Attributes inherited from TacticalAI
Shipship
ShipAIship_ai
CarrierAIcarrier_ai
Instructionnavpt
Instructionorders
double agression
ROE roe
int element_index
int action
int exec_time
int directed_tgtid
double threat_level
double support_level

Additional Inherited Members

- Public Types inherited from TacticalAI
enum  ROE {
  NONE, SELF_DEFENSIVE, DEFENSIVE, DIRECTED,
  FLEXIBLE, AGRESSIVE
}

Detailed Description

Definition at line 23 of file StarshipTacticalAI.h.


Constructor & Destructor Documentation

StarshipTacticalAI::StarshipTacticalAI ( ShipAI ai)

Definition at line 40 of file StarshipTacticalAI.cpp.

StarshipTacticalAI::~StarshipTacticalAI ( )
virtual

Definition at line 62 of file StarshipTacticalAI.cpp.


Member Function Documentation

void StarshipTacticalAI::CheckBugOut ( Ship c_ship,
double  range 
)
protectedvirtual

Definition at line 202 of file StarshipTacticalAI.cpp.

void StarshipTacticalAI::ExecFrame ( double  seconds)
virtual

Reimplemented from TacticalAI.

Definition at line 68 of file StarshipTacticalAI.cpp.

void StarshipTacticalAI::FindSupport ( )
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 173 of file StarshipTacticalAI.cpp.

void StarshipTacticalAI::FindThreat ( )
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 84 of file StarshipTacticalAI.cpp.


Member Data Documentation

int StarshipTacticalAI::ai_level
protected

Definition at line 38 of file StarshipTacticalAI.h.

bool StarshipTacticalAI::bugout
protected

Definition at line 41 of file StarshipTacticalAI.h.

double StarshipTacticalAI::drop_time
protected

Definition at line 39 of file StarshipTacticalAI.h.

double StarshipTacticalAI::initial_integrity
protected

Definition at line 40 of file StarshipTacticalAI.h.

DWORD StarshipTacticalAI::THREAT_REACTION_TIME
protected

Definition at line 37 of file StarshipTacticalAI.h.


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