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

Method execute

bwapi/BWScriptEmulator/Attack_Prepare.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9Attack_Prepare quick_attack_impl(Enum::QUICK_ATTACK);
10
11bool Attack_Prepare::execute(aithread &thread) const
12{
13 // Execute
14 // AI_AttackManager(thisLocation, 1, 0);
15
16 if ( this->getOpcode() == Enum::QUICK_ATTACK )
17 MainController.dwAttackTime = Broodwar->elapsedTime() - 175;
18
19 // Save debug info and return
20 thread.saveDebug(Text::Red, this->getOpcode());
21 return true;
22}

Callers

nothing calls this directly

Calls 3

getOpcodeMethod · 0.80
saveDebugMethod · 0.80
elapsedTimeMethod · 0.45

Tested by

no test coverage detected