|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T e
Length: 1974 (0x7b6) Types: TextFile Names: »externs.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Kriegspiel/externs.h«
/* externs.h */ #include "constants.h" #include <stdio.h> #include <curses.h> #include <errno.h> /* on machines without alloca () */ /* #define alloca malloc */ struct IN { int i; struct IN *n; }; typedef struct IN *LIST; struct MOVE { int from; int to; struct MOVE *n; }; typedef struct MOVE *MOVELIST; extern int occupant [100]; /* what piece occupies square */ extern int whose [100]; /* which color occupies square */ extern char symbol [7]; /* symbols for printing pieces */ extern LIST dirlist [7]; /* directions a piece moves */ extern pawndir [2]; /* direction pawns of move */ extern LIST piecelocs [2]; /* locations of pieces */ extern int kingloc [2]; /* location of king */ extern MOVELIST movelist; /* record of game */ extern int ourcolor; extern char *colorname [2]; extern int lastmovefrom; extern int lastmoveto; extern int virgin [100]; /* pieces not moved or captured */ extern int drawok [2]; /* side has agreed to draw */ extern int resign; /* somebody resigned */ extern int dead; /* somebody died */ extern int option [NOPTIONS]; /* options players must agree on*/ extern WINDOW *blanksq [89]; /* blank chessboard squares */ extern WINDOW *square [89]; /* contents of chessboard */ extern WINDOW *win [23]; /* message window areas */ extern WINDOW *backupwin [23]; /* for switching screens */ extern WINDOW *backupscreen; /* used for redrawing vt220 */ extern WINDOW *blankscreen; /* used for redrawing vt220 */ extern char sqcolor [2]; /* character used for square */ extern int vtterm; /* is this a vt220? */ extern int dumbterm; /* are we dumb? */ extern int reversescr; /* can terminal inverse video? */ extern int sqheight; /* height of a square */ extern int sqwidth; /* width of a square */ extern int iamserver; /* am I the server player? */ extern int sock; /* socket for opponent */ extern int errno; /* system error numbers */ extern char **envp; /* user's enviroment */