This is the info for creating reinforcement and AI teams. More...
#include <Team.h>
Inherits Snapshot.
Public Types | |
| enum | { MAX_UNIT_TYPES = 7 } |
| enum | TBehavior { NORMAL =0 , IGNORE_DISTRACTIONS =1 , DEAL_AGGRESSIVELY =2 } |
Public Member Functions | |
| TeamTemplateInfo (Dict *d) | |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Public Attributes | |
| TCreateUnitsInfo | m_unitsInfo [MAX_UNIT_TYPES] |
| Quantity of units to create or build. | |
| Int | m_numUnitsInfo |
| Number of entries in m_unitsInfo. | |
| Coord3D | m_homeLocation |
| Spawn location for team. | |
| Bool | m_hasHomeLocation |
| True is m_homeLocation is valid. | |
| AsciiString | m_scriptOnCreate |
| Script executed when team is created. | |
| AsciiString | m_scriptOnIdle |
| Script executed when team is idle. | |
| Int | m_initialIdleFrames |
| Number of frames to continue recruiting after the minimum team size is achieved. | |
| AsciiString | m_scriptOnEnemySighted |
| Script executed when enemy is sighted. | |
| AsciiString | m_scriptOnAllClear |
| Script executed when enemy is sighted. | |
| AsciiString | m_scriptOnUnitDestroyed |
| Script executed each time a unit on this team dies. | |
| AsciiString | m_scriptOnDestroyed |
| Script executed m_destroyedThreshold of member units are destroyed. | |
| Real | m_destroyedThreshold |
| OnDestroyed threshold - 1.0 = 100% = all destroyed, .5 = 50% = half of the units destroyed, 0 = useless. | |
| Bool | m_isAIRecruitable |
| True if other ai teams can recruit. | |
| Bool | m_isBaseDefense |
| True if is base defense team. | |
| Bool | m_isPerimeterDefense |
| True if is a perimeter base defense team. | |
| Bool | m_automaticallyReinforce |
| True is team automatically tries to reinforce. | |
| Bool | m_transportsReturn |
| True if transports return to base after unloading. | |
| Bool | m_avoidThreats |
| True if the team avoids threats. | |
| Bool | m_attackCommonTarget |
| True if the team attacks the same target unit. | |
| Int | m_maxInstances |
| Maximum number of instances of a team that is not singleton. | |
| Int | m_productionPriority |
| Production priority. | |
| Int | m_productionPrioritySuccessIncrease |
| Production priority increase on success. | |
| Int | m_productionPriorityFailureDecrease |
| Production priority decrease on failure. | |
| AttitudeType | m_initialTeamAttitude |
| The initial team attitude. | |
| AsciiString | m_transportUnitType |
| Unit used to transport the team. | |
| AsciiString | m_startReinforceWaypoint |
| Waypoint where the reinforcement team starts. | |
| Bool | m_teamStartsFull |
| If true, team loads into member transports. | |
| Bool | m_transportsExit |
| True if the transports leave after deploying team. | |
| VeterancyLevel | m_veterancy |
| Veterancy level;. | |
| AsciiString | m_productionCondition |
| Script that contains the production conditions. | |
| Bool | m_executeActions |
| If this is true, then when the production condition becomes true, we also execute the actions. | |
| AsciiString | m_teamGenericScripts [MAX_GENERIC_SCRIPTS] |
Protected Member Functions | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| Bool TeamTemplateInfo::m_attackCommonTarget |
| Bool TeamTemplateInfo::m_automaticallyReinforce |
| Bool TeamTemplateInfo::m_avoidThreats |
| Real TeamTemplateInfo::m_destroyedThreshold |
| Bool TeamTemplateInfo::m_executeActions |
| Bool TeamTemplateInfo::m_hasHomeLocation |
| Coord3D TeamTemplateInfo::m_homeLocation |
| Int TeamTemplateInfo::m_initialIdleFrames |
| AttitudeType TeamTemplateInfo::m_initialTeamAttitude |
| Bool TeamTemplateInfo::m_isAIRecruitable |
| Bool TeamTemplateInfo::m_isBaseDefense |
| Bool TeamTemplateInfo::m_isPerimeterDefense |
| Int TeamTemplateInfo::m_maxInstances |
| Int TeamTemplateInfo::m_numUnitsInfo |
| AsciiString TeamTemplateInfo::m_productionCondition |
|
mutable |
| Int TeamTemplateInfo::m_productionPriorityFailureDecrease |
| Int TeamTemplateInfo::m_productionPrioritySuccessIncrease |
| AsciiString TeamTemplateInfo::m_scriptOnAllClear |
| AsciiString TeamTemplateInfo::m_scriptOnCreate |
| AsciiString TeamTemplateInfo::m_scriptOnDestroyed |
| AsciiString TeamTemplateInfo::m_scriptOnEnemySighted |
| AsciiString TeamTemplateInfo::m_scriptOnIdle |
| AsciiString TeamTemplateInfo::m_scriptOnUnitDestroyed |
| AsciiString TeamTemplateInfo::m_startReinforceWaypoint |
| AsciiString TeamTemplateInfo::m_teamGenericScripts[MAX_GENERIC_SCRIPTS] |
| Bool TeamTemplateInfo::m_teamStartsFull |
| Bool TeamTemplateInfo::m_transportsExit |
| Bool TeamTemplateInfo::m_transportsReturn |
| AsciiString TeamTemplateInfo::m_transportUnitType |
| TCreateUnitsInfo TeamTemplateInfo::m_unitsInfo[MAX_UNIT_TYPES] |
| VeterancyLevel TeamTemplateInfo::m_veterancy |