]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/pouch.h
updated the Change log w/ new additions
[irc/gameservirc.git] / gameserv / pouch.h
index 8ab6b1eb5ab16358facbbfe227dd6d8de22e0301..98332cc2c2032fe17aabc32140a898c082c40ed5 100644 (file)
@@ -2,8 +2,10 @@
 #define POUCH_H
 
 #include <list>
+#include <string>
 
 class item; // forward declaration
+class itemContainer; // forward declaration
 
 using namespace std;
 
@@ -12,24 +14,30 @@ class pouch
  public:
   pouch();
   pouch(pouch *);
+  pouch(const pouch &);
   ~pouch();
 
   void sort();
   void clear();
   bool isEmpty();
+  int getCount() {return count; };
 
-  item *Find(char *);
-  item *Find(string &);
+  itemContainer *Find(char *);
+  itemContainer *Find(string &);
+  itemContainer *Find(int );
 
-  void addItem(item *);
+  itemContainer *addItem(item *);
+  itemContainer *addItem(item *, int);
+  itemContainer *addItemNoChecks(item *);
   void deleteItem(item *);
-  list <item*> *getItems() { return &items; };
+  list <itemContainer> *getItems() { return &items; };
 
   // operators
   const pouch &operator = ( const pouch &);
 
  private:
-  list <item*> items;
+  list <itemContainer> items;
+  long count;
 };
 
 #endif