]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/player.cpp
Added a file pouch.h which contains an inventory class Pouch to be used for carrying...
[irc/gameservirc.git] / gameserv / player.cpp
index ccaf1abea3d094de9d915ab2c622938159082341..55aa9204bf06e05446b29faa249959381899409e 100644 (file)
@@ -1,4 +1,5 @@
 #include "player.h"
+#include "pouch.h"
 #include "extern.h"
 #include <stdlib.h>
 #include <stdio.h>
@@ -25,6 +26,7 @@ void Player::reset()
     master = NULL;
     battle = NULL;
     flags = 0;
+    inventory.reset();
 }
 
 Player::Player(aClient *user)
@@ -158,3 +160,9 @@ long int Player::remFlag(long int flag)
     return getFlags();
 }
 
+Pouch::Pouch(int h, int s, int d)
+{
+    setHealing(h);
+    setStrength(s);
+    setDefense(d);
+}