Starshatter_Open
Open source Starshatter engine
|
#include <SteerAI.h>
Public Types | |
enum | Type { SEEKER = 1000, FIGHTER, STARSHIP, GROUND } |
Public Member Functions | |
SteerAI (SimObject *self) | |
virtual | ~SteerAI () |
virtual void | SetTarget (SimObject *targ, System *sub=0) |
virtual SimObject * | GetTarget () const |
virtual System * | GetSubTarget () const |
virtual void | DropTarget (double drop_time=1.5) |
virtual int | Type () const |
virtual bool | Update (SimObject *obj) |
virtual const char * | GetObserverName () const |
virtual Point | GetObjective () const |
virtual SimObject * | GetOther () const |
Public Member Functions inherited from Director | |
Director () | |
virtual | ~Director () |
virtual int | Subframe () const |
virtual void | ExecFrame (double factor) |
Public Member Functions inherited from SimObserver | |
virtual | ~SimObserver () |
int | operator== (const SimObserver &o) const |
virtual void | Observe (SimObject *obj) |
virtual void | Ignore (SimObject *obj) |
Static Public Member Functions | |
static Director * | Create (SimObject *, int type) |
Static Public Member Functions inherited from SimObserver | |
static const char * | TYPENAME () |
Protected Member Functions | |
virtual void | Navigator () |
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 void | FindObjective () |
virtual Point | ClosingVelocity () |
virtual Point | Transform (const Point &pt) |
virtual Point | AimTransform (const Point &pt) |
Protected Attributes | |
int | seeking |
SimObject * | self |
SimObject * | target |
System * | subtarget |
SimObject * | other |
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< SimObject > | observe_list |
enum SteerAI::Type |
SteerAI::SteerAI | ( | SimObject * | self | ) |
Definition at line 109 of file SteerAI.cpp.
|
virtual |
Definition at line 124 of file SteerAI.cpp.
|
protectedvirtual |
Definition at line 311 of file SteerAI.cpp.
Definition at line 289 of file SteerAI.cpp.
Reimplemented in NavAI, and StarshipAI.
Definition at line 402 of file SteerAI.cpp.
|
protectedvirtual |
Reimplemented in ShipAI, and FighterAI.
Definition at line 176 of file SteerAI.cpp.
Definition at line 89 of file SteerAI.cpp.
|
virtual |
Reimplemented in ShipAI.
Definition at line 143 of file SteerAI.cpp.
Definition at line 429 of file SteerAI.cpp.
|
protectedvirtual |
Reimplemented in ShipAI, NavAI, DropShipAI, FighterAI, SeekerAI, and StarshipAI.
Definition at line 189 of file SteerAI.cpp.
Reimplemented in NavAI, and StarshipAI.
Definition at line 377 of file SteerAI.cpp.
|
inlinevirtual |
|
virtual |
Reimplemented from SimObserver.
Reimplemented in ShipAI, and SeekerAI.
Definition at line 166 of file SteerAI.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
protectedvirtual |
Reimplemented in ShipAI, NavAI, SeekerAI, FighterAI, DropShipAI, and StarshipAI.
Definition at line 304 of file SteerAI.cpp.
Reimplemented in FighterAI, NavAI, and StarshipAI.
Definition at line 341 of file SteerAI.cpp.
Reimplemented in ShipAI, and SeekerAI.
Definition at line 130 of file SteerAI.cpp.
Reimplemented in NavAI, and StarshipAI.
Definition at line 238 of file SteerAI.cpp.
|
inlinevirtual |
|
virtual |
Reimplemented from SimObserver.
Reimplemented in ShipAI, and SeekerAI.
Definition at line 151 of file SteerAI.cpp.
|
protected |
Reimplemented in StarshipAI.