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

Method execute

bwapi/BWScriptEmulator/Set_Attacks.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6IMPLEMENT(Set_Attacks);
7
8bool Set_Attacks::execute(aithread &thread) const
9{
10 // Parameters
11 BYTE bAttacks;
12 thread.readTuple( std::tie(bAttacks) );
13
14 // Perform actions
15 MainController.bAttacks = bAttacks;
16
17 // Debug
18 thread.saveDebug(Text::Green, this->getOpcode(), "%u", bAttacks );
19 return true;
20}

Callers

nothing calls this directly

Calls 3

saveDebugMethod · 0.80
getOpcodeMethod · 0.80
readTupleMethod · 0.45

Tested by

no test coverage detected