UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
sv_clientstub.cpp
Go to the documentation of this file.
1 
8 /*
9 Copyright (C) 1997-2001 Id Software, Inc.
10 
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation; either version 2
14 of the License, or (at your option) any later version.
15 
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 
20 See the GNU General Public License for more details.
21 
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 
26 */
27 
28 #ifdef DEDICATED_ONLY
29 
30 #include "../common/common.h"
31 #include "../ports/system.h"
32 
33 void CL_Init (void)
34 {
35 }
36 
37 void CL_InitAfter (void)
38 {
39 }
40 
41 void CL_Drop (void)
42 {
43 }
44 
45 void Con_Print (const char* txt)
46 {
47 }
48 
49 void CL_Shutdown (void)
50 {
51 }
52 
53 void CL_Frame (int now, void* data)
54 {
55 }
56 
57 void CL_SlowFrame (int now, void* data)
58 {
59 }
60 
61 bool CL_ParseClientData (const char* type, const char* name, const char** text)
62 {
63  return true;
64 }
65 
66 void Cmd_ForwardToServer (void)
67 {
68  const char* cmd;
69 
70  cmd = Cmd_Argv(0);
71  Com_Printf("Unknown command \"%s\"\n", cmd);
72 }
73 
74 void SCR_BeginLoadingPlaque (void)
75 {
76 }
77 
78 void SCR_EndLoadingPlaque (void)
79 {
80 }
81 
82 int CL_Milliseconds (void)
83 {
84  return Sys_Milliseconds();
85 }
86 
87 void Key_Init (void)
88 {
89  Cmd_AddCommand("bind", Cmd_Dummy_f);
90 }
91 
92 #endif
bool CL_ParseClientData(const char *type, const char *name, const char **text)
Called at client startup.
Definition: cl_main.cpp:771
const char * Cmd_Argv(int arg)
Returns a given argument.
Definition: cmd.cpp:516
void Cmd_AddCommand(const char *cmdName, xcommand_t function, const char *desc)
Add a new command to the script interface.
Definition: cmd.cpp:744
QGL_EXTERN GLint GLenum type
Definition: r_gl.h:94
void CL_SlowFrame(int now, void *data)
Definition: cl_main.cpp:1109
void Com_Printf(const char *const fmt,...)
Definition: common.cpp:386
void Key_Init(void)
Definition: cl_keys.cpp:776
void CL_Drop(void)
Ensures the right menu cvars are set after error drop or map change.
Definition: cl_main.cpp:167
void CL_InitAfter(void)
Init function for clients - called after menu was initialized and ufo-scripts were parsed...
Definition: cl_main.cpp:738
void SCR_EndLoadingPlaque(void)
Definition: cl_screen.cpp:277
void Con_Print(const char *txt)
Handles cursor positioning, line wrapping, etc All console printing must go through this in order to ...
Definition: cl_console.cpp:318
void CL_Init(void)
Definition: cl_main.cpp:1142
void CL_Frame(int now, void *data)
Definition: cl_main.cpp:1048
void Cmd_ForwardToServer(void)
adds the current command line as a clc_stringcmd to the client message. things like action...
Definition: cl_main.cpp:98
void SCR_BeginLoadingPlaque(void)
Definition: cl_screen.cpp:269
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
void CL_Shutdown(void)
Saves configuration file and shuts the client systems down.
Definition: cl_main.cpp:1220
GLsizei const GLvoid * data
Definition: r_gl.h:152
void Cmd_Dummy_f(void)
Dummy binding if you don't want unknown commands forwarded to the server.
Definition: cmd.cpp:1083
int CL_Milliseconds(void)
Definition: cl_main.cpp:1208
int Sys_Milliseconds(void)
Definition: unix_shared.cpp:41