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

Method showDebug

bwapi/BWScriptEmulator/ScriptThread.cpp:207–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void aithread::showDebug(int x, int y)
208{
209 int _y = y;
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
232void aithread::saveDebug(const char prefix, int iOpcode, const char *pszFormat, ...)
233{

Callers 1

UpdateScriptsFunction · 0.80

Calls 1

setTextSizeMethod · 0.45

Tested by

no test coverage detected