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

#include <rewards.h>

Inherited by cherrypi::RewardCombat, cherrypi::RewardDefilerProtectZerglings, cherrypi::RewardDefilerWinLoss, cherrypi::RewardKillSpeed, cherrypi::RewardProtectCivilians, cherrypi::RewardProximityTo, and cherrypi::RewardProximityToEnemy.

Public Member Functions

virtual ~Reward ()=default
 
virtual void begin (cherrypi::State *state)
 
virtual void stepReward (cherrypi::State *state)=0
 
virtual bool terminate (cherrypi::State *state)
 
virtual bool terminateOnPeace ()
 

Public Attributes

double reward = -1e10
 

Constructor & Destructor Documentation

virtual cherrypi::Reward::~Reward ( )
virtualdefault

Member Function Documentation

void cherrypi::Reward::begin ( cherrypi::State state)
virtual

Reimplemented in cherrypi::RewardCombat.

virtual void cherrypi::Reward::stepReward ( cherrypi::State state)
pure virtual
bool cherrypi::Reward::terminate ( cherrypi::State state)
virtual
bool cherrypi::Reward::terminateOnPeace ( )
virtual

Member Data Documentation

double cherrypi::Reward::reward = -1e10

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