Debian Codegraph @

prboom2/src/st_stuff.h

raw
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 * Copyright 2005, 2006 by
12 * Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 * 02111-1307, USA.
28 *
29 * DESCRIPTION:
30 * Status bar code.
31 * Does the face/direction indicator animatin.
32 * Does palette indicators as well (red pain/berserk, bright pickup)
33 *
34 *-----------------------------------------------------------------------------*/
35
36 #ifndef __STSTUFF_H__
37 #define __STSTUFF_H__
38
39 #include "doomtype.h"
40 #include "d_event.h"
41 #include "r_defs.h"
42
43 // Size of statusbar.
44 // Now sensitive for scaling.
45
46 // proff 08/18/98: Changed for high-res
47 #define ST_HEIGHT 32
48 #define ST_WIDTH 320
49 #define ST_Y (200 - ST_HEIGHT)
50
51 // e6y: wide-res
52 extern int ST_SCALED_HEIGHT;
53 extern int ST_SCALED_WIDTH;
54 extern int ST_SCALED_Y;
55 extern int ST_SCALED_OFFSETX;
56
57 void ST_SetScaledWidth(void);
58 void ST_LoadTextColors(void);
59
60 //
61 // STATUS BAR
62 //
63
64 // Called by main loop.
65 dboolean ST_Responder(event_t* ev);
66
67 // Called by main loop.
68 void ST_Ticker(void);
69
70 // Called by main loop.
71 void ST_Drawer(dboolean refresh);
72
73 // Called when the console player is spawned on each level.
74 void ST_Start(void);
75
76 // Called by startup code.
77 void ST_Init(void);
78
79 // After changing videomode;
80 void ST_SetResolution(void);
81
82 void ST_Refresh(void);
83
84 int ST_HealthColor(int health);
85
86 // States for status bar code.
87 typedef enum
88 {
89 AutomapState,
90 FirstPersonState
91 } st_stateenum_t;
92
93 extern int st_palette; // cph 2006/04/06 - make palette visible
94
95 // e6y: makes sense for wide resolutions
96 extern patchnum_t grnrock;
97 extern patchnum_t brdr_b;
98
99 #endif