summaryrefslogtreecommitdiff
path: root/games/xrobots/files/patch-xrobots.h
blob: c070e442fa3722d03298a7c98af3017ec0617efa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- xrobots.h.orig	1989-11-17 22:37:40 UTC
+++ xrobots.h
@@ -33,21 +33,27 @@
  *
  */
 
+typedef struct {
+  Pixel		fg,
+  		bg;
+  Boolean	spiffy,		/* limited graphics 			*/
+		autoteleport,	/* teleport when sonic used, and no moves */
+		autoteleportalways,	/* teleport when no available moves */
+		showjumps,	/* show no intermediate moves 		*/
+		diewaiting;	/* die if you use wait unsafely 	*/
+  XtTranslations translations;
+  char		*score_filename;
+} AppData;
+
 /* 
  * from main.c
  */
+extern AppData	app_data;
 extern Display 	*display;
 extern Window 	playfield;
 extern Widget 	playfield_widget;
 extern GC 	gc,
 		cleargc;
-extern Pixel 	fg, 
-		bg;
-extern Boolean 	spiffy,
-		autoteleport,
-		autoteleportalways,
-		showjumps,
-		diewaiting;
 extern unsigned int
 		chasetime;
 
@@ -106,8 +112,6 @@ extern void 	check_score(), 
 
 extern void	show_scores_callback();
 
-extern char *score_filename;
-
 /*
  * from game.c
  */
@@ -146,9 +150,6 @@ extern int 	score,
 		game_active,
 		sonic_used;
 
-#define MIN(a,b) ((a<b)?a:b)
-#define MAX(a,b) ((a>b)?a:b)
-
 #define INXRANGE( _x_ )  (((_x_) >=0) && ((_x_)<MAXX))
 #define INYRANGE( _y_ )  (((_y_) >=0) && ((_y_)<MAXY))