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

The last module run in each frame. More...

#include <upctocommand.h>

Inherits cherrypi::Module.

Public Member Functions

 UPCToCommandModule ()
 
virtual ~UPCToCommandModule ()=default
 
virtual void step (State *s)
 
- 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

The last module run in each frame.

Consumes all remaining unambiguous (sharp) UPCs and issues BWAPI commands via TorchCraft.

Constructor & Destructor Documentation

cherrypi::UPCToCommandModule::UPCToCommandModule ( )
inline
virtual cherrypi::UPCToCommandModule::~UPCToCommandModule ( )
virtualdefault

Member Function Documentation

void cherrypi::UPCToCommandModule::step ( State s)
virtual

Reimplemented from cherrypi::Module.


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