]> icculus.org git repositories - btb/d2x.git/blob - main/gauges.h
fix debian menu
[btb/d2x.git] / main / gauges.h
1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13
14
15
16 #ifndef _GAUGES_H
17 #define _GAUGES_H
18
19 #include "fix.h"
20 #include "gr.h"
21 #include "piggy.h"
22 #include "object.h"
23
24 //from gauges.c
25
26 #define MAX_GAUGE_BMS 100       //      increased from 56 to 80 by a very unhappy MK on 10/24/94.
27
28 extern bitmap_index Gauges[MAX_GAUGE_BMS];   // Array of all gauge bitmaps.
29 extern bitmap_index Gauges_hires[MAX_GAUGE_BMS];   // hires gauges
30
31 //Flags for gauges/hud stuff
32 extern ubyte Reticle_on;
33
34 extern void init_gauge_canvases();
35 extern void close_gauge_canvases();
36
37 extern void show_score();
38 extern void show_score_added();
39 extern void add_points_to_score();
40 extern void add_bonus_points_to_score();
41
42 void render_gauges(void);
43 void init_gauges(void);
44 extern void check_erase_message(void);
45
46 extern void HUD_render_message_frame();
47 extern void HUD_clear_messages();
48
49 // Call to flash a message on the HUD.  Returns true if message drawn.
50 //  (message might not be drawn if previous message was same)
51 extern int HUD_init_message(char * format, ... );
52
53 #define gauge_message HUD_init_message
54
55 extern void draw_hud();         //draw all the HUD stuff
56
57 extern void player_dead_message(void);
58 // extern void say_afterburner_status(void);
59
60 //fills in the coords of the hostage video window
61 void get_hostage_window_coords(int *x,int *y,int *w,int *h);
62
63 //from testgaug.c
64
65 void gauge_frame(void);
66 extern void update_laser_weapon_info(void);
67 extern void play_homing_warning(void);
68
69 typedef struct {
70         ubyte r,g,b;
71 } rgb;
72
73 extern rgb player_rgb[];
74
75 #define WBU_WEAPON              0               //the weapons display
76 #define WBU_MISSILE             1               //the missile view
77 #define WBU_ESCORT              2               //the "buddy bot"
78 #define WBU_REAR                        3               //the rear view
79 #define WBU_COOP                        4               //coop or team member view
80 #define WBU_GUIDED              5               //the guided missile
81 #define WBU_MARKER              6               //a dropped marker
82 #define WBU_STATIC              7               //playing static after missile hits
83
84 //draws a 3d view into one of the cockpit windows.  win is 0 for left,
85 //1 for right.  viewer is object.  NULL object means give up window
86 //user is one of the WBU_ constants.  If rear_view_flag is set, show a
87 //rear view.  If label is non-NULL, print the label at the top of the
88 //window.
89 void do_cockpit_window_view(int win,object *viewer,int rear_view_flag,int user,char *label);
90
91 #ifdef MACINTOSH
92         #include "QuickDraw.h"
93         #include "RAVE.h"
94         void calculate_sub_view_window_bounds(int inSubWindowNum, TQARect* outBoundsRect);
95 #endif
96
97 #endif
98