UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_hud.h File Reference

HUD related routines. More...

This graph shows which files directly or indirectly include this file:

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)
#define ACTOR_GET_HAND_INDEX(hand)

Functions

void HUD_InitStartup (void)
void HUD_InitUI (const char *optionWindowName)
 Display the user interface.
void HUD_DisplayMessage (const char *text)
 Displays a message on the hud.
void HUD_Update (void)
 Updates console vars for an actor.
void HUD_UpdateActorStats (const struct le_s *le)
void HUD_UpdateCursor (void)
 Updates the cursor texts when in battlescape.
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

◆ ACTOR_GET_HAND_CHAR

#define ACTOR_GET_HAND_CHAR ( hand)
Value:
#define ACTOR_HAND_CHAR_RIGHT
Definition cl_hud.h:28
#define ACTOR_HAND_CHAR_LEFT
Definition cl_hud.h:29
@ ACTOR_HAND_LEFT
Definition inv_shared.h:629
Parameters
[in]handHand index (ACTOR_HAND_RIGHT, ACTOR_HAND_LEFT)

Definition at line 32 of file cl_hud.h.

Referenced by HUD_DisplayFiremodeEntry().

◆ ACTOR_GET_HAND_INDEX

#define ACTOR_GET_HAND_INDEX ( hand)
Value:
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().

◆ ACTOR_HAND_CHAR_LEFT

#define ACTOR_HAND_CHAR_LEFT   (char)'l'

Definition at line 29 of file cl_hud.h.

◆ ACTOR_HAND_CHAR_RIGHT

#define ACTOR_HAND_CHAR_RIGHT   (char)'r'

Definition at line 28 of file cl_hud.h.

Function Documentation

◆ HUD_DisplayMessage()

◆ HUD_InitStartup()

◆ HUD_InitUI()

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 buttonStates, cl_hud, Cvar_Set(), HUD_CheckCLHud(), OBJZERO, UI_ExecuteConfunc(), and UI_InitStack().

Referenced by GAME_GetImportData(), GAME_StartBattlescape(), and cgame_import_t::void().

◆ HUD_ReactionFireGetTUs()

int HUD_ReactionFireGetTUs ( const struct le_s * actor)

◆ HUD_Update()

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, cl_worldlevel, cls, Cvar_Set(), Cvar_SetValue(), HUD_UpdateActor(), i, PATHFINDING_HEIGHT, selActor, and UI_ExecuteConfunc().

Referenced by CL_SlowFrame().

◆ HUD_UpdateActorStats()

void HUD_UpdateActorStats ( const struct le_s * le)

◆ HUD_UpdateCursor()

Variable Documentation

◆ cl_worldlevel