Inherits cherrypi::MasterHarassTask.
|
| HarassTask (UpcId upcId, Position nmyLocation, Unit *u, Module *owner) |
|
void | postCommand (State *state, HarassModule *module) override |
|
void | update (State *state) override |
|
bool | attacking () const |
|
bool | moving () const |
|
bool | fleeing () const |
|
bool | building () const |
|
Unit * | targetUnit () const |
|
Position const & | targetPos () const |
|
void | attack (State *state, Unit *target) |
|
void | move (State *state, Position tgtPos) |
|
bool | shouldMove (State *state) |
|
void | flee (State *state, const Position &tgtPos) |
|
void | build (State *state, BuildType const *buildtype, Unit *gas) |
|
virtual const char * | getName () const override |
| A name for this task, for debugging purposes. More...
|
|
| MasterHarassTask (UpcId upcId, Position nmyLocation, Unit *u) |
|
Position const & | location () const |
|
Unit * | unitp () const |
|
Position | pos () const |
|
| Task (UpcId upcId, std::unordered_set< Unit * > units={}) |
|
virtual | ~Task () |
|
virtual void | cancel (State *) |
|
TaskStatus | status () const |
|
void | setStatus (TaskStatus status) |
|
bool | finished () const |
|
UpcId | upcId () const |
| UPC id in Blackboard that caused this Task to be spawned. More...
|
|
std::unordered_set< Unit * > const & | units () const |
| A set of units occupied performing this task. More...
|
|
void | removeUnit (Unit *unit) |
|
virtual std::unordered_set< Unit * > const & | proxiedUnits () const |
| A set of units occupied performing this task. More...
|
|
void cherrypi::HarassTask::attack |
( |
State * |
state, |
|
|
Unit * |
target |
|
) |
| |
|
inline |
bool cherrypi::HarassTask::attacking |
( |
| ) |
const |
|
inline |
void cherrypi::HarassTask::build |
( |
State * |
state, |
|
|
BuildType const * |
buildtype, |
|
|
Unit * |
gas |
|
) |
| |
|
inline |
bool cherrypi::HarassTask::building |
( |
| ) |
const |
|
inline |
void cherrypi::HarassTask::checkAttack |
( |
State * |
state | ) |
|
|
inlineprotected |
void cherrypi::HarassTask::checkBuild |
( |
State * |
state | ) |
|
|
inlineprotected |
void cherrypi::HarassTask::checkFlee |
( |
State * |
state | ) |
|
|
inlineprotected |
void cherrypi::HarassTask::flee |
( |
State * |
state, |
|
|
const Position & |
tgtPos |
|
) |
| |
|
inline |
bool cherrypi::HarassTask::fleeing |
( |
| ) |
const |
|
inline |
virtual const char* cherrypi::HarassTask::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
void cherrypi::HarassTask::initiateAction |
( |
State * |
state | ) |
|
|
inlineprotected |
void cherrypi::HarassTask::move |
( |
State * |
state, |
|
|
Position |
tgtPos |
|
) |
| |
|
inline |
bool cherrypi::HarassTask::moving |
( |
| ) |
const |
|
inline |
bool cherrypi::HarassTask::shouldMove |
( |
State * |
state | ) |
|
|
inline |
Position const& cherrypi::HarassTask::targetPos |
( |
| ) |
const |
|
inline |
Unit* cherrypi::HarassTask::targetUnit |
( |
| ) |
const |
|
inline |
void cherrypi::HarassTask::update |
( |
State * |
state | ) |
|
|
inlineoverridevirtual |
bool cherrypi::HarassTask::attacking_ = false |
|
protected |
bool cherrypi::HarassTask::building_ = false |
|
protected |
bool cherrypi::HarassTask::fleeing_ = false |
|
protected |
Module* cherrypi::HarassTask::owner_ |
|
protected |
int cherrypi::HarassTask::shouldMove_ = -1 |
|
protected |
Unit* cherrypi::HarassTask::targetUnit_ = nullptr |
|
protected |
The documentation for this class was generated from the following file: