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

Method execute

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

Source from the content-addressed store, hash-verified

7Default_Build defaultbuild_off_impl(AISCRIPT::Enum::DEFAULTBUILD_OFF);
8
9bool Default_Build::execute(aithread &thread) const
10{
11 if ( this->getOpcode() == AISCRIPT::Enum::DEFAULTBUILD_OFF ) // off
12 MainController.setFlags(CONTROLLER_DEFAULT_BUILD_OFF);
13 else // on
14 MainController.clearFlags(CONTROLLER_DEFAULT_BUILD_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