aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dungeonman.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm/dungeonman.h')
-rw-r--r--engines/dm/dungeonman.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/dm/dungeonman.h b/engines/dm/dungeonman.h
index f5943cd6be..645dd2f24a 100644
--- a/engines/dm/dungeonman.h
+++ b/engines/dm/dungeonman.h
@@ -21,13 +21,15 @@ public:
private:
uint16 _attributes;
public:
- ArmourInfo(uint16 weight, uint16 defense)
- :_weight(weight), _defense(defense) {}
+ ArmourInfo(uint16 weight, uint16 defense, uint16 attributes)
+ :_weight(weight), _defense(defense), _attributes(attributes) {}
uint16 getAttribute(ArmourAttribute attribute) { return _attributes & attribute; }
void setAttribute(ArmourAttribute attribute) { _attributes |= attribute; }
}; // @ ARMOUR_INFO
+extern ArmourInfo gArmourInfo[58];
+
enum WeaponClass {
/* Class 0: SWING weapons */
kWeaponClassSwingWeapon = 0, // @ C000_CLASS_SWING_WEAPON
@@ -62,6 +64,8 @@ public:
uint16 getProjectileAspectOrdinal() {return (_attributes >> 8) & 0x1F;} // @ M66_PROJECTILE_ASPECT_ORDINAL
}; // @ WEAPON_INFO
+extern WeaponInfo gWeaponInfo[46];
+
int16 ordinalToIndex(int16 val); // @ M01_ORDINAL_TO_INDEX
int16 indexToOrdinal(int16 val); // @ M00_INDEX_TO_ORDINAL