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