aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/objectman.cpp
diff options
context:
space:
mode:
authorStrangerke2016-09-09 01:09:25 +0200
committerStrangerke2016-09-09 01:09:25 +0200
commitb365338293ab1bbad4deef5f2979639f360d77db (patch)
treec18037f008ed12e580618b601d7848a317432294 /engines/dm/objectman.cpp
parent7654c89d4f420d4277b06698ec60ce289f2d3892 (diff)
downloadscummvm-rg350-b365338293ab1bbad4deef5f2979639f360d77db.tar.gz
scummvm-rg350-b365338293ab1bbad4deef5f2979639f360d77db.tar.bz2
scummvm-rg350-b365338293ab1bbad4deef5f2979639f360d77db.zip
DM: Rename IconIndice enum
Diffstat (limited to 'engines/dm/objectman.cpp')
-rw-r--r--engines/dm/objectman.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/engines/dm/objectman.cpp b/engines/dm/objectman.cpp
index bc8105cc6c..7e403be6fe 100644
--- a/engines/dm/objectman.cpp
+++ b/engines/dm/objectman.cpp
@@ -133,7 +133,7 @@ void ObjectMan::loadObjectNames() {
IconIndice ObjectMan::getObjectType(Thing thing) {
if (thing == Thing::_none)
- return kM1_IconIndiceNone;
+ return kDMIconIndiceNone;
int16 objectInfoIndex = _vm->_dungeonMan->getObjectInfoIndex(thing);
if (objectInfoIndex != -1)
@@ -146,35 +146,35 @@ IconIndice ObjectMan::getIconIndex(Thing thing) {
static byte chargeCountToTorchType[16] = {0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3}; // @ G0029_auc_Graphic562_ChargeCountToTorchType
int16 iconIndex = getObjectType(thing);
- if (iconIndex != kM1_IconIndiceNone) {
- if (((iconIndex < k32_IconIndiceWeaponDagger) && (iconIndex >= k0_IconIndiceJunkCompassNorth)) ||
- ((iconIndex >= k148_IconIndicePotionMaPotionMonPotion) && (iconIndex <= k163_IconIndicePotionWaterFlask)) ||
- (iconIndex == k195_IconIndicePotionEmptyFlask)) {
+ if (iconIndex != kDMIconIndiceNone) {
+ if (((iconIndex < kDMIconIndiceWeaponDagger) && (iconIndex >= kDMIconIndiceJunkCompassNorth)) ||
+ ((iconIndex >= kDMIconIndicePotionMaPotionMonPotion) && (iconIndex <= kDMIconIndicePotionWaterFlask)) ||
+ (iconIndex == kDMIconIndicePotionEmptyFlask)) {
Junk *junkThing = (Junk*)_vm->_dungeonMan->getThingData(thing);
switch (iconIndex) {
- case k0_IconIndiceJunkCompassNorth:
+ case kDMIconIndiceJunkCompassNorth:
iconIndex += _vm->_dungeonMan->_partyDir;
break;
- case k4_IconIndiceWeaponTorchUnlit:
+ case kDMIconIndiceWeaponTorchUnlit:
if (((Weapon*)junkThing)->isLit())
iconIndex += chargeCountToTorchType[((Weapon*)junkThing)->getChargeCount()];
break;
- case k30_IconIndiceScrollOpen:
+ case kDMIconIndiceScrollOpen:
if (((Scroll*)junkThing)->getClosed())
iconIndex++;
break;
- case k8_IconIndiceJunkWater:
- case k12_IconIndiceJunkIllumuletUnequipped:
- case k10_IconIndiceJunkJewelSymalUnequipped:
+ case kDMIconIndiceJunkWater:
+ case kDMIconIndiceJunkIllumuletUnequipped:
+ case kDMIconIndiceJunkJewelSymalUnequipped:
if (junkThing->getChargeCount())
iconIndex++;
break;
- case k23_IconIndiceWeaponBoltBladeStormEmpty:
- case k14_IconIndiceWeaponFlamittEmpty:
- case k18_IconIndiceWeaponStormringEmpty:
- case k25_IconIndiceWeaponFuryRaBladeEmpty:
- case k16_IconIndiceWeaponEyeOfTimeEmpty:
- case k20_IconIndiceWeaponStaffOfClawsEmpty:
+ case kDMIconIndiceWeaponBoltBladeStormEmpty:
+ case kDMIconIndiceWeaponFlamittEmpty:
+ case kDMIconIndiceWeaponStormringEmpty:
+ case kDMIconIndiceWeaponFuryRaBladeEmpty:
+ case kDMIconIndiceWeaponEyeOfTimeEmpty:
+ case kDMIconIndiceWeaponStaffOfClawsEmpty:
if (((Weapon*)junkThing)->getChargeCount())
iconIndex++;
break;
@@ -201,7 +201,7 @@ void ObjectMan::extractIconFromBitmap(uint16 iconIndex, byte *destBitmap) {
void ObjectMan::drawIconInSlotBox(uint16 slotBoxIndex, int16 iconIndex) {
SlotBox *slotBox = &_slotBoxes[slotBoxIndex];
slotBox->_iconIndex = iconIndex;
- if (slotBox->_iconIndex == kM1_IconIndiceNone)
+ if (slotBox->_iconIndex == kDMIconIndiceNone)
return;
Box blitBox;
@@ -237,7 +237,7 @@ void ObjectMan::drawIconInSlotBox(uint16 slotBoxIndex, int16 iconIndex) {
void ObjectMan::drawLeaderObjectName(Thing thing) {
char *objectName = nullptr;
int16 iconIndex = getIconIndex(thing);
- if (iconIndex == k147_IconIndiceJunkChampionBones) {
+ if (iconIndex == kDMIconIndiceJunkChampionBones) {
Junk *junk = (Junk*)_vm->_dungeonMan->getThingData(thing);
char champBonesName[16];