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

Method execute

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

Source from the content-addressed store, hash-verified

6IMPLEMENT(Expand);
7
8bool Expand::execute(aithread &thread) const
9{
10 // Retrieve parameters
11 BYTE bExpansionNumber, wBlockOffset;
12 thread.readTuple( std::tie(bExpansionNumber, wBlockOffset) );
13
14 // if ( GetExpansionCount() < bExpandMax )
15 // this->Expand(wExpandBlock, bExpandMax);
16
17 // Save debug info and return
18 thread.saveDebug(Text::Red, this->getOpcode(), "%u p_%04X", bExpansionNumber, wBlockOffset);
19 return true;
20}

Callers

nothing calls this directly

Calls 3

saveDebugMethod · 0.80
getOpcodeMethod · 0.80
readTupleMethod · 0.45

Tested by

no test coverage detected