diff options
Diffstat (limited to 'apps/plugins/doom/st_stuff.h')
-rw-r--r-- | apps/plugins/doom/st_stuff.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/apps/plugins/doom/st_stuff.h b/apps/plugins/doom/st_stuff.h new file mode 100644 index 0000000000..d65b01e571 --- /dev/null +++ b/apps/plugins/doom/st_stuff.h | |||
@@ -0,0 +1,101 @@ | |||
1 | /* Emacs style mode select -*- C++ -*- | ||
2 | *----------------------------------------------------------------------------- | ||
3 | * | ||
4 | * | ||
5 | * PrBoom a Doom port merged with LxDoom and LSDLDoom | ||
6 | * based on BOOM, a modified and improved DOOM engine | ||
7 | * Copyright (C) 1999 by | ||
8 | * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman | ||
9 | * Copyright (C) 1999-2000 by | ||
10 | * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This program is distributed in the hope that it will be useful, | ||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | * GNU General Public License for more details. | ||
21 | * | ||
22 | * You should have received a copy of the GNU General Public License | ||
23 | * along with this program; if not, write to the Free Software | ||
24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
25 | * 02111-1307, USA. | ||
26 | * | ||
27 | * DESCRIPTION: | ||
28 | * Status bar code. | ||
29 | * Does the face/direction indicator animatin. | ||
30 | * Does palette indicators as well (red pain/berserk, bright pickup) | ||
31 | * | ||
32 | *-----------------------------------------------------------------------------*/ | ||
33 | |||
34 | #ifndef __STSTUFF_H__ | ||
35 | #define __STSTUFF_H__ | ||
36 | |||
37 | #include "doomtype.h" | ||
38 | #include "d_event.h" | ||
39 | |||
40 | // Size of statusbar. | ||
41 | // Now sensitive for scaling. | ||
42 | |||
43 | // proff 08/18/98: Changed for high-res | ||
44 | #define ST_HEIGHT 32 | ||
45 | #define ST_WIDTH 320 | ||
46 | #define ST_Y (200 - ST_HEIGHT) | ||
47 | #define ST_SCALED_HEIGHT (ST_HEIGHT*SCREENHEIGHT/200) | ||
48 | #define ST_SCALED_WIDTH SCREENWIDTH | ||
49 | #define ST_SCALED_Y (SCREENHEIGHT - ST_SCALED_HEIGHT) | ||
50 | |||
51 | // | ||
52 | // STATUS BAR | ||
53 | // | ||
54 | |||
55 | // Called by main loop. | ||
56 | boolean ST_Responder(event_t* ev); | ||
57 | |||
58 | // Called by main loop. | ||
59 | void ST_Ticker(void); | ||
60 | |||
61 | // Called by main loop. | ||
62 | void ST_Drawer(boolean st_statusbaron, boolean refresh); | ||
63 | |||
64 | // Called when the console player is spawned on each level. | ||
65 | void ST_Start(void); | ||
66 | |||
67 | // Called by startup code. | ||
68 | void ST_Init(void); | ||
69 | |||
70 | // States for status bar code. | ||
71 | typedef enum | ||
72 | { | ||
73 | AutomapState, | ||
74 | FirstPersonState | ||
75 | } st_stateenum_t; | ||
76 | |||
77 | // States for the chat code. | ||
78 | typedef enum | ||
79 | { | ||
80 | StartChatState, | ||
81 | WaitDestState, | ||
82 | GetChatState | ||
83 | } st_chatstateenum_t; | ||
84 | |||
85 | boolean ST_Responder(event_t* ev); | ||
86 | |||
87 | // killough 5/2/98: moved from m_misc.c: | ||
88 | |||
89 | extern int health_red; // health amount less than which status is red | ||
90 | extern int health_yellow; // health amount less than which status is yellow | ||
91 | extern int health_green; // health amount above is blue, below is green | ||
92 | extern int armor_red; // armor amount less than which status is red | ||
93 | extern int armor_yellow; // armor amount less than which status is yellow | ||
94 | extern int armor_green; // armor amount above is blue, below is green | ||
95 | extern int ammo_red; // ammo percent less than which status is red | ||
96 | extern int ammo_yellow; // ammo percent less is yellow more green | ||
97 | extern int sts_always_red;// status numbers do not change colors | ||
98 | extern int sts_pct_always_gray;// status percents do not change colors | ||
99 | extern int sts_traditional_keys; // display keys the traditional way | ||
100 | |||
101 | #endif | ||