#include <SupplyTruckAIUpdate.h>
Inherits StateMachine.
Public Member Functions | |
| SupplyTruckStateMachine (Object *owner) | |
Public Member Functions inherited from StateMachine | |
| StateMachine (Object *owner, AsciiString name) | |
| virtual StateReturnType | updateStateMachine () |
| run one step of the machine | |
| 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 | initDefaultState () |
| virtual StateReturnType | setState (StateID newStateID) |
| change the current state of the machine (which may cause further state changes, due to onEnter) | |
| 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) | |
Static Public Member Functions | |
| static Bool | ownerDocking (State *thisState, void *userData) |
| static Bool | ownerIdle (State *thisState, void *userData) |
| static Bool | ownerAvailableForSupplying (State *thisState, void *userData) |
| static Bool | ownerNotDockingOrIdle (State *thisState, void *userData) |
| static Bool | isForcedIntoWantingState (State *thisState, void *userData) |
| static Bool | isForcedIntoBusyState (State *thisState, void *userData) |
| static Bool | ownerPlayerCommanded (State *thisState, void *userData) |
Protected Member Functions | |
| 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 38 of file SupplyTruckAIUpdate.h.
| SupplyTruckStateMachine::SupplyTruckStateMachine | ( | Object * | owner | ) |
Definition at line 398 of file SupplyTruckAIUpdate.cpp.
|
protectedvirtual |
Definition at line 706 of file SupplyTruckAIUpdate.cpp.
|
static |
Definition at line 682 of file SupplyTruckAIUpdate.cpp.
|
protectedvirtual |
Load post process
Reimplemented from StateMachine.
Definition at line 473 of file SupplyTruckAIUpdate.cpp.
|
static |
Definition at line 795 of file SupplyTruckAIUpdate.cpp.
Definition at line 730 of file SupplyTruckAIUpdate.cpp.
Definition at line 774 of file SupplyTruckAIUpdate.cpp.
Definition at line 819 of file SupplyTruckAIUpdate.cpp.
Definition at line 753 of file SupplyTruckAIUpdate.cpp.
|
protectedvirtual |
Xfer Method
Reimplemented from StateMachine.
Definition at line 461 of file SupplyTruckAIUpdate.cpp.