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

Function UpdateScripts

bwapi/BWScriptEmulator/ScriptThread.cpp:34–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33int threadCount = 0;
34void UpdateScripts()
35{
36 std::list<aithread>::iterator i = aiThreadList.begin();
37 while ( i != aiThreadList.end() )
38 {
39 i->showDebug(0, 0);
40 if ( !i->sleep() ) // wait/sleep
41 {
42 if ( i->getFlags() & AI_THREAD_WANT_KILLED )
43 {
44 i = aiThreadList.erase(i);
45 --threadCount;
46 continue;
47 }
48
49 // execute thread
50 i->execute();
51 }
52 ++i;
53 }
54}
55
56bool LoadAIBinary(const char *pszFileName)
57{

Callers 1

onFrameMethod · 0.85

Calls 6

beginMethod · 0.80
endMethod · 0.80
showDebugMethod · 0.80
sleepMethod · 0.80
getFlagsMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected