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

#include <FighterAI.h>

Inheritance diagram for FighterAI:
ShipAI SteerAI Director SimObserver

List of all members.

Public Member Functions

 FighterAI (SimObject *s)
virtual ~FighterAI ()
virtual void ExecFrame (double seconds)
virtual int Subframe () const
virtual void FindObjective ()
virtual void FindObjectiveNavPoint ()
- Public Member Functions inherited from ShipAI
 ShipAI (SimObject *s)
virtual ~ShipAI ()
virtual ShipGetShip () const
virtual ShipGetWard () const
virtual void SetWard (Ship *s)
virtual ShipGetThreat () const
virtual void SetThreat (Ship *s)
virtual ShipGetSupport () const
virtual void SetSupport (Ship *s)
virtual ShipGetRumor () const
virtual void SetRumor (Ship *s)
virtual ShotGetThreatMissile () const
virtual void SetThreatMissile (Shot *s)
virtual InstructionGetNavPoint () const
virtual void SetNavPoint (Instruction *n)
virtual Point GetPatrol () const
virtual void SetPatrol (const Point &p)
virtual void ClearPatrol ()
virtual void ClearRumor ()
virtual void ClearTactical ()
virtual FarcasterGetFarcaster ()
virtual void Splash (const Ship *targ)
virtual void SetTarget (SimObject *targ, System *sub=0)
virtual void DropTarget (double drop_time=1.5)
virtual double DropTime () const
virtual void SetBracket (bool bracket)
virtual void SetIdentify (bool identify)
virtual void SetFormationDelta (const Point &point)
virtual bool Update (SimObject *obj)
virtual const char * GetObserverName () const
virtual int GetAILevel () const
- Public Member Functions inherited from SteerAI
 SteerAI (SimObject *self)
virtual ~SteerAI ()
virtual SimObjectGetTarget () const
virtual SystemGetSubTarget () const
virtual int Type () const
virtual Point GetObjective () const
virtual SimObjectGetOther () const
- Public Member Functions inherited from Director
 Director ()
virtual ~Director ()
- 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 Member Functions

virtual Steer AvoidTerrain ()
virtual Steer SeekTarget ()
virtual Steer EvadeThreat ()
virtual Point ClosingVelocity ()
virtual void Navigator ()
virtual Steer Seek (const Point &point)
virtual Steer SeekFormationSlot ()
virtual void FireControl ()
virtual void HelmControl ()
virtual void ThrottleControl ()
virtual double CalcDefensePerimeter (Ship *starship)
virtual void ReturnToBase (Ship *controller)
- Protected Member Functions inherited from ShipAI
virtual bool AvoidTestSingleObject (SimObject *obj, const Point &bearing, double avoid_dist, double &avoid_time, Steer &steer)
virtual Steer AvoidCloseObject (SimObject *obj)
virtual Steer AvoidCollision ()
virtual void FindObjectiveTarget (SimObject *tgt)
virtual void FindObjectiveFormation ()
virtual void FindObjectivePatrol ()
virtual void FindObjectiveQuantum ()
virtual void FindObjectiveFarcaster (SimRegion *src, SimRegion *dst)
virtual void AdjustDefenses ()
virtual void NavlightControl ()
virtual void CheckTarget ()
- Protected Member Functions inherited from SteerAI
virtual int Accumulate (const Steer &steer)
virtual Steer Flee (const Point &point)
virtual Steer Avoid (const Point &point, float radius)
virtual Steer Evade (const Point &point, const Point &vel)
virtual Point Transform (const Point &pt)
virtual Point AimTransform (const Point &pt)

Protected Attributes

Shotdecoy_missile
double missile_time
int terrain_warning
int drop_state
char dir_info [32]
double brakes
double z_shift
double time_to_dock
InboundSlotinbound
int rtb_code
bool evading
DWORD jink_time
Point jink
bool over_threshold
bool form_up
bool go_manual
- Protected Attributes inherited from ShipAI
Shipship
Shipsupport
Shiprumor
Shipthreat
Shotthreat_missile
Instructionnavpt
Point obstacle
TacticalAItactical
Farcasterfarcaster
int engaged_ship_id
int splash_count
Point formation_delta
double slot_dist
double throttle
double old_throttle
double seconds
double drop_time
double brake
DWORD last_avoid_time
DWORD last_call_time
int element_index
int too_close
bool bracket
bool identify
bool hold
bool takeoff
int patrol
Point patrol_loc
int ai_level
- Protected Attributes inherited from SteerAI
int seeking
SimObjectself
SimObjecttarget
Systemsubtarget
SimObjectother
Point obj_w
Point objective
double distance
double az [3]
double el [3]
Steer accumulator
double magnitude
DWORD evade_time
double seek_gain
double seek_damp
int ai_type
- Protected Attributes inherited from SimObserver
List< SimObjectobserve_list

Detailed Description

Definition at line 29 of file FighterAI.h.


Constructor & Destructor Documentation

FighterAI::FighterAI ( SimObject s)

Definition at line 43 of file FighterAI.cpp.

FighterAI::~FighterAI ( )
virtual

Definition at line 61 of file FighterAI.cpp.


Member Function Documentation

Steer FighterAI::AvoidTerrain ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 1110 of file FighterAI.cpp.

double FighterAI::CalcDefensePerimeter ( Ship starship)
protectedvirtual

Definition at line 1802 of file FighterAI.cpp.

Point FighterAI::ClosingVelocity ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 493 of file FighterAI.cpp.

Steer FighterAI::EvadeThreat ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 1486 of file FighterAI.cpp.

void FighterAI::ExecFrame ( double  seconds)
virtual

Reimplemented from ShipAI.

Definition at line 69 of file FighterAI.cpp.

void FighterAI::FindObjective ( )
virtual

Reimplemented from ShipAI.

Definition at line 198 of file FighterAI.cpp.

void FighterAI::FindObjectiveNavPoint ( )
virtual

Reimplemented from ShipAI.

Definition at line 441 of file FighterAI.cpp.

void FighterAI::FireControl ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 1674 of file FighterAI.cpp.

void FighterAI::HelmControl ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 683 of file FighterAI.cpp.

void FighterAI::Navigator ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 521 of file FighterAI.cpp.

void FighterAI::ReturnToBase ( Ship controller)
protectedvirtual

Definition at line 318 of file FighterAI.cpp.

Steer FighterAI::Seek ( const Point point)
protectedvirtual

Reimplemented from SteerAI.

Definition at line 1426 of file FighterAI.cpp.

Steer FighterAI::SeekFormationSlot ( )
protectedvirtual

Definition at line 1357 of file FighterAI.cpp.

Steer FighterAI::SeekTarget ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 1167 of file FighterAI.cpp.

virtual int FighterAI::Subframe ( ) const
inlinevirtual

Reimplemented from ShipAI.

Definition at line 36 of file FighterAI.h.

void FighterAI::ThrottleControl ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 780 of file FighterAI.cpp.


Member Data Documentation

double FighterAI::brakes
protected

Definition at line 69 of file FighterAI.h.

Shot* FighterAI::decoy_missile
protected

Definition at line 64 of file FighterAI.h.

char FighterAI::dir_info[32]
protected

Definition at line 68 of file FighterAI.h.

int FighterAI::drop_state
protected

Definition at line 67 of file FighterAI.h.

bool FighterAI::evading
protected

Definition at line 74 of file FighterAI.h.

bool FighterAI::form_up
protected

Definition at line 78 of file FighterAI.h.

bool FighterAI::go_manual
protected

Definition at line 79 of file FighterAI.h.

InboundSlot* FighterAI::inbound
protected

Definition at line 72 of file FighterAI.h.

Point FighterAI::jink
protected

Definition at line 76 of file FighterAI.h.

DWORD FighterAI::jink_time
protected

Definition at line 75 of file FighterAI.h.

double FighterAI::missile_time
protected

Definition at line 65 of file FighterAI.h.

bool FighterAI::over_threshold
protected

Definition at line 77 of file FighterAI.h.

int FighterAI::rtb_code
protected

Definition at line 73 of file FighterAI.h.

int FighterAI::terrain_warning
protected

Definition at line 66 of file FighterAI.h.

double FighterAI::time_to_dock
protected

Definition at line 71 of file FighterAI.h.

double FighterAI::z_shift
protected

Definition at line 70 of file FighterAI.h.


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