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

Method execute

bwapi/BWScriptEmulator/Place_Guard.cpp:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8IMPLEMENT(Place_Guard);
9
10bool Place_Guard::execute(aithread &thread) const
11{
12 // Retrieve parameters
13 WORD wUnitType;
14 BYTE bGuardType;
15 thread.readTuple( std::tie(wUnitType, bGuardType) );
16
17 // Execution
18 // this->pTown->PlaceGuard(bGuardType, wUnitType);
19
20 // Save debug info and return
21 thread.saveDebug(Text::Red, this->getOpcode(), "%s %u", AISCRIPT::getUnitName(wUnitType), bGuardType);
22 return true;
23}

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