diff options
Diffstat (limited to 'engines/bladerunner/items.cpp')
-rw-r--r-- | engines/bladerunner/items.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/bladerunner/items.cpp b/engines/bladerunner/items.cpp index e9cb013246..51145a3b14 100644 --- a/engines/bladerunner/items.cpp +++ b/engines/bladerunner/items.cpp @@ -44,6 +44,13 @@ void Items::getXYZ(int itemId, float* x, float* y, float* z) { _items[itemIndex]->getXYZ(x, y, z); } +void Items::getWidthHeight(int itemId, int *width, int *height) { + int itemIndex = findItem(itemId); + assert(itemIndex != -1); + + _items[itemIndex]->getWidthHeight(width, height); +} + void Items::tick() { int setId = _vm->_scene->getSetId(); for(int i = 0; i < (int)_items.size(); i++) { |