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

Method execute

bwapi/BWScriptEmulator/DefenseUse.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9DefenseUse defenseuse_aa_impl(AISCRIPT::Enum::DEFENSEUSE_AA);
10
11bool DefenseUse::execute(aithread &thread) const
12{
13 // Parameters
14 BYTE bCount;
15 WORD wUnitType;
16 thread.readTuple( std::tie(bCount, wUnitType) );
17
18 MainController.DefenseUse(this->getOpcode() - AISCRIPT::Enum::DEFENSEUSE_GG, bCount, wUnitType);
19
20 // Debug and return
21 thread.saveDebug(Text::Green, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wUnitType) );
22 return true;
23}

Callers

nothing calls this directly

Calls 5

getUnitNameFunction · 0.85
getOpcodeMethod · 0.80
saveDebugMethod · 0.80
readTupleMethod · 0.45
DefenseUseMethod · 0.45

Tested by

no test coverage detected