aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_quick_ref.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-22 20:00:04 -0400
committerPaul Gilbert2016-09-22 20:00:04 -0400
commit4515d7a1ac119edfa9bfce90655cab2d4d279582 (patch)
tree59f63f7750a5ea4b7a01811c8a46422a3fad8a91 /engines/xeen/dialogs_quick_ref.cpp
parentedaf645ae044b620e7c2fe9d20e204ed6c579cd4 (diff)
downloadscummvm-rg350-4515d7a1ac119edfa9bfce90655cab2d4d279582.tar.gz
scummvm-rg350-4515d7a1ac119edfa9bfce90655cab2d4d279582.tar.bz2
scummvm-rg350-4515d7a1ac119edfa9bfce90655cab2d4d279582.zip
XEEN: Create Resources class to encapsulate all the static resources
This will make it easier later on to handle things like translations, and if the other games have different values for some arrays
Diffstat (limited to 'engines/xeen/dialogs_quick_ref.cpp')
-rw-r--r--engines/xeen/dialogs_quick_ref.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/xeen/dialogs_quick_ref.cpp b/engines/xeen/dialogs_quick_ref.cpp
index e9ffbd482c..eb516959d6 100644
--- a/engines/xeen/dialogs_quick_ref.cpp
+++ b/engines/xeen/dialogs_quick_ref.cpp
@@ -46,21 +46,21 @@ void QuickReferenceDialog::execute() {
Character &c = combat._globalCombat == 2 ? *combat._combatParty[idx] :
party._activeParty[idx];
Condition condition = c.worstCondition();
- lines[idx] = Common::String::format(QUICK_REF_LINE,
+ lines[idx] = Common::String::format(Res.QUICK_REF_LINE,
idx * 10 + 24, idx + 1, c._name.c_str(),
- CLASS_NAMES[c._class][0], CLASS_NAMES[c._class][1], CLASS_NAMES[c._class][2],
+ Res.CLASS_NAMES[c._class][0], Res.CLASS_NAMES[c._class][1], Res.CLASS_NAMES[c._class][2],
c.statColor(c.getCurrentLevel(), c._level._permanent), c._level._permanent,
c.statColor(c._currentHp, c.getMaxHP()), c._currentHp,
c.statColor(c._currentSp, c.getMaxSP()), c._currentSp,
c.statColor(c.getArmorClass(), c.getArmorClass(true)), c.getArmorClass(),
- CONDITION_COLORS[condition],
- CONDITION_NAMES[condition][0], CONDITION_NAMES[condition][1],
- CONDITION_NAMES[condition][2], CONDITION_NAMES[condition][3]
+ Res.CONDITION_COLORS[condition],
+ Res.CONDITION_NAMES[condition][0], Res.CONDITION_NAMES[condition][1],
+ Res.CONDITION_NAMES[condition][2], Res.CONDITION_NAMES[condition][3]
);
}
int food = (party._food / party._activeParty.size()) / 3;
- Common::String msg = Common::String::format(QUICK_REFERENCE,
+ Common::String msg = Common::String::format(Res.QUICK_REFERENCE,
lines[0].c_str(), lines[1].c_str(), lines[2].c_str(),
lines[3].c_str(), lines[4].c_str(), lines[5].c_str(),
lines[6].c_str(), lines[7].c_str(),