From d5c1f8b8d645136cf72981186db6e81b2082b773 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 28 Jun 2015 13:29:32 -0400 Subject: SHERLOCK: RT: Implement initial inventory --- engines/sherlock/inventory.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/sherlock/inventory.cpp') diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp index 492ac736b1..5614775e02 100644 --- a/engines/sherlock/inventory.cpp +++ b/engines/sherlock/inventory.cpp @@ -33,6 +33,13 @@ InventoryItem::InventoryItem(int requiredFlag, const Common::String &name, _examine(examine), _lookFlag(0) { } +InventoryItem::InventoryItem(int requiredFlag, const Common::String &name, + const Common::String &description, const Common::String &examine, const Common::String &verbName) : + _requiredFlag(requiredFlag), _name(name), _description(description), + _examine(examine), _lookFlag(0) { + _verb._verb = verbName; +} + void InventoryItem::synchronize(Serializer &s) { s.syncAsSint16LE(_requiredFlag); s.syncAsSint16LE(_lookFlag); -- cgit v1.2.3