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

A low-resolution snapshot of a player state, used as a component of Snapshots. More...

#include <snapshotter.h>

Public Member Functions

template<class Archive >
void serialize (Archive &ar)
 
int getUpgradeLevel (int upgradeId) const
 Convenience method for accessing TC-formatted upgradeLevels. More...
 
bool hasTech (int techId) const
 Convenience method for accessing TC-formatted techs. More...
 

Public Attributes

int64_t upgrades
 
int64_t upgradeLevels
 
int64_t techs
 
std::vector< SnapshotUnitunits
 

Detailed Description

A low-resolution snapshot of a player state, used as a component of Snapshots.

Member Function Documentation

int cherrypi::SnapshotPlayer::getUpgradeLevel ( int  upgradeId) const

Convenience method for accessing TC-formatted upgradeLevels.

Parameters
upgradeIdBWAPI/buildtype->upgrade ID of the upgrade to retrieve
bool cherrypi::SnapshotPlayer::hasTech ( int  techId) const

Convenience method for accessing TC-formatted techs.

Parameters
upgradeIdBWAPI/buildtype->tech ID of the tech to retrieve
template<class Archive >
void cherrypi::SnapshotPlayer::serialize ( Archive &  ar)
inline

Member Data Documentation

int64_t cherrypi::SnapshotPlayer::techs
std::vector<SnapshotUnit> cherrypi::SnapshotPlayer::units
int64_t cherrypi::SnapshotPlayer::upgradeLevels
int64_t cherrypi::SnapshotPlayer::upgrades

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