]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/extern.h
Took out all #include lines from the extern.h, and changed them to forward declaratio...
[irc/gameservirc.git] / gameserv / extern.h
index 43ae018340934f487702dd8147a63c23dcabd42c..af9cce68065692f0d4c3989a4bc2c7515decc400 100644 (file)
 
 #include <stdarg.h>
 #include <list>
-#include "player.h"
-#include "level.h"
+#include <string>
+
 #include "config.h"
 #include "options.h"
-#include "item.h"
+
 
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
 # endif
 #endif
 
+// Forward declarations
+class toplist;
+class Player;
+class aClient;
+class Level;
+class item;
+class itemContainer;
+class weapon;
+class armor;
+class potion;
+class tavernItem;
+class Monster;
+
 // Hash.cpp stuff start
 #define U_TABLE_SIZE 1999
 E unsigned long sHASH(const unsigned char *name);
@@ -143,6 +156,7 @@ E void gameserv(char *source, char *buf);
 E Level levels[LEVELS];
 E list<item*> Items;
 E list<tavernItem> tavern;
+E toplist myToplist;
 
 /** forest.cpp **/
 E void forest(char *source, char *buf);