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

Method execute

bwapi/BWScriptEmulator/Upgrade.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6IMPLEMENT(Upgrade);
7
8bool Upgrade::execute(aithread &thread) const
9{
10 // Retrieve parameters
11 BYTE bUpgradeLevel, bPriority;
12 WORD wUpgradeType;
13 thread.readTuple( std::tie(bUpgradeLevel, wUpgradeType, bPriority) );
14
15 //this->pTown->MacroManagerSet(MACRO_UPGRADE, bUpgLevel, wUpgType, bPriority, false);
16
17 // Save debug info and return
18 thread.saveDebug(Text::Red, this->getOpcode(), "%3u %s %3u", bUpgradeLevel, UpgradeType(wUpgradeType).c_str(), bPriority);
19 return true;
20}

Callers

nothing calls this directly

Calls 5

saveDebugMethod · 0.80
getOpcodeMethod · 0.80
c_strMethod · 0.80
UpgradeTypeClass · 0.50
readTupleMethod · 0.45

Tested by

no test coverage detected