]> jfr.im git - irc/gameservirc.git/blame_incremental - gameserv/pouch.h
Implemented the use command for the new item system
[irc/gameservirc.git] / gameserv / pouch.h
... / ...
CommitLineData
1#ifndef POUCH_H
2#define POUCH_H
3
4#include <list>
5#include <string>
6
7class item; // forward declaration
8class itemContainer; // forward declaration
9
10using namespace std;
11
12class pouch
13{
14 public:
15 pouch();
16 pouch(pouch *);
17 ~pouch();
18
19 void sort();
20 void clear();
21 bool isEmpty();
22
23 itemContainer *Find(char *);
24 itemContainer *Find(string &);
25 itemContainer *Find(int );
26
27 itemContainer *addItem(item *);
28 itemContainer *addItemNoChecks(item *);
29 void deleteItem(item *);
30 list <itemContainer> *getItems() { return &items; };
31
32 // operators
33 const pouch &operator = ( const pouch &);
34
35 private:
36 list <itemContainer> items;
37 long count;
38};
39
40#endif