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

Method execute

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

Source from the content-addressed store, hash-verified

6IMPLEMENT(Notowns_Jump);
7
8bool Notowns_Jump::execute(aithread &thread) const
9{
10 // Retrieve parameters
11 WORD wUnitType, wOffset;
12 thread.readTuple( std::tie(wUnitType, wOffset) );
13
14 if ( Broodwar->self()->allUnitCount(wUnitType) == 0 )
15 thread.setScriptOffset( wOffset );
16
17 // Save debug info and return
18 thread.saveDebug(Text::Green, this->getOpcode(), "%s p_%04X", AISCRIPT::getUnitName(wUnitType), wOffset);
19 return true;
20}

Callers

nothing calls this directly

Calls 7

getUnitNameFunction · 0.85
allUnitCountMethod · 0.80
setScriptOffsetMethod · 0.80
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
readTupleMethod · 0.45
selfMethod · 0.45

Tested by

no test coverage detected