TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cherrypi::BehaviorSeries Class Reference

#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...
 

Constructor & Destructor Documentation

cherrypi::BehaviorSeries::BehaviorSeries ( BehaviorList  behaviors)
inline

Member Function Documentation

MicroAction cherrypi::BehaviorSeries::onPerform ( Agent )
overrideprotectedvirtual

Decide what to do with a unit that has not yet been controlled by a Behavior.

Implements cherrypi::Behavior.

Member Data Documentation

const BehaviorList cherrypi::BehaviorSeries::behaviors_ = {}
protected

The documentation for this class was generated from the following files: