Starshatter_Open
Open source Starshatter engine
|
#include <ShipAI.h>
Public Member Functions | |
ShipAI (SimObject *s) | |
virtual | ~ShipAI () |
virtual void | ExecFrame (double seconds) |
virtual int | Subframe () const |
virtual Ship * | GetShip () const |
virtual Ship * | GetWard () const |
virtual void | SetWard (Ship *s) |
virtual Ship * | GetThreat () const |
virtual void | SetThreat (Ship *s) |
virtual Ship * | GetSupport () const |
virtual void | SetSupport (Ship *s) |
virtual Ship * | GetRumor () const |
virtual void | SetRumor (Ship *s) |
virtual Shot * | GetThreatMissile () const |
virtual void | SetThreatMissile (Shot *s) |
virtual Instruction * | GetNavPoint () 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 Farcaster * | GetFarcaster () |
virtual void | FindObjective () |
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 SimObject * | GetTarget () const |
virtual System * | GetSubTarget () const |
virtual int | Type () const |
virtual Point | GetObjective () const |
virtual SimObject * | GetOther () 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 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) |
Protected Attributes | |
Ship * | ship |
Ship * | support |
Ship * | rumor |
Ship * | threat |
Shot * | threat_missile |
Instruction * | navpt |
Point | obstacle |
TacticalAI * | tactical |
Farcaster * | farcaster |
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 |
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 |
Additional Inherited Members | |
Public Types inherited from SteerAI | |
enum | Type { SEEKER = 1000, FIGHTER, STARSHIP, GROUND } |
Static Public Member Functions inherited from SteerAI | |
static Director * | Create (SimObject *, int type) |
Static Public Member Functions inherited from SimObserver | |
static const char * | TYPENAME () |
ShipAI::ShipAI | ( | SimObject * | s | ) |
Definition at line 44 of file ShipAI.cpp.
|
virtual |
Definition at line 81 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 1329 of file ShipAI.cpp.
Definition at line 1251 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented in StarshipAI.
Definition at line 1036 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented in NavAI, and FighterAI.
Definition at line 1027 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 1130 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 1346 of file ShipAI.cpp.
|
virtual |
Definition at line 227 of file ShipAI.cpp.
|
virtual |
Definition at line 156 of file ShipAI.cpp.
|
virtual |
Definition at line 87 of file ShipAI.cpp.
|
protectedvirtual |
|
virtual |
Reimplemented from SteerAI.
Definition at line 856 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented in FighterAI.
Definition at line 1314 of file ShipAI.cpp.
|
virtual |
Reimplemented from Director.
Reimplemented in NavAI, and FighterAI.
Definition at line 235 of file ShipAI.cpp.
|
virtual |
Reimplemented from SteerAI.
Reimplemented in NavAI, DropShipAI, FighterAI, and StarshipAI.
Definition at line 359 of file ShipAI.cpp.
Definition at line 686 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 737 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented in FighterAI.
Definition at line 560 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 541 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 621 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 469 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented in FighterAI, and StarshipAI.
Definition at line 1322 of file ShipAI.cpp.
|
inlinevirtual |
|
virtual |
Reimplemented from SteerAI.
Definition at line 204 of file ShipAI.cpp.
|
virtual |
Definition at line 214 of file ShipAI.cpp.
|
inlinevirtual |
|
virtual |
Definition at line 96 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented in NavAI, FighterAI, and StarshipAI.
Definition at line 915 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented from SteerAI.
Reimplemented in NavAI, FighterAI, DropShipAI, and StarshipAI.
Definition at line 881 of file ShipAI.cpp.
|
protectedvirtual |
Definition at line 1005 of file ShipAI.cpp.
|
protectedvirtual |
Reimplemented in NavAI, FighterAI, and StarshipAI.
Definition at line 1269 of file ShipAI.cpp.
|
virtual |
Definition at line 865 of file ShipAI.cpp.
|
virtual |
Definition at line 731 of file ShipAI.cpp.
|
virtual |
Definition at line 872 of file ShipAI.cpp.
|
inlinevirtual |
|
virtual |
Definition at line 220 of file ShipAI.cpp.
|
virtual |
Definition at line 144 of file ShipAI.cpp.
|
virtual |
Definition at line 132 of file ShipAI.cpp.
Reimplemented from SteerAI.
Definition at line 846 of file ShipAI.cpp.
|
virtual |
Definition at line 162 of file ShipAI.cpp.
|
virtual |
Definition at line 174 of file ShipAI.cpp.
|
virtual |
Definition at line 102 of file ShipAI.cpp.
|
virtual |
Definition at line 833 of file ShipAI.cpp.
|
inlinevirtual |
|
protectedvirtual |
Reimplemented in NavAI, FighterAI, and StarshipAI.
Definition at line 949 of file ShipAI.cpp.
|
virtual |
Reimplemented from SteerAI.
Definition at line 186 of file ShipAI.cpp.
|
protected |
|
protected |
|
protected |