home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / main / gauges.h < prev    next >
Text File  |  1998-06-08  |  5KB  |  167 lines

  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-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
  12. */
  13. /*
  14.  * $Source: f:/miner/source/main/rcs/gauges.h $
  15.  * $Revision: 2.0 $
  16.  * $Author: john $
  17.  * $Date: 1995/02/27 11:28:45 $
  18.  * 
  19.  * Prototypes and defines for gauges
  20.  * 
  21.  * $Log: gauges.h $
  22.  * Revision 2.0  1995/02/27  11:28:45  john
  23.  * New version 2.0, which has no anonymous unions, builds with
  24.  * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  25.  * 
  26.  * Revision 1.27  1994/12/14  18:06:39  matt
  27.  * Added prototype
  28.  * 
  29.  * Revision 1.26  1994/12/09  16:19:52  yuan
  30.  * kill matrix stuff.
  31.  * 
  32.  * Revision 1.25  1994/10/25  11:07:34  mike
  33.  * Prototype play_homing_warning.
  34.  * 
  35.  * Revision 1.24  1994/10/24  16:34:39  mike
  36.  * Increase MAX_GAUGE_BMS from 56 to 80...
  37.  * 
  38.  * Revision 1.23  1994/10/21  20:43:47  mike
  39.  * Prototype add_bonus_points_to_score.
  40.  * 
  41.  * Revision 1.22  1994/10/14  15:56:33  mike
  42.  * Prototype update_laser_weapon_info.
  43.  * 
  44.  * Revision 1.21  1994/10/13  15:17:26  mike
  45.  * Remove afterburner references.
  46.  * 
  47.  * Revision 1.20  1994/10/05  17:09:46  matt
  48.  * Added functional reticle
  49.  * 
  50.  * Revision 1.19  1994/10/04  21:41:29  matt
  51.  * Added cloaked player gauge effect, and different ship bitmap for each player
  52.  * 
  53.  * Revision 1.18  1994/09/26  13:29:40  matt
  54.  * Added extra life each 100,000 points, and show icons on HUD for num lives
  55.  * 
  56.  * Revision 1.17  1994/09/20  11:56:08  matt
  57.  * Added prototype
  58.  * 
  59.  * Revision 1.16  1994/09/20  00:11:03  matt
  60.  * Finished gauges for Status Bar, including hostage video display.
  61.  * 
  62.  * Revision 1.15  1994/09/17  23:57:18  matt
  63.  * Got some, but not all, off the status bar gauges working
  64.  * 
  65.  * Revision 1.14  1994/09/16  13:08:46  mike
  66.  * Prototype say_afterburner_status.
  67.  * 
  68.  * Revision 1.13  1994/09/14  16:27:03  mike
  69.  * Prototype player_dead_message();
  70.  * 
  71.  * 
  72.  * Revision 1.12  1994/07/20  17:34:43  yuan
  73.  * Some minor bug fixes and new key gauges...
  74.  * 
  75.  * Revision 1.11  1994/07/14  14:46:02  yuan
  76.  * Added score effect.
  77.  * 
  78.  * Revision 1.10  1994/07/12  16:22:00  yuan
  79.  * Increased number of maximum gauges.
  80.  * 
  81.  * Revision 1.9  1994/07/11  20:10:36  yuan
  82.  * Numerical gauges.
  83.  * 
  84.  * Revision 1.8  1994/07/10  18:01:28  yuan
  85.  * Added new gauges.
  86.  * 
  87.  * Revision 1.7  1994/06/21  15:08:22  john
  88.  * Made demo record HUD message and cleaned up the HUD code.
  89.  * 
  90.  * Revision 1.6  1994/06/21  12:40:46  yuan
  91.  * Fixing HUD message.
  92.  * 
  93.  * Revision 1.5  1994/06/21  12:11:56  yuan
  94.  * Fixed up menus and added HUDisplay messages.
  95.  * 
  96.  * Revision 1.4  1994/04/28  21:34:24  mike
  97.  * prototype check_erase_gauge
  98.  * 
  99.  * Revision 1.3  1994/04/06  14:42:46  yuan
  100.  * Adding new powerups.
  101.  * 
  102.  * Revision 1.2  1993/12/05  22:48:58  matt
  103.  * Reworked include files in an attempt to cut down on build times
  104.  * 
  105.  * Revision 1.1  1993/12/05  21:07:55  matt
  106.  * Initial revision
  107.  * 
  108.  * 
  109.  */
  110.  
  111.  
  112.  
  113. #ifndef _GAUGES_H
  114. #define _GAUGES_H
  115.  
  116. #include "fix.h"
  117. #include "gr.h"
  118. #include "piggy.h"
  119.  
  120. //from gauges.c
  121.  
  122. #define MAX_GAUGE_BMS 80    //    increased from 56 to 80 by a very unhappy MK on 10/24/94.
  123.  
  124. extern bitmap_index Gauges[MAX_GAUGE_BMS];   // Array of all gauge bitmaps.
  125.  
  126. extern void init_gauge_canvases();
  127. extern void close_gauge_canvases();
  128.  
  129. extern void show_score();
  130. extern void show_score_added();
  131. extern void add_points_to_score();
  132. extern void add_bonus_points_to_score();
  133.  
  134. void render_gauges(void);
  135. void init_gauges(void);
  136. extern void check_erase_message(void);
  137.  
  138. // Call to flash a message on the HUD
  139. extern void HUD_render_message_frame();
  140. extern void HUD_init_message(char * format, ... );
  141. extern void HUD_clear_messages();
  142.  
  143. #define gauge_message HUD_init_message
  144.  
  145. extern void draw_hud();        //draw all the HUD stuff
  146.  
  147. extern void player_dead_message(void);
  148. // extern void say_afterburner_status(void);
  149.  
  150. //fills in the coords of the hostage video window
  151. get_hostage_window_coords(int *x,int *y,int *w,int *h);
  152.  
  153. //from testgaug.c
  154.  
  155. void gauge_frame(void);
  156. extern void update_laser_weapon_info(void);
  157. extern void play_homing_warning(void);
  158.  
  159. typedef struct {
  160.     ubyte r,g,b;
  161. } rgb;
  162.  
  163. extern rgb player_rgb[];
  164.  
  165. #endif
  166. 
  167.