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

Go to the source code of this file.

Classes

class  CWeapon
 Generic. More...
 
class  CWeaponLegacy
 Legacy. More...
 
class  CWeaponStrafe
 Strafe. More...
 

Enumerations

enum  EClassIdCWeapon { e_classIdCWeapon, e_classIdCWeaponLegacy, e_classIdCWeaponStrafe }
 Weapon Type. More...
 
enum  EWeaponOption {
  e_weaponOptionDisabled, e_weaponOptionHidden, e_weaponOptionMelee, e_weaponOptionCanInitiateAttackOrder,
  e_weaponOptionOnlyFireWhileInAttackOrder, e_weaponOptionOnlyFireAtAttackOrderTarget, e_weaponOptionContinuousScan, e_weaponOptionLinkedCooldown,
  e_weaponOptionDisplayCooldown, e_weaponOptionHoldFileInShrubs, e_weaponOptionRequireEnabledAttackAbil, e_weaponOptionIgnoreThreat
}
 Weapon Option. More...
 
enum  EWeaponLegacyMovement { e_weaponLegacyMovementNone, e_weaponLegacyMovementSlowing, e_weaponLegacyMovementMoving }
 Weapon Legacy Movement. More...
 
enum  EWeaponLegacyOption {
  e_weaponLegacyOptionUseRangeToCenter, e_weaponLegacyOptionLockTurretWhileFiring, e_weaponLegacyOptionCanRetargetWhileChanneling, e_weaponLegacyOptionKeepChanneling,
  e_weaponLegacyOptionUninterruptible, e_weaponLegacyOptionNoDeceleration
}
 Weapon Legacy Option. More...
 
enum  EWeaponPrioritization { e_weaponPrioritizeByDistance, e_weaponPrioritizeByAngle, e_weaponPrioritizeByDistanceFromTarget }
 Weapon Prioritization. More...
 

Variables

const int32 e_classIdCWeaponCount = 3
 
const int32 e_weaponOptionCount = 12
 
const int32 e_weaponLegacyMovementCount = 3
 
const int32 e_weaponLegacyOptionCount = 6
 
const int32 e_weaponPrioritizeCount = 3
 

Enumeration Type Documentation

◆ EClassIdCWeapon

Weapon Type.

Remarks
Unknown
Enumerator
e_classIdCWeapon 

Generic.

e_classIdCWeaponLegacy 

Legacy.

e_classIdCWeaponStrafe 

Strafe.

◆ EWeaponLegacyMovement

Weapon Legacy Movement.

Remarks
Enum
Enumerator
e_weaponLegacyMovementNone 

None.

e_weaponLegacyMovementSlowing 

Slowing.

e_weaponLegacyMovementMoving 

Moving.

◆ EWeaponLegacyOption

Weapon Legacy Option.

Remarks
Unknown
Enumerator
e_weaponLegacyOptionUseRangeToCenter 

Use Range To Center.

e_weaponLegacyOptionLockTurretWhileFiring 

Lock Turret While Firing.

e_weaponLegacyOptionCanRetargetWhileChanneling 

Can Retarget While Channeling.

e_weaponLegacyOptionKeepChanneling 

Keep Channeling.

e_weaponLegacyOptionUninterruptible 

Uninterruptible.

e_weaponLegacyOptionNoDeceleration 

No Deceleration.

◆ EWeaponOption

Weapon Option.

Remarks
Unknown
Enumerator
e_weaponOptionDisabled 

Disabled.

e_weaponOptionHidden 

Hidden.

e_weaponOptionMelee 

Melee.

e_weaponOptionCanInitiateAttackOrder 

Can Initiate Attack.

e_weaponOptionOnlyFireWhileInAttackOrder 

Only Fire While Attacking.

e_weaponOptionOnlyFireAtAttackOrderTarget 

Only Fire At Attack Target.

e_weaponOptionContinuousScan 

Continuous Scan.

e_weaponOptionLinkedCooldown 

Linked Cooldown.

e_weaponOptionDisplayCooldown 

Display Cooldown.

e_weaponOptionHoldFileInShrubs 

Hold Fire In Shrubs.

e_weaponOptionRequireEnabledAttackAbil 

Require Enabled Attack Ability.

e_weaponOptionIgnoreThreat 

Ignore Threat.

◆ EWeaponPrioritization

Weapon Prioritization.

Remarks
Enum
Enumerator
e_weaponPrioritizeByDistance 

Distance.

e_weaponPrioritizeByAngle 

Angle.

e_weaponPrioritizeByDistanceFromTarget 

Distance From Target.

Variable Documentation

◆ e_classIdCWeaponCount

const int32 e_classIdCWeaponCount = 3

◆ e_weaponLegacyMovementCount

const int32 e_weaponLegacyMovementCount = 3

◆ e_weaponLegacyOptionCount

const int32 e_weaponLegacyOptionCount = 6

◆ e_weaponOptionCount

const int32 e_weaponOptionCount = 12

◆ e_weaponPrioritizeCount

const int32 e_weaponPrioritizeCount = 3