1 /* Tetrinet for Linux, by Andrew Church <achurch@achurch.org>
2 * This program is public domain.
4 * Tetrinet main include file.
14 /*************************************************************************/
18 #define FIELD_WIDTH 12
19 #define FIELD_HEIGHT 22
20 typedef char Field
[FIELD_HEIGHT
][FIELD_WIDTH
];
24 int team
; /* 0 = individual player, 1 = team */
26 int games
; /* Number of games played */
28 #define MAXWINLIST 64 /* Maximum size of winlist */
29 #define MAXSENDWINLIST 10 /* Maximum number of winlist entries to send
30 * (this avoids triggering a buffer
31 * overflow in Windows Tetrinet 1.13) */
32 #define MAXSAVEWINLIST 32 /* Maximum number of winlist entries to save
33 * (this allows new players to get into
34 * a winlist with very high scores) */
36 /*************************************************************************/
38 /* Overall display modes */
41 #define MODE_PARTYLINE 1
42 #define MODE_WINLIST 2
43 #define MODE_SETTINGS 3
44 #define MODE_CLIENT 4 /* Client settings */
45 #define MODE_SERVER 5 /* Server settings */
47 /*************************************************************************/
49 /* Key definitions for input. We use K_* to avoid conflict with ncurses */
68 /* For function keys that don't correspond to something above, i.e. that we
69 * don't care about: */
70 #define K_INVALID 0x7FFF
72 /*************************************************************************/
79 extern int windows_mode
;
82 extern int cast_shadow
;
84 extern int my_playernum
;
85 extern WinInfo winlist
[MAXWINLIST
];
86 extern int server_sock
;
88 extern char *players
[6];
89 extern char *teams
[6];
90 extern int playing_game
;
91 extern int not_playing_game
;
92 extern int game_paused
;
96 /*************************************************************************/