#include <WorkerAIUpdate.h>
Inherits AIUpdateInterface, DozerAIInterface, SupplyTruckAIInterface, and WorkerAIInterface.
Classes | |
| struct | DozerDockPointInfo |
| struct | DozerTaskInfo |
Protected Member Functions | |
| virtual void | privateRepair (Object *obj, CommandSourceType cmdSource) |
| repair the target | |
| virtual void | privateResumeConstruction (Object *obj, CommandSourceType cmdSource) |
| resume construction on obj | |
| virtual void | privateDock (Object *obj, CommandSourceType cmdSource) |
| get near given object and wait for enter clearance | |
| virtual void | privateIdle (CommandSourceType cmdSource) |
| Enter idle state. | |
Protected Member Functions inherited from AIUpdateInterface | |
| virtual void | privateMoveToPosition (const Coord3D *pos, CommandSourceType cmdSource) |
| move to given position(s) tightening the formation. | |
| virtual void | privateMoveToObject (Object *obj, CommandSourceType cmdSource) |
| move to given object | |
| virtual void | privateMoveToAndEvacuate (const Coord3D *pos, CommandSourceType cmdSource) |
| move to given position(s) | |
| virtual void | privateMoveToAndEvacuateAndExit (const Coord3D *pos, CommandSourceType cmdSource) |
| move to given position & unload transport. | |
| virtual void | privateTightenToPosition (const Coord3D *pos, CommandSourceType cmdSource) |
| move to given position(s) tightening the formation. | |
| virtual void | privateFollowWaypointPath (const Waypoint *way, CommandSourceType cmdSource) |
| start following the path from the given point | |
| virtual void | privateFollowWaypointPathAsTeam (const Waypoint *way, CommandSourceType cmdSource) |
| start following the path from the given point | |
| virtual void | privateFollowWaypointPathExact (const Waypoint *way, CommandSourceType cmdSource) |
| start following the path from the given point | |
| virtual void | privateFollowWaypointPathAsTeamExact (const Waypoint *way, CommandSourceType cmdSource) |
| start following the path from the given point | |
| virtual void | privateFollowPath (const std::vector< Coord3D > *path, Object *ignoreObject, CommandSourceType cmdSource, Bool exitProduction) |
| follow the path defined by the given array of points | |
| virtual void | privateFollowPathAppend (const Coord3D *pos, CommandSourceType cmdSource) |
| virtual void | privateAttackObject (Object *victim, Int maxShotsToFire, CommandSourceType cmdSource) |
| attack given object | |
| virtual void | privateForceAttackObject (Object *victim, Int maxShotsToFire, CommandSourceType cmdSource) |
| attack given object | |
| virtual void | privateGuardRetaliate (Object *victim, const Coord3D *pos, Int maxShotsToFire, CommandSourceType cmdSource) |
| retaliate and attack attacker – but with guard restrictions | |
| virtual void | privateAttackTeam (const Team *team, Int maxShotsToFire, CommandSourceType cmdSource) |
| attack the given team | |
| virtual void | privateAttackPosition (const Coord3D *pos, Int maxShotsToFire, CommandSourceType cmdSource) |
| attack given spot | |
| virtual void | privateAttackMoveToPosition (const Coord3D *pos, Int maxShotsToFire, CommandSourceType cmdSource) |
| attack move to the given location | |
| virtual void | privateAttackFollowWaypointPath (const Waypoint *way, Int maxShotsToFire, Bool asTeam, CommandSourceType cmdSource) |
| attack move along the following waypoint path, potentially as a team | |
| virtual void | privateHunt (CommandSourceType cmdSource) |
| begin "seek and destroy" | |
| virtual void | privateGetHealed (Object *healDepot, CommandSourceType cmdSource) |
| get healed at heal depot | |
| virtual void | privateGetRepaired (Object *repairDepot, CommandSourceType cmdSource) |
| get repaired at repair depot | |
| virtual void | privateEnter (Object *obj, CommandSourceType cmdSource) |
| enter the given object | |
| virtual void | privateExit (Object *objectToExit, CommandSourceType cmdSource) |
| get out of this Object | |
| virtual void | privateExitInstantly (Object *objectToExit, CommandSourceType cmdSource) |
| get out of this Object this frame | |
| virtual void | privateEvacuate (Int exposeStealthUnits, CommandSourceType cmdSource) |
| empty its contents | |
| virtual void | privateEvacuateInstantly (Int exposeStealthUnits, CommandSourceType cmdSource) |
| empty its contents this frame | |
| virtual void | privateExecuteRailedTransport (CommandSourceType cmdSource) |
| execute next leg in railed transport sequence | |
| virtual void | privateGoProne (const DamageInfo *damageInfo, CommandSourceType cmdSource) |
| life altering state change, if this AI can do it | |
| virtual void | privateGuardTunnelNetwork (GuardMode guardMode, CommandSourceType cmdSource) |
| guard the given spot | |
| virtual void | privateGuardPosition (const Coord3D *pos, GuardMode guardMode, CommandSourceType cmdSource) |
| guard the given spot | |
| virtual void | privateGuardObject (Object *objectToGuard, GuardMode guardMode, CommandSourceType cmdSource) |
| guard the given object | |
| virtual void | privateGuardArea (const PolygonTrigger *areaToGuard, GuardMode guardMode, CommandSourceType cmdSource) |
| guard the given area | |
| virtual void | privateAttackArea (const PolygonTrigger *areaToGuard, CommandSourceType cmdSource) |
| guard the given area | |
| virtual void | privateHackInternet (CommandSourceType cmdSource) |
| Hack money from the heavens (free money) | |
| virtual void | privateFaceObject (Object *target, CommandSourceType cmdSource) |
| virtual void | privateFacePosition (const Coord3D *pos, CommandSourceType cmdSource) |
| virtual void | privateRappelInto (Object *target, const Coord3D &pos, CommandSourceType cmdSource) |
| virtual void | privateCombatDrop (Object *target, const Coord3D &pos, CommandSourceType cmdSource) |
| virtual void | privateCommandButton (const CommandButton *commandButton, CommandSourceType cmdSource) |
| virtual void | privateCommandButtonPosition (const CommandButton *commandButton, const Coord3D *pos, CommandSourceType cmdSource) |
| virtual void | privateCommandButtonObject (const CommandButton *commandButton, Object *obj, CommandSourceType cmdSource) |
| virtual void | privateWander (const Waypoint *way, CommandSourceType cmdSource) |
| Wander around the waypoint path. | |
| virtual void | privateWanderInPlace (CommandSourceType cmdSource) |
| Wander around the current position. | |
| virtual void | privatePanic (const Waypoint *way, CommandSourceType cmdSource) |
| Run screaming down the waypoint path. | |
| virtual void | privateBusy (CommandSourceType cmdSource) |
| Transition to the busy state. | |
| virtual void | privateMoveAwayFromUnit (Object *unit, CommandSourceType cmdSource) |
| Move out of the way of a unit. | |
| virtual SleepyUpdatePhase | getUpdatePhase () const |
| void | setGoalPositionClipped (const Coord3D *in, CommandSourceType cmdSource) |
| virtual Bool | isAllowedToRespondToAiCommands (const AICommandParms *parms) const |
| AttitudeType | getAttitude (void) const |
| get the current behavior modifier state. | |
| Bool | blockedBy (Object *other) |
| Returns true if we are blocked by "other". | |
| Bool | needToRotate (void) |
| Returns true if we are not pointing in the right direction for movement. | |
| Real | calculateMaxBlockedSpeed (Object *other) const |
| virtual UpdateSleepTime | doLocomotor () |
| void | chooseGoodLocomotorFromCurrentSet () |
| void | setLastCommandSource (CommandSourceType source) |
| virtual AIStateMachine * | makeStateMachine () |
| virtual Bool | getTreatAsAircraftForLocoDistToGoal () const |
| AIStateMachine * | getStateMachine () |
| const AIStateMachine * | getStateMachine () const |
| void | wakeUpNow () |
Protected Member Functions inherited from UpdateModule | |
| void | setWakeFrame (Object *obj, UpdateSleepTime wakeDelay) |
| UpdateSleepTime | getWakeFrame () const |
| UpdateSleepTime | frameToSleepTime (UnsignedInt frame1, UnsignedInt frame2=FOREVER, UnsignedInt frame3=FOREVER, UnsignedInt frame4=FOREVER) |
Protected Member Functions inherited from BehaviorModule | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
Protected Member Functions inherited from ObjectModule | |
| Object * | getObject () |
| const Object * | getObject () const |
Protected Member Functions inherited from Module | |
| const ModuleData * | getModuleData () const |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Protected Attributes | |
| struct WorkerAIUpdate::DozerTaskInfo | m_task [DOZER_NUM_TASKS] |
| tasks we want to do indexed by DozerTask | |
| DozerTask | m_currentTask |
| current task the dozer is attending to (if any) | |
| struct WorkerAIUpdate::DozerDockPointInfo | m_dockPoint [DOZER_NUM_TASKS][DOZER_NUM_DOCK_POINTS] |
| DozerBuildSubTask | m_buildSubTask |
| for building and actually docking for the build | |
| Int | m_numberBoxes |
| ObjectID | m_preferredDock |
| Instead of searching, try this one first. | |
| Bool | m_forcePending |
| Bool | m_isRebuild |
| Bool | m_forcedBusyPending |
| WorkerStateMachine * | m_workerMachine |
| DozerPrimaryStateMachine * | m_dozerMachine |
| the custom state machine for Dozer behavior | |
| SupplyTruckStateMachine * | m_supplyTruckStateMachine |
| AudioEventRTS | m_buildingSound |
| sound is pulled from the object we are building! | |
Additional Inherited Members | |
Static Public Member Functions inherited from UpdateModule | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from BehaviorModule | |
| static Int | getInterfaceMask () |
| static ModuleType | getModuleType () |
Static Public Member Functions inherited from Module | |
| static ModuleData * | friend_newModuleData (INI *ini) |
Definition at line 121 of file WorkerAIUpdate.h.
| WorkerAIUpdate::WorkerAIUpdate | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 87 of file WorkerAIUpdate.cpp.
|
virtual |
Reimplemented from AIUpdateInterface.
Definition at line 963 of file WorkerAIUpdate.cpp.
Given our current task and repair target, can we accept this as a new repair target
Implements DozerAIInterface.
Definition at line 486 of file WorkerAIUpdate.cpp.
|
virtual |
cancel this task from the queue, if it's the current task the dozer will stop working on it
Cancel a task and reset the dozer behavior state machine so that it can re-evaluate what it wants to do if it was working on the task being cancelled
Implements DozerAIInterface.
Definition at line 697 of file WorkerAIUpdate.cpp.
|
virtual |
construct a building
The entry point of a construct command to the Dozer
Reimplemented from AIUpdateInterface.
Definition at line 327 of file WorkerAIUpdate.cpp.
|
virtual |
Create the bridge scaffolding if necessary for the bridge that is attached to this tower
Implements DozerAIInterface.
Definition at line 1336 of file WorkerAIUpdate.cpp.
|
virtual |
This worker is leaving a supply truck task and should go back to Dozer mode.
We just exited from a supply truck task and are now idle, we should go back to Dozer idle mode
Implements WorkerAIInterface.
Definition at line 464 of file WorkerAIUpdate.cpp.
|
virtual |
Implements DozerAIInterface.
Definition at line 1394 of file WorkerAIUpdate.cpp.
Implements SupplyTruckAIInterface.
Definition at line 1071 of file WorkerAIUpdate.cpp.
|
virtual |
Implements SupplyTruckAIInterface.
Definition at line 220 of file WorkerAIUpdate.cpp.
|
virtual |
when we're bored, we look this far away to do things
Implements DozerAIInterface.
Definition at line 181 of file WorkerAIUpdate.cpp.
|
virtual |
how long till we're bored
Implements DozerAIInterface.
Definition at line 176 of file WorkerAIUpdate.cpp.
|
inlinevirtual |
Implements DozerAIInterface.
Definition at line 175 of file WorkerAIUpdate.h.
|
inlinevirtual |
return the current task we're doing
Implements DozerAIInterface.
Definition at line 156 of file WorkerAIUpdate.h.
|
virtual |
return a dock point for the action and task (if valid) ... note it can return NULL if no point has been set for the combination of task and point
Implements DozerAIInterface.
Definition at line 935 of file WorkerAIUpdate.cpp.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 132 of file WorkerAIUpdate.h.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 133 of file WorkerAIUpdate.h.
|
inlinevirtual |
get whether or not our task is a rebuild.
Implements DozerAIInterface.
Definition at line 159 of file WorkerAIUpdate.h.
|
virtual |
return task that was most recently issued
Get the most recently issued task
Implements DozerAIInterface.
Definition at line 913 of file WorkerAIUpdate.cpp.
|
inlinevirtual |
Implements SupplyTruckAIInterface.
Definition at line 183 of file WorkerAIUpdate.h.
|
inlinevirtual |
Implements SupplyTruckAIInterface.
Definition at line 196 of file WorkerAIUpdate.h.
|
virtual |
get health to repair per second
Implements DozerAIInterface.
Definition at line 171 of file WorkerAIUpdate.cpp.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 134 of file WorkerAIUpdate.h.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 135 of file WorkerAIUpdate.h.
get target of task
Get the target object of a given task
Implements DozerAIInterface.
Definition at line 738 of file WorkerAIUpdate.cpp.
|
virtual |
Implements SupplyTruckAIInterface.
Definition at line 1400 of file WorkerAIUpdate.cpp.
|
virtual |
How far can I look for a warehouse?
Implements SupplyTruckAIInterface.
Definition at line 239 of file WorkerAIUpdate.cpp.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 136 of file WorkerAIUpdate.h.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 137 of file WorkerAIUpdate.h.
|
virtual |
cancel this task from the dozer
Clear a task from the Dozer for consideration, we can use this when a goal object becomes invalid/destroyed etc.
Implements DozerAIInterface.
Definition at line 774 of file WorkerAIUpdate.cpp.
|
virtual |
set a dozer task as successfully completed
Set a task as successfully completed
Implements DozerAIInterface.
Definition at line 751 of file WorkerAIUpdate.cpp.
|
virtual |
this is called when tasks are cancelled or completed
Implements DozerAIInterface.
Definition at line 807 of file WorkerAIUpdate.cpp.
|
virtual |
is there any dozer task pending
Is there any task pending
Implements DozerAIInterface.
Definition at line 724 of file WorkerAIUpdate.cpp.
|
virtual |
Implements SupplyTruckAIInterface.
Definition at line 165 of file WorkerAIUpdate.cpp.
|
virtual |
Implements SupplyTruckAIInterface.
Definition at line 146 of file WorkerAIUpdate.cpp.
|
inlinevirtual |
Implements SupplyTruckAIInterface.
Definition at line 192 of file WorkerAIUpdate.h.
|
inlinevirtual |
Implements SupplyTruckAIInterface.
Definition at line 195 of file WorkerAIUpdate.h.
| Bool WorkerAIUpdate::isSupplyTruckBrainActiveAndBusy | ( | ) |
Definition at line 1115 of file WorkerAIUpdate.cpp.
is there a desire to do the requested task
Is there a given task waiting to be done
Implements DozerAIInterface.
Definition at line 711 of file WorkerAIUpdate.cpp.
|
virtual |
Implements SupplyTruckAIInterface.
Definition at line 1053 of file WorkerAIUpdate.cpp.
set a desire to do the requrested task
Issue and order to the dozer
Implements DozerAIInterface.
Definition at line 616 of file WorkerAIUpdate.cpp.
|
virtual |
If we were building something, kill the active-construction flag on it
Reimplemented from Module.
Definition at line 887 of file WorkerAIUpdate.cpp.
|
protectedvirtual |
get near given object and wait for enter clearance
Dock with the given object
Reimplemented from AIUpdateInterface.
Definition at line 553 of file WorkerAIUpdate.cpp.
|
protectedvirtual |
Enter idle state.
Reimplemented from AIUpdateInterface.
Definition at line 540 of file WorkerAIUpdate.cpp.
|
protectedvirtual |
repair the target
Reimplemented from AIUpdateInterface.
Definition at line 570 of file WorkerAIUpdate.cpp.
|
protectedvirtual |
resume construction on obj
Resume construction on a building
Reimplemented from AIUpdateInterface.
Definition at line 597 of file WorkerAIUpdate.cpp.
|
virtual |
Remove the bridge scaffolding from the bridge object that is attached to this tower
Implements DozerAIInterface.
Definition at line 1362 of file WorkerAIUpdate.cpp.
| void WorkerAIUpdate::resetDozerBrain | ( | ) |
Definition at line 1130 of file WorkerAIUpdate.cpp.
| void WorkerAIUpdate::resetSupplyTruckBrain | ( | ) |
Definition at line 1123 of file WorkerAIUpdate.cpp.
|
inlinevirtual |
Implements DozerAIInterface.
Definition at line 174 of file WorkerAIUpdate.h.
|
inlinevirtual |
set the current task of the dozer
Implements DozerAIInterface.
Definition at line 157 of file WorkerAIUpdate.h.
|
inlinevirtual |
Implements SupplyTruckAIInterface.
Definition at line 191 of file WorkerAIUpdate.h.
|
inlinevirtual |
Implements SupplyTruckAIInterface.
Definition at line 194 of file WorkerAIUpdate.h.
|
virtual |
Implements DozerAIInterface.
Definition at line 1386 of file WorkerAIUpdate.cpp.
|
virtual |
the update entry point
Reimplemented from AIUpdateInterface.
Definition at line 250 of file WorkerAIUpdate.cpp.
|
protected |
sound is pulled from the object we are building!
Definition at line 257 of file WorkerAIUpdate.h.
|
protected |
for building and actually docking for the build
Definition at line 240 of file WorkerAIUpdate.h.
|
protected |
current task the dozer is attending to (if any)
Definition at line 228 of file WorkerAIUpdate.h.
|
protected |
|
protected |
the custom state machine for Dozer behavior
Definition at line 254 of file WorkerAIUpdate.h.
|
protected |
Definition at line 247 of file WorkerAIUpdate.h.
|
protected |
Definition at line 245 of file WorkerAIUpdate.h.
|
protected |
Definition at line 246 of file WorkerAIUpdate.h.
|
protected |
Definition at line 243 of file WorkerAIUpdate.h.
|
protected |
Instead of searching, try this one first.
Definition at line 244 of file WorkerAIUpdate.h.
|
protected |
Definition at line 255 of file WorkerAIUpdate.h.
|
protected |
tasks we want to do indexed by DozerTask
|
protected |
Definition at line 251 of file WorkerAIUpdate.h.