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

Method execute

bwapi/BWScriptEmulator/Creep.cpp:10–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8IMPLEMENT(Creep);
9
10bool Creep::execute(aithread &thread) const
11{
12 BYTE bCreepFlag;
13 thread.readTuple( std::tie(bCreepFlag) );
14
15 // Set/clear the creep flag
16 if ( bCreepFlag == 4 ) // far
17 MainController.setFlags(CONTROLLER_SPREAD_CREEP);
18 else // near
19 MainController.clearFlags(CONTROLLER_SPREAD_CREEP);
20
21 // Save debug info and return
22 thread.saveDebug(Text::Green, this->getOpcode(), "%u", bCreepFlag);
23 return true;
24}

Callers

nothing calls this directly

Calls 5

saveDebugMethod · 0.80
getOpcodeMethod · 0.80
readTupleMethod · 0.45
setFlagsMethod · 0.45
clearFlagsMethod · 0.45

Tested by

no test coverage detected