]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/extern.h
New autoconf
[irc/gameservirc.git] / gameserv / extern.h
index 63f5e85b48845c4df6113f0322e9cb5771a1ee34..d239c22cde136fb5e9b3a90a602b930c6726a552 100644 (file)
@@ -3,6 +3,9 @@
 
 #define E extern
 
+#define LEVELS 12      // Levels in the game
+#define MONSTERS 12    // Monsters per level
+
 #include <stdarg.h>
 #include "player.h"
 #include "list.h"
@@ -41,7 +44,7 @@ E void raw(const char *fmt, ...);
 
 /** gameserv.cpp **/
 E void gameserv(char *source, char *buf);
-E Monster *monsters[5][12];
+E Monster *monsters[LEVELS][MONSTERS];
 
 /** forest.cpp **/
 E void forest(char *source, char *buf);
@@ -56,7 +59,11 @@ E bool is_fighting(char *u);
 E bool isnt_fighting(char *u);
 E bool player_fight(char *u);
 E bool master_fight(char *u);
+
+#ifndef HAVE_STRTOK
 E char *strtok(char *str, const char *delim);
+#endif
+
 E char *spaces(int len, char *seperator);
 E void display_monster(char *u);
 E void display_players(char *u);