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

#include <SeekerAI.h>

Inheritance diagram for SeekerAI:
SteerAI Director SimObserver

List of all members.

Public Member Functions

 SeekerAI (SimObject *s)
virtual ~SeekerAI ()
virtual int Type () const
virtual int Subframe () const
virtual void ExecFrame (double seconds)
virtual void FindObjective ()
virtual void SetTarget (SimObject *targ, System *sub=0)
virtual bool Overshot ()
virtual void SetPursuit (int p)
virtual int GetPursuit () const
virtual void SetDelay (double d)
virtual double GetDelay () const
virtual bool Update (SimObject *obj)
virtual const char * GetObserverName () const
- Public Member Functions inherited from SteerAI
 SteerAI (SimObject *self)
virtual ~SteerAI ()
virtual SimObjectGetTarget () const
virtual SystemGetSubTarget () const
virtual void DropTarget (double drop_time=1.5)
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 AvoidCollision ()
virtual Steer SeekTarget ()
virtual void Navigator ()
virtual void CheckDecoys (double distance)
- 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 ClosingVelocity ()
virtual Point Transform (const Point &pt)
virtual Point AimTransform (const Point &pt)

Protected Attributes

Shiporig_target
Shotshot
int pursuit
double delay
bool overshot
- 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

Additional Inherited Members

- Public Types inherited from SteerAI
enum  Type { SEEKER = 1000, FIGHTER, STARSHIP, GROUND }
- Static Public Member Functions inherited from SteerAI
static DirectorCreate (SimObject *, int type)
- Static Public Member Functions inherited from SimObserver
static const char * TYPENAME ()

Detailed Description

Definition at line 27 of file SeekerAI.h.


Constructor & Destructor Documentation

SeekerAI::SeekerAI ( SimObject s)

Definition at line 26 of file SeekerAI.cpp.

SeekerAI::~SeekerAI ( )
virtual

Definition at line 39 of file SeekerAI.cpp.


Member Function Documentation

Steer SeekerAI::AvoidCollision ( )
protectedvirtual

Definition at line 218 of file SeekerAI.cpp.

void SeekerAI::CheckDecoys ( double  distance)
protectedvirtual

Definition at line 179 of file SeekerAI.cpp.

void SeekerAI::ExecFrame ( double  seconds)
virtual

Reimplemented from Director.

Definition at line 50 of file SeekerAI.cpp.

void SeekerAI::FindObjective ( )
virtual

Reimplemented from SteerAI.

Definition at line 93 of file SeekerAI.cpp.

virtual double SeekerAI::GetDelay ( ) const
inlinevirtual

Definition at line 45 of file SeekerAI.h.

const char * SeekerAI::GetObserverName ( ) const
virtual

Reimplemented from SteerAI.

Definition at line 251 of file SeekerAI.cpp.

virtual int SeekerAI::GetPursuit ( ) const
inlinevirtual

Definition at line 42 of file SeekerAI.h.

void SeekerAI::Navigator ( )
protectedvirtual

Reimplemented from SteerAI.

Definition at line 62 of file SeekerAI.cpp.

bool SeekerAI::Overshot ( )
virtual

Definition at line 210 of file SeekerAI.cpp.

Steer SeekerAI::SeekTarget ( )
protectedvirtual

Definition at line 226 of file SeekerAI.cpp.

virtual void SeekerAI::SetDelay ( double  d)
inlinevirtual

Definition at line 44 of file SeekerAI.h.

virtual void SeekerAI::SetPursuit ( int  p)
inlinevirtual

Definition at line 41 of file SeekerAI.h.

void SeekerAI::SetTarget ( SimObject targ,
System sub = 0 
)
virtual

Reimplemented from SteerAI.

Definition at line 75 of file SeekerAI.cpp.

virtual int SeekerAI::Subframe ( ) const
inlinevirtual

Reimplemented from Director.

Definition at line 34 of file SeekerAI.h.

virtual int SeekerAI::Type ( ) const
inlinevirtual

Reimplemented from SteerAI.

Definition at line 33 of file SeekerAI.h.

bool SeekerAI::Update ( SimObject obj)
virtual

Reimplemented from SteerAI.

Definition at line 237 of file SeekerAI.cpp.


Member Data Documentation

double SeekerAI::delay
protected

Definition at line 66 of file SeekerAI.h.

Ship* SeekerAI::orig_target
protected

Definition at line 60 of file SeekerAI.h.

bool SeekerAI::overshot
protected

Definition at line 67 of file SeekerAI.h.

int SeekerAI::pursuit
protected

Definition at line 62 of file SeekerAI.h.

Shot* SeekerAI::shot
protected

Definition at line 61 of file SeekerAI.h.


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