aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/items/itemlist.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-02 01:06:17 -0400
committerMatthew Hoops2011-09-02 01:06:17 -0400
commitcb7b382acfd29957c9522b08b6460526fc73983c (patch)
tree2168c201e6bd111b32dce94497d29686c56540a2 /engines/pegasus/items/itemlist.h
parente642906cdda1d943bcbc875c752bb7ba69c2b81e (diff)
downloadscummvm-rg350-cb7b382acfd29957c9522b08b6460526fc73983c.tar.gz
scummvm-rg350-cb7b382acfd29957c9522b08b6460526fc73983c.tar.bz2
scummvm-rg350-cb7b382acfd29957c9522b08b6460526fc73983c.zip
PEGASUS: Restructure remaining (already converted) Game Shell classes
Diffstat (limited to 'engines/pegasus/items/itemlist.h')
-rwxr-xr-xengines/pegasus/items/itemlist.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/engines/pegasus/items/itemlist.h b/engines/pegasus/items/itemlist.h
new file mode 100755
index 0000000000..dd9a4ba023
--- /dev/null
+++ b/engines/pegasus/items/itemlist.h
@@ -0,0 +1,60 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * Additional copyright for this file:
+ * Copyright (C) 1995-1997 Presto Studios, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef PEGASUS_ITEMS_ITEMLIST_H
+#define PEGASUS_ITEMS_ITEMLIST_H
+
+#include "common/list.h"
+
+#include "pegasus/types.h"
+
+namespace Common {
+ class ReadStream;
+ class WriteStream;
+}
+
+namespace Pegasus {
+
+class Item;
+
+class ItemList : public Common::List<Item *> {
+public:
+ ItemList();
+ virtual ~ItemList();
+
+ virtual Common::Error writeToStream(Common::WriteStream *stream);
+ virtual Common::Error readFromStream(Common::ReadStream *stream);
+
+ Item *findItemByID(const tItemID id);
+};
+
+typedef ItemList::iterator ItemIterator;
+
+// TODO: Don't use global construction!
+extern ItemList g_allItems;
+
+} // End of namespace Pegasus
+
+#endif