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

Unit micro-management for combats. More...

#include <combatmicro.h>

Inherits cherrypi::Module.

Classes

struct  HealthInfo
 

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

void consumeUPC (State *s, int upcId, std::shared_ptr< UPCTuple > upc)
 
void updateTasks (State *s)
 
void updateTarget (std::shared_ptr< Task > task, std::unordered_map< Unit *, HealthInfo > *targetHealth)
 
- 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< Modulemake (std::string const &typeName)
 
static std::string makeName (std::type_index const &type)
 
- Protected Attributes inherited from cherrypi::Module
BasePlayerplayer_
 
std::string name_
 

Detailed Description

Unit micro-management for combats.

Used only for unit tests.

Member Function Documentation

void cherrypi::CombatMicroModule::consumeUPC ( State s,
int  upcId,
std::shared_ptr< UPCTuple upc 
)
protected
void cherrypi::CombatMicroModule::step ( State s)
overridevirtual

Reimplemented from cherrypi::Module.

void cherrypi::CombatMicroModule::updateTarget ( std::shared_ptr< Task task,
std::unordered_map< Unit *, HealthInfo > *  targetHealth 
)
protected
void cherrypi::CombatMicroModule::updateTasks ( State s)
protected

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