TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
cherrypi::bos::StaticData Struct Reference

#include <sample.h>

Public Member Functions

 StaticData ()=default
 
 StaticData (State *state)
 
template<class Archive >
void serialize (Archive &ar, uint32_t const version)
 

Public Attributes

FeatureData map
 Various map features. More...
 
float switchProba = 0.0f
 Probability of having taken a random switch (per sample). More...
 
int race [2]
 Race for our player (0) and the opponent (1) More...
 
std::string opponentName
 Player name of opponent. More...
 
bool won = false
 Did we win this game? More...
 
std::string gameId
 Game Id (optional) More...
 

Static Public Attributes

static int constexpr kMapSize = 512
 
static int constexpr kNumMapChannels = 4
 

Constructor & Destructor Documentation

cherrypi::bos::StaticData::StaticData ( )
default
cherrypi::bos::StaticData::StaticData ( State state)

Member Function Documentation

template<class Archive >
void cherrypi::bos::StaticData::serialize ( Archive &  ar,
uint32_t const  version 
)
inline

Member Data Documentation

std::string cherrypi::bos::StaticData::gameId

Game Id (optional)

int constexpr cherrypi::bos::StaticData::kMapSize = 512
static
int constexpr cherrypi::bos::StaticData::kNumMapChannels = 4
static
FeatureData cherrypi::bos::StaticData::map

Various map features.

std::string cherrypi::bos::StaticData::opponentName

Player name of opponent.

int cherrypi::bos::StaticData::race[2]

Race for our player (0) and the opponent (1)

float cherrypi::bos::StaticData::switchProba = 0.0f

Probability of having taken a random switch (per sample).

Only used during supervised data generation.

bool cherrypi::bos::StaticData::won = false

Did we win this game?


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