ScummVM API documentation
itemlist.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * Additional copyright for this file:
8  * Copyright (C) 1995-1997 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef PEGASUS_ITEMS_ITEMLIST_H
26 #define PEGASUS_ITEMS_ITEMLIST_H
27 
28 #include "common/list.h"
29 
30 #include "pegasus/types.h"
31 
32 namespace Common {
33  class ReadStream;
34  class WriteStream;
35 }
36 
37 namespace Pegasus {
38 
39 class Item;
40 
41 class ItemList : public Common::List<Item *> {
42 public:
43  ItemList();
44  virtual ~ItemList();
45 
46  virtual void writeToStream(Common::WriteStream *stream);
47  virtual void readFromStream(Common::ReadStream *stream);
48 
49  Item *findItemByID(const ItemID id);
50  void resetAllItems();
51 };
52 
54 
55 #define g_allItems g_vm->getAllItems()
56 
57 } // End of namespace Pegasus
58 
59 #endif
Definition: stream.h:77
Definition: itemlist.h:41
Definition: list.h:44
Definition: item.h:294
Definition: algorithm.h:29
Definition: stream.h:385
Definition: list_intern.h:51
Definition: ai_action.h:33