]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/player.h
Shrunk the dependencies immensely with forward declarations in all H files instead...
[irc/gameservirc.git] / gameserv / player.h
index 096bb45c1112ec2c9c3fca4ee3583c6bdb93cdf5..b0919dd1410f5bd732853570b17f8b171f397177 100644 (file)
@@ -3,18 +3,17 @@
 
 #include <string>
 
-#include "pouch.h"
-#include "item.h"
-
 using namespace std;
 
 typedef struct monster_ Monster;
 
 class aClient; // forward declaration
+
 class item;    // forward declaration
 class weapon;  // forward declaration
 class armor;   // forward declaration
 class potion;  // forward declaration
+class pouch;   // forward declaration
 
 class Player {
 public:
@@ -53,7 +52,7 @@ public:
     int forest_fights;          // Amount of forest fights left today
     int player_fights;          // Amount of player<->player fights for today
     string password;           // Player's encrypted password
-    Pouch inventory;           // This contains their potions, etc.
+    pouch *inventory;          // This contains everything you're holding
     long int lastcommand;      // timestamp for the last command typed
     long int lastlogin;                // timestamp for the last login