#define E extern
#define LEVELS 12 // Levels in the game
-#define REALLEVELS 9 // Levels to load from monsters.dat
+#define REALLEVELS 12 // Levels to load from monsters.dat
#define MONSTERS 12 // Monsters per level
#include <stdarg.h>
# endif
#endif
+// Hash.cpp stuff start
+#define U_TABLE_SIZE 1999
+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 char *VERSION;
E char *PACKAGE;
E char *welcomemsg;
+E char *ignoreserverslist;
+E long configflags;
+E bool shuttingdown;
E int welcomedelay;
E int updateperiod;
E int forestfights;
E int maxafightdistance;
E int maxbfightdistance;
+E int maxidletime;
+E int idlecheckperiod;
/* config.cpp end */
-E List<aClient> clients;
-E List<aClient> players;
+E List<aClient> players[U_TABLE_SIZE];
+E List<aClient> clients[U_TABLE_SIZE];
E Monster boss;
+/** tcpclient.cpp **/
+E void check_idles();
+
/** List search functions **/
E aClient *find(char *nick);
E aClient *find(const char *nick);
E aClient *findbyrealnick(char *realnick);
#endif
+/** tcpclient.cpp **/
+
/** Sock writing functions **/
E void notice(const char *source, const char *dest, const char *fmt, ...);
E void raw(const char *fmt, ...);
E void deleteMonster(Monster *m);
E void refresh(Player *p);
E void refreshall();
+E void updateTS(Player *p);
+E bool timedOut(Player *p);
+E void timeOutEvent(Player *p);
E void reset(Player *p);
E void resetall();
E void do_identify(char *u);
E void do_invenory(char *u);
E void do_list(char *u);
+E void do_logout(char *u);
E void do_play(char *u);
E void do_quitg(char *u);
E void do_refresh(char *u);
E void do_use(char *u);
E void see_mystic(char *u);
+E void logout(aClient *user); // log a user off the game
E void showstats(const char *u, const char *nick);
E void showinventory(aClient *from, aClient *to = NULL);
/* Database saving stuff */