changes from H.G. Muller; version 4.3.14
[xboard.git] / common.h
index 714a3b2..cde32fb 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
@@ -242,6 +244,13 @@ typedef enum {
     SoundIcsDraw, SoundIcsUnfinished, NSoundClasses\r
 } SoundClass;\r
 \r
+typedef enum { \r
+  SizeTiny, SizeTeeny, SizeDinky, SizePetite, SizeSlim, SizeSmall,\r
+  SizeMediocre, SizeMiddling, SizeAverage, SizeModerate, SizeMedium,\r
+  SizeBulky, SizeLarge, SizeBig, SizeHuge, SizeGiant, SizeColossal,\r
+  SizeTitanic, NUM_SIZES \r
+} BoardSize;\r
+\r
 /* Names for chess variants, not necessarily supported */\r
 typedef enum {\r
     VariantNormal,       /* Normal chess */\r
@@ -276,6 +285,9 @@ typedef enum {
     VariantFairy,        \r
     VariantCylinder,\r
     VariantFalcon,\r
+    VariantCapaRandom,\r
+    VariantBerolina,\r
+    VariantJanus,\r
     VariantUnknown       /* Catchall for other unknown variants */\r
 } VariantClass;\r
 \r
@@ -312,6 +324,8 @@ typedef enum {
   "fairy", \\r
   "cylinder", \\r
   "falcon",\\r
+  "caparandom",\\r
+  "berolina",\\r
   "unknown" \\r
 }\r
 \r
@@ -554,6 +568,11 @@ 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
 } AppData, *AppDataPtr;\r
 \r
 /* [AS] PGN tags (for showing in the game list) */\r