UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_hud.h
Go to the documentation of this file.
1
5
6/*
7Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18See the GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24*/
25
26#pragma once
27
28#define ACTOR_HAND_CHAR_RIGHT (char)'r'
29#define ACTOR_HAND_CHAR_LEFT (char)'l'
30
32#define ACTOR_GET_HAND_CHAR(hand) ((hand) == ACTOR_HAND_LEFT ? ACTOR_HAND_CHAR_LEFT : ACTOR_HAND_CHAR_RIGHT)
34#define ACTOR_GET_HAND_INDEX(hand) ((hand) == ACTOR_HAND_CHAR_LEFT ? ACTOR_HAND_LEFT : ACTOR_HAND_RIGHT)
35
36extern cvar_t* cl_worldlevel;
37
38/* check above for removal */
39
40void HUD_InitStartup(void);
41void HUD_InitUI(const char* optionWindowName);
42void HUD_DisplayMessage(const char* text);
43void HUD_Update(void);
44void HUD_UpdateActorStats(const struct le_s* le);
45void HUD_UpdateCursor(void);
46int HUD_ReactionFireGetTUs (const struct le_s* actor);
cvar_t * cl_worldlevel
Definition cl_hud.cpp:46
void HUD_InitStartup(void)
Definition cl_hud.cpp:1597
void HUD_UpdateCursor(void)
Updates the cursor texts when in battlescape.
Definition cl_hud.cpp:976
void HUD_UpdateActorStats(const struct le_s *le)
void HUD_InitUI(const char *optionWindowName)
Display the user interface.
Definition cl_hud.cpp:1572
int HUD_ReactionFireGetTUs(const struct le_s *actor)
void HUD_DisplayMessage(const char *text)
Displays a message on the hud.
Definition cl_hud.cpp:138
void HUD_Update(void)
Updates console vars for an actor.
Definition cl_hud.cpp:1428
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
Definition cvar.h:71