TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Namespaces | Functions | Variables
torchcraft::BW Namespace Reference

Namespaces

 data
 

Functions

 BETTER_ENUM (Command, int, Quit=0, Restart=1, MapHack=2, RequestImage=3, ExitProcess=4, Noop=5, SetSpeed=6, SetLog=7, SetGui=8, SetFrameskip=9, SetCmdOptim=10, SetCombineFrames=11, SetMap=12, SetMulti=13, SetBlocking=14, SetMaxFrameTimeMs=15, CommandUnit=16, CommandUnitProtected=17, CommandUser=18, CommandOpenbw=19, DrawLine=20, DrawUnitLine=21, DrawUnitPosLine=22, DrawCircle=23, DrawUnitCircle=24, DrawText=25, DrawTextScreen=26, MAX) BETTER_ENUM(OpenBWCommandType
 
bool isBuilding (UnitType id)
 
bool isWorker (UnitType id)
 
bool isMineralField (UnitType id)
 
bool isGasGeyser (UnitType id)
 
std::vector< UnitType > unitProductions (UnitType id)
 
bool unitProduces (UnitType id, UnitType product)
 
std::vector< OrdercommandToOrders (UnitCommandType id)
 
bool isResourceDepot (UnitType id)
 

Variables

 int
 
 KillUnit = 0
 
 SpawnUnit = 1
 
 SetPlayerUpgradeLevel = 2
 
 SetPlayerResearched = 3
 
 SetPlayerMinerals = 4
 
 SetPlayerGas = 5
 
 SetUnitHealth = 6
 
 SetUnitShield = 7
 
 SetUnitEnergy = 8
 
 OPENBW_COMMAND_END
 
constexpr int XYPixelsPerBuildtile = 32
 
constexpr int XYWalktilesPerBuildtile
 
constexpr double HitProbRangedUphillDoodad = 0.53125
 
constexpr double HitProbRanged = 0.99609375
 

Function Documentation

torchcraft::BW::BETTER_ENUM ( Command  ,
int  ,
Quit  = 0,
Restart  = 1,
MapHack  = 2,
RequestImage  = 3,
ExitProcess  = 4,
Noop  = 5,
SetSpeed  = 6,
SetLog  = 7,
SetGui  = 8,
SetFrameskip  = 9,
SetCmdOptim  = 10,
SetCombineFrames  = 11,
SetMap  = 12,
SetMulti  = 13,
SetBlocking  = 14,
SetMaxFrameTimeMs  = 15,
CommandUnit  = 16,
CommandUnitProtected  = 17,
CommandUser  = 18,
CommandOpenbw  = 19,
DrawLine  = 20,
DrawUnitLine  = 21,
DrawUnitPosLine  = 22,
DrawCircle  = 23,
DrawUnitCircle  = 24,
DrawText  = 25,
DrawTextScreen  = 26,
MAX   
)
std::vector<Order> torchcraft::BW::commandToOrders ( UnitCommandType  id)
bool torchcraft::BW::isBuilding ( UnitType  id)
inline
bool torchcraft::BW::isGasGeyser ( UnitType  id)
inline
bool torchcraft::BW::isMineralField ( UnitType  id)
inline
bool torchcraft::BW::isResourceDepot ( UnitType  id)
inline
bool torchcraft::BW::isWorker ( UnitType  id)
inline
bool torchcraft::BW::unitProduces ( UnitType  id,
UnitType  product 
)
std::vector<UnitType> torchcraft::BW::unitProductions ( UnitType  id)

Variable Documentation

constexpr double torchcraft::BW::HitProbRanged = 0.99609375
constexpr double torchcraft::BW::HitProbRangedUphillDoodad = 0.53125
torchcraft::BW::int
torchcraft::BW::KillUnit = 0
torchcraft::BW::OPENBW_COMMAND_END
torchcraft::BW::SetPlayerGas = 5
torchcraft::BW::SetPlayerMinerals = 4
torchcraft::BW::SetPlayerResearched = 3
torchcraft::BW::SetPlayerUpgradeLevel = 2
torchcraft::BW::SetUnitEnergy = 8
torchcraft::BW::SetUnitHealth = 6
torchcraft::BW::SetUnitShield = 7
torchcraft::BW::SpawnUnit = 1
constexpr int torchcraft::BW::XYPixelsPerBuildtile = 32
constexpr int torchcraft::BW::XYWalktilesPerBuildtile
Initial value:
=
XYPixelsPerBuildtile / XYPixelsPerWalktile
constexpr int XYPixelsPerBuildtile
Definition: constants.h:830