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

Inherits cherrypi::Reward.

Public Member Functions

void begin (State *state) override
 
void stepReward (State *state) override
 
- Public Member Functions inherited from cherrypi::Reward
virtual ~Reward ()=default
 
virtual bool terminate (cherrypi::State *state)
 
virtual bool terminateOnPeace ()
 

Public Attributes

int initialAllyCount = 0
 
int initialAllyHp = 0
 
int initialEnemyCount = 0
 
int initialEnemyHp = 0
 
- Public Attributes inherited from cherrypi::Reward
double reward = -1e10
 

Member Function Documentation

void cherrypi::RewardCombat::begin ( State state)
overridevirtual

Reimplemented from cherrypi::Reward.

void cherrypi::RewardCombat::stepReward ( State state)
overridevirtual

Implements cherrypi::Reward.

Member Data Documentation

int cherrypi::RewardCombat::initialAllyCount = 0
int cherrypi::RewardCombat::initialAllyHp = 0
int cherrypi::RewardCombat::initialEnemyCount = 0
int cherrypi::RewardCombat::initialEnemyHp = 0

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