UFO: Alien Invasion
Loading...
Searching...
No Matches
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
SDL_Window * window
SDL_GLContext context

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

bool client_static_t::isOurRound ( ) const
inline

Definition at line 106 of file client.h.

References cl, and team.

Field Documentation

◆ actorSkins

actorSkin_t client_static_t::actorSkins[MAX_ACTORSKINNAME]

Definition at line 103 of file client.h.

◆ cgameLibrary

void* client_static_t::cgameLibrary

Definition at line 112 of file client.h.

◆ connectTime

int client_static_t::connectTime

for connection retransmits

Definition at line 70 of file client.h.

◆ context

SDL_GLContext client_static_t::context

Definition at line 116 of file client.h.

◆ 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.

◆ 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.

◆ downloadMaps

bool client_static_t::downloadMaps

Definition at line 86 of file client.h.

◆ downloadName

char client_static_t::downloadName[MAX_OSPATH]

Definition at line 82 of file client.h.

◆ downloadPercent

int client_static_t::downloadPercent

Definition at line 84 of file client.h.

◆ downloadPosition

size_t client_static_t::downloadPosition

Definition at line 83 of file client.h.

◆ downloadQueue

dlqueue_t* client_static_t::downloadQueue

queue of paths we need

Definition at line 88 of file client.h.

◆ downloadReferer

char client_static_t::downloadReferer[32]

libcurl requires a static string :(

Definition at line 93 of file client.h.

◆ downloadServer

char client_static_t::downloadServer[512]

base url prefix to download from

Definition at line 92 of file client.h.

◆ framerate

float client_static_t::framerate

Definition at line 60 of file client.h.

◆ frametime

float client_static_t::frametime

seconds since last frame

Definition at line 59 of file client.h.

◆ gametype

const struct cgame_export_s* client_static_t::gametype

singleplayer or multiplayer

Definition at line 65 of file client.h.

◆ HTTPHandles

dlhandle_t client_static_t::HTTPHandles[4]

actual download handles

Definition at line 89 of file client.h.

◆ i

InventoryInterface client_static_t::i

Definition at line 101 of file client.h.

◆ keyDest

keydest_t client_static_t::keyDest

Definition at line 56 of file client.h.

◆ modelPool

model_t* client_static_t::modelPool[MAX_OBJDEFS]

these models must only be loaded once

Definition at line 96 of file client.h.

◆ netStream

struct net_stream* client_static_t::netStream

Definition at line 74 of file client.h.

◆ nextUniqueCharacterNumber

int client_static_t::nextUniqueCharacterNumber

Definition at line 99 of file client.h.

◆ numActorSkins

unsigned int client_static_t::numActorSkins

Definition at line 104 of file client.h.

◆ realtime

int client_static_t::realtime

always increasing, no clamping, etc

Definition at line 58 of file client.h.

◆ reconnectTime

int client_static_t::reconnectTime

time until the reconnect to a server is triggered

Definition at line 71 of file client.h.

◆ servername

char client_static_t::servername[MAX_VAR]

name of server from original connect

Definition at line 68 of file client.h.

◆ serverport

char client_static_t::serverport[16]

port the server is running at

Definition at line 69 of file client.h.

◆ state

connstate_t client_static_t::state

Definition at line 55 of file client.h.

◆ team

int client_static_t::team

needs to be here, because server can be shutdown, before we see the ending screen the team you are in

See also
TEAM_CIVILIAN, TEAM_ALIEN

Definition at line 77 of file client.h.

Referenced by isOurRound().

◆ 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.

◆ waitingForStart

int client_static_t::waitingForStart

waiting for EV_START or timeout

Definition at line 72 of file client.h.

◆ window

SDL_Window* client_static_t::window

Definition at line 115 of file client.h.


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