sc2-gamedata
Classes | Enumerations | Variables
Behavior.h File Reference
#include "UnderlyingTypes.h"
#include "Game.h"
#include "Unit.h"
Include dependency graph for Behavior.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SAttributeChange
 
struct  SDamageKind
 
struct  SBehaviorResponse
 
struct  SDamageResponse
 
struct  SDeathResponse
 
struct  SModification
 
struct  SPowerStage
 
struct  SSpawnInfo
 
struct  SVeterancyLevel
 
class  CBehavior
 Generic. More...
 
class  CBehaviorAttribute
 Attribute. More...
 
class  CBehaviorBuff
 Buff. More...
 
class  CBehaviorClickResponse
 Click Response. More...
 
class  CBehaviorConjoined
 Conjoined. More...
 
class  CBehaviorCreepSource
 Creep Source. More...
 
class  CBehaviorJump
 Jump. More...
 
class  CBehaviorPowerSource
 Power Source. More...
 
class  CBehaviorPowerUser
 Power User. More...
 
class  CBehaviorResource
 Resource. More...
 
class  CBehaviorReveal
 Reveal. More...
 
class  CBehaviorSpawn
 Spawn. More...
 
class  CBehaviorVeterancy
 Veterancy. More...
 
class  CBehaviorWander
 Wander. More...
 

Enumerations

enum  EClassIdCBehavior {
  e_classIdCBehavior, e_classIdCBehaviorAttribute, e_classIdCBehaviorBuff, e_classIdCBehaviorClickResponse,
  e_classIdCBehaviorConjoined, e_classIdCBehaviorCreepSource, e_classIdCBehaviorJump, e_classIdCBehaviorPowerSource,
  e_classIdCBehaviorPowerUser, e_classIdCBehaviorResource, e_classIdCBehaviorReveal, e_classIdCBehaviorSpawn,
  e_classIdCBehaviorVeterancy, e_classIdCBehaviorWander
}
 Behavior Type. More...
 
enum  EBehaviorCategory { e_behaviorCategoryPermanent, e_behaviorCategoryRestorable, e_behaviorCategoryTemporary }
 Behavior Category. More...
 
enum  EBehaviorFlag { e_behaviorFlagPermanent, e_behaviorFlagIgnoreInEditor, e_behaviorFlagEnabledWhileDead }
 Behavior Flag. More...
 
enum  EBehaviorBuff {
  e_behaviorBuffChanneled, e_behaviorBuffChanneling, e_behaviorBuffCountdown, e_behaviorBuffExtend,
  e_behaviorBuffDisableWhileUnderConstruction, e_behaviorBuffRemoveDamageResponseExhausted, e_behaviorBuffRefreshStack, e_behaviorBuffUpdateDurationWhileDisabled
}
 Buff Flag. More...
 
enum  EBehaviorBuffReplace { e_behaviorBuffReplaceShortestDuration, e_behaviorBuffReplaceFarthestDistance }
 Buff Replacement. More...
 
enum  EConjoinedFlag {
  e_conjoinedFlagShareLife, e_conjoinedFlagShareShields, e_conjoinedFlagShareEnergy, e_conjoinedFlagShareVisible,
  e_conjoinedFlagShareAcquire, e_conjoinedFlagShareSelect
}
 Conjoined Flag. More...
 
enum  EBehaviorDisplay { e_behaviorDisplaySelf, e_behaviorDisplayAlly, e_behaviorDisplayNeutral, e_behaviorDisplayEnemy }
 Behavior Display. More...
 
enum  EBehaviorInfoFlag { e_behaviorInfoFlagHidden }
 Behavior Info. More...
 
enum  EBehaviorResourceFlag { e_behaviorResourceFlagHideHarvesters, e_behaviorResourceFlagRemoveWhenEmpty }
 Behavior Resource Flag. More...
 
enum  EBehaviorAlignment { e_behaviorAlignmentNeutral, e_behaviorAlignmentPositive, e_behaviorAlignmentNegative }
 Behavior Alignment. More...
 
enum  EBehaviorModify {
  e_behaviorModifyDisableAbils, e_behaviorModifyEnableAttack, e_behaviorModifyEnableMove, e_behaviorModifyMovement,
  e_behaviorModifyReveal, e_behaviorModifyDetected, e_behaviorModifyShareSight, e_behaviorModifySuppressMoving,
  e_behaviorModifySuppressTurning, e_behaviorModifyWarpable, e_behaviorModifyHideChangeUI, e_behaviorModifyOrdersUninterruptible
}
 Modify Flag. More...
 
enum  EBehaviorState {
  e_behaviorStateBury, e_behaviorStateCloak, e_behaviorStateGenerateThreat, e_behaviorStateHallucination,
  e_behaviorStateInvulnerable, e_behaviorStateBenign, e_behaviorStatePassive, e_behaviorStateRevealProgress,
  e_behaviorStateStasis, e_behaviorStateStun, e_behaviorStateSummoned, e_behaviorStateSuppressAttack,
  e_behaviorStateSuppressBuildOn, e_behaviorStateSuppressCloak, e_behaviorStateSuppressCollision, e_behaviorStateSuppressCombat,
  e_behaviorStateSuppressDetection, e_behaviorStateSuppressDropOff, e_behaviorStateSuppressFidgeting, e_behaviorStateSuppressFoodMade,
  e_behaviorStateSuppressFoodUsed, e_behaviorStateSuppressInvulnerability, e_behaviorStateSuppressPassenger, e_behaviorStateSuppressRadar,
  e_behaviorStateSuppressRequirements, e_behaviorStateSuppressTech, e_behaviorStateSuppressThreat, e_behaviorStateSuppressLife,
  e_behaviorStateSuppressShields, e_behaviorStateSuppressEnergy, e_behaviorStateSuppressLifeRegen, e_behaviorStateSuppressShieldsRegen,
  e_behaviorStateSuppressEnergyRegen, e_behaviorStateNoDraw, e_behaviorStateTransientMorph, e_behaviorStateUncommandable,
  e_behaviorStateUndetectable, e_behaviorStateUnradarable, e_behaviorStateUnselectable, e_behaviorStateUnstoppable,
  e_behaviorStateUntargetable, e_behaviorStateLineMovement, e_behaviorStateDetector, e_behaviorStateRadar
}
 Behavior State. More...
 
enum  EBehaviorPowerUserFlag { e_behaviorPowerUserFlagDisplayPower, e_behaviorPowerUserFlagKillIfUnpowered, e_behaviorPowerUserFlagLevelFromSourceCount }
 Power User Flag. More...
 
enum  EBehaviorSpawnFlag { e_behaviorSpawnFlagHideCount, e_behaviorSpawnFlagIgnoreMorph, e_behaviorSpawnFlagKillSpawnedOnDeath }
 Spawn Flag. More...
 
enum  EBehaviorVeterancyFlag { e_behaviorVeterancyFlagCombineNumericModifications, e_behaviorVeterancyFlagCombineXP, e_behaviorVeterancyFlagMaxLevelLeech }
 Veterancy Flag. More...
 
enum  EBehaviorVeterancyXP { e_behaviorVeterancyXPDamageDealt, e_behaviorVeterancyXPDamageTaken, e_behaviorVeterancyXPKills }
 Veterancy Experience. More...
 
enum  EDamageLocation { e_damageLocationAttacker, e_damageLocationDefender }
 Damage Location. More...
 
enum  EBehaviorRate {
  e_behaviorRateCharge, e_behaviorRateCooldown, e_behaviorRateMorph, e_behaviorRateProgress,
  e_behaviorRateQueueable, e_behaviorRateSpawn, e_behaviorRateCreep
}
 Behavior Rate. More...
 
enum  EBehaviorHeight { e_behaviorHeightStart, e_behaviorHeightStop }
 Behavior Height. More...
 

Variables

const int32 e_classIdCBehaviorCount = 14
 
const int32 e_behaviorCategoryCount = 3
 
const int32 e_behaviorFlagCount = 3
 
const int32 e_behaviorBuffCount = 8
 
const int32 e_behaviorBuffReplaceCount = 2
 
const int32 e_conjoinedFlagCount = 6
 
const int32 e_behaviorDisplayCount = 4
 
const int32 e_behaviorInfoFlagCount = 1
 
const int32 e_behaviorResourceFlagCount = 2
 
const int32 e_behaviorAlignmentCount = 3
 
const int32 e_behaviorModifyCount = 12
 
const int32 e_behaviorStateCount = 44
 
const int32 e_behaviorPowerUserFlagCount = 3
 
const int32 e_behaviorSpawnFlagCount = 3
 
const int32 e_behaviorVeterancyFlagCount = 3
 
const int32 e_behaviorVeterancyXPCount = 3
 
const int32 e_damageLocationCount = 2
 
const int32 e_behaviorRateCount = 7
 
const int32 e_behaviorHeightCount = 2
 

Enumeration Type Documentation

◆ EBehaviorAlignment

Behavior Alignment.

Remarks
Enum
Enumerator
e_behaviorAlignmentNeutral 

Neutral.

e_behaviorAlignmentPositive 

Positive.

e_behaviorAlignmentNegative 

Negative.

◆ EBehaviorBuff

Buff Flag.

Remarks
Unknown
Enumerator
e_behaviorBuffChanneled 

Channeled.

e_behaviorBuffChanneling 

Channeling.

e_behaviorBuffCountdown 

Countdown.

e_behaviorBuffExtend 

Extend.

e_behaviorBuffDisableWhileUnderConstruction 

Disable During Construction.

e_behaviorBuffRemoveDamageResponseExhausted 

Remove Exhausted Damage Response.

e_behaviorBuffRefreshStack 

Refresh Stack.

e_behaviorBuffUpdateDurationWhileDisabled 

Update Duration While Disabled.

◆ EBehaviorBuffReplace

Buff Replacement.

Remarks
Enum
Enumerator
e_behaviorBuffReplaceShortestDuration 

Shortest Duration.

e_behaviorBuffReplaceFarthestDistance 

Farthest Distance.

◆ EBehaviorCategory

Behavior Category.

Remarks
Unknown
Enumerator
e_behaviorCategoryPermanent 

Permanent.

e_behaviorCategoryRestorable 

Restorable.

e_behaviorCategoryTemporary 

Temporary.

◆ EBehaviorDisplay

Behavior Display.

Remarks
Unknown
Enumerator
e_behaviorDisplaySelf 

Self.

e_behaviorDisplayAlly 

Ally.

e_behaviorDisplayNeutral 

Neutral.

e_behaviorDisplayEnemy 

Enemy.

◆ EBehaviorFlag

Behavior Flag.

Remarks
Unknown
Enumerator
e_behaviorFlagPermanent 

Permanent.

e_behaviorFlagIgnoreInEditor 

Ignore In Editor.

e_behaviorFlagEnabledWhileDead 

Enabled While Dead.

◆ EBehaviorHeight

Behavior Height.

Remarks
Unknown
Enumerator
e_behaviorHeightStart 

Start.

e_behaviorHeightStop 

Stop.

◆ EBehaviorInfoFlag

Behavior Info.

Remarks
Unknown
Enumerator
e_behaviorInfoFlagHidden 

Hidden.

◆ EBehaviorModify

Modify Flag.

Remarks
Unknown
Enumerator
e_behaviorModifyDisableAbils 

Disable Abilities.

e_behaviorModifyEnableAttack 

Enable Attack.

e_behaviorModifyEnableMove 

Enable Move.

e_behaviorModifyMovement 

Modify Movement.

e_behaviorModifyReveal 

Reveal.

e_behaviorModifyDetected 

Detected.

e_behaviorModifyShareSight 

Share Vision.

e_behaviorModifySuppressMoving 

Suppress Movement.

e_behaviorModifySuppressTurning 

Suppress Turning.

e_behaviorModifyWarpable 

Warpable.

e_behaviorModifyHideChangeUI 

Hide Change UI.

e_behaviorModifyOrdersUninterruptible 

Orders Uninterruptible.

◆ EBehaviorPowerUserFlag

Power User Flag.

Remarks
Unknown
Enumerator
e_behaviorPowerUserFlagDisplayPower 

Display Power.

e_behaviorPowerUserFlagKillIfUnpowered 

Kill If Unpowered.

e_behaviorPowerUserFlagLevelFromSourceCount 

Level From Source Count.

◆ EBehaviorRate

Behavior Rate.

Remarks
Unknown
Enumerator
e_behaviorRateCharge 

Charge.

e_behaviorRateCooldown 

Cooldown.

e_behaviorRateMorph 

Morph.

e_behaviorRateProgress 

Progress.

e_behaviorRateQueueable 

Queueable.

e_behaviorRateSpawn 

Spawn.

e_behaviorRateCreep 

Creep.

◆ EBehaviorResourceFlag

Behavior Resource Flag.

Remarks
Unknown
Enumerator
e_behaviorResourceFlagHideHarvesters 

Hide Harvesters.

e_behaviorResourceFlagRemoveWhenEmpty 

Remove When Empty.

◆ EBehaviorSpawnFlag

Spawn Flag.

Remarks
Unknown
Enumerator
e_behaviorSpawnFlagHideCount 

Hide Count.

e_behaviorSpawnFlagIgnoreMorph 

Ignore Morph.

e_behaviorSpawnFlagKillSpawnedOnDeath 

Kill Spawn On Death.

◆ EBehaviorState

Behavior State.

Remarks
Enum
Enumerator
e_behaviorStateBury 

Bury.

e_behaviorStateCloak 

Cloak.

e_behaviorStateGenerateThreat 

Generate Threat.

e_behaviorStateHallucination 

Hallucination.

e_behaviorStateInvulnerable 

Invulnerable.

e_behaviorStateBenign 

Benign.

e_behaviorStatePassive 

Passive.

e_behaviorStateRevealProgress 

Reveal Progress.

e_behaviorStateStasis 

Stasis.

e_behaviorStateStun 

Stun.

e_behaviorStateSummoned 

Summoned.

e_behaviorStateSuppressAttack 

Suppress Attack.

e_behaviorStateSuppressBuildOn 

Suppress Build On.

e_behaviorStateSuppressCloak 

Suppress Cloak.

e_behaviorStateSuppressCollision 

Suppress Collision.

e_behaviorStateSuppressCombat 

Suppress Combat.

e_behaviorStateSuppressDetection 

Suppress Detection.

e_behaviorStateSuppressDropOff 

Suppress Drop Off.

e_behaviorStateSuppressFidgeting 

Suppress Fidgeting.

e_behaviorStateSuppressFoodMade 

Suppress Food Made.

e_behaviorStateSuppressFoodUsed 

Suppress Food Used.

e_behaviorStateSuppressInvulnerability 

Suppress Invulnerability.

e_behaviorStateSuppressPassenger 

Suppress Passenger.

e_behaviorStateSuppressRadar 

Suppress Radar.

e_behaviorStateSuppressRequirements 

Suppress Requirements.

e_behaviorStateSuppressTech 

Suppress Tech.

e_behaviorStateSuppressThreat 

Suppress Threat.

e_behaviorStateSuppressLife 

Suppress Life.

e_behaviorStateSuppressShields 

Suppress Shields.

e_behaviorStateSuppressEnergy 

Suppress Energy.

e_behaviorStateSuppressLifeRegen 

Suppress Life Regeneration.

e_behaviorStateSuppressShieldsRegen 

Suppress Shield Regeneration.

e_behaviorStateSuppressEnergyRegen 

Suppress Energy Regeneration.

e_behaviorStateNoDraw 

No Draw.

e_behaviorStateTransientMorph 

Transient Morph.

e_behaviorStateUncommandable 

Uncommandable.

e_behaviorStateUndetectable 

Undetectable.

e_behaviorStateUnradarable 

Unradarable.

e_behaviorStateUnselectable 

Unselectable.

e_behaviorStateUnstoppable 

Unstoppable.

e_behaviorStateUntargetable 

Untargetable.

e_behaviorStateLineMovement 

Line Movement.

e_behaviorStateDetector 

Detector.

e_behaviorStateRadar 

Radar.

◆ EBehaviorVeterancyFlag

Veterancy Flag.

Remarks
Unknown
Enumerator
e_behaviorVeterancyFlagCombineNumericModifications 

Combine Numeric Modifications.

e_behaviorVeterancyFlagCombineXP 

Combine Experience.

e_behaviorVeterancyFlagMaxLevelLeech 

Max Level Leech.

◆ EBehaviorVeterancyXP

Veterancy Experience.

Remarks
Unknown
Enumerator
e_behaviorVeterancyXPDamageDealt 

Damage Dealt.

e_behaviorVeterancyXPDamageTaken 

Damage Taken.

e_behaviorVeterancyXPKills 

Kills.

◆ EClassIdCBehavior

Behavior Type.

Remarks
Enum
Enumerator
e_classIdCBehavior 

Generic.

e_classIdCBehaviorAttribute 

Attribute.

e_classIdCBehaviorBuff 

Buff.

e_classIdCBehaviorClickResponse 

Click Response.

e_classIdCBehaviorConjoined 

Conjoined.

e_classIdCBehaviorCreepSource 

Creep Source.

e_classIdCBehaviorJump 

Jump.

e_classIdCBehaviorPowerSource 

Power Source.

e_classIdCBehaviorPowerUser 

Power User.

e_classIdCBehaviorResource 

Resource.

e_classIdCBehaviorReveal 

Reveal.

e_classIdCBehaviorSpawn 

Spawn.

e_classIdCBehaviorVeterancy 

Veterancy.

e_classIdCBehaviorWander 

Wander.

◆ EConjoinedFlag

Conjoined Flag.

Remarks
Unknown
Enumerator
e_conjoinedFlagShareLife 

Share Life.

e_conjoinedFlagShareShields 

Share Shields.

e_conjoinedFlagShareEnergy 

Share Energy.

e_conjoinedFlagShareVisible 

Share Visible.

e_conjoinedFlagShareAcquire 

Share Acquire.

e_conjoinedFlagShareSelect 

Share Selection.

◆ EDamageLocation

Damage Location.

Remarks
Enum
Enumerator
e_damageLocationAttacker 

Attacker.

e_damageLocationDefender 

Defender.

Variable Documentation

◆ e_behaviorAlignmentCount

const int32 e_behaviorAlignmentCount = 3

◆ e_behaviorBuffCount

const int32 e_behaviorBuffCount = 8

◆ e_behaviorBuffReplaceCount

const int32 e_behaviorBuffReplaceCount = 2

◆ e_behaviorCategoryCount

const int32 e_behaviorCategoryCount = 3

◆ e_behaviorDisplayCount

const int32 e_behaviorDisplayCount = 4

◆ e_behaviorFlagCount

const int32 e_behaviorFlagCount = 3

◆ e_behaviorHeightCount

const int32 e_behaviorHeightCount = 2

◆ e_behaviorInfoFlagCount

const int32 e_behaviorInfoFlagCount = 1

◆ e_behaviorModifyCount

const int32 e_behaviorModifyCount = 12

◆ e_behaviorPowerUserFlagCount

const int32 e_behaviorPowerUserFlagCount = 3

◆ e_behaviorRateCount

const int32 e_behaviorRateCount = 7

◆ e_behaviorResourceFlagCount

const int32 e_behaviorResourceFlagCount = 2

◆ e_behaviorSpawnFlagCount

const int32 e_behaviorSpawnFlagCount = 3

◆ e_behaviorStateCount

const int32 e_behaviorStateCount = 44

◆ e_behaviorVeterancyFlagCount

const int32 e_behaviorVeterancyFlagCount = 3

◆ e_behaviorVeterancyXPCount

const int32 e_behaviorVeterancyXPCount = 3

◆ e_classIdCBehaviorCount

const int32 e_classIdCBehaviorCount = 14

◆ e_conjoinedFlagCount

const int32 e_conjoinedFlagCount = 6

◆ e_damageLocationCount

const int32 e_damageLocationCount = 2