cl_hud.h File Reference

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

Go to the source code of this file.

Defines

#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_DisplayFiremodes (const le_t *actor, actorHands_t hand, qboolean firemodesChangeDisplay)
void HUD_HideFiremodes (void)
 Makes all entries of the firemode lists invisible.
void HUD_InitStartup (void)
void HUD_DisplayMessage (const char *text)
 Displays a message on the hud.
void HUD_Update (void)
 Updates console vars for an actor.
void HUD_UpdateCursor (void)
 Updates the cursor texts when in battlescape.

Variables

cvar_tcl_worldlevel

Define Documentation

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

Definition at line 33 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] hand Hand index (ACTOR_HAND_CHAR_RIGHT, ACTOR_HAND_CHAR_LEFT)

Definition at line 35 of file cl_hud.h.

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

#define ACTOR_HAND_CHAR_LEFT   (char)'l'

Definition at line 30 of file cl_hud.h.

#define ACTOR_HAND_CHAR_RIGHT   (char)'r'

Definition at line 29 of file cl_hud.h.


Function Documentation

void HUD_DisplayFiremodes ( const le_t actor,
actorHands_t  hand,
qboolean  firemodesChangeDisplay 
)
void HUD_DisplayMessage ( const char *  text  ) 
void HUD_HideFiremodes ( void   ) 

Makes all entries of the firemode lists invisible.

Definition at line 184 of file cl_hud.c.

References qfalse, UI_ExecuteConfunc(), visibleFiremodeListLeft, and visibleFiremodeListRight.

Referenced by CL_ActorSelect(), HUD_DisplayFiremodes(), and HUD_FireWeapon_f().

void HUD_InitStartup ( void   ) 
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 1326 of file cl_hud.c.

References ca_active, cl, cls, Cvar_Set(), Cvar_SetValue(), HUD_UpdateActor(), HUD_UpdateAllActors(), i, cvar_s::integer, cvar_s::modified, PATHFINDING_HEIGHT, qfalse, selActor, client_static_s::state, TEXT_STANDARD, UI_ExecuteConfunc(), and UI_RegisterText().

Referenced by CL_SlowFrame().

void HUD_UpdateCursor ( void   ) 

Variable Documentation


Generated by  doxygen 1.6.2