aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs_quests.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_quests.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_quests.cpp')
-rw-r--r--engines/xeen/dialogs_quests.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/engines/xeen/dialogs_quests.cpp b/engines/xeen/dialogs_quests.cpp
index 38011f1106..51a5d523d8 100644
--- a/engines/xeen/dialogs_quests.cpp
+++ b/engines/xeen/dialogs_quests.cpp
@@ -58,7 +58,7 @@ void Quests::execute() {
windowFlag = true;
}
- screen._windows[29].writeString(QUESTS_DIALOG_TEXT);
+ screen._windows[29].writeString(Res.QUESTS_DIALOG_TEXT);
drawButtons(&screen);
while (!_vm->shouldQuit()) {
@@ -74,10 +74,10 @@ void Quests::execute() {
for (int idx = 0; idx < TOTAL_QUEST_ITEMS; ++idx) {
if (party._questItems[idx]) {
if (!count && !headerShown && idx < 35) {
- lines[count++] = CLOUDS_OF_XEEN_LINE;
+ lines[count++] = Res.CLOUDS_OF_XEEN_LINE;
}
if (idx >= 35 && !headerShown) {
- lines[count++] = DARKSIDE_OF_XEEN_LINE;
+ lines[count++] = Res.DARKSIDE_OF_XEEN_LINE;
headerShown = true;
}
@@ -91,20 +91,20 @@ void Quests::execute() {
case 83:
case 84:
lines[count++] = Common::String::format("%d %s%c",
- party._questItems[idx], QUEST_ITEM_NAMES[idx],
+ party._questItems[idx], Res.QUEST_ITEM_NAMES[idx],
party._questItems[idx] == 1 ? ' ' : 's');
break;
default:
- lines[count++] = QUEST_ITEM_NAMES[idx];
+ lines[count++] = Res.QUEST_ITEM_NAMES[idx];
break;
}
}
}
if (count == 0) {
- screen._windows[30].writeString(NO_QUEST_ITEMS);
+ screen._windows[30].writeString(Res.NO_QUEST_ITEMS);
} else {
- screen._windows[30].writeString(Common::String::format(QUEST_ITEMS_DATA,
+ screen._windows[30].writeString(Common::String::format(Res.QUEST_ITEMS_DATA,
lines[topRow].c_str(), lines[topRow + 1].c_str(),
lines[topRow + 2].c_str(), lines[topRow + 3].c_str(),
lines[topRow + 4].c_str(), lines[topRow + 5].c_str(),
@@ -123,10 +123,10 @@ void Quests::execute() {
for (int idx = 0; idx < TOTAL_QUEST_FLAGS; ++idx) {
if (party._quests[idx]) {
if (!count && !headerShown && idx < 29) {
- lines[count++] = CLOUDS_OF_XEEN_LINE;
+ lines[count++] = Res.CLOUDS_OF_XEEN_LINE;
}
if (idx > 28 && !headerShown) {
- lines[count++] = DARKSIDE_OF_XEEN_LINE;
+ lines[count++] = Res.DARKSIDE_OF_XEEN_LINE;
headerShown = true;
}
@@ -135,9 +135,9 @@ void Quests::execute() {
}
if (count == 0)
- lines[1] = NO_CURRENT_QUESTS;
+ lines[1] = Res.NO_CURRENT_QUESTS;
- screen._windows[30].writeString(Common::String::format(CURRENT_QUESTS_DATA,
+ screen._windows[30].writeString(Common::String::format(Res.CURRENT_QUESTS_DATA,
lines[topRow].c_str(), lines[topRow + 1].c_str(), lines[topRow + 2].c_str()));
break;
@@ -150,10 +150,10 @@ void Quests::execute() {
for (int idx = 0; idx < MAX_DIALOG_LINES; ++idx) {
if (party._worldFlags[idx]) {
if (!count && !headerShown && idx < 72) {
- lines[count++] = CLOUDS_OF_XEEN_LINE;
+ lines[count++] = Res.CLOUDS_OF_XEEN_LINE;
}
if (idx >= 72 && !headerShown) {
- lines[count++] = DARKSIDE_OF_XEEN_LINE;
+ lines[count++] = Res.DARKSIDE_OF_XEEN_LINE;
headerShown = true;
}
@@ -162,9 +162,9 @@ void Quests::execute() {
}
if (count == 0)
- lines[1] = NO_AUTO_NOTES;
+ lines[1] = Res.NO_AUTO_NOTES;
- screen._windows[30].writeString(Common::String::format(AUTO_NOTES_DATA,
+ screen._windows[30].writeString(Common::String::format(Res.AUTO_NOTES_DATA,
lines[topRow].c_str(), lines[topRow + 1].c_str(),
lines[topRow + 2].c_str(), lines[topRow + 3].c_str(),
lines[topRow + 4].c_str(), lines[topRow + 5].c_str(),