Inherits AIStateMachine.
Public Member Functions | |
| ChinookAIStateMachine (Object *owner, AsciiString name) | |
Public Member Functions inherited from AIStateMachine | |
| AIStateMachine (Object *owner, AsciiString name) | |
| virtual void | clear () |
| clear the machine's internals to a known, initialized state | |
| virtual StateReturnType | resetToDefaultState () |
| clear the machine's internals and set to the default state | |
| virtual StateReturnType | setState (StateID newStateID) |
| change the current state of the machine (which may cause further state changes, due to onEnter) | |
| void | setGoalPath (const std::vector< Coord3D > *path) |
| void | addToGoalPath (const Coord3D *pathPoint) |
| const Coord3D * | getGoalPathPosition (Int i) const |
| return path position at index "i" | |
| Int | getGoalPathSize () const |
| void | setGoalWaypoint (const Waypoint *way) |
| move toward this waypoint, continue if connected | |
| const Waypoint * | getGoalWaypoint () |
| void | setGoalTeam (const Team *team) |
| void | setGoalSquad (const Squad *squad) |
| void | setGoalAIGroup (const AIGroup *group) |
| Squad * | getGoalSquad (void) |
| StateReturnType | setTemporaryState (StateID newStateID, Int frameLimitCoount) |
| change the temporary state of the machine, and number of frames limit. | |
| StateID | getTemporaryState (void) const |
| virtual StateReturnType | updateStateMachine () |
| run one step of the machine | |
Public Member Functions inherited from StateMachine | |
| StateMachine (Object *owner, AsciiString name) | |
| virtual StateReturnType | initDefaultState () |
| StateID | getCurrentStateID () const |
| return the id of the current state of the machine | |
| Bool | isInIdleState () const |
| Bool | isInAttackState () const |
| Bool | isInForceAttackState () const |
| Bool | isInGuardIdleState () const |
| Bool | isInBusyState () const |
| void | lock (const char *msg) |
| void | unlock () |
| Bool | isLocked () const |
| Object * | getOwner () |
| const Object * | getOwner () const |
| void | setGoalObject (const Object *obj) |
| Object * | getGoalObject () |
| const Object * | getGoalObject () const |
| void | setGoalPosition (const Coord3D *pos) |
| const Coord3D * | getGoalPosition () const |
| Bool | isGoalObjectDestroyed () const |
| Returns true if we had a goal object, but it has been destroyed. | |
| virtual void | halt (void) |
| Stops the state machine & disables it in preparation for deleting it. | |
| StateReturnType | internalSetState (StateID newStateID) |
| for internal use only - change the current state of the machine | |
| Bool | getWantsDebugOutput () const |
| AsciiString | getCurrentStateName () const |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Additional Inherited Members | |
Protected Member Functions inherited from AIStateMachine | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess () |
Protected Member Functions inherited from StateMachine | |
| void | defineState (StateID id, State *state, StateID successID, StateID failureID, const StateConditionInfo *conditions=NULL) |
| State * | internalGetState (StateID id) |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 829 of file ChinookAIUpdate.cpp.
| ChinookAIStateMachine::ChinookAIStateMachine | ( | Object * | owner, |
| AsciiString | name ) |
Definition at line 839 of file ChinookAIUpdate.cpp.