]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/extern.h
Finally got level.h/cpp compiling into the project... beginning to store
[irc/gameservirc.git] / gameserv / extern.h
index df96cfc9c936a76c31b0e075bc1142bea6701708..d0a2d0a20383565646c8a200e36ffea1556e77bb 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <stdarg.h>
 #include "player.h"
+#include "level.h"
 #include "list.h"
 #include "config.h"
 #include "myString.h"
@@ -31,10 +32,9 @@ E unsigned long sHASH(const unsigned char *name);
 E unsigned long iHASH(const unsigned char *name);
 // hash.cpp stuff end
 
-
-E int day;
-E void save_day();
-E void load_day();
+E long lastrefresh;
+E void save_lastrefresh();
+E void load_lastrefresh();
 
 // The socket
 E int sock;
@@ -69,6 +69,9 @@ E char *welcomemsg;
 E char *ignoreserverslist;
 
 E long configflags;
+E long refreshperiod;
+E int level1expire;
+E int defaultexpire;
 E bool shuttingdown;
 E int welcomedelay;
 E int updateperiod;
@@ -116,7 +119,7 @@ E void showNews(char *nick, List<myString> &news);
 
 /** gameserv.cpp **/
 E void gameserv(char *source, char *buf);
-E Monster *monsters[LEVELS][MONSTERS];
+E Level levels[LEVELS];
 
 /** forest.cpp **/
 E void forest(char *source, char *buf);
@@ -165,6 +168,7 @@ E void resetall();
 
 E void do_attack(char *u);
 E void do_bank(char *u);
+E void do_check(char *u);
 E void do_fight(char *u);
 E void do_forest(char *u);
 E void do_heal(char *u);