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

Method execute

bwapi/BWScriptEmulator/Sharedvision.cpp:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7Sharedvision sharedvision_off_impl(AISCRIPT::Enum::SHAREDVISION_OFF);
8
9bool Sharedvision::execute(aithread &thread) const
10{
11 // Parameters
12 BYTE bPlayer;
13 thread.readTuple( std::tie(bPlayer) );
14
15 // Vision/Unvision the target player (note: this is the OPPOSITE behaviour of AIScript)
16 Broodwar->setVision( Broodwar->getPlayer(bPlayer), this->getOpcode() == Enum::SHAREDVISION_ON);
17
18 // Debug and return
19 thread.saveDebug(Text::Green, this->getOpcode(), "%u", bPlayer );
20 return true;
21}

Callers

nothing calls this directly

Calls 5

getOpcodeMethod · 0.80
saveDebugMethod · 0.80
readTupleMethod · 0.45
setVisionMethod · 0.45
getPlayerMethod · 0.45

Tested by

no test coverage detected