X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=d0850c7e04369755579966f39985b6faaa467c81;hb=ecc378d8413d426248d1ea681e2666ec5c13d3e4;hp=64e4ece3359da4438b3a1de8b192e3ae93294b07;hpb=b6e0d244104f54af47422950373dfd3e021fb1e7;p=xboard.git diff --git a/common.h b/common.h index 64e4ece..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" @@ -263,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; @@ -319,6 +319,8 @@ typedef enum { VariantGreat, VariantTwilight, VariantMakruk, + VariantSChess, + VariantSpartan, VariantUnknown /* Catchall for other unknown variants */ } VariantClass; @@ -362,6 +364,8 @@ typedef enum { "great",\ "twilight",\ "makruk",\ + "seirawan",\ + "spartan",\ "unknown" \ } @@ -385,7 +389,7 @@ typedef struct { int premoveHighlightColor; #endif int movesPerSession; - int timeIncrement; + float timeIncrement; char *initString; char *secondInitString; char *firstComputerString; @@ -495,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 */ @@ -522,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 */