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

Method execute

bwapi/BWScriptEmulator/Build.cpp:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6IMPLEMENT(Build);
7
8bool Build::execute(aithread &thread) const
9{
10 // Retrieve parameters
11 BYTE bBuildCount, bPriority;
12 WORD wUnitType;
13 thread.readTuple( std::tie(bBuildCount, wUnitType, bPriority) );
14
15 //if ( bBuildCount <= 30 && wBuildType < UnitTypes::None )
16 // this->pTown->MacroManagerSet(MACRO_BUILD, bBuildCount, wBuildType, bPriority, false);
17
18 // Save debug info and return
19 thread.saveDebug(Text::Red, this->getOpcode(), "%u %s %u", bBuildCount, AISCRIPT::getUnitName(wUnitType), bPriority);
20 return true;
21}

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected