#include <DozerAIUpdate.h>
Inherits AIUpdateInterface, and DozerAIInterface.
Classes | |
| struct | DozerDockPointInfo |
| struct | DozerTaskInfo |
Static Public Member Functions | |
| static Bool | findGoodBuildOrRepairPosition (const Object *me, const Object *target, Coord3D &positionOut) |
| static Object * | findGoodBuildOrRepairPositionAndTarget (Object *me, Object *target, Coord3D &positionOut) |
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) |
Protected Member Functions | |
| virtual void | privateRepair (Object *obj, CommandSourceType cmdSource) |
| repair the target | |
| virtual void | privateResumeConstruction (Object *obj, CommandSourceType cmdSource) |
| resume construction on obj | |
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 | privateIdle (CommandSourceType cmdSource) |
| Enter idle state. | |
| 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 | privateDock (Object *obj, CommandSourceType cmdSource) |
| get near given object and wait for enter clearance | |
| 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 DozerAIUpdate::DozerTaskInfo | m_task [DOZER_NUM_TASKS] |
| tasks we want to do indexed by DozerTask | |
| DozerPrimaryStateMachine * | m_dozerMachine |
| the custom state machine for Dozer behavior | |
| DozerTask | m_currentTask |
| current task the dozer is attending to (if any) | |
| AudioEventRTS | m_buildingSound |
| sound is pulled from the object we are building! | |
| Bool | m_isRebuild |
| is this a rebuild of a previous building? | |
| struct DozerAIUpdate::DozerDockPointInfo | m_dockPoint [DOZER_NUM_TASKS][DOZER_NUM_DOCK_POINTS] |
| DozerBuildSubTask | m_buildSubTask |
| for building and actually docking for the build | |
The Dozer AI Update interface. Dozers are workers that are capable of building all the structures available to a player, as well as repairing building, and fortifying civilian structures
Definition at line 194 of file DozerAIUpdate.h.
| DozerAIUpdate::DozerAIUpdate | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 1445 of file DozerAIUpdate.cpp.
|
virtual |
Reimplemented from AIUpdateInterface.
Definition at line 2343 of file DozerAIUpdate.cpp.
Given our current task and repair target, can we accept this as a new repair target
Implements DozerAIInterface.
Definition at line 1750 of file DozerAIUpdate.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 2040 of file DozerAIUpdate.cpp.
|
virtual |
construct an object
The entry point of a construct command to the Dozer
Reimplemented from AIUpdateInterface.
Definition at line 1632 of file DozerAIUpdate.cpp.
|
virtual |
Create the bridge scaffolding if necessary for the bridge that is attached to this tower
Implements DozerAIInterface.
Definition at line 1518 of file DozerAIUpdate.cpp.
|
static |
Definition at line 1879 of file DozerAIUpdate.cpp.
|
static |
Definition at line 1924 of file DozerAIUpdate.cpp.
|
virtual |
Implements DozerAIInterface.
Definition at line 2436 of file DozerAIUpdate.cpp.
|
virtual |
when we're bored, we look this far away to do things
Implements DozerAIInterface.
Definition at line 2329 of file DozerAIUpdate.cpp.
|
virtual |
how long till we're bored
Implements DozerAIInterface.
Definition at line 2324 of file DozerAIUpdate.cpp.
|
inlinevirtual |
Implements DozerAIInterface.
Definition at line 254 of file DozerAIUpdate.h.
|
inlinevirtual |
return the current task we're doing
Implements DozerAIInterface.
Definition at line 235 of file DozerAIUpdate.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 2298 of file DozerAIUpdate.cpp.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 209 of file DozerAIUpdate.h.
|
inlinevirtual |
Reimplemented from AIUpdateInterface.
Definition at line 210 of file DozerAIUpdate.h.
|
inlinevirtual |
get whether or not this building is a rebuild.
Implements DozerAIInterface.
Definition at line 238 of file DozerAIUpdate.h.
|
virtual |
return task that was most recently issued
Get the most recently issued task
Implements DozerAIInterface.
Definition at line 2268 of file DozerAIUpdate.cpp.
|
virtual |
get health to repair per second
Implements DozerAIInterface.
Definition at line 2319 of file DozerAIUpdate.cpp.
get target of task
Get the target object of a given task
Implements DozerAIInterface.
Definition at line 2081 of file DozerAIUpdate.cpp.
|
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 2117 of file DozerAIUpdate.cpp.
|
virtual |
set a dozer task as successfully completed
Set a task as successfully completed
Implements DozerAIInterface.
Definition at line 2094 of file DozerAIUpdate.cpp.
|
virtual |
this is called when tasks are cancelled or completed
This method is called whenever a task is completed OR cancelled
Implements DozerAIInterface.
Definition at line 2146 of file DozerAIUpdate.cpp.
|
virtual |
is there any dozer task pending
Is there any task pending
Implements DozerAIInterface.
Definition at line 2067 of file DozerAIUpdate.cpp.
is there a desire to do the requested task
Is there a given task waiting to be done
Implements DozerAIInterface.
Definition at line 2054 of file DozerAIUpdate.cpp.
set a desire to do the requrested task
Issue and order to the dozer
Implements DozerAIInterface.
Definition at line 1972 of file DozerAIUpdate.cpp.
|
virtual |
If we were building something, kill the active-construction flag on it
Reimplemented from Module.
Definition at line 2242 of file DozerAIUpdate.cpp.
|
protectedvirtual |
repair the target
Issue an order for the Dozer to go repair the target 'obj'
Reimplemented from AIUpdateInterface.
Definition at line 1806 of file DozerAIUpdate.cpp.
|
protectedvirtual |
resume construction on obj
Resume construction on a building
Reimplemented from AIUpdateInterface.
Definition at line 1861 of file DozerAIUpdate.cpp.
|
virtual |
Remove the bridge scaffolding from the bridge object that is attached to this tower
Implements DozerAIInterface.
Definition at line 1544 of file DozerAIUpdate.cpp.
|
inlinevirtual |
Implements DozerAIInterface.
Definition at line 253 of file DozerAIUpdate.h.
|
inlinevirtual |
set the current task of the dozer
Implements DozerAIInterface.
Definition at line 236 of file DozerAIUpdate.h.
|
virtual |
Implements DozerAIInterface.
Definition at line 2428 of file DozerAIUpdate.cpp.
|
virtual |
the update entry point
Reimplemented from AIUpdateInterface.
Definition at line 1569 of file DozerAIUpdate.cpp.
|
protected |
sound is pulled from the object we are building!
Definition at line 286 of file DozerAIUpdate.h.
|
protected |
for building and actually docking for the build
Definition at line 299 of file DozerAIUpdate.h.
|
protected |
current task the dozer is attending to (if any)
Definition at line 285 of file DozerAIUpdate.h.
|
protected |
|
protected |
the custom state machine for Dozer behavior
Definition at line 284 of file DozerAIUpdate.h.
|
protected |
is this a rebuild of a previous building?
Definition at line 287 of file DozerAIUpdate.h.
|
protected |
tasks we want to do indexed by DozerTask