BWAPI
|
#include <Micro.h>
Public Member Functions | |
void | update () |
void | onUnitCreate (BWAPI::Unit *unit) |
void | onUnitShow (BWAPI::Unit *unit) |
void | onUnitDestroy (BWAPI::Unit *unit) |
void | onUnitRenegade (BWAPI::Unit *unit) |
void | onNukeDetect (BWAPI::Position target) |
BWAPI::Position | getDefensePosition () const |
Public Attributes | |
GoalManager * | goalManager |
std::set< BWTA::Chokepoint * > | ourChokes |
BWTA::Chokepoint * | frontChoke |
std::set< BWTA::BaseLocation * > | needDefense |
int | drops |
Friends | |
class | CSingleton< Micro > |
BWAPI::Position Micro::getDefensePosition | ( | ) | const |
void Micro::onNukeDetect | ( | BWAPI::Position | target | ) |
void Micro::onUnitCreate | ( | BWAPI::Unit * | unit | ) |
void Micro::onUnitDestroy | ( | BWAPI::Unit * | unit | ) |
void Micro::onUnitRenegade | ( | BWAPI::Unit * | unit | ) |
void Micro::onUnitShow | ( | BWAPI::Unit * | unit | ) |
void Micro::update | ( | ) |
Launch the first push as soon as we have 2 dragoons and we know where the enemy is
Launch the first drop as soon as we have 1 shuttle and 1 reaver
See if we have to defend somewhere
Look if we can push (again)
friend class CSingleton< Micro > [friend] |
int Micro::drops |
BWTA::Chokepoint* Micro::frontChoke |
std::set<BWTA::BaseLocation*> Micro::needDefense |
std::set<BWTA::Chokepoint*> Micro::ourChokes |