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

Method execute

bwapi/BWScriptEmulator/Give_Money.cpp:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6IMPLEMENT(Give_Money);
7
8bool Give_Money::execute(aithread &thread) const
9{
10 // Minerals
11 if ( Broodwar->self()->minerals() < 500 )
12 for ( int i = 0; i < 2000; i += 500 )
13 Broodwar->sendText("whats mine is mine");
14
15 // Gas
16 if ( Broodwar->self()->gas() < 500 )
17 for ( int i = 0; i < 2000; i += 500 )
18 Broodwar->sendText("breathe deep");
19
20 // Debug
21 thread.saveDebug(Text::Green, this->getOpcode());
22 return true;
23}

Callers

nothing calls this directly

Calls 6

mineralsMethod · 0.80
sendTextMethod · 0.80
gasMethod · 0.80
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
selfMethod · 0.45

Tested by

no test coverage detected