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

#include <DropShipAI.h>

Inheritance diagram for DropShipAI:
ShipAI SteerAI Director SimObserver

List of all members.

Public Types

enum  { DIR_TYPE = 2001 }

Public Member Functions

 DropShipAI (Ship *s)
virtual ~DropShipAI ()
virtual int Type () const
- Public Member Functions inherited from ShipAI
 ShipAI (SimObject *s)
virtual ~ShipAI ()
virtual void ExecFrame (double seconds)
virtual int Subframe () const
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 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 void Navigator ()
virtual void FindObjective ()
- 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 Steer AvoidTerrain ()
virtual Steer SeekTarget ()
virtual Steer EvadeThreat ()
virtual Point ClosingVelocity ()
virtual void FindObjectiveTarget (SimObject *tgt)
virtual void FindObjectiveNavPoint ()
virtual void FindObjectiveFormation ()
virtual void FindObjectivePatrol ()
virtual void FindObjectiveQuantum ()
virtual void FindObjectiveFarcaster (SimRegion *src, SimRegion *dst)
virtual void AdjustDefenses ()
virtual void FireControl ()
virtual void HelmControl ()
virtual void ThrottleControl ()
virtual void NavlightControl ()
virtual void CheckTarget ()
- Protected Member Functions inherited from SteerAI
virtual int Accumulate (const Steer &steer)
virtual Steer Seek (const Point &point)
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)

Additional Inherited Members

- 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 DropShipAI.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DIR_TYPE 

Definition at line 35 of file DropShipAI.h.


Constructor & Destructor Documentation

DropShipAI::DropShipAI ( Ship s)

Definition at line 29 of file DropShipAI.cpp.

DropShipAI::~DropShipAI ( )
virtual

Definition at line 39 of file DropShipAI.cpp.


Member Function Documentation

void DropShipAI::FindObjective ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 46 of file DropShipAI.cpp.

void DropShipAI::Navigator ( )
protectedvirtual

Reimplemented from ShipAI.

Definition at line 81 of file DropShipAI.cpp.

virtual int DropShipAI::Type ( ) const
inlinevirtual

Reimplemented from SteerAI.

Definition at line 36 of file DropShipAI.h.


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