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

Method execute

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

Source from the content-addressed store, hash-verified

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

Callers 4

UpdateScriptsFunction · 0.45
readOpcodeMethod · 0.45
issueCommandMethod · 0.45

Calls 5

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

Tested by

no test coverage detected