X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=d0850c7e04369755579966f39985b6faaa467c81;hb=ecc378d8413d426248d1ea681e2666ec5c13d3e4;hp=4b31719a63afa0c046323d470880806867b36d67;hpb=88082a3882690efd9ea7d3e01ad9d6dd5f5baf86;p=xboard.git diff --git a/common.h b/common.h index 4b31719..d0850c7 100644 --- a/common.h +++ b/common.h @@ -154,7 +154,7 @@ int pclose(FILE *); #define FIRST_HOST "localhost" #define SECOND_HOST "localhost" #define TELNET_PROGRAM "telnet" -#define DEF_BITMAP_DIR "/usr/share/games/xboard/bitmaps.xchess" /* AP: shouldn't be hardcoded directory, but better than nothing at the moment */ +#define DEF_BITMAP_DIR BITMAPDIR #define MATCH_MODE "False" #define INIT_STRING "new\nrandom\n" #define WHITE_STRING "white\ngo\n" @@ -250,7 +250,8 @@ typedef enum { typedef ChessSquare Board[BOARD_RANKS][BOARD_FILES]; typedef enum { - WhiteKingSideCastle = 1, WhiteQueenSideCastle, + EndOfFile = 0, + WhiteKingSideCastle, WhiteQueenSideCastle, WhiteKingSideCastleWild, WhiteQueenSideCastleWild, WhiteHSideCastleFR, WhiteASideCastleFR, BlackKingSideCastle, BlackQueenSideCastle, @@ -262,7 +263,7 @@ typedef enum { WhiteDrop, BlackDrop, NormalMove, AmbiguousMove, IllegalMove, ImpossibleMove, WhiteWins, BlackWins, GameIsDrawn, GameUnfinished, - GNUChessGame, XBoardGame, MoveNumberOne, + GNUChessGame, XBoardGame, MoveNumberOne, Open, Close, Nothing, Comment, PositionDiagram, ElapsedTime, PGNTag, NAG } ChessMove; @@ -318,6 +319,8 @@ typedef enum { VariantGreat, VariantTwilight, VariantMakruk, + VariantSChess, + VariantSpartan, VariantUnknown /* Catchall for other unknown variants */ } VariantClass; @@ -361,6 +364,8 @@ typedef enum { "great",\ "twilight",\ "makruk",\ + "seirawan",\ + "spartan",\ "unknown" \ } @@ -384,7 +389,7 @@ typedef struct { int premoveHighlightColor; #endif int movesPerSession; - int timeIncrement; + float timeIncrement; char *initString; char *secondInitString; char *firstComputerString; @@ -494,6 +499,7 @@ typedef struct { char *soundIcsLoss; char *soundIcsDraw; char *soundIcsUnfinished; + Boolean disguise; /* [HGM] Promoted Pawns look like pieces in bughouse */ Boolean reuseFirst; Boolean reuseSecond; Boolean animateDragging; /* If True, animate mouse dragging of pieces */ @@ -521,6 +527,7 @@ typedef struct { int secondProtocolVersion; Boolean showButtonBar; Boolean icsEngineAnalyze; + Boolean variations; /* [HGM] enable variation-tree walking */ /* [AS] New properties (down to the "ZIPPY" part) */ Boolean firstScoreIsAbsolute; /* If true, engine score is always from white side */ @@ -650,7 +657,9 @@ typedef struct { Boolean markers; /* [HGM] markers */ } AppData, *AppDataPtr; -/* [AS] PGN tags (for showing in the game list) */ +/* PGN tags (for showing in the game list) */ +#define LPUSERGLT_SIZE 64 + #define GLT_EVENT 'e' #define GLT_SITE 's' #define GLT_DATE 'd'