]> icculus.org git repositories - btb/d2x.git/blob - main/hudmsg.h
allow gr_init lowres
[btb/d2x.git] / main / hudmsg.h
1 /*
2  * $Source: /cvs/cvsroot/d2x/main/hudmsg.h,v $
3  * $Revision: 1.1 $
4  * $Author: bradleyb $
5  * $Date: 2001-11-04 09:00:25 $
6  *
7  * d1x style hud - not implemented yet
8  * hud_message and message class definitions
9  *
10  * $Log: not supported by cvs2svn $
11  *
12  */
13
14 #ifndef _HUD_MSG_H
15 #define _HUD_MSG_H
16
17 #define MSGC_GAME_CHEAT         1    // Cheats enabled/disabled
18 #define MSGC_PICKUP_TOOMUCH     2    // Pickup failed: it's a powerup you have too much from
19 #define MSGC_PICKUP_ALREADY     4    // Pickup failed: it's a powerup you already have
20 #define MSGC_PICKUP_OK          8    // Pickup succeeded
21 #define MSGC_MULTI_USERMSG      16   // Netgame messages from other users
22 #define MSGC_MULTI_KILL         32   // Netgame kill information
23 #define MSGC_MULTI_INFO         64   // Netgame information (join/leave, reactor, exit)
24 #define MSGC_GAME_ACTION        128  // Something happened in the game (exit,hostage,ship dest)
25 #define MSGC_GAME_FEEDBACK      256  // User feedback (F3=Cockpit mode, can't pause, netmsg)
26 #define MSGC_MINE_FEEDBACK      512  // Mine feedback (can't open door, reactor invul)
27 #define MSGC_WEAPON_EMPTY       1024 // No weapons (no primary weapons available)
28 #define MSGC_WEAPON_SELECT      2048 // Manual weapon selection
29 #define MSGC_UNKNOWN            4096 // Unknown: External control interface message
30 #define MSGC_DEBUG              8192 // Unknown: External control interface message
31
32 #define MSGC_NOREDUNDANCY       (~(MSGC_PICKUP_TOOMUCH | MSGC_PICKUP_ALREADY))
33 #define MSGC_PLAYERMESSAGES     (~(MSGC_PICKUP_TOOMUCH | MSGC_PICKUP_ALREADY | MSGC_PICKUP_OK))
34
35 #define HUD_MESSAGE_LENGTH      150
36 #define HUD_MAX_NUM 4 // 80 //max to display in scrollback mode (and as such, the max to store, period)
37
38 extern int HUD_max_num_disp;
39
40 extern int MSG_Playermessages;
41 extern int MSG_Noredundancy;
42
43 //killed 11/01/98 -MM
44 //added on 10/04/98 by Matt Mueller to allow hud message logging
45 //extern int HUD_log_messages;
46 //end addition -MM
47 //end kill -MM
48
49 #ifdef __GNUC__
50 extern void hud_message(int class, char *format, ...)
51  __attribute__ ((format (printf, 2, 3)));
52 #else
53 extern void hud_message(int class, char *format, ...);
54 #endif
55
56 extern void mekh_resend_last();
57 extern void mekh_hud_recall_msgs();
58 #endif