BWAPI
|
#include <DropGoal.h>
Public Member Functions | |
DropGoal (BWTA::BaseLocation *b, const std::map< BWAPI::UnitType, int > &nU, int priority=96) | |
DropGoal (BWAPI::Position p, const std::map< BWAPI::UnitType, int > &nU, int priority=96) | |
virtual | ~DropGoal () |
void | achieve () |
virtual void | onOffer (std::set< Unit * > objects) |
DropGoal::DropGoal | ( | BWTA::BaseLocation * | b, |
const std::map< BWAPI::UnitType, int > & | nU, | ||
int | priority = 96 |
||
) |
TODO Refactor this: instead of not using the units group, do a BasicUnitsGroup DropUnitsGroup : BasicUnitsGroup FightUnitsGroup : BasicUnitsGroup and have the a BasicUnitsGroup* in Goal to runtime dispatch the good update() instead of hacking in here (nonFlyers / switchMode(MODE_SCOUT)...)
DropGoal::DropGoal | ( | BWAPI::Position | p, |
const std::map< BWAPI::UnitType, int > & | nU, | ||
int | priority = 96 |
||
) |
DropGoal::~DropGoal | ( | ) | [virtual] |
void DropGoal::achieve | ( | ) | [virtual] |
we go there
gogogo
Drop elsewhere
dropship
reaver
Reimplemented from Goal.
void DropGoal::onOffer | ( | std::set< Unit * > | objects | ) | [virtual] |