#include <AIUpdate.h>
Inherits UpdateModule, and AICommandInterface.
Inherited by AssaultTransportAIUpdate, DeliverPayloadAIUpdate, DeployStyleAIUpdate, DozerAIUpdate, FlightDeckBehavior, HackInternetAIUpdate, JetAIUpdate, MissileAIUpdate, RailedTransportAIUpdate, SupplyTruckAIUpdate, TransportAIUpdate, WanderAIUpdate, and WorkerAIUpdate.
Protected Member Functions | |
| 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 | privateRepair (Object *obj, CommandSourceType cmdSource) |
| repair the given object | |
| virtual void | privateResumeConstruction (Object *obj, CommandSourceType cmdSource) |
| resume construction of object | |
| 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 |
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) |
The AIUpdateInterface module contains the interface to the AI system, and performs the actual AI behaviors.
Definition at line 234 of file AIUpdate.h.
| AIUpdateInterface::AIUpdateInterface | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 212 of file AIUpdate.cpp.
Exists solely to be overridden by JetAIUpdate...
Reimplemented in JetAIUpdate.
Definition at line 392 of file AIUpdate.h.
|
virtual |
Implements AICommandInterface.
Reimplemented in AssaultTransportAIUpdate, ChinookAIUpdate, DeployStyleAIUpdate, DozerAIUpdate, FlightDeckBehavior, HackInternetAIUpdate, JetAIUpdate, RailedTransportAIUpdate, and WorkerAIUpdate.
Definition at line 2626 of file AIUpdate.cpp.
|
inline |
Definition at line 333 of file AIUpdate.h.
Returns true if we are blocked by "other".
Definition at line 1296 of file AIUpdate.cpp.
Definition at line 1258 of file AIUpdate.cpp.
|
inline |
Definition at line 589 of file AIUpdate.h.
| Bool AIUpdateInterface::canAutoAcquireWhileStealthed | ( | ) | const |
Definition at line 4483 of file AIUpdate.cpp.
| void AIUpdateInterface::cancelPath | ( | void | ) |
Called if we no longer need the path.
| Bool AIUpdateInterface::canComputeQuickPath | ( | void | ) |
Returns true if we can quickly comput a path. Usually missiles & the like that just move straight to the destination.
See if we can do a quick path without pathfinding.
Definition at line 1595 of file AIUpdate.cpp.
|
inline |
Definition at line 573 of file AIUpdate.h.
| Object * AIUpdateInterface::checkForCrateToPickup | ( | ) |
Definition at line 900 of file AIUpdate.cpp.
|
protected |
Definition at line 857 of file AIUpdate.cpp.
|
virtual |
Reimplemented in ChinookAIUpdate, and JetAIUpdate.
Definition at line 816 of file AIUpdate.cpp.
|
inlinevirtual |
Definition at line 363 of file AIUpdate.h.
|
inline |
Definition at line 664 of file AIUpdate.h.
| void AIUpdateInterface::clearWaypointQueue | ( | void | ) |
reset the waypoint queue to empty
Definition at line 1193 of file AIUpdate.cpp.
Computes a quick path to the destination.
Create a quick path. (Just places the start & end point as the path). jba.
Definition at line 1622 of file AIUpdate.cpp.
|
inlinevirtual |
construct a building
Reimplemented in DozerAIUpdate, and WorkerAIUpdate.
Definition at line 366 of file AIUpdate.h.
| void AIUpdateInterface::destroyPath | ( | void | ) |
destroy the current path, setting it to NULL
Destroy the current path, and set it to NULL
Definition at line 2025 of file AIUpdate.cpp.
|
protectedvirtual |
Compute drive forces
Definition at line 2131 of file AIUpdate.cpp.
| void AIUpdateInterface::doPathfind | ( | PathfindServicesInterface * | pathfinder | ) |
Definition at line 402 of file AIUpdate.cpp.
|
virtual |
get out of this Object
Get out of whatever it is inside of
Definition at line 3875 of file AIUpdate.cpp.
| void AIUpdateInterface::evaluateMoraleBonus | ( | void | ) |
Definition at line 4677 of file AIUpdate.cpp.
| void AIUpdateInterface::executeWaypointQueue | ( | void | ) |
start moving along queued waypoints
Start moving along the waypoint path in the queue
Definition at line 1177 of file AIUpdate.cpp.
|
inline |
@ todo – srj sez: JBA NUKE THIS CODE, IT IS EVIL
Definition at line 637 of file AIUpdate.h.
| void AIUpdateInterface::friend_endingMove | ( | void | ) |
This is used by the internal move to state to indicate that a move completed.
Definition at line 2054 of file AIUpdate.cpp.
|
inline |
Definition at line 646 of file AIUpdate.h.
Definition at line 640 of file AIUpdate.h.
|
inline |
Definition at line 494 of file AIUpdate.h.
|
inline |
Definition at line 658 of file AIUpdate.h.
| Int AIUpdateInterface::friend_getWaypointGoalPathSize | ( | ) | const |
Definition at line 5277 of file AIUpdate.cpp.
|
virtual |
Definition at line 999 of file AIUpdate.cpp.
|
inline |
Definition at line 649 of file AIUpdate.h.
| void AIUpdateInterface::friend_setGoalObject | ( | Object * | obj | ) |
This is used by the guard tunnel network state to set a target object.
Definition at line 2074 of file AIUpdate.cpp.
|
inline |
Definition at line 587 of file AIUpdate.h.
| void AIUpdateInterface::friend_setPath | ( | Path * | path | ) |
This is used by the jetai to set a specific path.
Definition at line 2064 of file AIUpdate.cpp.
|
inline |
Definition at line 659 of file AIUpdate.h.
| void AIUpdateInterface::friend_startingMove | ( | void | ) |
This is used by the internal move to state to indicate that a move started.
Definition at line 2042 of file AIUpdate.cpp.
|
inlinevirtual |
Reimplemented in ChinookAIUpdate, DeliverPayloadAIUpdate, and TransportAIUpdate.
Definition at line 337 of file AIUpdate.h.
| AIStateType AIUpdateInterface::getAIStateType | ( | ) | const |
What general state is the AIState Machine in?
Return the current state the AI is in.
Definition at line 4268 of file AIUpdate.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 303 of file AIUpdate.h.
|
inlinevirtual |
Definition at line 361 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in AssaultTransportAIUpdate.
Definition at line 320 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in AssaultTransportAIUpdate.
Definition at line 321 of file AIUpdate.h.
|
inline |
Definition at line 513 of file AIUpdate.h.
|
protected |
get the current behavior modifier state.
Get the current behavior modifier state
Definition at line 4260 of file AIUpdate.cpp.
|
inlinevirtual |
Reimplemented in ChinookAIUpdate.
Definition at line 343 of file AIUpdate.h.
|
inline |
Definition at line 502 of file AIUpdate.h.
|
inline |
Definition at line 578 of file AIUpdate.h.
|
inline |
Definition at line 427 of file AIUpdate.h.
|
inline |
Definition at line 426 of file AIUpdate.h.
|
inline |
Definition at line 428 of file AIUpdate.h.
| Real AIUpdateInterface::getCurLocomotorSpeed | ( | ) | const |
Definition at line 798 of file AIUpdate.cpp.
|
inline |
Definition at line 521 of file AIUpdate.h.
|
inline |
return the id of the current state of the machine
Definition at line 635 of file AIUpdate.h.
|
inline |
Definition at line 377 of file AIUpdate.h.
| Object * AIUpdateInterface::getCurrentVictim | ( | void | ) | const |
Who is our current victim?
Definition at line 4226 of file AIUpdate.cpp.
| const Coord3D * AIUpdateInterface::getCurrentVictimPos | ( | void | ) | const |
Definition at line 4235 of file AIUpdate.cpp.
|
inline |
Definition at line 662 of file AIUpdate.h.
|
inline |
Definition at line 412 of file AIUpdate.h.
|
inlinevirtual |
Implements UpdateModuleInterface.
Definition at line 306 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in DozerAIUpdate, and WorkerAIUpdate.
Definition at line 309 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in DozerAIUpdate, and WorkerAIUpdate.
Definition at line 311 of file AIUpdate.h.
|
virtual |
if we are trying to enter something (see enter() above), what is the thing in question? (or null)
Definition at line 4292 of file AIUpdate.cpp.
|
inline |
return the id of the current state of the machine
Definition at line 655 of file AIUpdate.h.
|
inline |
return the id of the current state of the machine
Definition at line 656 of file AIUpdate.h.
| AIGroup * AIUpdateInterface::getGroup | ( | void | ) |
Definition at line 4989 of file AIUpdate.cpp.
|
inlinevirtual |
Definition at line 359 of file AIUpdate.h.
|
inlinevirtual |
Definition at line 364 of file AIUpdate.h.
|
inlinevirtual |
Definition at line 360 of file AIUpdate.h.
|
inlinevirtual |
Definition at line 362 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in HackInternetAIUpdate.
Definition at line 318 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in HackInternetAIUpdate.
Definition at line 319 of file AIUpdate.h.
| ObjectID AIUpdateInterface::getIgnoredObstacleID | ( | void | ) | const |
Definition at line 4286 of file AIUpdate.cpp.
|
inlinevirtual |
Reimplemented in JetAIUpdate.
Definition at line 322 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in JetAIUpdate.
Definition at line 323 of file AIUpdate.h.
|
inlinevirtual |
Definition at line 511 of file AIUpdate.h.
| Real AIUpdateInterface::getLocomotorDistanceToGoal | ( | ) |
Definition at line 2453 of file AIUpdate.cpp.
|
inline |
Definition at line 505 of file AIUpdate.h.
| UnsignedInt AIUpdateInterface::getMoodMatrixActionAdjustment | ( | MoodMatrixAction | action | ) | const |
Definition at line 4371 of file AIUpdate.cpp.
| UnsignedInt AIUpdateInterface::getMoodMatrixValue | ( | void | ) | const |
Definition at line 4311 of file AIUpdate.cpp.
|
inline |
Definition at line 557 of file AIUpdate.h.
Return the next object that our mood suggests we should attack.
Definition at line 4495 of file AIUpdate.cpp.
|
inline |
Definition at line 478 of file AIUpdate.h.
|
inline |
return the agent's current path
Definition at line 472 of file AIUpdate.h.
|
inline |
return the agent's current path
Definition at line 473 of file AIUpdate.h.
|
inline |
return the "age" of the path
Definition at line 475 of file AIUpdate.h.
|
inline |
Definition at line 507 of file AIUpdate.h.
|
inline |
Definition at line 522 of file AIUpdate.h.
|
inline |
Definition at line 661 of file AIUpdate.h.
|
inline |
Definition at line 669 of file AIUpdate.h.
This exists solely to be overridden by children... the idea is that when a unit is targeted by someone else, it asks for an offset to add to its targeting position... if this returns true, the offset should be added to the true target pos. This is primarily for the Aurora Bomber, which uses this technique to make itself "unhittable" when in Supersonic Attack Mode – things still target it, they just aim "behind" it!
Reimplemented in JetAIUpdate.
Definition at line 387 of file AIUpdate.h.
|
inlineprotected |
Definition at line 628 of file AIUpdate.h.
|
inlineprotected |
Definition at line 629 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in SupplyTruckAIUpdate, and WorkerAIUpdate.
Definition at line 310 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in SupplyTruckAIUpdate, and WorkerAIUpdate.
Definition at line 312 of file AIUpdate.h.
|
inline |
Definition at line 667 of file AIUpdate.h.
|
protectedvirtual |
Reimplemented in JetAIUpdate.
Definition at line 2436 of file AIUpdate.cpp.
| Bool AIUpdateInterface::getTurretRotAndPitch | ( | WhichTurretType | tur, |
| Real * | turretAngle, | ||
| Real * | turretPitch ) const |
Definition at line 748 of file AIUpdate.cpp.
| Object * AIUpdateInterface::getTurretTargetObject | ( | WhichTurretType | tur, |
| Bool | clearDeadTargets = TRUE ) |
Definition at line 673 of file AIUpdate.cpp.
| Real AIUpdateInterface::getTurretTurnRate | ( | WhichTurretType | tur | ) | const |
Definition at line 762 of file AIUpdate.cpp.
|
inlineprotectedvirtual |
Reimplemented from UpdateModule.
Definition at line 604 of file AIUpdate.h.
| WhichTurretType AIUpdateInterface::getWhichTurretForCurWeapon | ( | ) | const |
Definition at line 770 of file AIUpdate.cpp.
| WhichTurretType AIUpdateInterface::getWhichTurretForWeaponSlot | ( | WeaponSlotType | wslot, |
| Real * | turretAngle, | ||
| Real * | turretPitch = NULL ) const |
Definition at line 780 of file AIUpdate.cpp.
|
inlinevirtual |
Reimplemented in WorkerAIUpdate, and WorkerAIUpdate.
Definition at line 316 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in WorkerAIUpdate.
Definition at line 317 of file AIUpdate.h.
| Bool AIUpdateInterface::hasHigherPathPriority | ( | AIUpdateInterface * | otherAI | ) | const |
Return true if our path has higher priority.
Definition at line 1215 of file AIUpdate.cpp.
| Bool AIUpdateInterface::hasLocomotorForSurface | ( | LocomotorSurfaceType | surfaceType | ) |
Definition at line 5295 of file AIUpdate.cpp.
| void AIUpdateInterface::ignoreObstacle | ( | const Object * | obj | ) |
tell the pathfinder to ignore the given object as an obstacle
Definition at line 4274 of file AIUpdate.cpp.
| void AIUpdateInterface::ignoreObstacleID | ( | ObjectID | id | ) |
tell the pathfinder to ignore the given object as an obstacle
Definition at line 4280 of file AIUpdate.cpp.
|
inline |
return true if we are dead
Definition at line 406 of file AIUpdate.h.
| Bool AIUpdateInterface::isAircraftThatAdjustsDestination | ( | void | ) | const |
True if is aircraft that doesn't stack destinations (missles for example do stack destinations.)
Some aircraft (comanche in particular, which hover) shouldn't stack destinations. Others, like missles, should stack destinations. AdjustDestination in pathfinder unstacks destinations, and this routine identifies non-ground units that should unstack.
Definition at line 2412 of file AIUpdate.cpp.
|
inlinevirtual |
Reimplemented in ChinookAIUpdate.
Definition at line 340 of file AIUpdate.h.
|
inline |
Definition at line 672 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in JetAIUpdate.
Definition at line 341 of file AIUpdate.h.
|
protectedvirtual |
Reimplemented in DeliverPayloadAIUpdate.
Definition at line 2596 of file AIUpdate.cpp.
|
virtual |
Definition at line 3130 of file AIUpdate.cpp.
|
inline |
True if we have a path to an attack location.
Definition at line 470 of file AIUpdate.h.
|
inline |
Definition at line 479 of file AIUpdate.h.
|
virtual |
Definition at line 3138 of file AIUpdate.cpp.
|
virtual |
Definition at line 3144 of file AIUpdate.cpp.
|
virtual |
True if moving along ground.
Reimplemented in JetAIUpdate.
Definition at line 2363 of file AIUpdate.cpp.
|
virtual |
Reimplemented in AssaultTransportAIUpdate, ChinookAIUpdate, DeployStyleAIUpdate, HackInternetAIUpdate, and JetAIUpdate.
Definition at line 3119 of file AIUpdate.cpp.
| Bool AIUpdateInterface::isMoving | ( | ) | const |
Is this moving out of the way of another unit.
Definition at line 3193 of file AIUpdate.cpp.
Is this moving out of the way of another unit.
Definition at line 3180 of file AIUpdate.cpp.
does a path exist between us and the destination
Is there a path at all that exists from us to the destination location
Definition at line 2087 of file AIUpdate.cpp.
does a path (using quick pathfind) exist between us and the destination
Is there a path (computed using the less accurate but quick method ) at all that exists from us to the destination location
Definition at line 2104 of file AIUpdate.cpp.
|
inline |
Definition at line 409 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in JetAIUpdate.
Definition at line 349 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in JetAIUpdate.
Definition at line 393 of file AIUpdate.h.
| Bool AIUpdateInterface::isTurretEnabled | ( | WhichTurretType | tur | ) | const |
Definition at line 715 of file AIUpdate.cpp.
| Bool AIUpdateInterface::isTurretInNaturalPosition | ( | WhichTurretType | tur | ) | const |
Definition at line 725 of file AIUpdate.cpp.
Definition at line 2121 of file AIUpdate.cpp.
|
inline |
Definition at line 469 of file AIUpdate.h.
| Bool AIUpdateInterface::isWeaponSlotOnTurretAndAimingAtTarget | ( | WeaponSlotType | wslot, |
| const Object * | victim ) const |
return true iff the weapon is on a turret, that turret is trying to aim at the victim, BUT is not yet pointing in the right dir.
Definition at line 735 of file AIUpdate.cpp.
|
virtual |
This unit just got added to a team & needs to catch up.
Catch up with the rest of the team.
Definition at line 2540 of file AIUpdate.cpp.
|
protectedvirtual |
Reimplemented in ChinookAIUpdate, DeliverPayloadAIUpdate, HackInternetAIUpdate, JetAIUpdate, SupplyTruckAIUpdate, TransportAIUpdate, and WanderAIUpdate.
Definition at line 204 of file AIUpdate.cpp.
| void AIUpdateInterface::markAsDead | ( | void | ) |
Definition at line 1200 of file AIUpdate.cpp.
|
protected |
Returns true if we are not pointing in the right direction for movement.
Definition at line 1404 of file AIUpdate.cpp.
|
inline |
Definition at line 577 of file AIUpdate.h.
|
inlinevirtual |
Reimplemented in JetAIUpdate.
Definition at line 535 of file AIUpdate.h.
|
virtual |
this is called after all the Modules for a given Thing are created; it allows Modules to resolve any inter-Module dependencies.
Reimplemented from Module.
Reimplemented in JetAIUpdate.
Definition at line 627 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
attack move along the following waypoint path, potentially as a team
Attack move down a given waypoint path. If asTeam is TRUE, do so as a team.
Definition at line 3608 of file AIUpdate.cpp.
|
protectedvirtual |
attack move to the given location
Attack move to the given location
Definition at line 3582 of file AIUpdate.cpp.
|
protectedvirtual |
attack given object
Attack given object
Reimplemented in ChinookAIUpdate, and TransportAIUpdate.
Definition at line 3419 of file AIUpdate.cpp.
|
protectedvirtual |
attack given spot
Attack given spot
Reimplemented in ChinookAIUpdate, and TransportAIUpdate.
Definition at line 3508 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in ChinookAIUpdate.
Definition at line 3804 of file AIUpdate.cpp.
|
protectedvirtual |
Definition at line 4819 of file AIUpdate.cpp.
|
protectedvirtual |
Definition at line 4928 of file AIUpdate.cpp.
|
protectedvirtual |
Definition at line 4874 of file AIUpdate.cpp.
|
protectedvirtual |
get near given object and wait for enter clearance
Dock with the given object
Reimplemented in SupplyTruckAIUpdate, and WorkerAIUpdate.
Definition at line 3792 of file AIUpdate.cpp.
|
protectedvirtual |
enter the given object
Enter the given object
Reimplemented in JetAIUpdate.
Definition at line 3767 of file AIUpdate.cpp.
|
protectedvirtual |
empty its contents
Empty its contents
Reimplemented in RailedTransportAIUpdate.
Definition at line 3894 of file AIUpdate.cpp.
|
protectedvirtual |
empty its contents this frame
Empty its contents this frame
Definition at line 3916 of file AIUpdate.cpp.
|
protectedvirtual |
execute next leg in railed transport sequence
Reimplemented in RailedTransportAIUpdate.
Definition at line 3935 of file AIUpdate.cpp.
|
protectedvirtual |
get out of this Object
Get out of whatever it is inside of
Definition at line 3817 of file AIUpdate.cpp.
|
protectedvirtual |
get out of this Object this frame
Get out of whatever it is inside of this frame
Definition at line 3846 of file AIUpdate.cpp.
|
protectedvirtual |
Definition at line 2954 of file AIUpdate.cpp.
|
protectedvirtual |
Definition at line 2979 of file AIUpdate.cpp.
|
protectedvirtual |
follow the path defined by the given array of points
Follow the path defined by the given array of points
Reimplemented in JetAIUpdate.
Definition at line 3383 of file AIUpdate.cpp.
|
protectedvirtual |
Reimplemented in JetAIUpdate.
Definition at line 3351 of file AIUpdate.cpp.
|
protectedvirtual |
start following the path from the given point
Start following the path from the given point
Definition at line 3270 of file AIUpdate.cpp.
|
protectedvirtual |
start following the path from the given point
Start following the path from the given point
Definition at line 3312 of file AIUpdate.cpp.
|
protectedvirtual |
start following the path from the given point
Start following the path from the given point
Definition at line 3333 of file AIUpdate.cpp.
|
protectedvirtual |
start following the path from the given point
Start following the path from the given point
Definition at line 3291 of file AIUpdate.cpp.
|
protectedvirtual |
attack given object
Reimplemented in ChinookAIUpdate, and TransportAIUpdate.
Definition at line 3445 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
get repaired at repair depot
Get repaired at the repair depot
Reimplemented in ChinookAIUpdate, and JetAIUpdate.
Definition at line 3751 of file AIUpdate.cpp.
|
protectedvirtual |
life altering state change, if this AI can do it
< life altering state change, if this AI can do it
Definition at line 3944 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
retaliate and attack attacker – but with guard restrictions
Definition at line 3463 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
Hack money from the heavens (free money)
Definition at line 4144 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
Enter idle state.
Enter idle state.
Reimplemented in ChinookAIUpdate, SupplyTruckAIUpdate, and WorkerAIUpdate.
Definition at line 3091 of file AIUpdate.cpp.
|
protectedvirtual |
Move out of the way of a unit.
Move out of the way of another unit.
Definition at line 3211 of file AIUpdate.cpp.
|
protectedvirtual |
move to given position(s)
Move to given position(s) If transportExits, transport returns and deletes itself.
Definition at line 3030 of file AIUpdate.cpp.
|
protectedvirtual |
move to given position & unload transport.
Move to given position(s) If transportExits, transport returns and deletes itself.
Definition at line 3056 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
move to given position(s) tightening the formation.
Move to given position(s)
Definition at line 2888 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
Definition at line 3005 of file AIUpdate.cpp.
|
protectedvirtual |
repair the given object
Repair the given object
Reimplemented in DozerAIUpdate, and WorkerAIUpdate.
Definition at line 3683 of file AIUpdate.cpp.
|
protectedvirtual |
resume construction of object
Resume construction of object
Reimplemented in DozerAIUpdate, and WorkerAIUpdate.
Definition at line 3723 of file AIUpdate.cpp.
|
protectedvirtual |
move to given position(s) tightening the formation.
Take the shortest path towards pos in order to tighten up a formation
Definition at line 3166 of file AIUpdate.cpp.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Returns true if the physics collide should apply the force. Normally not. jba.
Reimplemented in MissileAIUpdate.
Definition at line 1434 of file AIUpdate.cpp.
add waypoint to end of move list. return true if success, false if queue was full and those the waypoint not added
Append waypoint to queue for later movement
Definition at line 1163 of file AIUpdate.cpp.
| void AIUpdateInterface::recenterTurret | ( | WhichTurretType | tur | ) |
Definition at line 706 of file AIUpdate.cpp.
| void AIUpdateInterface::requestApproachPath | ( | Coord3D * | destination | ) |
computes path to attack the current target, returns false if no path
Definition at line 549 of file AIUpdate.cpp.
computes path to attack the current target, returns false if no path
Definition at line 526 of file AIUpdate.cpp.
Queues a request to pathfind to destination.
Definition at line 485 of file AIUpdate.cpp.
| void AIUpdateInterface::requestSafePath | ( | ObjectID | repulsor1 | ) |
computes path to attack the current target, returns false if no path
Definition at line 573 of file AIUpdate.cpp.
| void AIUpdateInterface::resetNextMoodCheckTime | ( | void | ) |
Reset when we should next look for a target. Usually called by *Idle::onEnter
Definition at line 4467 of file AIUpdate.cpp.
|
inline |
Definition at line 671 of file AIUpdate.h.
|
inline |
Definition at line 514 of file AIUpdate.h.
| void AIUpdateInterface::setAttitude | ( | AttitudeType | tude | ) |
set the behavior modifier for this agent
Set the behavior modifier for this agent
Definition at line 4252 of file AIUpdate.cpp.
|
inline |
Definition at line 574 of file AIUpdate.h.
|
inline |
Definition at line 503 of file AIUpdate.h.
|
inline |
Definition at line 516 of file AIUpdate.h.
| void AIUpdateInterface::setCurrentVictim | ( | const Object * | victim | ) |
|
inline |
Definition at line 397 of file AIUpdate.h.
|
inline |
how fast we want to go
Definition at line 413 of file AIUpdate.h.
|
inline |
Definition at line 526 of file AIUpdate.h.
|
protected |
Definition at line 357 of file AIUpdate.cpp.
|
inline |
Definition at line 581 of file AIUpdate.h.
|
inline |
Definition at line 410 of file AIUpdate.h.
|
protected |
Definition at line 4305 of file AIUpdate.cpp.
|
virtual |
Reimplemented in JetAIUpdate.
Definition at line 2357 of file AIUpdate.cpp.
|
virtual |
Definition at line 2344 of file AIUpdate.cpp.
|
virtual |
Definition at line 2331 of file AIUpdate.cpp.
|
virtual |
Definition at line 2324 of file AIUpdate.cpp.
| void AIUpdateInterface::setLocomotorUpgrade | ( | Bool | set | ) |
Definition at line 808 of file AIUpdate.cpp.
| void AIUpdateInterface::setNextMoodCheckTime | ( | UnsignedInt | frame | ) |
States should call this with calledByAI set true to prevent them from checking every frame States that are doing idle checks should call with calledDuringIdle set true so that they check their
Definition at line 4475 of file AIUpdate.cpp.
|
inline |
Definition at line 506 of file AIUpdate.h.
|
inline |
Definition at line 517 of file AIUpdate.h.
Definition at line 598 of file AIUpdate.cpp.
|
inline |
Definition at line 396 of file AIUpdate.h.
| void AIUpdateInterface::setQueueForPathTime | ( | Int | frames | ) |
Definition at line 960 of file AIUpdate.cpp.
|
inline |
Definition at line 666 of file AIUpdate.h.
| void AIUpdateInterface::setTurretEnabled | ( | WhichTurretType | tur, |
| Bool | enabled ) |
Definition at line 697 of file AIUpdate.cpp.
| void AIUpdateInterface::setTurretTargetObject | ( | WhichTurretType | tur, |
| Object * | o, | ||
| Bool | isForceAttacking = FALSE ) |
Definition at line 664 of file AIUpdate.cpp.
| void AIUpdateInterface::setTurretTargetPosition | ( | WhichTurretType | tur, |
| const Coord3D * | pos ) |
Definition at line 688 of file AIUpdate.cpp.
if we are attacking "fromID", stop that and attack "toID" instead
Definition at line 4166 of file AIUpdate.cpp.
|
virtual |
update this object's AI
The "main loop" of the AI subsystem
Implements UpdateModule.
Reimplemented in AssaultTransportAIUpdate, ChinookAIUpdate, DeliverPayloadAIUpdate, DeployStyleAIUpdate, DozerAIUpdate, FlightDeckBehavior, HackInternetAIUpdate, MissileAIUpdate, RailedTransportAIUpdate, SupplyTruckAIUpdate, and WorkerAIUpdate.
Definition at line 1009 of file AIUpdate.cpp.
| void AIUpdateInterface::wakeUpAndAttemptToTarget | ( | void | ) |
Definition at line 4452 of file AIUpdate.cpp.
|
protected |
Definition at line 980 of file AIUpdate.cpp.