TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Attributes | List of all members
cherrypi::autobuild::BuildState Struct Reference

Describes a state of the game, either now or in a hypothetical future, for use in AutoBuilds. More...

#include <autobuild.h>

Public Attributes

int frame = 0
 
int race = 0
 
double minerals = 0
 
double gas = 0
 
double mineralsPerFramePerGatherer = 0
 
double gasPerFramePerGatherer = 0
 
std::array< double, 3 > usedSupply {}
 
std::array< double, 3 > maxSupply {}
 
std::array< double, 3 > inprodSupply {}
 
std::unordered_map< const BuildType *, std::vector< BuildStateUnit > > units
 
std::unordered_set< const BuildType * > upgradesAndTech
 
std::deque< std::pair< int, const BuildType * > > production
 
std::vector< std::pair< int, BuildEntry > > buildOrder
 
std::vector< BuildStateUnitmorphingHatcheries
 
int workers = 0
 
int refineries = 0
 
int availableGases = 0
 
bool autoBuildRefineries = true
 
bool autoBuildHatcheries = true
 
bool isExpanding = false
 

Detailed Description

Describes a state of the game, either now or in a hypothetical future, for use in AutoBuilds.

At the start of an AutoBuild, this reflects the current game state. At each buildStep(), the BuildState is updated to reflect the units/upgrades/tech purchased in the previous buildSteps().

Member Data Documentation

bool cherrypi::autobuild::BuildState::autoBuildHatcheries = true
bool cherrypi::autobuild::BuildState::autoBuildRefineries = true
int cherrypi::autobuild::BuildState::availableGases = 0
std::vector<std::pair<int, BuildEntry> > cherrypi::autobuild::BuildState::buildOrder
int cherrypi::autobuild::BuildState::frame = 0
double cherrypi::autobuild::BuildState::gas = 0
double cherrypi::autobuild::BuildState::gasPerFramePerGatherer = 0
std::array<double, 3> cherrypi::autobuild::BuildState::inprodSupply {}
bool cherrypi::autobuild::BuildState::isExpanding = false
std::array<double, 3> cherrypi::autobuild::BuildState::maxSupply {}
double cherrypi::autobuild::BuildState::minerals = 0
double cherrypi::autobuild::BuildState::mineralsPerFramePerGatherer = 0
std::vector<BuildStateUnit> cherrypi::autobuild::BuildState::morphingHatcheries
std::deque<std::pair<int, const BuildType*> > cherrypi::autobuild::BuildState::production
int cherrypi::autobuild::BuildState::race = 0
int cherrypi::autobuild::BuildState::refineries = 0
std::unordered_map<const BuildType*, std::vector<BuildStateUnit> > cherrypi::autobuild::BuildState::units
std::unordered_set<const BuildType*> cherrypi::autobuild::BuildState::upgradesAndTech
std::array<double, 3> cherrypi::autobuild::BuildState::usedSupply {}
int cherrypi::autobuild::BuildState::workers = 0

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