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

Method execute

bwapi/BWScriptEmulator/Panic.cpp:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

saveDebugMethod · 0.80
getOpcodeMethod · 0.80
readTupleMethod · 0.45

Tested by

no test coverage detected