Merge commit 'v4.3.16'
[xboard.git] / common.h
index 714a3b2..7883184 100644 (file)
--- a/common.h
+++ b/common.h
@@ -86,6 +86,8 @@ int pclose(FILE *);
 #define FALSE 0\r
 #endif\r
 \r
+#define UNKNOWN -1 /* [HGM] nps */\r
+\r
 #if !HAVE_RANDOM\r
 # if HAVE_RAND48\r
 #  define srandom srand48\r
@@ -98,7 +100,11 @@ int pclose(FILE *);
 \r
 /* End compatibility grunge */\r
 \r
-#define PROTOVER                2       /* engine protocol version */\r
+#define PROTOVER                2       /* engine protocol version */
+
+// [HGM] license: Messages that engines must print to satisfy their license requirements for patented variants\r
+#define GOTHIC "Gothic Chess (see www.GothicChess.com) is licensed under U.S. Patent #6,481,716 by Ed Trice"\r
+#define NOFALCON "Falcon Chess (see www.chessvariants.com) is licensed under U.S. Patent #5,690,334 by George W. Duke"\r
 \r
 /* [HGM] Some notes about board sizes:\r
    In games that allow piece drops, the holdings are considered part of the\r
@@ -219,10 +225,10 @@ typedef enum {
     BlackHSideCastleFR, BlackASideCastleFR, \r
     WhitePromotionKnight, WhitePromotionBishop,\r
     WhitePromotionRook, WhitePromotionQueen, WhitePromotionKing,\r
-    WhitePromotionChancellor, WhitePromotionArchbishop,\r
+    WhitePromotionChancellor, WhitePromotionArchbishop, WhitePromotionCentaur,\r
     BlackPromotionKnight, BlackPromotionBishop,\r
     BlackPromotionRook, BlackPromotionQueen, BlackPromotionKing,\r
-    BlackPromotionChancellor, BlackPromotionArchbishop,\r
+    BlackPromotionChancellor, BlackPromotionArchbishop, BlackPromotionCentaur,\r
     WhiteCapturesEnPassant, BlackCapturesEnPassant,\r
     WhiteDrop, BlackDrop, \r
     NormalMove, AmbiguousMove, IllegalMove, ImpossibleMove,\r
@@ -276,6 +282,11 @@ typedef enum {
     VariantFairy,        \r
     VariantCylinder,\r
     VariantFalcon,\r
+    VariantCapaRandom,\r
+    VariantBerolina,\r
+    VariantJanus,\r
+    VariantSuper,\r
+    VariantGreat,\r
     VariantUnknown       /* Catchall for other unknown variants */\r
 } VariantClass;\r
 \r
@@ -312,6 +323,11 @@ typedef enum {
   "fairy", \\r
   "cylinder", \\r
   "falcon",\\r
+  "caparandom",\\r
+  "berolina",\\r
+  "janus",\\r
+  "super",\\r
+  "great",\\r
   "unknown" \\r
 }\r
 \r
@@ -465,6 +481,7 @@ typedef struct {
     int firstProtocolVersion;\r
     int secondProtocolVersion;\r
     Boolean showButtonBar;\r
+    Boolean icsEngineAnalyze; \r
 \r
     /* [AS] New properties (down to the "ZIPPY" part) */\r
     Boolean firstScoreIsAbsolute;  /* If true, engine score is always from white side */\r
@@ -554,6 +571,20 @@ typedef struct {
     int timeOddsMode;\r
     int firstAccumulateTC;\r
     int secondAccumulateTC;\r
+    int firstNPS;\r
+    int secondNPS;\r
+    Boolean autoKibitz;\r
+    int engineComments;\r
+    char *userName;\r
+    int rewindIndex;    /* [HGM] autoinc   */\r
+    int sameColorGames; /* [HGM] alternate */\r
+    int smpCores;       /* [HGM] SMP       */\r
+    char *egtFormats;\r
+    int niceEngines;    /* [HGM] nice      */\r
+    char *firstLogo;    /* [HGM] logo      */\r
+    char *secondLogo;\r
+    Boolean autoLogo;\r
+    Boolean noGUI;      /* [HGM] fast: suppress all display updates */\r
 } AppData, *AppDataPtr;\r
 \r
 /* [AS] PGN tags (for showing in the game list) */\r