|
UFO: Alien Invasion
|
Server code for moving users. More...

Go to the source code of this file.
Data Structures | |
| struct | ucmd_t |
Functions | |
| void | SV_SetClientState (client_t *client, client_state_t state) |
| Set the client state. | |
| static void | SV_New_f (client_t *cl) |
| Sends the first message from the server to a connected client. This will be sent on the initial connection and upon each server load. Client reads via CL_ParseServerData in cl_parse.c. | |
| static void | SV_Begin_f (client_t *cl) |
| static void | SV_StartMatch_f (client_t *cl) |
| static void | SV_Disconnect_f (client_t *cl) |
| The client is going to disconnect, so remove the connection immediately. | |
| static void | SV_ShowServerinfo_f (client_t *cl) |
| Dumps the serverinfo info string. | |
| static void | SV_ExecuteUserCommand (client_t *cl, const char *s) |
| void | SV_ExecuteClientMessage (client_t *cl, int cmd, dbuffer *msg) |
| The current net_message is parsed for the given client. | |
| server_state_t | SV_GetServerState (void) |
| void | SV_SetServerState (server_state_t state) |
Variables | |
| static const ucmd_t | ucmds [] |
Server code for moving users.
Definition in file sv_user.cpp.
Definition at line 123 of file sv_user.cpp.
References Cbuf_InsertFromDefer(), cl, Com_DPrintf(), Com_Printf(), cs_began, cs_spawning, DEBUG_SERVER, SV_DropClient(), SV_SetClientState(), and svs.
The client is going to disconnect, so remove the connection immediately.
Definition at line 176 of file sv_user.cpp.
References cl, and SV_DropClient().
The current net_message is parsed for the given client.
Definition at line 235 of file sv_user.cpp.
References cl, clc_ack, clc_action, clc_endround, clc_initactorstates, clc_nop, clc_stringcmd, clc_teaminfo, clc_userinfo, Com_DPrintf(), Com_Printf(), cs_free, cs_spawned, DEBUG_SERVER, MAX_CLC_STRINGCMD, NET_ReadString(), sv, SV_DropClient(), SV_ExecuteUserCommand(), SV_SetClientState(), SV_UserinfoChanged(), and svs.
Referenced by SV_BroadcastPrintf(), and SV_ReadPacket().
Definition at line 214 of file sv_user.cpp.
References cl, Cmd_Argv(), Cmd_TokenizeString(), Com_DPrintf(), Com_ServerState(), DEBUG_SERVER, Q_streq, ss_game, svs, and ucmds.
Referenced by SV_ExecuteClientMessage().
| server_state_t SV_GetServerState | ( | void | ) |
Definition at line 312 of file sv_user.cpp.
References sv.
Referenced by Com_ServerState(), and SV_BroadcastPrintf().
Sends the first message from the server to a connected client. This will be sent on the initial connection and upon each server load. Client reads via CL_ParseServerData in cl_parse.c.
Definition at line 56 of file sv_user.cpp.
References cl, CL_PRECACHE, Com_DPrintf(), Com_Printf(), Com_ServerState(), cs_connected, CS_MODELS, CS_NAME, CS_POSITIONS, cs_spawning, CS_TILES, DEBUG_SERVER, i, MAX_CONFIGSTRINGS, NET_WriteByte(), NET_WriteLong(), NET_WriteMsg(), NET_WriteShort(), NET_WriteString(), PROTOCOL_VERSION, Q_strvalid, ss_game, SV_ClientCommand(), SV_DropClient(), SV_GetClient(), SV_GetConfigString(), SV_SetClientState(), svc_configstring, and svc_serverdata.
| void SV_SetClientState | ( | client_t * | client, |
| client_state_t | state ) |
Set the client state.
Definition at line 36 of file sv_user.cpp.
References Com_DPrintf(), DEBUG_SERVER, client_t::name, and client_t::state.
Referenced by SV_Begin_f(), SV_BroadcastPrintf(), SV_DropClient(), SV_ExecuteClientMessage(), SV_Map(), SV_New_f(), and SVC_DirectConnect().
| void SV_SetServerState | ( | server_state_t | state | ) |
Dumps the serverinfo info string.
Definition at line 185 of file sv_user.cpp.
References cl, Cvar_Serverinfo(), Info_Print(), and MAX_INFO_STRING.
Definition at line 154 of file sv_user.cpp.
References Cbuf_InsertFromDefer(), cl, Com_DPrintf(), cs_spawned, DEBUG_SERVER, SV_DropClient(), and svs.
|
static |
Definition at line 197 of file sv_user.cpp.
Referenced by SV_ExecuteUserCommand().