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

Method execute

bwapi/BWScriptEmulator/Wait_Upgrades.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7IMPLEMENT(Wait_Upgrades);
8
9bool Wait_Upgrades::execute(aithread &thread) const
10{
11 // Debug
12 thread.saveDebug(Text::Green, this->getOpcode());
13
14 // If upgrades are finished, then move on to next opcode
15 if ( MainController.getFlags() & CONTROLLER_UPGRADES_FINISHED )
16 return thread.noretry();
17
18 // Otherwise retry this opcode
19 return thread.retry();
20}

Callers

nothing calls this directly

Calls 5

saveDebugMethod · 0.80
getOpcodeMethod · 0.80
noretryMethod · 0.80
retryMethod · 0.80
getFlagsMethod · 0.45

Tested by

no test coverage detected