UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
client.h File Reference

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_tcl_fps
 
cvar_tcl_selected
 
cvar_tcl_teamnum
 
cvar_ts_language
 

Detailed Description

Primary header for client.

Definition in file client.h.

Typedef Documentation

Not cleared on a map change (static data)

Note
Only some data is set to new values on a map change
the client_static_t structure is persistant through an arbitrary number of server connections
See also
client_state_t

Function Documentation

void CL_Disconnect ( void  )

Sets the cls.state to ca_disconnected and informs the server.

See also
CL_Drop
Note
Goes from a connected state to disconnected state Sends a disconnect message to the server This is also called on 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().

int CL_GetClientState ( void  )

Definition at line 1008 of file cl_main.cpp.

References client_static_s::state.

Referenced by GAME_GetImportData().

void CL_Init ( void  )
See also
CL_Shutdown
CL_InitAfter

Definition at line 1142 of file cl_main.cpp.

Variable Documentation

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().

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().