Writes a game_client_t (a player) to a file.
(QuakeFile f)
| 326 | |
| 327 | /** Writes a game_client_t (a player) to a file. */ |
| 328 | public void write(QuakeFile f) throws IOException |
| 329 | { |
| 330 | getPlayerState().write(f); |
| 331 | |
| 332 | f.writeInt(getPing()); |
| 333 | |
| 334 | pers.write(f); |
| 335 | resp.write(f); |
| 336 | |
| 337 | old_pmove.write(f); |
| 338 | |
| 339 | f.writeInt(showscores?1:0); |
| 340 | f.writeInt(showinventory?1:0); |
| 341 | f.writeInt(showhelp?1:0); |
| 342 | f.writeInt(showhelpicon?1:0); |
| 343 | f.writeInt(ammo_index); |
| 344 | |
| 345 | f.writeInt(buttons); |
| 346 | f.writeInt(oldbuttons); |
| 347 | f.writeInt(latched_buttons); |
| 348 | |
| 349 | f.writeInt(weapon_thunk?1:0); |
| 350 | GameItems.writeItem(f, newweapon); |
| 351 | |
| 352 | |
| 353 | f.writeInt(damage_armor); |
| 354 | f.writeInt(damage_parmor); |
| 355 | f.writeInt(damage_blood); |
| 356 | f.writeInt(damage_knockback); |
| 357 | |
| 358 | f.writeFloat(damage_from[0]); |
| 359 | f.writeFloat(damage_from[1]); |
| 360 | f.writeFloat(damage_from[2]); |
| 361 | |
| 362 | f.writeFloat(killer_yaw); |
| 363 | |
| 364 | f.writeInt(weaponstate.intValue); |
| 365 | |
| 366 | f.writeFloat(kick_angles[0]); |
| 367 | f.writeFloat(kick_angles[1]); |
| 368 | f.writeFloat(kick_angles[2]); |
| 369 | |
| 370 | f.writeFloat(kick_origin[0]); |
| 371 | f.writeFloat(kick_origin[1]); |
| 372 | f.writeFloat(kick_origin[2]); |
| 373 | |
| 374 | f.writeFloat(v_dmg_roll); |
| 375 | f.writeFloat(v_dmg_pitch); |
| 376 | f.writeFloat(v_dmg_time); |
| 377 | f.writeFloat(fall_time); |
| 378 | f.writeFloat(fall_value); |
| 379 | f.writeFloat(damage_alpha); |
| 380 | f.writeFloat(bonus_alpha); |
| 381 | |
| 382 | f.writeFloat(damage_blend[0]); |
| 383 | f.writeFloat(damage_blend[1]); |
| 384 | f.writeFloat(damage_blend[2]); |
| 385 |
no test coverage detected