1 /**
2  * @file
3  * @brief HUD related routines.
4  */
5 
6 /*
7 Copyright (C) 2002-2013 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 
31 /** @param[in] hand Hand index (ACTOR_HAND_RIGHT, ACTOR_HAND_LEFT) */
32 #define ACTOR_GET_HAND_CHAR(hand) ((hand) == ACTOR_HAND_LEFT ? ACTOR_HAND_CHAR_LEFT : ACTOR_HAND_CHAR_RIGHT)
33 /** @param[in] hand Hand index (ACTOR_HAND_CHAR_RIGHT, ACTOR_HAND_CHAR_LEFT) */
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);
47