![]() |
SC2API
An API for AI for StarCraft II
|
Public Member Functions | |
Unit * | CreateUnit (Tag tag) |
Unit * | GetUnit (Tag tag) const |
Unit * | GetExistingUnit (Tag tag) const |
void | MarkDead (Tag tag) |
void | ForEachExistingUnit (const std::function< void(Unit &unit)> &functor) const |
void | ClearExisting () |
bool | UnitExists (Tag tag) |
const Units & | GetNewUnits () const noexcept |
const Units & | GetUnitsEnteringVision () const noexcept |
const Units & | GetCompletedBuildings () const noexcept |
const UnitsDamaged & | GetDamagedUnits () const noexcept |
const std::unordered_set< const Unit * > & | GetIdledUnits () const noexcept |
void | AddNewUnit (const Unit *u) |
void | AddUnitEnteredVision (const Unit *u) |
void | AddCompletedBuilding (const Unit *u) |
void | AddUnitIdled (const Unit *u) |
void | AddUnitDamaged (const Unit *u, float health, float shield) |