/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. */ /* * * Prototypes and defines for gauges * */ #ifndef _GAUGES_H #define _GAUGES_H #include "fix.h" #include "gr.h" #include "piggy.h" #include "hudmsg.h" //from gauges.c #define MAX_GAUGE_BMS_PC 80 // increased from 56 to 80 by a very unhappy MK on 10/24/94. #define MAX_GAUGE_BMS_MAC 85 #define MAX_GAUGE_BMS (MacPig ? MAX_GAUGE_BMS_MAC : MAX_GAUGE_BMS_PC) extern bitmap_index Gauges[MAX_GAUGE_BMS_MAC]; // Array of all gauge bitmaps. extern void show_score(); extern void show_score_added(); extern void add_points_to_score(); extern void add_bonus_points_to_score(); void render_gauges(void); void init_gauges(void); void close_gauges(void); void cockpit_decode_alpha(grs_bitmap *bm); extern void check_erase_message(void); // Call to flash a message on the HUD extern void HUD_render_message_frame(); extern void HUD_clear_messages(); // Call to flash a message on the HUD. Returns true if message drawn. // (message might not be drawn if previous message was same) extern int HUD_init_message(char *format, ... ); //#define gauge_message HUD_init_message extern void draw_hud(); //draw all the HUD stuff extern void player_dead_message(void); // extern void say_afterburner_status(void); //fills in the coords of the hostage video window void get_hostage_window_coords(int *x,int *y,int *w,int *h); //from testgaug.c void gauge_frame(void); extern void update_laser_weapon_info(void); extern void play_homing_warning(void); typedef struct { ubyte r,g,b; } rgb; extern rgb player_rgb[]; #define GAUGE_HUD_NUMMODES 3 typedef struct span { int l,r; } span; extern span weapon_window_left[],weapon_window_left_hires[],weapon_window_right[],weapon_window_right_hires[]; #define WinBoxLeft (HIRESMODE?weapon_window_left_hires:weapon_window_left) #define WinBoxRight (HIRESMODE?weapon_window_right_hires:weapon_window_right) #endif