|
TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
Assigns workers to resources for optimal gathering. More...
#include <gathererassignments.h>
Classes | |
| struct | WorkerState |
| Used internally to track worker statefulness. More... | |
Public Member Functions | |
| void | addUnit (Unit *) |
| Include a worker in gathering. More... | |
| void | removeUnit (Unit *) |
| Remove a worker from gathering. More... | |
| void | step (State *) |
| Update gathering assignments for this frame. More... | |
Public Attributes | |
| ResourceWorkers | resourceWorkers |
| Mapping of workers assigned to resources. More... | |
| std::unordered_map< Unit *, WorkerState > | workers |
| Mapping of workers to their gathering state. More... | |
Assigns workers to resources for optimal gathering.
| void cherrypi::GathererAssignments::addUnit | ( | Unit * | unit | ) |
Include a worker in gathering.
| void cherrypi::GathererAssignments::removeUnit | ( | Unit * | unit | ) |
Remove a worker from gathering.
| void cherrypi::GathererAssignments::step | ( | State * | state | ) |
Update gathering assignments for this frame.
| ResourceWorkers cherrypi::GathererAssignments::resourceWorkers |
Mapping of workers assigned to resources.
| std::unordered_map<Unit*, WorkerState> cherrypi::GathererAssignments::workers |
Mapping of workers to their gathering state.
1.8.11