TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Types | Public Attributes | List of all members
torchcraft::replayer::Unit Struct Reference

#include <frame.h>

Public Types

enum  Flags : uint64_t {
  Accelerating = 1ll << 0, Attacking = 1ll << 1, AttackFrame = 1ll << 2, BeingConstructed = 1ll << 3,
  BeingGathered = 1ll << 4, BeingHealed = 1ll << 5, Blind = 1ll << 6, Braking = 1ll << 7,
  Burrowed = 1ll << 8, CarryingGas = 1ll << 9, CarryingMinerals = 1ll << 10, Cloaked = 1ll << 11,
  Completed = 1ll << 12, Constructing = 1ll << 13, DefenseMatrixed = 1ll << 14, Detected = 1ll << 15,
  Ensnared = 1ll << 16, Flying = 1ll << 17, Following = 1ll << 18, GatheringGas = 1ll << 19,
  GatheringMinerals = 1ll << 20, Hallucination = 1ll << 21, HoldingPosition = 1ll << 22, Idle = 1ll << 23,
  Interruptible = 1ll << 24, Invincible = 1ll << 25, Irradiated = 1ll << 26, Lifted = 1ll << 27,
  Loaded = 1ll << 28, LockedDown = 1ll << 29, Maelstrommed = 1ll << 30, Morphing = 1ll << 31,
  Moving = 1ll << 32, Parasited = 1ll << 33, Patrolling = 1ll << 34, Plagued = 1ll << 35,
  Powered = 1ll << 36, Repairing = 1ll << 37, Researching = 1ll << 38, Selected = 1ll << 39,
  Sieged = 1ll << 40, StartingAttack = 1ll << 41, Stasised = 1ll << 42, Stimmed = 1ll << 43,
  Stuck = 1ll << 44, Targetable = 1ll << 45, Training = 1ll << 46, UnderAttack = 1ll << 47,
  UnderDarkSwarm = 1ll << 48, UnderDisruptionWeb = 1ll << 49, UnderStorm = 1ll << 50, Upgrading = 1ll << 51
}
 

Public Attributes

int32_t id
 
int32_t x
 
int32_t y
 
int32_t health
 
int32_t max_health
 
int32_t shield
 
int32_t max_shield
 
int32_t energy
 
int32_t maxCD
 
int32_t groundCD
 
int32_t airCD
 
uint64_t flags
 
int32_t visible
 
int32_t type
 
int32_t armor
 
int32_t shieldArmor
 
int32_t size
 
int32_t pixel_x
 
int32_t pixel_y
 
int32_t pixel_size_x
 
int32_t pixel_size_y
 
int32_t groundATK
 
int32_t airATK
 
int32_t groundDmgType
 
int32_t airDmgType
 
int32_t groundRange
 
int32_t airRange
 
std::vector< Orderorders
 
UnitCommand command
 
double velocityX
 
double velocityY
 
int32_t playerId
 
int32_t resources
 
int32_t buildTechUpgradeType
 
int32_t remainingBuildTrainTime
 
int32_t remainingUpgradeResearchTime
 
int32_t spellCD
 
int32_t associatedUnit
 
int32_t associatedCount
 

Member Enumeration Documentation

Enumerator
Accelerating 
Attacking 
AttackFrame 
BeingConstructed 
BeingGathered 
BeingHealed 
Blind 
Braking 
Burrowed 
CarryingGas 
CarryingMinerals 
Cloaked 
Completed 
Constructing 
DefenseMatrixed 
Detected 
Ensnared 
Flying 
Following 
GatheringGas 
GatheringMinerals 
Hallucination 
HoldingPosition 
Idle 
Interruptible 
Invincible 
Irradiated 
Lifted 
Loaded 
LockedDown 
Maelstrommed 
Morphing 
Moving 
Parasited 
Patrolling 
Plagued 
Powered 
Repairing 
Researching 
Selected 
Sieged 
StartingAttack 
Stasised 
Stimmed 
Stuck 
Targetable 
Training 
UnderAttack 
UnderDarkSwarm 
UnderDisruptionWeb 
UnderStorm 
Upgrading 

Member Data Documentation

int32_t torchcraft::replayer::Unit::airATK
int32_t torchcraft::replayer::Unit::airCD
int32_t torchcraft::replayer::Unit::airDmgType
int32_t torchcraft::replayer::Unit::airRange
int32_t torchcraft::replayer::Unit::armor
int32_t torchcraft::replayer::Unit::associatedCount
int32_t torchcraft::replayer::Unit::associatedUnit
int32_t torchcraft::replayer::Unit::buildTechUpgradeType
UnitCommand torchcraft::replayer::Unit::command
int32_t torchcraft::replayer::Unit::energy
uint64_t torchcraft::replayer::Unit::flags
int32_t torchcraft::replayer::Unit::groundATK
int32_t torchcraft::replayer::Unit::groundCD
int32_t torchcraft::replayer::Unit::groundDmgType
int32_t torchcraft::replayer::Unit::groundRange
int32_t torchcraft::replayer::Unit::health
int32_t torchcraft::replayer::Unit::id
int32_t torchcraft::replayer::Unit::max_health
int32_t torchcraft::replayer::Unit::max_shield
int32_t torchcraft::replayer::Unit::maxCD
std::vector<Order> torchcraft::replayer::Unit::orders
int32_t torchcraft::replayer::Unit::pixel_size_x
int32_t torchcraft::replayer::Unit::pixel_size_y
int32_t torchcraft::replayer::Unit::pixel_x
int32_t torchcraft::replayer::Unit::pixel_y
int32_t torchcraft::replayer::Unit::playerId
int32_t torchcraft::replayer::Unit::remainingBuildTrainTime
int32_t torchcraft::replayer::Unit::remainingUpgradeResearchTime
int32_t torchcraft::replayer::Unit::resources
int32_t torchcraft::replayer::Unit::shield
int32_t torchcraft::replayer::Unit::shieldArmor
int32_t torchcraft::replayer::Unit::size
int32_t torchcraft::replayer::Unit::spellCD
int32_t torchcraft::replayer::Unit::type
double torchcraft::replayer::Unit::velocityX
double torchcraft::replayer::Unit::velocityY
int32_t torchcraft::replayer::Unit::visible
int32_t torchcraft::replayer::Unit::x
int32_t torchcraft::replayer::Unit::y

The documentation for this struct was generated from the following file: