TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
A task that tracks execution of another task (for another UPCTuple). More...
#include <task.h>
Inherits cherrypi::Task.
Public Member Functions | |
ProxyTask (UpcId targetUpcId, UpcId upcId) | |
virtual | ~ProxyTask ()=default |
virtual void | update (State *state) override |
virtual void | cancel (State *state) override |
virtual std::unordered_set< Unit * > const & | proxiedUnits () const override |
A set of units occupied performing this task. More... | |
std::shared_ptr< Task > | target () const |
Public Member Functions inherited from cherrypi::Task | |
Task (UpcId upcId, std::unordered_set< Unit * > units={}) | |
virtual | ~Task () |
TaskStatus | status () const |
void | setStatus (TaskStatus status) |
bool | finished () const |
UpcId | upcId () const |
UPC id in Blackboard that caused this Task to be spawned. More... | |
std::unordered_set< Unit * > const & | units () const |
A set of units occupied performing this task. More... | |
void | removeUnit (Unit *unit) |
virtual const char * | getName () const |
A name for this task, for debugging purposes. More... | |
Protected Attributes | |
UpcId | targetUpcId_ |
std::shared_ptr< Task > | target_ |
Additional Inherited Members | |
Protected Member Functions inherited from cherrypi::Task | |
std::unordered_set< Unit * > & | units () |
virtual void | removeDeadOrReassignedUnits (State *state) |
Remove units that have been assigned to another task and units that have died. More... | |
A task that tracks execution of another task (for another UPCTuple).
This is a simple wrapper task that can be used for modules that are merely interested in the outcome of any action triggered by a posted UPCTuple.
|
virtualdefault |
|
overridevirtual |
Reimplemented from cherrypi::Task.
|
overridevirtual |
A set of units occupied performing this task.
If this is a ProxyTask, this will reflect the units of the targeted task.
Reimplemented from cherrypi::Task.
|
inline |
|
overridevirtual |
Reimplemented from cherrypi::Task.
|
protected |
|
protected |