TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
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... | |
Used internally to track worker statefulness.
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.