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

#include <AI.h>

Inherits MemoryPoolObject, and Snapshot.

Public Member Functions

void crc (Xfer *xfer)
 run the "light" crc check on this data structure
 
void xfer (Xfer *xfer)
 
void loadPostProcess (void)
 
void groupMoveToPosition (const Coord3D *pos, Bool addWaypoint, CommandSourceType cmdSource)
 
void groupMoveToAndEvacuate (const Coord3D *pos, CommandSourceType cmdSource)
 move to given position(s)
 
void groupMoveToAndEvacuateAndExit (const Coord3D *pos, CommandSourceType cmdSource)
 move to given position & unload transport.
 
void groupIdle (CommandSourceType cmdSource)
 Enter idle state.
 
void groupScatter (CommandSourceType cmdSource)
 Enter idle state.
 
void groupCreateFormation (CommandSourceType cmdSource)
 Make the current selection a user formation.
 
void groupTightenToPosition (const Coord3D *pos, Bool addWaypoint, CommandSourceType cmdSource)
 move to given position(s)
 
void groupFollowWaypointPath (const Waypoint *way, CommandSourceType cmdSource)
 start following the path from the given point
 
void groupFollowWaypointPathAsTeam (const Waypoint *way, CommandSourceType cmdSource)
 start following the path from the given point
 
void groupFollowWaypointPathExact (const Waypoint *way, CommandSourceType cmdSource)
 start following the path from the given point
 
void groupFollowWaypointPathAsTeamExact (const Waypoint *way, CommandSourceType cmdSource)
 start following the path from the given point
 
void groupFollowPath (const std::vector< Coord3D > *path, Object *ignoreObject, CommandSourceType cmdSource)
 follow the path defined by the given array of points
 
void groupAttackObject (Object *victim, Int maxShotsToFire, CommandSourceType cmdSource)
 
void groupForceAttackObject (Object *victim, Int maxShotsToFire, CommandSourceType cmdSource)
 
void groupAttackTeam (const Team *team, Int maxShotsToFire, CommandSourceType cmdSource)
 attack the given team
 
void groupAttackPosition (const Coord3D *pos, Int maxShotsToFire, CommandSourceType cmdSource)
 attack given spot
 
void groupAttackMoveToPosition (const Coord3D *pos, Int maxShotsToFire, CommandSourceType cmdSource)
 Attack move to the location.
 
void groupHunt (CommandSourceType cmdSource)
 begin "seek and destroy"
 
void groupRepair (Object *obj, CommandSourceType cmdSource)
 repair the given object
 
void groupResumeConstruction (Object *obj, CommandSourceType cmdSource)
 resume construction on the object
 
void groupGetHealed (Object *healDepot, CommandSourceType cmdSource)
 go get healed at the heal depot
 
void groupGetRepaired (Object *repairDepot, CommandSourceType cmdSource)
 go get repaired at the repair depot
 
void groupEnter (Object *obj, CommandSourceType cmdSource)
 enter the given object
 
void groupDock (Object *obj, CommandSourceType cmdSource)
 get near given object and wait for enter clearance
 
void groupExit (Object *objectToExit, CommandSourceType cmdSource)
 get out of this Object
 
void groupEvacuate (CommandSourceType cmdSource)
 empty its contents
 
void groupExecuteRailedTransport (CommandSourceType cmdSource)
 execute railed transport events
 
void groupGoProne (const DamageInfo *damageInfo, CommandSourceType cmdSource)
 life altering state change, if this AI can do it
 
void groupGuardPosition (const Coord3D *pos, GuardMode guardMode, CommandSourceType cmdSource)
 guard the given spot
 
void groupGuardObject (Object *objToGuard, GuardMode guardMode, CommandSourceType cmdSource)
 guard an object
 
void groupGuardArea (const PolygonTrigger *areaToGuard, GuardMode guardMode, CommandSourceType cmdSource)
 guard an area
 
void groupAttackArea (const PolygonTrigger *areaToGuard, CommandSourceType cmdSource)
 guard an area
 
void groupHackInternet (CommandSourceType cmdSource)
 Begin hacking the internet for free cash from the heavens.
 
void groupDoSpecialPower (UnsignedInt specialPowerID, UnsignedInt commandOptions)
 
void groupDoSpecialPowerAtObject (UnsignedInt specialPowerID, Object *object, UnsignedInt commandOptions)
 
void groupDoSpecialPowerAtLocation (UnsignedInt specialPowerID, const Coord3D *location, Real angle, const Object *object, UnsignedInt commandOptions)
 
void groupCheer (CommandSourceType cmdSource)
 
void groupSell (CommandSourceType cmdSource)
 
void groupToggleOvercharge (CommandSourceType cmdSource)
 
void groupCombatDrop (Object *target, const Coord3D &pos, CommandSourceType cmdSource)
 
void groupDoCommandButton (const CommandButton *commandButton, CommandSourceType cmdSource)
 
void groupDoCommandButtonAtPosition (const CommandButton *commandButton, const Coord3D *pos, CommandSourceType cmdSource)
 
void groupDoCommandButtonUsingWaypoints (const CommandButton *commandButton, const Waypoint *way, CommandSourceType cmdSource)
 
void groupDoCommandButtonAtObject (const CommandButton *commandButton, Object *obj, CommandSourceType cmdSource)
 
void groupSetEmoticon (const AsciiString &name, Int duration)
 
void groupOverrideSpecialPowerDestination (SpecialPowerType spType, const Coord3D *loc, CommandSourceType cmdSource)
 
void setAttitude (AttitudeType tude)
 set the behavior modifier for this agent
 
AttitudeType getAttitude (void) const
 get the current behavior modifier state
 
Bool isIdle () const
 
Bool isBusy () const
 
Bool isGroupAiDead () const
 
ObjectgetSpecialPowerSourceObject (UnsignedInt specialPowerID)
 
ObjectgetCommandButtonSourceObject (GUICommandType type)
 
Bool isMember (Object *obj)
 return true if object is in this group
 
Real getSpeed (void)
 return the speed of the group's slowest member
 
Bool getCenter (Coord3D *center)
 compute centroid of group
 
Bool getMinMaxAndCenter (Coord2D *min, Coord2D *max, Coord3D *center)
 
void computeIndividualDestination (Coord3D *dest, const Coord3D *groupDest, Object *obj, const Coord3D *center, Bool isFormation)
 compute destination of individual object, based on group destination
 
Int getCount (void)
 return the number of objects in the group
 
Bool isEmpty (void)
 returns true if the group has no members
 
void queueUpgrade (const UpgradeTemplate *upgrade)
 queue an upgrade
 
void add (Object *obj)
 add object to group
 
Bool remove (Object *obj)
 
Bool containsAnyObjectsNotOwnedByPlayer (const Player *ownerPlayer)
 
Bool removeAnyObjectsNotOwnedByPlayer (const Player *ownerPlayer)
 
UnsignedInt getID (void)
 get IDs for every object in this group
 
const VecObjectIDgetAllIDs (void) const
 
void recomputeGroupSpeed ()
 
void setMineClearingDetail (Bool set)
 
Bool setWeaponLockForGroup (WeaponSlotType weaponSlot, WeaponLockType lockType)
 Set the groups' weapon choice.
 
void releaseWeaponLockForGroup (WeaponLockType lockType)
 Clear each guys weapon choice.
 
void setWeaponSetFlag (WeaponSetType wst)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 

Protected Member Functions

 MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE (AIGroup, "AIGroupPool")
 
ListObjectPtrIt internalRemove (ListObjectPtrIt iterToRemove)
 
Bool friend_moveInfantryToPos (const Coord3D *pos, CommandSourceType cmdSource)
 
Bool friend_moveVehicleToPos (const Coord3D *pos, CommandSourceType cmdSource)
 
void friend_moveFormationToPos (const Coord3D *pos, CommandSourceType cmdSource)
 
Bool friend_computeGroundPath (const Coord3D *pos, CommandSourceType cmdSource)
 
- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Friends

class AI
 

Detailed Description

An "AIGroup" is a simple collection of AI objects, used by the AI for such things as Group Pathfinding.

Definition at line 873 of file AI.h.

Member Function Documentation

◆ add()

void AIGroup::add ( Object * obj)

add object to group

Add object to group. Only allow AI agents into the group.

Definition at line 170 of file AIGroup.cpp.

◆ computeIndividualDestination()

void AIGroup::computeIndividualDestination ( Coord3D * dest,
const Coord3D * groupDest,
Object * obj,
const Coord3D * center,
Bool isFormation )

compute destination of individual object, based on group destination

Given a destination location, compute the destination position for this object such that it keeps its relative position with the group.

Todo
use fast int->real type cast here later

Definition at line 480 of file AIGroup.cpp.

◆ containsAnyObjectsNotOwnedByPlayer()

Bool AIGroup::containsAnyObjectsNotOwnedByPlayer ( const Player * ownerPlayer)

If the group contains any objects not owned by ownerPlayer, return TRUE.

Definition at line 238 of file AIGroup.cpp.

◆ crc()

void AIGroup::crc ( Xfer * xfer)
virtual

run the "light" crc check on this data structure

Implements Snapshot.

Definition at line 3276 of file AIGroup.cpp.

◆ friend_computeGroundPath()

Bool AIGroup::friend_computeGroundPath ( const Coord3D * pos,
CommandSourceType cmdSource )
protected

Move to given position(s)

Definition at line 528 of file AIGroup.cpp.

◆ friend_moveFormationToPos()

void AIGroup::friend_moveFormationToPos ( const Coord3D * pos,
CommandSourceType cmdSource )
protected

Move to given position(s)

Definition at line 1040 of file AIGroup.cpp.

◆ friend_moveInfantryToPos()

Bool AIGroup::friend_moveInfantryToPos ( const Coord3D * pos,
CommandSourceType cmdSource )
protected

Move to given position(s)

Definition at line 683 of file AIGroup.cpp.

◆ friend_moveVehicleToPos()

Bool AIGroup::friend_moveVehicleToPos ( const Coord3D * pos,
CommandSourceType cmdSource )
protected

Move to given position(s)

Definition at line 1143 of file AIGroup.cpp.

◆ getAllIDs()

const VecObjectID & AIGroup::getAllIDs ( void ) const

Return the group IDs for every member in this group

Definition at line 127 of file AIGroup.cpp.

◆ getAttitude()

AttitudeType AIGroup::getAttitude ( void ) const

get the current behavior modifier state

Get the current behavior modifier state

Definition at line 3008 of file AIGroup.cpp.

◆ getCenter()

Bool AIGroup::getCenter ( Coord3D * center)

compute centroid of group

Compute the centroid of the group

Definition at line 289 of file AIGroup.cpp.

◆ getCommandButtonSourceObject()

Object * AIGroup::getCommandButtonSourceObject ( GUICommandType type)

Definition at line 3213 of file AIGroup.cpp.

◆ getCount()

Int AIGroup::getCount ( void )

return the number of objects in the group

Return the number of objects in the group

Definition at line 463 of file AIGroup.cpp.

◆ getID()

UnsignedInt AIGroup::getID ( void )

get IDs for every object in this group

Return this group's unique ID

Definition at line 119 of file AIGroup.cpp.

◆ getMinMaxAndCenter()

Bool AIGroup::getMinMaxAndCenter ( Coord2D * min,
Coord2D * max,
Coord3D * center )

Definition at line 344 of file AIGroup.cpp.

◆ getSpecialPowerSourceObject()

Object * AIGroup::getSpecialPowerSourceObject ( UnsignedInt specialPowerID)

Definition at line 3194 of file AIGroup.cpp.

◆ getSpeed()

Real AIGroup::getSpeed ( void )

return the speed of the group's slowest member

Return the speed of the group's slowest member

Definition at line 145 of file AIGroup.cpp.

◆ groupAttackArea()

void AIGroup::groupAttackArea ( const PolygonTrigger * areaToGuard,
CommandSourceType cmdSource )

guard an area

Attack the given area

Definition at line 2562 of file AIGroup.cpp.

◆ groupAttackMoveToPosition()

void AIGroup::groupAttackMoveToPosition ( const Coord3D * pos,
Int maxShotsToFire,
CommandSourceType cmdSource )

Attack move to the location.

Attack move to a location

Definition at line 2284 of file AIGroup.cpp.

◆ groupAttackObject()

void AIGroup::groupAttackObject ( Object * victim,
Int maxShotsToFire,
CommandSourceType cmdSource )
inline

Definition at line 897 of file AI.h.

◆ groupAttackPosition()

void AIGroup::groupAttackPosition ( const Coord3D * pos,
Int maxShotsToFire,
CommandSourceType cmdSource )

attack given spot

Attack given spot

Definition at line 2223 of file AIGroup.cpp.

◆ groupAttackTeam()

void AIGroup::groupAttackTeam ( const Team * team,
Int maxShotsToFire,
CommandSourceType cmdSource )

attack the given team

Attack the given team

Definition at line 2203 of file AIGroup.cpp.

◆ groupCheer()

void AIGroup::groupCheer ( CommandSourceType cmdSource)

Definition at line 2775 of file AIGroup.cpp.

◆ groupCombatDrop()

void AIGroup::groupCombatDrop ( Object * target,
const Coord3D & pos,
CommandSourceType cmdSource )

Combat drop

Definition at line 2891 of file AIGroup.cpp.

◆ groupCreateFormation()

void AIGroup::groupCreateFormation ( CommandSourceType cmdSource)

Make the current selection a user formation.

Parameters
cmdSourceCreate a formation.

Definition at line 2593 of file AIGroup.cpp.

◆ groupDock()

void AIGroup::groupDock ( Object * obj,
CommandSourceType cmdSource )

get near given object and wait for enter clearance

Get near given object and wait for enter clearance

Definition at line 2400 of file AIGroup.cpp.

◆ groupDoCommandButton()

void AIGroup::groupDoCommandButton ( const CommandButton * commandButton,
CommandSourceType cmdSource )

Definition at line 2915 of file AIGroup.cpp.

◆ groupDoCommandButtonAtObject()

void AIGroup::groupDoCommandButtonAtObject ( const CommandButton * commandButton,
Object * obj,
CommandSourceType cmdSource )

Definition at line 2973 of file AIGroup.cpp.

◆ groupDoCommandButtonAtPosition()

void AIGroup::groupDoCommandButtonAtPosition ( const CommandButton * commandButton,
const Coord3D * pos,
CommandSourceType cmdSource )

Definition at line 2935 of file AIGroup.cpp.

◆ groupDoCommandButtonUsingWaypoints()

void AIGroup::groupDoCommandButtonUsingWaypoints ( const CommandButton * commandButton,
const Waypoint * way,
CommandSourceType cmdSource )

Definition at line 2954 of file AIGroup.cpp.

◆ groupDoSpecialPower()

void AIGroup::groupDoSpecialPower ( UnsignedInt specialPowerID,
UnsignedInt commandOptions )

The unit(s)/structure will perform it's special power – special powers triggered by buildings don't use AIUpdateInterfaces!!! No special power uses an AIUpdateInterface immediately, but special abilities, which are derived from special powers do... and are unit triggered. Those do have AI.

Definition at line 2638 of file AIGroup.cpp.

◆ groupDoSpecialPowerAtLocation()

void AIGroup::groupDoSpecialPowerAtLocation ( UnsignedInt specialPowerID,
const Coord3D * location,
Real angle,
const Object * objectInWay,
UnsignedInt commandOptions )

The unit(s)/structure will perform it's special power – special powers triggered by buildings don't use AIUpdateInterfaces!!! No special power uses an AIUpdateInterface immediately, but special abilities, which are derived from special powers do... and are unit triggered. Those do have AI.

Definition at line 2676 of file AIGroup.cpp.

◆ groupDoSpecialPowerAtObject()

void AIGroup::groupDoSpecialPowerAtObject ( UnsignedInt specialPowerID,
Object * target,
UnsignedInt commandOptions )

The unit(s)/structure will perform it's special power – special powers triggered by buildings don't use AIUpdateInterfaces!!! No special power uses an AIUpdateInterface immediately, but special abilities, which are derived from special powers do... and are unit triggered. Those do have AI.

Definition at line 2725 of file AIGroup.cpp.

◆ groupEnter()

void AIGroup::groupEnter ( Object * obj,
CommandSourceType cmdSource )

enter the given object

Enter the given object

Definition at line 2384 of file AIGroup.cpp.

◆ groupEvacuate()

void AIGroup::groupEvacuate ( CommandSourceType cmdSource)

empty its contents

Empty its contents

Definition at line 2432 of file AIGroup.cpp.

◆ groupExecuteRailedTransport()

void AIGroup::groupExecuteRailedTransport ( CommandSourceType cmdSource)

execute railed transport events

Execute railed transport behavior

Definition at line 2470 of file AIGroup.cpp.

◆ groupExit()

void AIGroup::groupExit ( Object * objectToExit,
CommandSourceType cmdSource )

get out of this Object

Get out of whatever it is inside of

Definition at line 2416 of file AIGroup.cpp.

◆ groupFollowPath()

void AIGroup::groupFollowPath ( const std::vector< Coord3D > * path,
Object * ignoreObject,
CommandSourceType cmdSource )

follow the path defined by the given array of points

Follow the path defined by the given array of points

Definition at line 2114 of file AIGroup.cpp.

◆ groupFollowWaypointPath()

void AIGroup::groupFollowWaypointPath ( const Waypoint * way,
CommandSourceType cmdSource )

start following the path from the given point

Start following the path from the given point

Definition at line 1943 of file AIGroup.cpp.

◆ groupFollowWaypointPathAsTeam()

void AIGroup::groupFollowWaypointPathAsTeam ( const Waypoint * way,
CommandSourceType cmdSource )

start following the path from the given point

Start following the path from the given point

Definition at line 2008 of file AIGroup.cpp.

◆ groupFollowWaypointPathAsTeamExact()

void AIGroup::groupFollowWaypointPathAsTeamExact ( const Waypoint * way,
CommandSourceType cmdSource )

start following the path from the given point

Start following the path from the given point

Definition at line 2024 of file AIGroup.cpp.

◆ groupFollowWaypointPathExact()

void AIGroup::groupFollowWaypointPathExact ( const Waypoint * way,
CommandSourceType cmdSource )

start following the path from the given point

Start following the path from the given point

Definition at line 1959 of file AIGroup.cpp.

◆ groupForceAttackObject()

void AIGroup::groupForceAttackObject ( Object * victim,
Int maxShotsToFire,
CommandSourceType cmdSource )
inline

Definition at line 901 of file AI.h.

◆ groupGetHealed()

void AIGroup::groupGetHealed ( Object * healDepot,
CommandSourceType cmdSource )

go get healed at the heal depot

Get healed at the heal depot

Definition at line 2352 of file AIGroup.cpp.

◆ groupGetRepaired()

void AIGroup::groupGetRepaired ( Object * repairDepot,
CommandSourceType cmdSource )

go get repaired at the repair depot

Get repaired at the repair depot

Definition at line 2368 of file AIGroup.cpp.

◆ groupGoProne()

void AIGroup::groupGoProne ( const DamageInfo * damageInfo,
CommandSourceType cmdSource )

life altering state change, if this AI can do it

< life altering state change, if this AI can do it

Definition at line 2486 of file AIGroup.cpp.

◆ groupGuardArea()

void AIGroup::groupGuardArea ( const PolygonTrigger * areaToGuard,
GuardMode guardMode,
CommandSourceType cmdSource )

guard an area

Guard the given area

Definition at line 2542 of file AIGroup.cpp.

◆ groupGuardObject()

void AIGroup::groupGuardObject ( Object * objToGuard,
GuardMode guardMode,
CommandSourceType cmdSource )

guard an object

Guard the given object

Definition at line 2522 of file AIGroup.cpp.

◆ groupGuardPosition()

void AIGroup::groupGuardPosition ( const Coord3D * pos,
GuardMode guardMode,
CommandSourceType cmdSource )

guard the given spot

Guard the given spot

Definition at line 2502 of file AIGroup.cpp.

◆ groupHackInternet()

void AIGroup::groupHackInternet ( CommandSourceType cmdSource)

Begin hacking the internet for free cash from the heavens.

Parameters
cmdSourceBegin hacking the internet for free cash from the heavens.

Definition at line 2579 of file AIGroup.cpp.

◆ groupHunt()

void AIGroup::groupHunt ( CommandSourceType cmdSource)

begin "seek and destroy"

Begin "seek and destroy"

Definition at line 2303 of file AIGroup.cpp.

◆ groupIdle()

void AIGroup::groupIdle ( CommandSourceType cmdSource)

Enter idle state.

Enter the idle state.

Definition at line 2054 of file AIGroup.cpp.

◆ groupMoveToAndEvacuate()

void AIGroup::groupMoveToAndEvacuate ( const Coord3D * pos,
CommandSourceType cmdSource )

move to given position(s)

Move to given position and unload transports.

Definition at line 1975 of file AIGroup.cpp.

◆ groupMoveToAndEvacuateAndExit()

void AIGroup::groupMoveToAndEvacuateAndExit ( const Coord3D * pos,
CommandSourceType cmdSource )

move to given position & unload transport.

Move to given position and unload transports. transport returns and deletes itself.

Definition at line 1992 of file AIGroup.cpp.

◆ groupMoveToPosition()

void AIGroup::groupMoveToPosition ( const Coord3D * p_posIn,
Bool addWaypoint,
CommandSourceType cmdSource )

Move to given position(s)

Definition at line 1552 of file AIGroup.cpp.

◆ groupOverrideSpecialPowerDestination()

void AIGroup::groupOverrideSpecialPowerDestination ( SpecialPowerType spType,
const Coord3D * loc,
CommandSourceType cmdSource )

Definition at line 3258 of file AIGroup.cpp.

◆ groupRepair()

void AIGroup::groupRepair ( Object * obj,
CommandSourceType cmdSource )

repair the given object

Repair the given object

Definition at line 2320 of file AIGroup.cpp.

◆ groupResumeConstruction()

void AIGroup::groupResumeConstruction ( Object * obj,
CommandSourceType cmdSource )

resume construction on the object

Resume construction on object

Definition at line 2336 of file AIGroup.cpp.

◆ groupScatter()

void AIGroup::groupScatter ( CommandSourceType cmdSource)

Enter idle state.

Scatter

Definition at line 1762 of file AIGroup.cpp.

◆ groupSell()

void AIGroup::groupSell ( CommandSourceType cmdSource)

Sell all things in the group ... if possible

Definition at line 2791 of file AIGroup.cpp.

◆ groupSetEmoticon()

void AIGroup::groupSetEmoticon ( const AsciiString & name,
Int duration )

Definition at line 3243 of file AIGroup.cpp.

◆ groupTightenToPosition()

void AIGroup::groupTightenToPosition ( const Coord3D * pos,
Bool addWaypoint,
CommandSourceType cmdSource )

move to given position(s)

Move to given position(s), tightening the formation

Definition at line 1856 of file AIGroup.cpp.

◆ groupToggleOvercharge()

void AIGroup::groupToggleOvercharge ( CommandSourceType cmdSource)

Tell all things in the group to toggle overcharge ... if possible

Definition at line 2816 of file AIGroup.cpp.

◆ internalRemove()

ListObjectPtrIt AIGroup::internalRemove ( ListObjectPtrIt iterToRemove)
protected

◆ isBusy()

Bool AIGroup::isBusy ( void ) const

Definition at line 3141 of file AIGroup.cpp.

◆ isEmpty()

Bool AIGroup::isEmpty ( void )

returns true if the group has no members

Returns true if the group has no members

Definition at line 471 of file AIGroup.cpp.

◆ isGroupAiDead()

Bool AIGroup::isGroupAiDead ( void ) const

Definition at line 3175 of file AIGroup.cpp.

◆ isIdle()

Bool AIGroup::isIdle ( void ) const

Definition at line 3110 of file AIGroup.cpp.

◆ isMember()

Bool AIGroup::isMember ( Object * obj)

return true if object is in this group

Return true if object is in this group

Definition at line 156 of file AIGroup.cpp.

◆ loadPostProcess()

void AIGroup::loadPostProcess ( void )
virtual

post process phase for loading save games. All save systems have their xfer run using XferLoad mode, and then all systems each have their post process run

Implements Snapshot.

Definition at line 3315 of file AIGroup.cpp.

◆ MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE()

AIGroup::MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE ( AIGroup ,
"AIGroupPool"  )
protected
Todo
Set real numbers for mem alloc

◆ queueUpgrade()

void AIGroup::queueUpgrade ( const UpgradeTemplate * upgrade)

queue an upgrade

Definition at line 3068 of file AIGroup.cpp.

◆ recomputeGroupSpeed()

void AIGroup::recomputeGroupSpeed ( )
inline

Definition at line 987 of file AI.h.

◆ releaseWeaponLockForGroup()

void AIGroup::releaseWeaponLockForGroup ( WeaponLockType lockType)

Clear each guys weapon choice.

Definition at line 3037 of file AIGroup.cpp.

◆ remove()

Bool AIGroup::remove ( Object * obj)

Remove object from group

Definition at line 206 of file AIGroup.cpp.

◆ removeAnyObjectsNotOwnedByPlayer()

Bool AIGroup::removeAnyObjectsNotOwnedByPlayer ( const Player * ownerPlayer)

Remove any objects that aren't owned by the player, and return true if the group was destroyed due to emptiness

Definition at line 259 of file AIGroup.cpp.

◆ setAttitude()

void AIGroup::setAttitude ( AttitudeType tude)

set the behavior modifier for this agent

Set the behavior modifier for this agent

Definition at line 2992 of file AIGroup.cpp.

◆ setMineClearingDetail()

void AIGroup::setMineClearingDetail ( Bool set)

Definition at line 3013 of file AIGroup.cpp.

◆ setWeaponLockForGroup()

Bool AIGroup::setWeaponLockForGroup ( WeaponSlotType weaponSlot,
WeaponLockType lockType )

Set the groups' weapon choice.

Definition at line 3025 of file AIGroup.cpp.

◆ setWeaponSetFlag()

void AIGroup::setWeaponSetFlag ( WeaponSetType wst)

Definition at line 3049 of file AIGroup.cpp.

◆ xfer()

void AIGroup::xfer ( Xfer * xfer)
virtual

run save, load, or deep CRC check on this data structure, the type depends on the setup of the Xfer pointer

Implements Snapshot.

Definition at line 3304 of file AIGroup.cpp.

Friends And Related Symbol Documentation

◆ AI

friend class AI
friend

Definition at line 1006 of file AI.h.


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