X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=6239e13435451c2f855dde410f61fe87f0cdd542;hb=8ec787419ed071b5eaf5710a6a10637ec9fb7a58;hp=3d92dc044070a487a6cfb5a41e60495403655f2a;hpb=7295e7b8f71c001f64930229b3d99cf8b2245a9e;p=xboard.git diff --git a/common.h b/common.h index 3d92dc0..6239e13 100644 --- a/common.h +++ b/common.h @@ -180,9 +180,13 @@ typedef char *String; #define BOARD_RGHT (gameInfo.boardWidth + gameInfo.holdingsWidth) #define CASTLING (BOARD_RANKS-1) /* [HGM] hide in upper rank */ #define VIRGIN (BOARD_RANKS-2) /* [HGM] pieces not moved */ +#define TOUCHED_W CASTLING][(BOARD_FILES-6) /* [HGM] in upper rank */ +#define TOUCHED_B CASTLING][(BOARD_FILES-5) /* [HGM] in upper rank */ +#define EP_RANK CASTLING][(BOARD_FILES-4) /* [HGM] in upper rank */ +#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 @@ -313,6 +317,7 @@ typedef enum { #define DEMOTED (int)WhiteRook - (int)WhiteDragon + (int) #define SHOGI (int)EmptySquare + (int) #define CHUPROMOTED ((int)WhitePDragon - (int)WhiteDragon)*(gameInfo.variant == VariantChu) + PROMOTED +#define CHUDEMOTED ((int)WhiteDragon - (int)WhitePDragon)*(gameInfo.variant == VariantChu) + DEMOTED #define IS_SHOGI(V) ((V) == VariantShogi || (V) == VariantChu) #define IS_LION(V) ((V) == WhiteLion || (V) == BlackLion) @@ -375,7 +380,6 @@ typedef enum { Variant36, /* Temporary name for possible future ICC wild 36 */ VariantShogi, /* [HGM] added variants */ VariantChu, - VariantXiangqi, VariantCourier, VariantGothic, VariantCapablanca, @@ -390,10 +394,11 @@ typedef enum { VariantGreat, VariantTwilight, VariantMakruk, - VariantASEAN, VariantSChess, VariantGrand, VariantSpartan, + VariantXiangqi, + VariantASEAN, VariantLion, VariantChuChess, VariantUnknown /* Catchall for other unknown variants */ @@ -425,7 +430,6 @@ typedef enum { "wild36", \ "shogi", \ "chu", \ - "xiangqi", \ "courier", \ "gothic", \ "capablanca", \ @@ -440,12 +444,13 @@ typedef enum { "great",\ "twilight",\ "makruk",\ - "asean",\ "seirawan",\ "grand",\ "spartan",\ + "xiangqi", \ + "asean",\ "lion",\ - "chuchess",\ + "elven",\ "unknown" \ } @@ -481,6 +486,7 @@ typedef struct { char *pgnName[ENGINES]; Boolean firstPlaysBlack; Boolean noChessProgram; + char *positionDir; char *host[ENGINES]; char *themeNames; char *pieceDirectory; @@ -507,6 +513,7 @@ typedef struct { char *loadGameFile; int loadGameIndex; /* game # within file */ char *saveGameFile; + char *autoInstall; Boolean autoSaveGames; Boolean onlyOwn; /* [HGM] suppress auto-saving of observed games */ char *loadPositionFile; @@ -528,10 +535,12 @@ typedef struct { char *clockFont; char *messageFont; /* WinBoard only */ char *coordFont; - char *font; /* xboard only: all other fonts */ - char *tagsFont; /* WinBoard only */ - char *commentFont; /* WinBoard only */ - char *icsFont; /* WinBoard only */ + char *font; /* xboard only */ + char *tagsFont; + char *commentFont; + char *historyFont; + char *gameListFont; + char *icsFont; Boolean ringBellAfterMoves; Boolean autoCallFlag; Boolean flipView; @@ -680,6 +689,7 @@ typedef struct { /* [HGM] Board size */ int NrFiles; int NrRanks; + int rankOffset; int holdingsSize; int matchPause; char * pieceToCharTable; @@ -735,6 +745,8 @@ typedef struct { int dateThreshold; int searchMode; int stretch; + int minPieces; + int maxPieces; Boolean ignoreColors; Boolean findMirror; char *userName; @@ -746,6 +758,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]; @@ -766,6 +779,7 @@ typedef struct { Boolean autoCopyPV; Boolean pieceMenu; Boolean sweepSelect; + Boolean monoMouse; Boolean whitePOV; Boolean scoreWhite; Boolean pvSAN[ENGINES]; @@ -828,6 +842,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;