MCPcopy Create free account
hub / github.com/diasurgical/devilution / PrintDebugPlayer

Function PrintDebugPlayer

Source/debug.cpp:143–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void PrintDebugPlayer(BOOL bNextPlayer)
144{
145 char dstr[128];
146
147 if (bNextPlayer)
148 dbgplr = ((BYTE)dbgplr + 1) & 3;
149
150 sprintf(dstr, "Plr %i : Active = %i", dbgplr, plr[dbgplr].plractive);
151 NetSendCmdString(1 << myplr, dstr);
152
153 if (plr[dbgplr].plractive) {
154 sprintf(dstr, " Plr %i is %s", dbgplr, plr[dbgplr]._pName);
155 NetSendCmdString(1 << myplr, dstr);
156 sprintf(dstr, " Lvl = %i : Change = %i", plr[dbgplr].plrlevel, plr[dbgplr]._pLvlChanging);
157 NetSendCmdString(1 << myplr, dstr);
158 sprintf(dstr, " x = %i, y = %i : tx = %i, ty = %i", plr[dbgplr].WorldX, plr[dbgplr].WorldY, plr[dbgplr]._ptargx, plr[dbgplr]._ptargy);
159 NetSendCmdString(1 << myplr, dstr);
160 sprintf(dstr, " mode = %i : daction = %i : walk[0] = %i", plr[dbgplr]._pmode, plr[dbgplr].destAction, plr[dbgplr].walkpath[0]);
161 NetSendCmdString(1 << myplr, dstr);
162 sprintf(dstr, " inv = %i : hp = %i", plr[dbgplr]._pInvincible, plr[dbgplr]._pHitPoints);
163 NetSendCmdString(1 << myplr, dstr);
164 }
165}
166
167void PrintDebugQuest()
168{

Callers 1

PressCharFunction · 0.85

Calls 1

NetSendCmdStringFunction · 0.85

Tested by

no test coverage detected