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

Function PrintDebugMonster

Source/debug.cpp:179–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void PrintDebugMonster(int m)
180{
181 BOOL bActive;
182 int i;
183 char dstr[128];
184
185 sprintf(dstr, "Monster %i = %s", m, monster[m].mName);
186 NetSendCmdString(1 << myplr, dstr);
187 sprintf(dstr, "X = %i, Y = %i", monster[m]._mx, monster[m]._my);
188 NetSendCmdString(1 << myplr, dstr);
189 sprintf(dstr, "Enemy = %i, HP = %i", monster[m]._menemy, monster[m]._mhitpoints);
190 NetSendCmdString(1 << myplr, dstr);
191 sprintf(dstr, "Mode = %i, Var1 = %i", monster[m]._mmode, monster[m]._mVar1);
192 NetSendCmdString(1 << myplr, dstr);
193
194 bActive = FALSE;
195
196 for (i = 0; i < nummonsters; i++) {
197 if (monstactive[i] == m)
198 bActive = TRUE;
199 }
200
201 sprintf(dstr, "Active List = %i, Squelch = %i", bActive, monster[m]._msquelch);
202 NetSendCmdString(1 << myplr, dstr);
203}
204
205void GetDebugMonster()
206{

Callers 1

GetDebugMonsterFunction · 0.85

Calls 1

NetSendCmdStringFunction · 0.85

Tested by

no test coverage detected