XenevaOS
Loading...
Searching...
No Matches
hu_stuff.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 2005-2014 Simon Howard
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// DESCRIPTION: Head up display
16//
17
18#ifndef __HU_STUFF_H__
19#define __HU_STUFF_H__
20
21#include "d_event.h"
22
23
24//
25// Globally visible constants.
26//
27#define HU_FONTSTART '!' // the first font characters
28#define HU_FONTEND '_' // the last font characters
29
30// Calculate # of glyphs in font.
31#define HU_FONTSIZE (HU_FONTEND - HU_FONTSTART + 1)
32
33#define HU_BROADCAST 5
34
35#define HU_MSGX 0
36#define HU_MSGY 0
37#define HU_MSGWIDTH 64 // in characters
38#define HU_MSGHEIGHT 1 // in lines
39
40#define HU_MSGTIMEOUT (4*TICRATE)
41
42//
43// HEADS UP TEXT
44//
45
46void HU_Init(void);
47void HU_Start(void);
48
49boolean HU_Responder(event_t* ev);
50
51void HU_Ticker(void);
52void HU_Drawer(void);
53char HU_dequeueChatChar(void);
54void HU_Erase(void);
55
56extern char *chat_macros[10];
57
58#endif
59
void HU_Start(void)
Definition hu_stuff.c:308
boolean HU_Responder(event_t *ev)
Definition hu_stuff.c:512
char * chat_macros[10]
Definition hu_stuff.c:64
void HU_Init(void)
Definition hu_stuff.c:286
void HU_Erase(void)
Definition hu_stuff.c:393
void HU_Ticker(void)
Definition hu_stuff.c:402
char HU_dequeueChatChar(void)
Definition hu_stuff.c:495
void HU_Drawer(void)
Definition hu_stuff.c:383
Definition d_event.h:43