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

Inherits cherrypi::Reward.

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from cherrypi::Reward
double reward = -1e10
 

Constructor & Destructor Documentation

cherrypi::RewardProximityTo::RewardProximityTo ( int  goalX,
int  goalY 
)
inline

Member Function Documentation

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

Implements cherrypi::Reward.

bool cherrypi::RewardProximityTo::terminate ( State state)
overridevirtual

Reimplemented from cherrypi::Reward.

bool cherrypi::RewardProximityTo::terminateOnPeace ( )
inlineoverridevirtual

Reimplemented from cherrypi::Reward.


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