| 177 | } |
| 178 | |
| 179 | void 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 | |
| 205 | void GetDebugMonster() |
| 206 | { |
no test coverage detected