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

Method execute

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

Source from the content-addressed store, hash-verified

6IMPLEMENT(Call);
7
8bool Call::execute(aithread &thread) const
9{
10 // Retrieve parameters
11 WORD wOffset;
12 thread.readTuple( std::tie(wOffset) );
13
14 // Call the offset
15 thread.call( wOffset );
16
17 // Save debug info and return
18 thread.saveDebug(Text::Green, this->getOpcode(), "p_%04X", wOffset);
19 return true;
20}

Callers

nothing calls this directly

Calls 4

callMethod · 0.80
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
readTupleMethod · 0.45

Tested by

no test coverage detected