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

Function each

bwapi/BWScriptEmulator/ScriptThread.cpp:212–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 int _x = x + this->threadId*200 + 4;
211 bw->setTextSize(Text::Size::Small);
212 for each ( char *s in this->debugQueue )
213 {
214 char n[512];
215 strcpy_s(n, 512, s);
216
217 char *mid = strchr(n, ' ');
218 if ( mid )
219 {
220 *mid = '\0';
221 ++mid;
222 }
223
224 bw->drawTextScreen(_x, _y, "%s", n);
225 if ( mid )
226 bw->drawTextScreen(_x+100, _y, "%s", mid);
227 _y += 9;
228 }
229 bw->setTextSize();
230}
231

Callers

nothing calls this directly

Calls 1

drawTextScreenMethod · 0.80

Tested by

no test coverage detected