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

Method execute

bwapi/BWScriptEmulator/Wait_Build.cpp:9–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7Wait_Build wait_buildstart_impl(AISCRIPT::Enum::WAIT_BUILDSTART);
8
9bool Wait_Build::execute(aithread &thread) const
10{
11 // Parameters
12 BYTE bCount;
13 WORD wType;
14 thread.readTuple( std::tie(bCount, wType) );
15
16 // debug
17 thread.saveDebug(Text::Red, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wType) );
18
19 // stuff
20 if ( wType == Broodwar->self()->getRace().getWorker() )
21 {
22 // TOWN STUFF
23 }
24
25 //if ( // AI_BuildSomething >= bCount )
26 //return thread.noretry();
27
28 // Debug and return
29 return thread.retry();
30}

Callers

nothing calls this directly

Calls 8

getUnitNameFunction · 0.85
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
getWorkerMethod · 0.80
retryMethod · 0.80
readTupleMethod · 0.45
getRaceMethod · 0.45
selfMethod · 0.45

Tested by

no test coverage detected