TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
A combat module that controls squads of units. More...
#include <combat.h>
Inherits cherrypi::Module.
Public Member Functions | |
virtual void | step (State *s) 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) |
Protected Member Functions | |
bool | formNewSquad (State *s, std::shared_ptr< UPCTuple > sourceUpc, int sourceUpcId) |
void | updateTask (State *s, std::shared_ptr< Task > task) |
Protected Member Functions inherited from cherrypi::Module | |
Module () | |
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< Module > | make (std::string const &typeName) |
static std::string | makeName (std::type_index const &type) |
Protected Attributes inherited from cherrypi::Module | |
BasePlayer * | player_ |
std::string | name_ |
A combat module that controls squads of units.
Used only for unit tests.
|
protected |
|
overridevirtual |
Reimplemented from cherrypi::Module.