Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ChinookAIStateMachine Class Reference

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 Coord3DgetGoalPathPosition (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 WaypointgetGoalWaypoint ()
 
void setGoalTeam (const Team *team)
 
void setGoalSquad (const Squad *squad)
 
void setGoalAIGroup (const AIGroup *group)
 
SquadgetGoalSquad (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
 
ObjectgetOwner ()
 
const ObjectgetOwner () const
 
void setGoalObject (const Object *obj)
 
ObjectgetGoalObject ()
 
const ObjectgetGoalObject () const
 
void setGoalPosition (const Coord3D *pos)
 
const Coord3DgetGoalPosition () 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)
 
StateinternalGetState (StateID id)
 
- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 829 of file ChinookAIUpdate.cpp.

Constructor & Destructor Documentation

◆ ChinookAIStateMachine()

ChinookAIStateMachine::ChinookAIStateMachine ( Object * owner,
AsciiString name )

Definition at line 839 of file ChinookAIUpdate.cpp.


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