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

HUD related routines. More...

Go to the source code of this file.

Macros

#define ACTOR_HAND_CHAR_RIGHT   (char)'r'
 
#define ACTOR_HAND_CHAR_LEFT   (char)'l'
 
#define ACTOR_GET_HAND_CHAR(hand)   ((hand) == ACTOR_HAND_LEFT ? ACTOR_HAND_CHAR_LEFT : ACTOR_HAND_CHAR_RIGHT)
 
#define ACTOR_GET_HAND_INDEX(hand)   ((hand) == ACTOR_HAND_CHAR_LEFT ? ACTOR_HAND_LEFT : ACTOR_HAND_RIGHT)
 

Functions

void HUD_InitStartup (void)
 
void HUD_InitUI (const char *optionWindowName)
 Display the user interface. More...
 
void HUD_DisplayMessage (const char *text)
 Displays a message on the hud. More...
 
void HUD_Update (void)
 Updates console vars for an actor. More...
 
void HUD_UpdateActorStats (const struct le_s *le)
 
void HUD_UpdateCursor (void)
 Updates the cursor texts when in battlescape. More...
 
int HUD_ReactionFireGetTUs (const struct le_s *actor)
 

Variables

cvar_tcl_worldlevel
 

Detailed Description

HUD related routines.

Definition in file cl_hud.h.

Macro Definition Documentation

#define ACTOR_GET_HAND_CHAR (   hand)    ((hand) == ACTOR_HAND_LEFT ? ACTOR_HAND_CHAR_LEFT : ACTOR_HAND_CHAR_RIGHT)
Parameters
[in]handHand index (ACTOR_HAND_RIGHT, ACTOR_HAND_LEFT)

Definition at line 32 of file cl_hud.h.

Referenced by HUD_DisplayFiremodeEntry().

#define ACTOR_GET_HAND_INDEX (   hand)    ((hand) == ACTOR_HAND_CHAR_LEFT ? ACTOR_HAND_LEFT : ACTOR_HAND_RIGHT)
Parameters
[in]handHand index (ACTOR_HAND_CHAR_RIGHT, ACTOR_HAND_CHAR_LEFT)

Definition at line 34 of file cl_hud.h.

Referenced by HUD_DisplayFiremodes_f(), HUD_FireWeapon_f(), and HUD_SelectReactionFiremode_f().

#define ACTOR_HAND_CHAR_LEFT   (char)'l'

Definition at line 29 of file cl_hud.h.

#define ACTOR_HAND_CHAR_RIGHT   (char)'r'

Definition at line 28 of file cl_hud.h.

Function Documentation

void HUD_InitUI ( const char *  optionWindowName)

Display the user interface.

Parameters
optionWindowNameName of the window used to display options, else nullptr if nothing

Definition at line 1572 of file cl_hud.cpp.

References Cvar_Set(), HUD_CheckCLHud(), OBJZERO, cvar_s::string, UI_ExecuteConfunc(), and UI_InitStack().

Referenced by GAME_GetImportData(), and GAME_StartBattlescape().

int HUD_ReactionFireGetTUs ( const struct le_s actor)
void HUD_Update ( void  )

Updates console vars for an actor.

This function updates the cvars for the hud (battlefield) unlike CL_ActorCvars and CL_UGVCvars which updates them for displaying the data in the menu system

See also
CL_ActorCvars
CL_UGVCvars

Definition at line 1428 of file cl_hud.cpp.

References ca_active, cl, cls, Cvar_Set(), Cvar_SetValue(), HUD_UpdateActor(), i, cvar_s::integer, clientBattleScape_s::mapMaxLevel, cvar_s::modified, clientBattleScape_s::numTeamList, PATHFINDING_HEIGHT, selActor, client_static_s::state, and UI_ExecuteConfunc().

Referenced by CL_SlowFrame().

void HUD_UpdateActorStats ( const struct le_s le)

Variable Documentation