A low-resolution snapshot of a player state, used as a component of Snapshots.
More...
#include <snapshotter.h>
|
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...
|
|
A low-resolution snapshot of a player state, used as a component of Snapshots.
int cherrypi::SnapshotPlayer::getUpgradeLevel |
( |
int |
upgradeId | ) |
const |
Convenience method for accessing TC-formatted upgradeLevels.
- Parameters
-
upgradeId | BWAPI/buildtype->upgrade ID of the upgrade to retrieve |
bool cherrypi::SnapshotPlayer::hasTech |
( |
int |
techId | ) |
const |
Convenience method for accessing TC-formatted techs.
- Parameters
-
upgradeId | BWAPI/buildtype->tech ID of the tech to retrieve |
template<class Archive >
void cherrypi::SnapshotPlayer::serialize |
( |
Archive & |
ar | ) |
|
|
inline |
int64_t cherrypi::SnapshotPlayer::techs |
int64_t cherrypi::SnapshotPlayer::upgradeLevels |
int64_t cherrypi::SnapshotPlayer::upgrades |
The documentation for this struct was generated from the following files: