Merge branch 'master' into actions-arithmetic
[open-adventure.git] / advent.h
index 327c717254cd4177d377fec58adeee9dfcf955d9..1f2bd8c893d18c1ef40a0009992b67c1746bef6b 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -12,7 +12,8 @@
 #define MAXPARMS       25
 #define INVLIMIT       7
 #define INTRANSITIVE   -1              /* illegal object number */
-#define SPECIALBASE    300             /* base umber of special rooms */
+#define SPECIALBASE    300             /* base number of special rooms */
+#define WARNTIME       30              /* late game starts at game.limit-this */
 
 typedef long token_t;  /* word token - someday this will be char[TOKLEN+1] */
 typedef long vocab_t;  /* index into a vocabulary array */
@@ -108,10 +109,12 @@ extern bool MAPLIN(FILE *);
 extern void TYPE(void);
 extern void DATIME(long*, long*);
 
+enum termination {endgame, quitgame, scoregame};
+
 extern void set_seed(long);
 extern unsigned long get_next_lcg_value(void);
 extern long randrange(long);
-extern void score(long);
+extern void score(enum termination);
 extern int saveresume(FILE *, bool);
 
 /*