UFO: Alien Invasion
|
Primary header for client. More...
#include "cl_shared.h"
#include "cl_renderer.h"
#include "cl_video.h"
#include "cl_team.h"
#include "sound/s_main.h"
#include "input/cl_input.h"
#include "input/cl_keys.h"
#include "battlescape/cl_camera.h"
#include "battlescape/cl_localentity.h"
#include "battlescape/cl_battlescape.h"
#include "../game/inventory.h"
#include "renderer/r_model.h"
#include "../common/http.h"
Go to the source code of this file.
Data Structures | |
struct | client_static_s |
Not cleared on a map change (static data) More... | |
Typedefs | |
typedef struct client_static_s | client_static_t |
Not cleared on a map change (static data) More... | |
Functions | |
int | CL_GetClientState (void) |
void | CL_SetClientState (connstate_t state) |
Sets the client state. More... | |
void | CL_Disconnect (void) |
Sets the cls.state to ca_disconnected and informs the server. More... | |
void | CL_Init (void) |
Variables | |
client_static_t | cls |
cvar_t * | cl_fps |
cvar_t * | cl_selected |
cvar_t * | cl_teamnum |
cvar_t * | s_language |
Primary header for client.
Definition in file client.h.
typedef struct client_static_s client_static_t |
Not cleared on a map change (static data)
client_static_t
structure is persistant through an arbitrary number of server connections Sets the cls.state
to ca_disconnected
and informs the server.
Com_Error
, so it shouldn't cause any errors Definition at line 257 of file cl_main.cpp.
References ca_connecting, ca_disconnected, CL_ClearBattlescapeEvents(), CL_ClearState(), CL_SetClientState(), clc_stringcmd, Com_Printf(), Com_ServerState(), GAME_EndBattlescape(), NET_STATE_DISCONNECT, NET_StreamFinished(), NET_Wait(), NET_WriteByte(), NET_WriteMsg(), NET_WriteString(), client_static_s::netStream, R_FreeWorldImages(), R_ShutdownModels(), S_Stop(), and client_static_s::state.
Referenced by CL_Drop(), CL_Quit_f(), CL_Reconnect(), GAME_GetImportData(), and GAME_SetMode().
Definition at line 1008 of file cl_main.cpp.
References client_static_s::state.
Referenced by GAME_GetImportData().
Definition at line 1142 of file cl_main.cpp.
void CL_SetClientState | ( | connstate_t | state | ) |
Sets the client state.
Definition at line 1016 of file cl_main.cpp.
References ca_active, ca_connected, ca_connecting, ca_disconnected, ca_uninitialized, CL_ClearState(), CL_Connect(), Com_DPrintf(), Com_Error(), Cvar_Set(), DEBUG_CLIENT, ERR_FATAL, client_static_s::reconnectTime, client_static_s::state, and client_static_s::waitingForStart.
Referenced by CL_Disconnect(), CL_InitLocal(), CL_ParseServerData(), CL_Reconnect(), CL_SendCommand(), CL_StartGame(), GAME_GetImportData(), and CampaignTest::SetUpTestCase().
cvar_t* cl_fps |
Definition at line 71 of file cl_main.cpp.
Referenced by SCR_UpdateScreen().
cvar_t* cl_selected |
Definition at line 73 of file cl_main.cpp.
cvar_t* cl_teamnum |
Definition at line 81 of file cl_main.cpp.
Referenced by SP_worldspawn().
client_static_t cls |
Definition at line 83 of file cl_main.cpp.
Referenced by CL_ActorAddToTeamList(), CL_ActorAppear(), CL_ActorAppearTime(), CL_ActorCheckAction(), CL_ActorCleanup(), CL_ActorConfirmAction_f(), CL_ActorDie(), CL_ActorDoShootTime(), CL_ActorGetMuzzle(), CL_ActorMoveMouse(), CL_ActorRevitalised(), CL_ActorStartShoot(), CL_ActorStateChange(), CL_AddActor(), CL_AddTargetingBox(), CL_AddUGV(), CL_AllocateActorSkin(), CL_CameraMove(), CL_CancelHTTPDownloads(), CL_CheckAndQueueDownload(), CL_CountVisibleEnemies(), CL_DoEndRound(), CL_EntPerish(), CL_ExecuteBattlescapeEvent(), CL_FinishHTTPDownload(), CL_GenerateCharacter(), CL_GetActorSkinByIDS(), CL_GetActorSkinCount(), CL_GetFreeDLHandle(), CL_GetPlayerNum(), CL_HTTP_Cleanup(), CL_HTTP_Progress(), CL_InvAdd(), CL_InvAmmo(), CL_InvDel(), CL_InvReload(), CL_NextAlien_f(), CL_NextAlienVisibleFromActor_f(), CL_NextRound_f(), CL_OnBattlescape(), CL_ParseResults(), CL_ParseServerMessage(), CL_ParticleRun2(), CL_PendingHTTPDownloads(), CL_PrevAlien_f(), CL_QueueHTTPDownload(), CL_Reset(), CL_ReVerifyHTTPQueue(), CL_RunHTTPDownloads(), CL_SetHTTPServer(), CL_SoundEvent(), CL_StartHTTPDownload(), CL_StartNextHTTPDownload(), CL_TargetingStraight(), CL_ViewPrecacheModels(), CL_ViewRender(), Con_Close(), Con_DrawInput(), Con_ToggleChat_f(), Con_ToggleConsole_f(), uiRadarNode::draw(), GAME_AppendTeamMember(), GAME_AutoTeam(), GAME_CollectItems(), GAME_DestroyInventory(), GAME_EndBattlescape(), GAME_EquipActor(), GAME_Frame(), GAME_GetCGameAPI(), GAME_GetCurrentSelectedMap(), GAME_GetCurrentTeam(), GAME_GetCurrentType(), GAME_GetNextUniqueCharacterNumber(), GAME_InitializeBattlescape(), GAME_LoadCharacter(), GAME_LoadDefaultTeam(), GAME_LoadGame(), GAME_LoadInventory(), GAME_LoadTeam_f(), GAME_NET_OOB_Printf2(), GAME_RemoveFromInventory(), GAME_SetMode(), GAME_SetNextUniqueCharacterNumber(), GAME_SetServerInfo(), GAME_Spawn(), GAME_SpawnSoldiers(), GAME_StartMatch(), GAME_SwitchCurrentSelectedMap(), GAME_UnloadGame(), HUD_DisplayActions(), HUD_Update(), IN_Frame(), IN_Parse(), IN_ToggleFullscreen(), INV_MoveItem(), INV_UnloadWeapon(), Key_Event(), Key_SetDest(), LE_CenterView(), LE_Cleanup(), LE_PlaceItem(), LE_Think(), LET_StartPathMove(), LM_AddToSceneOrder(), MSG_Write_PA(), R_EndFrame(), R_InitGraphics(), R_SetSDLIcon(), ResetInventoryList(), Rimp_Shutdown(), S_MumbleUpdate(), SCR_BeginLoadingPlaque(), SCR_DrawCursor(), SCR_DrawDownloading(), SCR_DrawLoading(), SCR_EndLoadingPlaque(), SCR_RunConsole(), SCR_TimeRefresh_f(), SCR_UpdateScreen(), SEQ_Render2D(), SEQ_Render3D(), SEQ_SetCamera(), ParticleTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), CampaignTest::SetUpTestCase(), UI_ContainerNodeUpdateEquipment(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), UI_EnableFlashing(), UI_MapInfoGetNext(), UI_MaterialEditorStart_f(), UI_RadarNodeGetActorColor(), UI_SelectMap_f(), and VID_Minimize().
cvar_t* s_language |
Definition at line 54 of file common.cpp.
Referenced by CL_LanguageInit(), CL_LanguageInitMenu(), CL_LanguageTryToSet(), and CL_SlowFrame().