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

Used internally to track worker statefulness. More...

#include <gathererassignments.h>

Public Attributes

int framesSinceUpdate = kForever
 Number of frames since this worker has had a gathering update. More...
 
int cooldownUntil = -kForever
 Next frame we're allowed to reassign this worker to a new resource. More...
 
double lastResourceScore = 0.0
 Tracks the gathering value of this worker's last resource. More...
 

Detailed Description

Used internally to track worker statefulness.

Member Data Documentation

int cherrypi::GathererAssignments::WorkerState::cooldownUntil = -kForever

Next frame we're allowed to reassign this worker to a new resource.

Serves to avoid excessive churning of confused workers.

int cherrypi::GathererAssignments::WorkerState::framesSinceUpdate = kForever

Number of frames since this worker has had a gathering update.

double cherrypi::GathererAssignments::WorkerState::lastResourceScore = 0.0

Tracks the gathering value of this worker's last resource.

Used for diagnostic purposes only.


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