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

Method execute

bwapi/BWScriptEmulator/Guard_Resources.cpp:10–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8IMPLEMENT(Guard_Resources);
9
10bool Guard_Resources::execute(aithread &thread) const
11{
12 // Retrieve parameters
13 WORD wUnitType;
14 thread.readTuple( std::tie(wUnitType) );
15
16 // Execution
17 // GuardResources(wType);
18
19 // Save debug info and return
20 thread.saveDebug(Text::Red, this->getOpcode(), "%s", AISCRIPT::getUnitName(wUnitType));
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