MCPcopy Create free account
hub / github.com/demoth/jake2 / write

Method write

game/src/main/java/jake2/game/gclient_t.java:328–437  ·  view source on GitHub ↗

Writes a game_client_t (a player) to a file.

(QuakeFile f)

Source from the content-addressed store, hash-verified

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

Callers 6

WriteGameMethod · 0.45
WriteLevelMethod · 0.45
CLClass · 0.45
ParseDownloadMethod · 0.45
ConsoleClass · 0.45
CopyFileMethod · 0.45

Calls 6

getPlayerStateMethod · 0.95
getPingMethod · 0.95
writeItemMethod · 0.95
writeIntMethod · 0.80
writeFloatMethod · 0.80
writeEdictRefMethod · 0.80

Tested by

no test coverage detected