UFO: Alien Invasion
|
Parse a message (event) received from the server. More...
#include "../client.h"
#include "cl_localentity.h"
#include "cl_parse.h"
#include "cl_hud.h"
#include "../cgame/cl_game.h"
#include "events/e_parse.h"
Go to the source code of this file.
Functions | |
static void | CL_ParseServerData (dbuffer *msg) |
Written by SV_New_f in sv_user.c. More... | |
static void | CL_ParseClientinfo (unsigned int player) |
Parses client names that are displayed on the targeting box for multiplayer games. More... | |
int | CL_GetPlayerNum (void) |
const char * | CL_PlayerGetName (unsigned int player) |
Get the player name. More... | |
static void | CL_ParseConfigString (dbuffer *msg) |
void | CL_ParseServerMessage (svc_ops_t cmd, dbuffer *msg) |
Parses the server sent data from the given buffer. More... | |
Variables | |
static char const *const | svc_strings [] |
see also svc_ops_e in common.h More... | |
Parse a message (event) received from the server.
Definition in file cl_parse.cpp.
Definition at line 103 of file cl_parse.cpp.
References cls, and client_static_s::team.
Referenced by GAME_GetImportData(), and S_MumbleUpdate().
Parses client names that are displayed on the targeting box for multiplayer games.
Definition at line 94 of file cl_parse.cpp.
References cl, CL_GetConfigString(), clientBattleScape_s::clientinfo, CS_PLAYERNAMES, clientinfo_t::name, and Q_strncpyz().
Referenced by CL_ParseConfigString().
Definition at line 122 of file cl_parse.cpp.
References cl, CL_ParseClientinfo(), CL_SetConfigString(), CM_InlineModel(), Com_DPrintf(), CS_MODELS, CS_PLAYERNAMES, DEBUG_CLIENT, i, index, clientBattleScape_s::mapTiles, MAX_CLIENTS, MAX_MODELS, clientBattleScape_s::model_clip, clientBattleScape_s::model_draw, NET_ReadShort(), R_FindModel(), rendererData_t::ready, and refdef.
Referenced by CL_ParseServerMessage().
Written by SV_New_f in sv_user.c.
Definition at line 62 of file cl_parse.cpp.
References ca_connected, cl, CL_SetClientState(), Com_DPrintf(), Com_Error(), DEBUG_CLIENT, ERR_DROP, i, NET_ReadLong(), NET_ReadShort(), NET_ReadString(), clientBattleScape_s::pnum, PROTOCOL_VERSION, rendererData_t::ready, and refdef.
Referenced by CL_ParseServerMessage().
Parses the server sent data from the given buffer.
[in] | cmd | The action that should be parsed from the data |
[in,out] | msg | The client stream message buffer to read from |
Definition at line 160 of file cl_parse.cpp.
References _, Cbuf_AddText(), Cbuf_Execute(), CL_Drop(), CL_Milliseconds(), CL_ParseConfigString(), CL_ParseEvent(), CL_ParseServerData(), clc_ack, cls, Com_DPrintf(), Com_Error(), Com_Printf(), DEBUG_CLIENT, ERR_DROP, GAME_AddChatMessage(), HUD_DisplayMessage(), i, MAX_SVC_DISCONNECT, MAX_SVC_PRINT, MAX_SVC_RECONNECT, MAX_SVC_STUFFTEXT, NET_ReadByte(), NET_ReadString(), NET_WriteByte(), NET_WriteMsg(), client_static_s::netStream, PRINT_CHAT, PRINT_HUD, client_static_s::reconnectTime, svc_bad, svc_configstring, svc_disconnect, svc_event, svc_nop, svc_oob, svc_ping, svc_print, svc_reconnect, svc_serverdata, svc_strings, and svc_stufftext.
Referenced by CL_ReadPackets().
const char* CL_PlayerGetName | ( | unsigned int | player | ) |
Get the player name.
player | The index of the player |
Definition at line 113 of file cl_parse.cpp.
References cl, clientBattleScape_s::clientinfo, and clientinfo_t::name.
Referenced by CL_ActorDie(), CL_AddTargetingBox(), GAME_GetImportData(), and S_MumbleUpdate().
|
static |
see also svc_ops_e in common.h
Definition at line 38 of file cl_parse.cpp.
Referenced by CL_ParseServerMessage().