X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=5da54ceab841973a5c914fcc5fffc7a577127dc0;hb=033144221147270236bb1dd85ac3f25448dd644c;hp=cb1278f0827575d308cee295060f2a43fbb9ac56;hpb=211b194243de81ed013566a30ef754018586c4e1;p=xboard.git diff --git a/common.h b/common.h index cb1278f..5da54ce 100644 --- a/common.h +++ b/common.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -186,7 +186,7 @@ typedef char *String; #define EP_FILE CASTLING][(BOARD_FILES-3) /* [HGM] in upper rank */ #define EP_STATUS CASTLING][(BOARD_FILES-2) /* [HGM] in upper rank */ #define HOLDINGS_SET CASTLING][(BOARD_FILES-1) /* [HGM] in upper-right corner*/ -#define ONE ('1'-(BOARD_HEIGHT==10)) /* [HGM] foremost board rank */ +#define ONE ('1'-(BOARD_HEIGHT==10)-appData.rankOffset) /* [HGM] foremost board rank */ #define AAA ('a'-BOARD_LEFT) /* [HGM] leftmost board file */ #define VIRGIN_W 1 /* [HGM] flags in Board[VIRGIN][X] */ #define VIRGIN_B 2 @@ -226,6 +226,7 @@ typedef char *String; #define BELLCHAR '\007' #define NULLCHAR '\000' #define FEATURE_TIMEOUT 10000 /*ms*/ +#define MATE_SCORE 100000 #define CLOCK_FONT 0 #define MESSAGE_FONT 1 @@ -293,18 +294,24 @@ typedef enum { WhiteFerz, WhiteAlfil, WhiteAngel, WhiteMarshall, WhiteWazir, WhiteMan, WhiteCannon, WhiteNightrider, WhiteCardinal, WhiteDragon, WhiteGrasshopper, WhiteSilver, WhiteFalcon, WhiteLance, WhiteCobra, WhiteUnicorn, WhiteLion, - WhiteTokin, WhiteDagger, WhitePCardinal, WhitePDragon, WhiteCat, + WhiteWolf, WhiteCamel, WhiteZebra, WhiteWizard, WhiteAmazon, + WhiteTokin, WhiteClaw, WhitePCardinal, WhitePDragon, WhiteCat, WhitePSword, WhiteMonarch, WhiteMother, WhiteNothing, WhitePRook, WhitePDagger, WhiteDolphin, WhiteStag, WhiteHorned, WhiteEagle, WhiteSword, - WhiteCrown, WhiteHCrown, WhiteHorse, WhiteDrunk, WhitePBishop, WhiteKing, + WhiteCrown, WhiteHCrown, WhiteHorse, WhiteDrunk, WhitePBishop, + WhiteGnu, WhiteViking, WhiteIron, WhiteCopper, WhiteTower, + WhiteKing, BlackPawn, BlackKnight, BlackBishop, BlackRook, BlackQueen, BlackFerz, BlackAlfil, BlackAngel, BlackMarshall, BlackWazir, BlackMan, BlackCannon, BlackNightrider, BlackCardinal, BlackDragon, BlackGrasshopper, BlackSilver, BlackFalcon, BlackLance, BlackCobra, BlackUnicorn, BlackLion, - BlackTokin, BlackDagger, BlackPCardinal, BlackPDragon, BlackCat, + BlackWolf, BlackCamel, BlackZebra, BlackWizard, BlackAmazon, + BlackTokin, BlackClaw, BlackPCardinal, BlackPDragon, BlackCat, BlackPSword, BlackMonarch, BlackMother, BlackNothing, BlackPRook, BlackPDagger, BlackDolphin, BlackStag, BlackHorned, BlackEagle, BlackSword, - BlackCrown, BlackHCrown, BlackHorse, BlackDrunk, BlackPBishop, BlackKing, + BlackCrown, BlackHCrown, BlackHorse, BlackDrunk, BlackPBishop, + BlackGnu, BlackViking, BlackIron, BlackCopper, BlackTower, + BlackKing, EmptySquare, DarkSquare, NoRights, // [HGM] gamestate: for castling rights hidden in board[CASTLING] ClearBoard, WhitePlay, BlackPlay, PromotePiece, DemotePiece /*for use on EditPosition menus*/ @@ -486,6 +493,7 @@ typedef struct { char *pgnName[ENGINES]; Boolean firstPlaysBlack; Boolean noChessProgram; + char *positionDir; char *host[ENGINES]; char *themeNames; char *pieceDirectory; @@ -521,6 +529,7 @@ typedef struct { Boolean fischerCastling;/* [HGM] fischer: allow Fischr castling in any variant */ Boolean matchMode; int matchGames; + Boolean epd; Boolean monoMode; Boolean debugMode; Boolean clockMode; @@ -688,6 +697,7 @@ typedef struct { /* [HGM] Board size */ int NrFiles; int NrRanks; + int rankOffset; int holdingsSize; int matchPause; char * pieceToCharTable; @@ -756,6 +766,7 @@ typedef struct { char *logo[ENGINES];/* [HGM] logo */ char *pairingEngine;/* [HGM] pairing */ Boolean autoLogo; + Boolean fixedSize; Boolean noGUI; /* [HGM] fast: suppress all display updates */ char *engOptions[ENGINES]; /* [HGM] options */ char *fenOverride[ENGINES]; @@ -776,6 +787,7 @@ typedef struct { Boolean autoCopyPV; Boolean pieceMenu; Boolean sweepSelect; + Boolean monoMouse; Boolean whitePOV; Boolean scoreWhite; Boolean pvSAN[ENGINES]; @@ -838,6 +850,7 @@ typedef struct { int whiteRating; /* -1 if unknown */ int blackRating; /* -1 if unknown */ VariantClass variant; + char *variantName; char *outOfBook; /* [AS] Move and score when engine went out of book */ int boardWidth; /* [HGM] adjustable board size */ int boardHeight;