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

Method execute

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

Source from the content-addressed store, hash-verified

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