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

Method execute

bwapi/BWScriptEmulator/Wait_Train.cpp:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6IMPLEMENT(Wait_Train);
7
8bool Wait_Train::execute(aithread &thread) const
9{
10 // Parameters
11 BYTE bCount;
12 WORD wUnitType;
13 thread.readTuple( std::tie(bCount, wUnitType) );
14
15 // Debug
16 thread.saveDebug(Text::Green, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wUnitType) );
17
18 // Perform actions
19 if ( GetStandardUnitCount(wUnitType) < bCount )
20 return thread.retry();
21 return thread.noretry();
22}

Callers

nothing calls this directly

Calls 7

getUnitNameFunction · 0.85
GetStandardUnitCountFunction · 0.85
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
retryMethod · 0.80
noretryMethod · 0.80
readTupleMethod · 0.45

Tested by

no test coverage detected