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

Method execute

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

Source from the content-addressed store, hash-verified

6IMPLEMENT(Multirun);
7
8bool Multirun::execute(aithread &thread) const
9{
10 // Retrieve parameters
11 WORD wOffset;
12 thread.readTuple( std::tie(wOffset) );
13
14 // Create new script thread
15 AICreateThread(wOffset, thread.getLocation().center(), thread.town());
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 7

AICreateThreadFunction · 0.85
centerMethod · 0.80
getLocationMethod · 0.80
townMethod · 0.80
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
readTupleMethod · 0.45

Tested by

no test coverage detected