UFO: Alien Invasion
Toggle main menu visibility
Loading...
Searching...
No Matches
cl_hud.h
Go to the documentation of this file.
1
5
6
/*
7
Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18
See the GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, 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
36
extern
cvar_t
*
cl_worldlevel
;
37
38
/* check above for removal */
39
40
void
HUD_InitStartup
(
void
);
41
void
HUD_InitUI
(
const
char
* optionWindowName);
42
void
HUD_DisplayMessage
(
const
char
* text);
43
void
HUD_Update
(
void
);
44
void
HUD_UpdateActorStats
(
const
struct
le_s* le);
45
void
HUD_UpdateCursor
(
void
);
46
int
HUD_ReactionFireGetTUs
(
const
struct
le_s* actor);
cl_worldlevel
cvar_t * cl_worldlevel
Definition
cl_hud.cpp:46
HUD_InitStartup
void HUD_InitStartup(void)
Definition
cl_hud.cpp:1597
HUD_UpdateCursor
void HUD_UpdateCursor(void)
Updates the cursor texts when in battlescape.
Definition
cl_hud.cpp:976
HUD_UpdateActorStats
void HUD_UpdateActorStats(const struct le_s *le)
HUD_InitUI
void HUD_InitUI(const char *optionWindowName)
Display the user interface.
Definition
cl_hud.cpp:1572
HUD_ReactionFireGetTUs
int HUD_ReactionFireGetTUs(const struct le_s *actor)
HUD_DisplayMessage
void HUD_DisplayMessage(const char *text)
Displays a message on the hud.
Definition
cl_hud.cpp:138
HUD_Update
void HUD_Update(void)
Updates console vars for an actor.
Definition
cl_hud.cpp:1428
cvar_t
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
Definition
cvar.h:71
src
client
battlescape
cl_hud.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.17.0