X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=4f78597cc11793d56e960346dfaee3c043018e7c;hb=7c6f1f89aa5e21460c61dcc875ebc4cc3916455e;hp=9b9b0e66d265eb5f6ae3c1479d9e78c17b637c0e;hpb=1e854f2b4c4aa7ed89e5bf7211487c795812899f;p=xboard.git diff --git a/common.h b/common.h index 9b9b0e6..4f78597 100644 --- a/common.h +++ b/common.h @@ -250,18 +250,15 @@ typedef enum { typedef ChessSquare Board[BOARD_RANKS][BOARD_FILES]; typedef enum { - WhiteKingSideCastle = 1, WhiteQueenSideCastle, + EndOfFile = 0, + WhiteKingSideCastle, WhiteQueenSideCastle, WhiteKingSideCastleWild, WhiteQueenSideCastleWild, WhiteHSideCastleFR, WhiteASideCastleFR, BlackKingSideCastle, BlackQueenSideCastle, BlackKingSideCastleWild, BlackQueenSideCastleWild, BlackHSideCastleFR, BlackASideCastleFR, - WhitePromotionKnight, WhitePromotionBishop, - WhitePromotionRook, WhitePromotionQueen, WhitePromotionKing, - WhitePromotionChancellor, WhitePromotionArchbishop, WhitePromotionCentaur, - BlackPromotionKnight, BlackPromotionBishop, - BlackPromotionRook, BlackPromotionQueen, BlackPromotionKing, - BlackPromotionChancellor, BlackPromotionArchbishop, BlackPromotionCentaur, + WhitePromotion, WhiteNonPromotion, + BlackPromotion, BlackNonPromotion, WhiteCapturesEnPassant, BlackCapturesEnPassant, WhiteDrop, BlackDrop, NormalMove, AmbiguousMove, IllegalMove, ImpossibleMove, @@ -369,6 +366,7 @@ typedef enum { } typedef struct { + char *language; #if !defined(_amigados) char *whitePieceColor; char *blackPieceColor; @@ -387,7 +385,7 @@ typedef struct { int premoveHighlightColor; #endif int movesPerSession; - int timeIncrement; + float timeIncrement; char *initString; char *secondInitString; char *firstComputerString; @@ -497,6 +495,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 */ @@ -574,6 +573,7 @@ typedef struct { int defaultHashSize; int defaultCacheSizeEGTB; char * defaultPathEGTB; + int defaultMatchGames; /* [HGM] Board size */ int NrFiles; @@ -582,6 +582,7 @@ typedef struct { int matchPause; char * pieceToCharTable; char * pieceNickNames; + char * colorNickNames; Boolean allWhite; Boolean upsideDown; Boolean alphaRank; @@ -651,7 +652,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'