UFO: Alien Invasion
Loading...
Searching...
No Matches
clientBattleScape_t Struct Reference

This is the structure that should be used for data that is needed for tactical missions only. More...

#include <cl_battlescape.h>

Collaboration diagram for clientBattleScape_t:
Collaboration graph

Public Member Functions

 clientBattleScape_s ()

Data Fields

int time
camera_t cam
le_t * teamList [MAX_ACTIVETEAM]
int numTeamList
int numEnemiesSpotted
bool eventsBlocked
int pnum
int actTeam
char configstrings [MAX_CONFIGSTRINGS][MAX_TOKEN_CHARS]
model_t * model_draw [MAX_MODELS]
const struct cBspModel_s * model_clip [MAX_MODELS]
bool radarInitialized
clientinfo_t clientinfo [MAX_CLIENTS]
int mapMaxLevel
int numMapParticles
int numLMs
localModel_t LMs [MAX_LOCALMODELS]
int numLEs
le_t LEs [MAX_EDICTS]
const char * leInlineModelList [MAX_EDICTS+1]
bool spawned
bool started
mapData_t * mapData
pathing_t pathMap
mapTiles_t * mapTiles
linkedList_t * chrList

Detailed Description

This is the structure that should be used for data that is needed for tactical missions only.

Note
the client_state_t structure is wiped completely at every server map change
See also
client_static_t

Definition at line 38 of file cl_battlescape.h.

Member Function Documentation

◆ clientBattleScape_s()

Field Documentation

◆ actTeam

int clientBattleScape_t::actTeam

the currently active team (in this round)

Definition at line 51 of file cl_battlescape.h.

Referenced by CL_ActorConfirmAction(), CL_DoEndRound(), CL_Reset(), clientBattleScape_s(), and client_static_t::isOurRound().

◆ cam

◆ chrList

linkedList_t* clientBattleScape_t::chrList

the list of characters that are used as team in the currently running tactical mission

Definition at line 86 of file cl_battlescape.h.

Referenced by CL_ActorGetChr(), clientBattleScape_s(), GAME_SetMode(), GAME_SpawnSoldiers(), and GAME_StartMatch().

◆ clientinfo

clientinfo_t clientBattleScape_t::clientinfo[MAX_CLIENTS]

client info of all connected clients

Definition at line 61 of file cl_battlescape.h.

Referenced by CL_ParseClientinfo(), CL_PlayerGetName(), and clientBattleScape_s().

◆ configstrings

char clientBattleScape_t::configstrings[MAX_CONFIGSTRINGS][MAX_TOKEN_CHARS]

Definition at line 53 of file cl_battlescape.h.

Referenced by CL_GetConfigString(), CL_SetConfigString(), and clientBattleScape_s().

◆ eventsBlocked

bool clientBattleScape_t::eventsBlocked

if the client interrupts the event execution, this is true

Definition at line 47 of file cl_battlescape.h.

Referenced by CL_AreBattlescapeEventsBlocked(), CL_BlockBattlescapeEvents(), and clientBattleScape_s().

◆ leInlineModelList

const char* clientBattleScape_t::leInlineModelList[MAX_EDICTS+1]

◆ LEs

◆ LMs

◆ mapData

◆ mapMaxLevel

◆ mapTiles

◆ model_clip

const struct cBspModel_s* clientBattleScape_t::model_clip[MAX_MODELS]

◆ model_draw

model_t* clientBattleScape_t::model_draw[MAX_MODELS]

locally derived information from server state

Definition at line 56 of file cl_battlescape.h.

Referenced by CL_ParseConfigString(), CL_ViewLoadMedia(), clientBattleScape_s(), and LE_GetDrawModel().

◆ numEnemiesSpotted

int clientBattleScape_t::numEnemiesSpotted

Definition at line 45 of file cl_battlescape.h.

Referenced by CL_ActorAppear(), CL_ActorDie(), CL_EntPerish(), and clientBattleScape_s().

◆ numLEs

◆ numLMs

◆ numMapParticles

int clientBattleScape_t::numMapParticles
Todo
make this private to the particle code

Definition at line 66 of file cl_battlescape.h.

Referenced by CL_AddMapParticle(), CL_RunMapParticles(), CL_SpawnParseEntitystring(), and clientBattleScape_s().

◆ numTeamList

◆ pathMap

pathing_t clientBattleScape_t::pathMap

This is where the data for TUS used to move and actor locations go

Definition at line 82 of file cl_battlescape.h.

Referenced by CL_ActorConditionalMoveCalc(), CL_ActorMaximumMove(), CL_ActorMoveLength(), CL_ActorMoveMode(), CL_ActorTraceMove(), clientBattleScape_s(), and HUD_MapDebugCursor().

◆ pnum

int clientBattleScape_t::pnum

server state information player num you have on the server

Definition at line 50 of file cl_battlescape.h.

Referenced by CL_ActorAddToTeamList(), CL_ActorConfirmAction(), CL_ActorSelect(), CL_ActorStats(), CL_AddActor(), CL_AddTargetingBox(), CL_AddUGV(), CL_ParseServerData(), CL_Reset(), and clientBattleScape_s().

◆ radarInitialized

bool clientBattleScape_t::radarInitialized

every radar image (for every level [1-8]) is loaded

Definition at line 59 of file cl_battlescape.h.

Referenced by clientBattleScape_s(), and uiRadarNode::draw().

◆ spawned

bool clientBattleScape_t::spawned

soldiers already spawned? This is only true if we are already on battlescape but our team is not yet spawned

Definition at line 76 of file cl_battlescape.h.

Referenced by CL_BattlescapeRunning(), CL_SpawnSoldiers_f(), CL_StartMatch_f(), and clientBattleScape_s().

◆ started

bool clientBattleScape_t::started

match already started?

Definition at line 78 of file cl_battlescape.h.

Referenced by CL_StartMatch_f(), and clientBattleScape_s().

◆ teamList

◆ time


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