MCPcopy Create free account
hub / github.com/bwapi/bwapi / DefenseUse

Method DefenseUse

bwapi/BWScriptEmulator/Controller.cpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 this->defensebuild[type][u + c] = (int)uType + 1;
61}
62void AIController::DefenseUse(int type, int count, BWAPI::UnitType uType)
63{
64 if ( type < 0 || type > 3 || count < 0 || count > countof(this->defenseuse[0]) || uType >= BWAPI::UnitTypes::None )
65 return;
66 int u = 0;
67 while ( u < countof(this->defenseuse[0]) && this->defenseuse[type][u] )
68 ++u;
69 for ( int c = 0; c < count && u + c < countof(this->defenseuse[0]); ++c )
70 this->defenseuse[type][u + c] = (int)uType + 1;
71}
72
73WORD AIController::getFlags() const
74{

Callers 1

executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected