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

Method execute

bwapi/BWScriptEmulator/Move_DT.cpp:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7IMPLEMENT(Move_DT);
8
9bool Move_DT::execute(aithread &thread) const
10{
11 // Execute
12 Unitset myUnits( Broodwar->self()->getUnits() );
13
14 // NOTE: Not actual behaviour. Needs special AI Control & Captain assignment.
15 // However this command is not important and serves little purpose.
16 myUnits.erase_if(!((GetType == UnitTypes::Protoss_Dark_Templar || GetType == UnitTypes::Hero_Dark_Templar) && Exists && IsCompleted));
17 myUnits.move( thread.getLocation().center() );
18
19 // Debug and return
20 thread.saveDebug(Text::Yellow, this->getOpcode());
21 return true;
22}

Callers

nothing calls this directly

Calls 8

erase_ifMethod · 0.80
centerMethod · 0.80
getLocationMethod · 0.80
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
getUnitsMethod · 0.45
selfMethod · 0.45
moveMethod · 0.45

Tested by

no test coverage detected