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

Method execute

bwapi/BWScriptEmulator/Define_Max.cpp:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7IMPLEMENT(Define_Max);
8
9bool Define_Max::execute(aithread &thread) const
10{
11 // Retrieve parameters
12 BYTE bCount;
13 WORD wType;
14 thread.readTuple( std::tie(bCount, wType) );
15
16 if ( wType < UnitTypes::None )
17 MainController.bDefineMax[wType] = bCount;
18
19 // Save debug info and return
20 thread.saveDebug(Text::Green, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wType) );
21 return true;
22}

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