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

Method execute

bwapi/BWScriptEmulator/Kill_Thread.cpp:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6IMPLEMENT(Kill_Thread);
7
8bool Kill_Thread::execute(aithread &thread) const
9{
10 for ( auto i = aiThreadList.begin(); i != aiThreadList.end(); ++i )
11 {
12 if ( i->getFlags() & AI_THREAD_KILLABLE )
13 i->killThread();
14 }
15
16 // Save debug info and return
17 thread.saveDebug(Text::Green, this->getOpcode());
18 return true;
19}

Callers

nothing calls this directly

Calls 6

beginMethod · 0.80
endMethod · 0.80
killThreadMethod · 0.80
saveDebugMethod · 0.80
getOpcodeMethod · 0.80
getFlagsMethod · 0.45

Tested by

no test coverage detected