UFO: Alien Invasion
client_static_t Struct Reference

Not cleared on a map change (static data) More...

#include <client.h>

Collaboration diagram for client_static_t:
Collaboration graph

Public Member Functions

bool isOurRound () const
 

Data Fields

connstate_t state
 
keydest_t keyDest
 
int realtime
 
float frametime
 
float framerate
 
int disableScreen
 
const struct cgame_export_s * gametype
 
char servername [MAX_VAR]
 
char serverport [16]
 
int connectTime
 
int reconnectTime
 
int waitingForStart
 
struct net_streamnetStream
 
int team
 
int teamSaveSlotIndex
 
int currentSelectedMap
 
char downloadName [MAX_OSPATH]
 
size_t downloadPosition
 
int downloadPercent
 
bool downloadMaps
 
dlqueue_tdownloadQueue
 
dlhandle_t HTTPHandles [4]
 
CURL * curl
 
char downloadServer [512]
 
char downloadReferer [32]
 
model_tmodelPool [MAX_OBJDEFS]
 
int nextUniqueCharacterNumber
 
InventoryInterface i
 
actorSkin_t actorSkins [MAX_ACTORSKINNAME]
 
unsigned int numActorSkins
 
voidcgameLibrary
 

Detailed Description

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

Definition at line 54 of file client.h.

Member Function Documentation

◆ isOurRound()

Field Documentation

◆ actorSkins

actorSkin_t client_static_t::actorSkins[MAX_ACTORSKINNAME]

Definition at line 103 of file client.h.

Referenced by CL_AllocateActorSkin(), and CL_GetActorSkinByIDS().

◆ cgameLibrary

void* client_static_t::cgameLibrary

Definition at line 112 of file client.h.

Referenced by GAME_GetCGameAPI(), GAME_LoadGame(), and GAME_UnloadGame().

◆ connectTime

int client_static_t::connectTime

for connection retransmits

Definition at line 70 of file client.h.

Referenced by CL_Connect(), CL_Reconnect(), and CL_SendCommand().

◆ curl

CURL* client_static_t::curl

Definition at line 90 of file client.h.

◆ currentSelectedMap

int client_static_t::currentSelectedMap

current selected multiplayer or skirmish map

Definition at line 80 of file client.h.

Referenced by GAME_GetCurrentSelectedMap(), GAME_SwitchCurrentSelectedMap(), UI_MapInfoGetNext(), and UI_SelectMap_f().

◆ disableScreen

int client_static_t::disableScreen

showing loading plaque between levels if time gets > 30 seconds ahead, break it

Definition at line 63 of file client.h.

Referenced by SCR_BeginLoadingPlaque(), SCR_EndLoadingPlaque(), and SCR_UpdateScreen().

◆ downloadMaps

bool client_static_t::downloadMaps

Definition at line 86 of file client.h.

Referenced by CL_CanMultiplayerStart(), and CL_Precache_f().

◆ downloadName

char client_static_t::downloadName[MAX_OSPATH]

◆ downloadPercent

int client_static_t::downloadPercent

Definition at line 84 of file client.h.

Referenced by CL_HTTP_Progress(), and SCR_DrawDownloading().

◆ downloadPosition

size_t client_static_t::downloadPosition

Definition at line 83 of file client.h.

Referenced by CL_FinishHTTPDownload(), and CL_HTTP_Progress().

◆ downloadQueue

dlqueue_t* client_static_t::downloadQueue

◆ downloadReferer

char client_static_t::downloadReferer[32]

libcurl requires a static string :(

Definition at line 93 of file client.h.

Referenced by CL_ConnectionlessPacket(), and CL_StartHTTPDownload().

◆ downloadServer

char client_static_t::downloadServer[512]

◆ framerate

float client_static_t::framerate

Definition at line 60 of file client.h.

Referenced by CL_Frame(), and SCR_UpdateScreen().

◆ frametime

◆ gametype

const struct cgame_export_s* client_static_t::gametype

singleplayer or multiplayer

Definition at line 65 of file client.h.

Referenced by GAME_GetCurrentType(), and GAME_SetMode().

◆ HTTPHandles

dlhandle_t client_static_t::HTTPHandles[4]

actual download handles

Definition at line 89 of file client.h.

Referenced by CL_FinishHTTPDownload(), CL_GetFreeDLHandle(), and CL_HTTP_Cleanup().

◆ i

◆ keyDest

keydest_t client_static_t::keyDest

◆ modelPool

model_t* client_static_t::modelPool[MAX_OBJDEFS]

these models must only be loaded once

Definition at line 96 of file client.h.

Referenced by CL_ActorGetMuzzle(), CL_AddActor(), CL_AddUGV(), CL_ViewPrecacheModels(), and LE_PlaceItem().

◆ netStream

◆ nextUniqueCharacterNumber

int client_static_t::nextUniqueCharacterNumber

◆ numActorSkins

unsigned int client_static_t::numActorSkins

Definition at line 104 of file client.h.

Referenced by CL_AllocateActorSkin(), CL_GetActorSkinByIDS(), and CL_GetActorSkinCount().

◆ realtime

int client_static_t::realtime

always increasing, no clamping, etc

Definition at line 58 of file client.h.

Referenced by CL_Frame(), CL_InitLocal(), CL_Milliseconds(), CampaignTest::SetUpTestCase(), and UI_EnableFlashing().

◆ reconnectTime

int client_static_t::reconnectTime

time until the reconnect to a server is triggered

Definition at line 71 of file client.h.

Referenced by CL_ParseServerMessage(), CL_Reconnect(), and CL_SetClientState().

◆ servername

char client_static_t::servername[MAX_VAR]

name of server from original connect

Definition at line 68 of file client.h.

Referenced by CL_Connect(), CL_ConnectionlessPacket(), CL_SendCommand(), and GAME_SetServerInfo().

◆ serverport

char client_static_t::serverport[16]

port the server is running at

Definition at line 69 of file client.h.

Referenced by CL_Connect(), CL_SendCommand(), and GAME_SetServerInfo().

◆ state

◆ team

◆ teamSaveSlotIndex

int client_static_t::teamSaveSlotIndex

currently loaded team slot, -1 if no team slot was loaded

Definition at line 78 of file client.h.

Referenced by GAME_AutoTeam(), GAME_LoadDefaultTeam(), and GAME_LoadTeam_f().

◆ waitingForStart

int client_static_t::waitingForStart

waiting for EV_START or timeout

Definition at line 72 of file client.h.

Referenced by CL_RequestNextDownload(), CL_SendCommand(), CL_SetClientState(), and SCR_UpdateScreen().


The documentation for this struct was generated from the following file: