aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/inventory.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-20 22:01:52 -0400
committerPaul Gilbert2015-03-20 22:01:52 -0400
commitf0ad2f624bddcc031c99a487bff1d5ec89956477 (patch)
treef296f220023cb9309102b4468a0b441ddb3751b1 /engines/sherlock/inventory.h
parentcf92e540db2d58f243abe595da40a7da4450911f (diff)
downloadscummvm-rg350-f0ad2f624bddcc031c99a487bff1d5ec89956477.tar.gz
scummvm-rg350-f0ad2f624bddcc031c99a487bff1d5ec89956477.tar.bz2
scummvm-rg350-f0ad2f624bddcc031c99a487bff1d5ec89956477.zip
SHERLOCK: More scene loading, implemented Inventory class
Diffstat (limited to 'engines/sherlock/inventory.h')
-rw-r--r--engines/sherlock/inventory.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/engines/sherlock/inventory.h b/engines/sherlock/inventory.h
index de4a2d7758..dc56e93841 100644
--- a/engines/sherlock/inventory.h
+++ b/engines/sherlock/inventory.h
@@ -24,15 +24,23 @@
#define SHERLOCK_INVENTORY_H
#include "common/scummsys.h"
+#include "common/array.h"
namespace Sherlock {
struct InventoryItem {
- int stringIndex;
- char name[12];
- char description[41];
- char name2[9];
- uint16 value;
+ int _requiredFlag;
+ Common::String _name;
+ Common::String _description;;
+ Common::String _examine;
+ int _lookFlag;
+};
+
+class Inventory : public Common::Array<InventoryItem> {
+public:
+ uint _holdings;
+
+ Inventory() : Common::Array<InventoryItem>(), _holdings(0) {}
};
} // End of namespace Sherlock