#include <scouting.h>
Inherits cherrypi::Module.
|
Unit * | findUnit (State *state, std::unordered_map< Unit *, float > const &, Position const &pos) |
|
bool | postTask (State *state, UpcId baseUpcId, Unit *unit, Position loc, ScoutingGoal goal) |
|
bool | postMoveUPC (State *state, UpcId baseUpcId, Unit *unit, const Position &loc, bool useSafeMove=true) |
|
Position | nextScoutingLocation (State *state, Unit *unit, std::unordered_map< Position, int > const &) |
|
void | updateLocations (State *state, std::unordered_map< Position, int > &, std::vector< Position > const &) |
|
| 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) |
|
virtual cherrypi::ScoutingModule::~ScoutingModule |
( |
| ) |
|
|
virtualdefault |
Unit * cherrypi::ScoutingModule::findUnit |
( |
State * |
state, |
|
|
std::unordered_map< Unit *, float > const & |
candidates, |
|
|
Position const & |
pos |
|
) |
| |
|
protected |
Position cherrypi::ScoutingModule::nextScoutingLocation |
( |
State * |
state, |
|
|
Unit * |
unit, |
|
|
std::unordered_map< Position, int > const & |
locations |
|
) |
| |
|
protected |
bool cherrypi::ScoutingModule::postMoveUPC |
( |
State * |
state, |
|
|
UpcId |
baseUpcId, |
|
|
Unit * |
unit, |
|
|
const Position & |
loc, |
|
|
bool |
useSafeMove = true |
|
) |
| |
|
protected |
void cherrypi::ScoutingModule::setScoutingGoal |
( |
ScoutingGoal |
goal | ) |
|
void cherrypi::ScoutingModule::step |
( |
State * |
s | ) |
|
|
overridevirtual |
void cherrypi::ScoutingModule::updateLocations |
( |
State * |
state, |
|
|
std::unordered_map< Position, int > & |
locations, |
|
|
std::vector< Position > const & |
candidates |
|
) |
| |
|
protected |
std::unordered_map<Position, int> cherrypi::ScoutingModule::startingLocations_ |
|
protected |
The documentation for this class was generated from the following files: