disable the unrecognized nls and x flags
[AROS-Contrib.git] / Games / cxhextris / header.h
blobdddf7f4e967e1411787e2e3487e43eac0a8be2dd
1 /*
2 * hextris Copyright 1990 David Markley, dm3e@+andrew.cmu.edu, dam@cs.cmu.edu
4 * Permission to use, copy, modify, and distribute, this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of the copyright holders be used in
9 * advertising or publicity pertaining to distribution of the software with
10 * specific, written prior permission, and that no fee is charged for further
11 * distribution of this software, or any modifications thereof. The copyright
12 * holder make no representations about the suitability of this software for
13 * any purpose. It is provided "as is" without express or implied warranty.
15 * THE COPYRIGHT HOLDER DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19 * DATA, PROFITS, QPA OR GPA, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
20 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 * PERFORMANCE OF THIS SOFTWARE.
24 /* The maximum rows in the game.
26 #define MAXROW 27
27 /* The maximum columns in the game.
29 #define MAXCOLUMN 13
30 /* The number of high scores that are kept.
32 #define MAXHIGHSCORES 500
33 /* The maximum length of the user defined name.
34 * The user can set his hextris playing name by setting the
35 * environment variable XHEXNAME, like this:
36 * setenv XHEXNAME "Mr. Xhextris"
38 #define MAXNAMELENGTH 40
39 /* The maximum length of the users id.
41 #define MAXUSERIDLENGTH 40
42 /* The maximum nuber of high scores a user can have in the high score file.
44 #define MAXUSERHIGHS 3
45 /* The number of pieces in the game. DON'T CHANGE!!!
47 #define NUMBEROFPIECES 10
48 /* The name of the xhextris font. DON'T CHANGE!!!
50 #define HEXFONTNAME "xhextris"
51 /* The directory where the text font is.
53 #define FONTDIR "/usr/lib/X11/fonts/misc/"
54 /* The text font being used.
56 #define FONTNAME "-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1" /*8x13B"*/
57 /* The name on the window.
59 #define WINDOWNAME "xhextris"
60 /* The name on the icon.
62 #define ICONNAME "xhextris"
64 /* This is the type definition for a piece.
66 typedef struct piece_s
68 int type;
69 int rotation;
70 int row;
71 int column;
72 } piece_t;
74 /* This is the type definition for a position.
76 typedef struct position_s
78 int type;
79 int filled;
80 } position_t;
82 /* This is the type definition for a high score.
84 typedef struct high_score_s
86 char name[MAXNAMELENGTH];
87 char userid[MAXUSERIDLENGTH];
88 int score;
89 int rows;
90 } high_score_t;
92 /* This is the mess that defines each piece. There are six rotations to
93 * each piece, so there are six rows of numbers to each piece. For example,
94 * the second rotation of the third piece is on the row labled 21. Each row
95 * has 16 numbers, that can be broken down into 2 sets of 4 pairs. Each pair
96 * is a set of relative coordinates inf row and column from the current
97 * position of the piece. There are two sets of 4 pairs, because the offsets
98 * differ depending on whether the current position of the piece is in a
99 * hex that is up to its neighbors in its row, or down to them. One row in the
100 * game moves up and down, from left to right.
102 int shape[NUMBEROFPIECES*6][16];
104 #ifdef LOG
105 #define LOGHOST "localhost"
106 char log_message[80];
107 #endif
109 extern int score_cardinal;