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

Method execute

bwapi/BWScriptEmulator/Farms_Timing.cpp:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7Farms_Timing farms_timing_impl(AISCRIPT::Enum::FARMS_TIMING);
8
9bool Farms_Timing::execute(aithread &thread) const
10{
11 if ( this->getOpcode() == AISCRIPT::Enum::FARMS_NOTIMING ) // off
12 MainController.setFlags(CONTROLLER_FARMS_TIMING_OFF);
13 else // on
14 MainController.clearFlags(CONTROLLER_FARMS_TIMING_OFF);
15
16 // Debug and return
17 thread.saveDebug(Text::Green, this->getOpcode());
18 return true;
19}

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected