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

Class CL

client/src/main/java/jake2/client/CL.java:62–1606  ·  view source on GitHub ↗

CL

Source from the content-addressed store, hash-verified

60 * CL
61 */
62public final class CL {
63
64 private static int precache_check; // for autodownload of precache items
65
66 private static int precache_spawncount;
67
68 private static int precache_tex;
69
70 private static int precache_model_skin;
71
72 private static byte precache_model[]; // used for skin checking in alias models
73
74 private static final int PLAYER_MULT = 5;
75
76
77 private static void Quit()
78 {
79 Cmd.ExecuteFunction("sv_shutdown", "Server quit ", "false");
80 Cmd.ExecuteFunction("cl_shutdown");
81
82 if (Globals.logfile != null)
83 {
84 try
85 {
86 Globals.logfile.close();
87 }
88 catch (IOException e)
89 {
90 }
91 Globals.logfile= null;
92 }
93
94 System.exit(0);
95 }
96
97 static void SendKeyEvents() {
98 ClientGlobals.re.getKeyboardHandler().Update();
99
100 // grab frame time
101 Globals.sys_frame_time = Timer.Milliseconds();
102 }
103
104 public static class cheatvar_t {
105 String name;
106
107 String value;
108
109 cvar_t var;
110 }
111
112 private static String cheatvarsinfo[][] = { { "timescale", "1" },
113 { "timedemo", "0" }, { "r_drawworld", "1" },
114 { "cl_testlights", "0" }, { "r_fullbright", "0" },
115 { "r_drawflat", "0" }, { "paused", "0" }, { "fixedtime", "0" },
116 { "sw_draworder", "0" }, { "gl_lightmap", "0" },
117 { "gl_saturatelighting", "0" }, { null, null } };
118
119 private static cheatvar_t cheatvars[];

Callers

nothing calls this directly

Calls 15

PrintfMethod · 0.95
swapIntMethod · 0.95
getWriteDirMethod · 0.95
CreatePathMethod · 0.95
WriteDeltaEntityMethod · 0.95
getInstanceMethod · 0.95
DisconnectMethod · 0.95
QuitMethod · 0.95
ExecuteFunctionMethod · 0.95
ConfigMethod · 0.95
ErrorMethod · 0.95

Tested by

no test coverage detected