TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
#include <behavior.h>
Inherits cherrypi::Behavior.
Public Member Functions | |
BehaviorSeries (BehaviorList behaviors) | |
Public Member Functions inherited from cherrypi::Behavior | |
void | perform (Agent &agent) |
Checks if a unit still needs a micro decision. If so, invokes onPerform() More... | |
virtual | ~Behavior ()=default |
Protected Member Functions | |
virtual MicroAction | onPerform (Agent &agent) override |
Decide what to do with a unit that has not yet been controlled by a Behavior. More... | |
Protected Member Functions inherited from cherrypi::Behavior | |
MicroAction | doAction (std::shared_ptr< UPCTuple > upc) const |
Convenience method: Form a MicroAction reflecting a decision to issue a UPC for this unit. More... | |
Protected Attributes | |
const BehaviorList | behaviors_ = {} |
Protected Attributes inherited from cherrypi::Behavior | |
const MicroAction | pass = MicroAction() |
Convenience: A MicroAction reflecting a decision to ignore this unit and let another Behavior control it. More... | |
const MicroAction | doNothing = doAction(nullptr) |
Convenience: A MicroAction reflecting a decision to do nothing with this unit and let no other Behavior control it. More... | |
|
inline |
|
overrideprotectedvirtual |
Decide what to do with a unit that has not yet been controlled by a Behavior.
Implements cherrypi::Behavior.
|
protected |