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

Loads and uses a build order from the blackboard. More...

#include <genericautobuild.h>

Inherits cherrypi::AutoBuildModule.

Public Member Functions

virtual ~GenericAutoBuildModule ()=default
 
virtual std::shared_ptr< AutoBuildTaskcreateTask (State *state, int srcUpcId, std::shared_ptr< UPCTuple > srcUpc) override
 
bool switchToBuildOrder (State *state, std::string name)
 
- Public Member Functions inherited from cherrypi::AutoBuildModule
virtual ~AutoBuildModule ()=default
 
virtual void checkForNewUPCs (State *state)
 
virtual void step (State *state) override
 
- Public Member Functions inherited from cherrypi::Module
virtual ~Module ()=default
 
virtual void setPlayer (BasePlayer *p)
 
void setName (std::string name)
 
std::string name ()
 
virtual void onGameStart (State *s)
 
virtual void onGameEnd (State *s)
 

Additional Inherited Members

- Static Public Member Functions inherited from cherrypi::Module
template<typename T , typename... Args>
static std::shared_ptr< T > make (Args &&...args)
 
static std::shared_ptr< Modulemake (std::string const &typeName)
 
static std::string makeName (std::type_index const &type)
 
- Protected Member Functions inherited from cherrypi::Module
 Module ()
 
- Protected Attributes inherited from cherrypi::Module
BasePlayerplayer_
 
std::string name_
 

Detailed Description

Loads and uses a build order from the blackboard.

Constructor & Destructor Documentation

virtual cherrypi::GenericAutoBuildModule::~GenericAutoBuildModule ( )
virtualdefault

Member Function Documentation

std::shared_ptr< AutoBuildTask > cherrypi::GenericAutoBuildModule::createTask ( State state,
int  srcUpcId,
std::shared_ptr< UPCTuple srcUpc 
)
overridevirtual

Reimplemented from cherrypi::AutoBuildModule.

bool cherrypi::GenericAutoBuildModule::switchToBuildOrder ( State state,
std::string  name 
)

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