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

#include <FighterTacticalAI.h>

Inheritance diagram for FighterTacticalAI:
TacticalAI Director

List of all members.

Public Member Functions

 FighterTacticalAI (ShipAI *ai)
virtual ~FighterTacticalAI ()
- Public Member Functions inherited from TacticalAI
 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 bool CheckFlightPlan ()
virtual bool IsStrikeComplete (Instruction *instr=0)
virtual void SelectTarget ()
virtual void SelectTargetDirected (Ship *tgt=0)
virtual void SelectTargetOpportunity ()
virtual void FindFormationSlot (int formation)
virtual void FindThreat ()
virtual void SelectSecondaryForTarget (Ship *tgt)
virtual int ListSecondariesForTarget (Ship *tgt, List< WeaponGroup > &weps)
- Protected Member Functions inherited from TacticalAI
virtual void CheckOrders ()
virtual bool CheckShipOrders ()
virtual bool ProcessOrders ()
virtual bool CheckObjectives ()
virtual void CheckTarget ()
virtual void FindSupport ()
virtual bool CanTarget (Ship *tgt)
virtual void ClearRadioOrders ()

Protected Attributes

bool winchester [4]
DWORD THREAT_REACTION_TIME
DWORD secondary_selection_time
int ai_level
- 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 28 of file FighterTacticalAI.h.


Constructor & Destructor Documentation

FighterTacticalAI::FighterTacticalAI ( ShipAI ai)

Definition at line 42 of file FighterTacticalAI.cpp.

FighterTacticalAI::~FighterTacticalAI ( )
virtual

Definition at line 61 of file FighterTacticalAI.cpp.


Member Function Documentation

bool FighterTacticalAI::CheckFlightPlan ( )
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 67 of file FighterTacticalAI.cpp.

void FighterTacticalAI::FindFormationSlot ( int  formation)
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 421 of file FighterTacticalAI.cpp.

void FighterTacticalAI::FindThreat ( )
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 465 of file FighterTacticalAI.cpp.

bool FighterTacticalAI::IsStrikeComplete ( Instruction instr = 0)
protectedvirtual

Definition at line 518 of file FighterTacticalAI.cpp.

int FighterTacticalAI::ListSecondariesForTarget ( Ship tgt,
List< WeaponGroup > &  weps 
)
protectedvirtual

Definition at line 318 of file FighterTacticalAI.cpp.

void FighterTacticalAI::SelectSecondaryForTarget ( Ship tgt)
protectedvirtual

Definition at line 336 of file FighterTacticalAI.cpp.

void FighterTacticalAI::SelectTarget ( )
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 150 of file FighterTacticalAI.cpp.

void FighterTacticalAI::SelectTargetDirected ( Ship tgt = 0)
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 166 of file FighterTacticalAI.cpp.

void FighterTacticalAI::SelectTargetOpportunity ( )
protectedvirtual

Reimplemented from TacticalAI.

Definition at line 202 of file FighterTacticalAI.cpp.


Member Data Documentation

int FighterTacticalAI::ai_level
protected

Definition at line 50 of file FighterTacticalAI.h.

DWORD FighterTacticalAI::secondary_selection_time
protected

Definition at line 49 of file FighterTacticalAI.h.

DWORD FighterTacticalAI::THREAT_REACTION_TIME
protected

Definition at line 48 of file FighterTacticalAI.h.

bool FighterTacticalAI::winchester[4]
protected

Definition at line 47 of file FighterTacticalAI.h.


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