aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/inventory.cpp
diff options
context:
space:
mode:
authorstrangerke2011-02-18 22:24:32 +0100
committerstrangerke2011-02-18 22:24:32 +0100
commitec559360ab48b2c1044dd36ae54e01d9a180055c (patch)
tree233e89cd8970471b183be4b20a4a3afce17eb097 /engines/hugo/inventory.cpp
parenta6593c294efc848460126f3bd0270d96053fab9e (diff)
downloadscummvm-rg350-ec559360ab48b2c1044dd36ae54e01d9a180055c.tar.gz
scummvm-rg350-ec559360ab48b2c1044dd36ae54e01d9a180055c.tar.bz2
scummvm-rg350-ec559360ab48b2c1044dd36ae54e01d9a180055c.zip
HUGO: Move several short function bodies from headers to cpp files
Diffstat (limited to 'engines/hugo/inventory.cpp')
-rw-r--r--engines/hugo/inventory.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/hugo/inventory.cpp b/engines/hugo/inventory.cpp
index 7862805d8b..7cd025025d 100644
--- a/engines/hugo/inventory.cpp
+++ b/engines/hugo/inventory.cpp
@@ -54,6 +54,26 @@ InventoryHandler::InventoryHandler(HugoEngine *vm) : _vm(vm), _invent(0) {
_maxInvent = 0;
}
+void InventoryHandler::setInventoryObjId(int16 objId) {
+ _inventoryObjId = objId;
+}
+
+void InventoryHandler::setInventoryState(istate_t state) {
+ _inventoryState = state;
+}
+
+void InventoryHandler::freeInvent() {
+ free(_invent);
+}
+
+int16 InventoryHandler::getInventoryObjId() const {
+ return _inventoryObjId;
+}
+
+istate_t InventoryHandler::getInventoryState() const {
+ return _inventoryState;
+}
+
/**
* Read _invent from Hugo.dat
*/