1 #ifndef _STAGE_H_ 2 #define _STAGE_H_ 3 4 /* 5 * XBoing - An X11 blockout style computer game 6 * 7 * (c) Copyright 1993, 1994, 1995, Justin C. Kibell, All Rights Reserved 8 * 9 * The X Consortium, and any party obtaining a copy of these files from 10 * the X Consortium, directly or indirectly, is granted, free of charge, a 11 * full and unrestricted irrevocable, world-wide, paid up, royalty-free, 12 * nonexclusive right and license to deal in this software and 13 * documentation files (the "Software"), including without limitation the 14 * rights to use, copy, modify, merge, publish, distribute, sublicense, 15 * and/or sell copies of the Software, and to permit persons who receive 16 * copies from any such party to do so. This license includes without 17 * limitation a license to do the foregoing actions under any patents of 18 * the party supplying this software to the X Consortium. 19 * 20 * In no event shall the author be liable to any party for direct, indirect, 21 * special, incidental, or consequential damages arising out of the use of 22 * this software and its documentation, even if the author has been advised 23 * of the possibility of such damage. 24 * 25 * The author specifically disclaims any warranties, including, but not limited 26 * to, the implied warranties of merchantability and fitness for a particular 27 * purpose. The software provided hereunder is on an "AS IS" basis, and the 28 * author has no obligation to provide maintenance, support, updates, 29 * enhancements, or modifications. 30 */ 31 32 /* 33 * ========================================================================= 34 * 35 * $Id: stage.h,v 1.1.1.1 1994/12/16 01:36:53 jck Exp $ 36 * $Source: /usr5/legends/jck/xb/master/xboing/include/stage.h,v $ 37 * $Revision: 1.1.1.1 $ 38 * $Date: 1994/12/16 01:36:53 $ 39 * 40 * $Log: stage.h,v $ 41 * Revision 1.1.1.1 1994/12/16 01:36:53 jck 42 * The XBoing distribution requires configuration management. This is why the 43 * cvs utility is being used. This is the initial import of all source etc.. 44 * 45 * 46 * ========================================================================= 47 */ 48 49 /* 50 * Dependencies on other include files: 51 */ 52 53 #include <X11/Xlib.h> 54 55 /* 56 * Constants and macros: 57 */ 58 59 #define MAIN_WIDTH 70 60 #define MAIN_HEIGHT 130 61 62 #define PLAY_WIDTH 495 63 #define PLAY_HEIGHT 580 64 65 #define TOTAL_WIDTH (MAIN_WIDTH + PLAY_WIDTH) 66 #define TOTAL_HEIGHT (MAIN_HEIGHT + PLAY_HEIGHT) 67 68 #define MESS_HEIGHT 30 69 #define TYPE_HEIGHT (MESS_HEIGHT + 5) 70 71 #define BACKGROUND_WHITE -2 72 #define BACKGROUND_BLACK -1 73 #define BACKGROUND_0 0 74 #define BACKGROUND_1 1 75 #define BACKGROUND_2 2 76 #define BACKGROUND_3 3 77 #define BACKGROUND_4 4 78 #define BACKGROUND_5 5 79 #define BACKGROUND_SEE_THRU 10 80 #define BACKGROUND_SPACE 11 81 82 /* 83 * Type declarations: 84 */ 85 86 /* 87 * Function prototypes: 88 */ 89 90 extern Window mainWindow; 91 extern Window scoreWindow; 92 extern Window levelWindow; 93 extern Window playWindow, bufferWindow; 94 extern Window messWindow; 95 extern Window specialWindow; 96 extern Window timeWindow; 97 extern Window inputWindow; 98 extern Window blockWindow, typeWindow; 99 100 #if NeedFunctionPrototypes 101 void CreateAllWindows(Display *display, Colormap colormap, char **argv, 102 int argc); 103 void RedrawPlayWindow(Display *display, Window window); 104 void MapAllWindows(Display *display); 105 void ClearMainWindow(Display *display, Window window); 106 void DrawStageBackground(Display *display, Window window, int stageType, 107 int clear); 108 void SetBackgrounds(Display *display, Colormap colormap); 109 int BlinkDevilEyes(Display *display, Window window); 110 void SetWindowSizeHints(Display *display, int w, int h); 111 #else 112 void SetWindowSizeHints(); 113 int BlinkDevilEyes(); 114 void CreateAllWindows(); 115 void RedrawPlayWindow(); 116 void MapAllWindows(); 117 void ClearMainWindow(); 118 void DrawStageBackground(); 119 void SetBackgrounds(); 120 #endif 121 122 123 #endif 124