aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/objectman.cpp
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-28 20:33:04 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit5ba83b8b4dfb3ed4bf4789c528d0c5d0d169fae8 (patch)
treee136f35f8cf17ee5e87f270fb8bc6450c5b16522 /engines/dm/objectman.cpp
parentae6f2d711ccf3a2351be2d98da07ed2daf95c017 (diff)
downloadscummvm-rg350-5ba83b8b4dfb3ed4bf4789c528d0c5d0d169fae8.tar.gz
scummvm-rg350-5ba83b8b4dfb3ed4bf4789c528d0c5d0d169fae8.tar.bz2
scummvm-rg350-5ba83b8b4dfb3ed4bf4789c528d0c5d0d169fae8.zip
DM: Add F0295_CHAMPION_HasObjectIconInSlotBoxChanged, F0039_OBJECT_GetIconIndexInSlotBox
Diffstat (limited to 'engines/dm/objectman.cpp')
-rw-r--r--engines/dm/objectman.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/dm/objectman.cpp b/engines/dm/objectman.cpp
index 0f04fb4c96..aed1c13a1d 100644
--- a/engines/dm/objectman.cpp
+++ b/engines/dm/objectman.cpp
@@ -230,7 +230,7 @@ void ObjectMan::drawIconInSlotBox(uint16 slotBoxIndex, int16 iconIndex) {
box, kColorNoTransparency, gDefultViewPort);
}
}
-
+
#define kObjectNameMaximumLength 14 // @ C014_OBJECT_NAME_MAXIMUM_LENGTH
void ObjectMan::drawLeaderObjectName(Thing thing) {
@@ -247,4 +247,8 @@ void ObjectMan::drawLeaderObjectName(Thing thing) {
}
_vm->_textMan->printWithTrailingSpacesToScreen(233, 37, kColorCyan, kColorBlack, objName, kObjectNameMaximumLength);
}
+
+IconIndice ObjectMan::getIconIndexInSlotBox(uint16 slotBoxIndex) {
+ return (IconIndice)_slotBoxes[slotBoxIndex]._iconIndex;
+}
}