X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=4f78597cc11793d56e960346dfaee3c043018e7c;hb=7c6f1f89aa5e21460c61dcc875ebc4cc3916455e;hp=f97f16ca81385da86cf1a74b1adc50ced92b299c;hpb=475d3b4e733b515cb06dbe46921f63cb15399ff4;p=xboard.git diff --git a/common.h b/common.h index f97f16c..4f78597 100644 --- a/common.h +++ b/common.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -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; @@ -448,6 +446,7 @@ typedef struct { char *cmailGameName; /* xboard only */ Boolean alwaysPromoteToQueen; Boolean oldSaveStyle; + Boolean oneClick; Boolean quietPlay; Boolean showThinking; Boolean ponderNextMove; @@ -496,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 */ @@ -518,6 +518,7 @@ typedef struct { int fontSizeTolerance; /* xboard only */ char *initialMode; char *variant; + char *chatBoxes; int firstProtocolVersion; int secondProtocolVersion; Boolean showButtonBar; @@ -554,6 +555,8 @@ typedef struct { Boolean highlightMoveWithArrow; int highlightArrowColor; Boolean useStickyWindows; + Boolean bgObserve; /* [HGM] bughouse */ + Boolean dualBoard; /* [HGM] dual */ int adjudicateDrawMoves; Boolean autoDisplayComment; Boolean autoDisplayTags; @@ -565,9 +568,12 @@ typedef struct { char * polyglotDir; Boolean usePolyglotBook; char * polyglotBook; + int bookDepth; + int bookStrength; int defaultHashSize; int defaultCacheSizeEGTB; char * defaultPathEGTB; + int defaultMatchGames; /* [HGM] Board size */ int NrFiles; @@ -575,6 +581,8 @@ typedef struct { int holdingsSize; int matchPause; char * pieceToCharTable; + char * pieceNickNames; + char * colorNickNames; Boolean allWhite; Boolean upsideDown; Boolean alphaRank; @@ -644,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' @@ -715,7 +725,7 @@ extern WindowPlacement wpGameList; extern WindowPlacement wpTags; // [HGM] chat -#define MAX_CHAT 3 +#define MAX_CHAT 5 extern int chatCount; extern char chatPartner[MAX_CHAT][MSG_SIZ];