[Scummvm-git-logs] scummvm master -> 829669fc3530477189a334f1b3529ac8f742bc09
dreammaster
noreply at scummvm.org
Sun May 21 04:16:37 UTC 2023
This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
90e8bddba7 MM: MM1: Changes for map 49
2bdc525abe MM: MM1: Changes for wall messages
829669fc35 MM: MM1: Changes for map 54
Commit: 90e8bddba7e68b0bfbde2e94b5fa7fbaec2242af
https://github.com/scummvm/scummvm/commit/90e8bddba7e68b0bfbde2e94b5fa7fbaec2242af
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2023-05-20T21:14:58-07:00
Commit Message:
MM: MM1: Changes for map 49
Changed paths:
A engines/mm/mm1/views_enh/interactions/alamar.cpp
A engines/mm/mm1/views_enh/interactions/alamar.h
devtools/create_mm/files/mm1/strings_en.yml
engines/mm/mm1/views_enh/dialogs.h
engines/mm/mm1/views_enh/interactions/prisoners.cpp
engines/mm/module.mk
diff --git a/devtools/create_mm/files/mm1/strings_en.yml b/devtools/create_mm/files/mm1/strings_en.yml
index 5fb92bbccc9..294275c22d2 100644
--- a/devtools/create_mm/files/mm1/strings_en.yml
+++ b/devtools/create_mm/files/mm1/strings_en.yml
@@ -1711,9 +1711,9 @@ maps:
map49:
chute: "A chute..."
catapult: "A catapult ejects you from the tower!"
- message_e: "Etched in silver, message e reads:\noei/:1-33-1ek5;d-et,"
- alamar1: "The omnipotent king alamar speaks,\n\n"
- alamar2: "\"Varnlings, i quest thee to find the\nCrypt of Carmenca. away with you...\""
+ message_e: "Etched in silver, message E reads:\noei/:1-33-1ek5;d-et,"
+ alamar1: "The omnipotent King Alamar speaks,\n\n"
+ alamar2: "\"Varnlings, I quest thee to find the\nCrypt of Carmenca. Away with you...\""
alamar3: "\"My saviors, you're always welcome here!\nYou should find the inner sanctum...\nLive long and prosper.\""
alamar4: "\"You've discovered my true identity!\nInto the soul maze you go...\""
guards1: "Castle guards exclaim,\n\"No Merchants Pass! begone peasants.\""
@@ -1722,6 +1722,9 @@ maps:
trap: "Singe! Acid trap."
explosion: "Boom! A fiery explosion."
throne_room: "Throne room"
+ emap49:
+ king_alamar: "King Alamar"
+ sheltem: "Imposter King Alamar"
map50:
message7: "Etched in gold, message 7 reads:\nThese-and-that-must-can-different-\nshall-have-from-a-jvc"
diff --git a/engines/mm/mm1/views_enh/dialogs.h b/engines/mm/mm1/views_enh/dialogs.h
index b6e8a4798eb..1e3ade25d8d 100644
--- a/engines/mm/mm1/views_enh/dialogs.h
+++ b/engines/mm/mm1/views_enh/dialogs.h
@@ -54,6 +54,7 @@
#include "mm/mm1/views_enh/who_will_try.h"
#include "mm/mm1/views_enh/won_game.h"
#include "mm/mm1/views_enh/interactions/access_code.h"
+#include "mm/mm1/views_enh/interactions/alamar.h"
#include "mm/mm1/views_enh/interactions/alien.h"
#include "mm/mm1/views_enh/interactions/arenko.h"
#include "mm/mm1/views_enh/interactions/arrested.h"
@@ -93,6 +94,7 @@ namespace ViewsEnh {
struct Dialogs {
private:
ViewsEnh::Interactions::AccessCode _accessCode;
+ ViewsEnh::Interactions::Alamar _alamar;
ViewsEnh::Interactions::Alien _alien;
ViewsEnh::Interactions::Arenko _arenko;
ViewsEnh::Interactions::Arrested _arrested;
diff --git a/engines/mm/mm1/views_enh/interactions/alamar.cpp b/engines/mm/mm1/views_enh/interactions/alamar.cpp
new file mode 100644
index 00000000000..a424efa20a7
--- /dev/null
+++ b/engines/mm/mm1/views_enh/interactions/alamar.cpp
@@ -0,0 +1,98 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include "mm/mm1/views_enh/interactions/alamar.h"
+#include "mm/mm1/maps/map49.h"
+#include "mm/mm1/globals.h"
+#include "mm/mm1/sound.h"
+
+namespace MM {
+namespace MM1 {
+namespace ViewsEnh {
+namespace Interactions {
+
+#define VAL1 952
+#define HAS_EYE 154
+
+Alamar::Alamar() : Interaction("Alamar", 22) {
+}
+
+bool Alamar::msgFocus(const FocusMessage &msg) {
+ Interaction::msgFocus(msg);
+ clearButtons();
+
+ MM1::Maps::Map49 &map = *static_cast<MM1::Maps::Map49 *>(g_maps->_currentMap);
+ _succeeded = false;
+ for (uint i = 0; i < g_globals->_party.size() && !_succeeded; ++i)
+ _succeeded = (g_globals->_party[i]._flags[13] & CHARFLAG13_ALAMAR) != 0;
+ map[HAS_EYE] = g_globals->_party.hasItem(EYE_OF_GOROS_ID) ? 1 : 0;
+
+ if (!_succeeded && !map[HAS_EYE]) {
+ for (uint i = 0; i < g_globals->_party.size() && !_succeeded; ++i)
+ g_globals->_party[i]._quest = 255;
+ }
+
+ _title = STRING["maps.emap49.king_alamar"];
+
+ if (_succeeded) {
+ addText(Common::String::format("%s%s",
+ STRING["maps.map49.alamar1"].c_str(),
+ STRING["maps.map49.alamar3"].c_str()
+ ));
+
+ } else if (map[HAS_EYE]) {
+ _title = STRING["maps.emap49.sheltem"];
+ addText(Common::String::format("%s%s",
+ STRING["maps.map49.alamar1"].c_str(),
+ STRING["maps.map49.alamar4"].c_str()
+ ));
+
+ for (int i = 0; i < 6; ++i)
+ Sound::sound(SOUND_2);
+
+ } else {
+ addText(Common::String::format("%s%s",
+ STRING["maps.map49.alamar1"].c_str(),
+ STRING["maps.map49.alamar2"].c_str()
+ ));
+ }
+
+ return true;
+}
+
+void Alamar::viewAction() {
+ MM1::Maps::Map49 &map = *static_cast<MM1::Maps::Map49 *>(g_maps->_currentMap);
+ close();
+
+ if (map[HAS_EYE]) {
+ map[VAL1]++;
+ map.updateGame();
+
+ } else {
+ g_maps->_mapPos.x = 8;
+ map.updateGame();
+ }
+}
+
+} // namespace Interactions
+} // namespace ViewsEnh
+} // namespace MM1
+} // namespace MM
diff --git a/engines/mm/mm1/views_enh/interactions/alamar.h b/engines/mm/mm1/views_enh/interactions/alamar.h
new file mode 100644
index 00000000000..1aa983fe4c2
--- /dev/null
+++ b/engines/mm/mm1/views_enh/interactions/alamar.h
@@ -0,0 +1,52 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef MM1_VIEWS_ENH_INTERACTIONS_ALAMAR_H
+#define MM1_VIEWS_ENH_INTERACTIONS_ALAMAR_H
+
+#include "mm/mm1/views_enh/interactions/interaction.h"
+#include "mm/mm1/data/character.h"
+
+namespace MM {
+namespace MM1 {
+namespace ViewsEnh {
+namespace Interactions {
+
+class Alamar : public Interaction {
+private:
+ bool _succeeded = false;
+
+protected:
+ void viewAction() override;
+
+public:
+ Alamar();
+ virtual ~Alamar() {}
+
+ bool msgFocus(const FocusMessage &msg) override;
+};
+
+} // namespace Interactions
+} // namespace ViewsEnh
+} // namespace MM1
+} // namespace MM
+
+#endif
diff --git a/engines/mm/mm1/views_enh/interactions/prisoners.cpp b/engines/mm/mm1/views_enh/interactions/prisoners.cpp
index 532af6e4bad..15d0d16d930 100644
--- a/engines/mm/mm1/views_enh/interactions/prisoners.cpp
+++ b/engines/mm/mm1/views_enh/interactions/prisoners.cpp
@@ -135,7 +135,7 @@ MutatedPrisoner::MutatedPrisoner() :
}
MaidenPrisoner::MaidenPrisoner() :
- Prisoner("MaidenPrisoner", 1, STRING["maps.prisoners.maiden"],
+ Prisoner("MaidenPrisoner", 2, STRING["maps.prisoners.maiden"],
CHARFLAG1_8, GOOD, EVIL) {
}
diff --git a/engines/mm/module.mk b/engines/mm/module.mk
index 2f11fe7e11f..499fc218af8 100644
--- a/engines/mm/module.mk
+++ b/engines/mm/module.mk
@@ -181,6 +181,7 @@ MODULE_OBJS += \
mm1/views_enh/won_game.o \
mm1/views_enh/yes_no.o \
mm1/views_enh/interactions/access_code.o \
+ mm1/views_enh/interactions/alamar.o \
mm1/views_enh/interactions/alien.o \
mm1/views_enh/interactions/arenko.o \
mm1/views_enh/interactions/arrested.o \
Commit: 2bdc525abe35c744833a9d5f9e4f67abc59ed3e1
https://github.com/scummvm/scummvm/commit/2bdc525abe35c744833a9d5f9e4f67abc59ed3e1
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2023-05-20T21:14:58-07:00
Commit Message:
MM: MM1: Changes for wall messages
Changed paths:
devtools/create_mm/files/mm1/strings_en.yml
diff --git a/devtools/create_mm/files/mm1/strings_en.yml b/devtools/create_mm/files/mm1/strings_en.yml
index 294275c22d2..7e52bd382f2 100644
--- a/devtools/create_mm/files/mm1/strings_en.yml
+++ b/devtools/create_mm/files/mm1/strings_en.yml
@@ -1577,7 +1577,7 @@ maps:
face4: "Inset in the wall, a stone face\nproclaims: \"Okrim is watching.\nHe studies your weaknesses!\""
ringing: "A strange ringing sound startles\nthe party. You are teleported!"
emap38:
- message4: "Etched in gold, message 4 reads:\n"Of-be-has-true-knowledge-plane-\na-level-to-reality-it\""
+ message4: "Etched in gold, message 4 reads:\nOf-be-has-true-knowledge-plane-\na-level-to-reality-it"
map39:
message6: "Etched in gold, message 6 reads:\nbook-done.-a-self-that-from-key-you-\nbe-to-seems"
@@ -1587,7 +1587,7 @@ maps:
door_glows: "A silver door, your silver key glows!"
stairs_up: "Stairs to surface, take them (Y/N)?"
emap39:
- message6: "Etched in gold, message 6 reads:\n\"Book-done.-A-self-that-from-\nkey-you-be-to-seems\""
+ message6: "Etched in gold, message 6 reads:\nBook-done.-A-self-that-from-\nkey-you-be-to-seems"
title: "Ruby"
ruby1: "In the center of the room, a huge hexagonal ruby stands glowing atop a pedestal. You hear: Glass that glitters, rubies that glow when i twinkle, I cast a rainbow.\nWhat am i?"
@@ -1604,7 +1604,7 @@ maps:
test4: "The fourth test"
conveyor_belt: "Conveyor belt..."
emap40:
- message2: "Etched in gold, message 2 reads:\n\"One,-riddles-value-you-you-\n5-card-must-claimed.-Dreams,-...\""
+ message2: "Etched in gold, message 2 reads:\nOne,-riddles-value-you-you-\n5-card-must-claimed.-Dreams,-..."
boulder: "A boulder says: \"There should be 5 tests\""
title: "Lord Archer"
archer: "\"I am Lord Archer, the Raven.\nI take from those who have and give to those who have not! Submit (Y/N)?\""
@@ -1621,7 +1621,7 @@ maps:
tapestry1: "A tapestry on the wall depicts a gray\nminotaur stomping on a group of knights."
tapestry2: "A tapestry on the wall depicts\na kingdom ruled by minotaurs"
emap41:
- message3: "Etched in gold, message 3 reads:\n\"For-tasks-and-rating.-Be-from-\n6th-frustrations!-The-to-in\""
+ message3: "Etched in gold, message 3 reads:\nFor-tasks-and-rating.-Be-from-\n6th-frustrations!-The-to-in"
stairs_up: "Spiralling stairs go up, take them (Y/N)?"
map42:
@@ -1633,7 +1633,7 @@ maps:
statue3: "Desecrate it (Y/N)?"
emap42:
title: "Dog Statue"
- message9: "Etched in gold, message 9 reads:\n\"Successful-that-training,-the-\nworthy-the-visit-yet-inner-\nreality,-order,\""
+ message9: "Etched in gold, message 9 reads:\nSuccessful-that-training,-the-\nworthy-the-visit-yet-inner-\nreality,-order,"
map43:
exit: "Exit castle, (Y/N)?"
@@ -1697,7 +1697,7 @@ maps:
painting: "On the right wall is a painting of a\nbox,on the left a painting of a curtain."
door_number: "Door number %c"
emap47:
- message5: "Etched in gold, message 5 reads:\n\"Scoop:-the-discoveries-your-to-\nreturn-the-your-for-dreams-is\""
+ message5: "Etched in gold, message 5 reads:\nScoop:-the-discoveries-your-to-\nreturn-the-your-for-dreams-is"
painting: "On the right wall is a painting of a box, on the left a painting of a curtain."
map48:
@@ -1728,13 +1728,15 @@ maps:
map50:
message7: "Etched in gold, message 7 reads:\nThese-and-that-must-can-different-\nshall-have-from-a-jvc"
- sign1: "Club dead...\nthe antidote to humanization!"
- sign2: "Temple of the old order"
+ sign1: "Club Dead...\nThe antidote to humanization!"
+ sign2: "Temple of the Old Order"
sign3: "Glass room"
sign4: "Ruby room"
sign5: "Twinkle room"
sign6: "Rainbow room"
grate: "The crystal grate repels you!"
+ emap50:
+ message7: "Etched in gold, message 7 reads:\nThese-and-that-must-can-\ndifferent-shall-have-from-a-jvc"
map51:
substance: "Without experimental substance\nthere is no hope...poof!"
Commit: 829669fc3530477189a334f1b3529ac8f742bc09
https://github.com/scummvm/scummvm/commit/829669fc3530477189a334f1b3529ac8f742bc09
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2023-05-20T21:14:59-07:00
Commit Message:
MM: MM1: Changes for map 54
Changed paths:
A engines/mm/mm1/views_enh/interactions/keeper.cpp
A engines/mm/mm1/views_enh/interactions/keeper.h
devtools/create_mm/files/mm1/strings_en.yml
engines/mm/mm1/views_enh/dialogs.h
engines/mm/module.mk
diff --git a/devtools/create_mm/files/mm1/strings_en.yml b/devtools/create_mm/files/mm1/strings_en.yml
index 7e52bd382f2..3ac90390dbb 100644
--- a/devtools/create_mm/files/mm1/strings_en.yml
+++ b/devtools/create_mm/files/mm1/strings_en.yml
@@ -1740,9 +1740,13 @@ maps:
map51:
substance: "Without experimental substance\nthere is no hope...poof!"
+ emap51:
+ substance: "Without experimental substance there is no hope... Poof!"
map52:
summoned: "You have been summoned...poof!"
+ emap52:
+ summoned: "You have been summoned... Poof!"
map53:
sign: "Danger! Dungeon under construction."
@@ -1760,3 +1764,10 @@ maps:
keeper3: "In a serene voice, the data keeper says,\n\"Welcome to your inner sanctum\nVarnlings! I am very pleased that you've\nmade it this far. You are to be\ncommended. I've been monitoring your\nprogress.\" Turning to the strange\nmechanical device, he inserts a flat\nobject into a slot. Your party's current\nperformance total=%u"
keeper4: "\"You are not yet worthy for transfer. Return after defeating the imposter.\""
keeper5: "Excellent rating! this is a rare occasion, for only a privileged few are given the opportunity for transfer to\nanother V.A.R.N. (Vehicular Astropod\nResearch Nacelle). Return now to the\nInn of Sorpigal for rest and celebration\nthen continue on to your new assignment at the Gates To Another World...\" (+50000 exp for your accomplishment!)\n----------------------------------------\nPlease send your performance total to\nNew World Computing, Inc.\n P. O. Box 2068 Van Nuys, CA 91404"
+ emap54:
+ keeper: "Keeper"
+ keeper2: "In a serene voice, the data keeper says, \"Welcome to your inner sanctum Varnlings! I am very pleased that you've made it this far. You are to be commended. I've been monitoring your\nprogress.\""
+ keeper3: "Turning to the strange mechanical device, he inserts a flat object into a slot. Your party's current performance total=%u."
+ keeper4: "\"You are not yet worthy for transfer. Return after defeating the imposter.\""
+ keeper5: "Excellent rating! this is a rare occasion, for only a privileged few are given the opportunity for transfer to another V.A.R.N. (Vehicular Astropod\nResearch Nacelle)."
+ keeper6: "Return now to the\nInn of Sorpigal for rest and celebration then continue on to your new assignment at the Gates To Another World...\" (+50000 exp for your accomplishment!)"
diff --git a/engines/mm/mm1/views_enh/dialogs.h b/engines/mm/mm1/views_enh/dialogs.h
index 1e3ade25d8d..6aac7208446 100644
--- a/engines/mm/mm1/views_enh/dialogs.h
+++ b/engines/mm/mm1/views_enh/dialogs.h
@@ -66,6 +66,7 @@
#include "mm/mm1/views_enh/interactions/hacker.h"
#include "mm/mm1/views_enh/interactions/ice_princess.h"
#include "mm/mm1/views_enh/interactions/inspectron.h"
+#include "mm/mm1/views_enh/interactions/keeper.h"
#include "mm/mm1/views_enh/interactions/leprechaun.h"
#include "mm/mm1/views_enh/interactions/lion.h"
#include "mm/mm1/views_enh/interactions/lord_archer.h"
@@ -106,6 +107,7 @@ private:
ViewsEnh::Interactions::Hacker _hacker;
ViewsEnh::Interactions::IcePrincess _icePrincess;
ViewsEnh::Interactions::Inspectron _inspectron;
+ ViewsEnh::Interactions::Keeper _keeper;
ViewsEnh::Interactions::Leprechaun _leprechaun;
ViewsEnh::Interactions::Lion _lion;
ViewsEnh::Interactions::LordArcher _lordArcher;
diff --git a/engines/mm/mm1/views_enh/interactions/keeper.cpp b/engines/mm/mm1/views_enh/interactions/keeper.cpp
new file mode 100644
index 00000000000..480aed0af23
--- /dev/null
+++ b/engines/mm/mm1/views_enh/interactions/keeper.cpp
@@ -0,0 +1,88 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include "mm/mm1/views_enh/interactions/keeper.h"
+#include "mm/mm1/maps/map54.h"
+#include "mm/mm1/globals.h"
+
+
+namespace MM {
+namespace MM1 {
+namespace ViewsEnh {
+namespace Interactions {
+
+Keeper::Keeper() : Interaction("Keeper", 10) {
+ _title = STRING["maps.emap54.keeper"];
+ _animated = false;
+}
+
+bool Keeper::msgFocus(const FocusMessage &msg) {
+ Interaction::msgFocus(msg);
+
+ _pageNum = 0;
+ addText(STRING["maps.map54.keeper1"]);
+ return true;
+}
+
+void Keeper::viewAction() {
+ MM1::Maps::Map54 &map = *static_cast<MM1::Maps::Map54 *>(g_maps->_currentMap);
+
+ switch (++_pageNum) {
+ case 1:
+ addText(STRING["maps.emap54.keeper2"]);
+ redraw();
+ break;
+
+ case 2: {
+ uint32 perfTotal;
+ _isWorthy = map.isWorthy(perfTotal);
+
+ addText(Common::String::format(
+ STRING["maps.emap54.keeper3"].c_str(), perfTotal));
+ redraw();
+ break;
+ }
+
+ case 3:
+ addText(STRING[_isWorthy ? "maps.emap54.keeper5" :
+ "maps.emap54.keeper4"].c_str());
+ redraw();
+ break;
+
+ case 4:
+ if (!_isWorthy) {
+ leave();
+ } else {
+ addText(STRING["maps.map54.keeper6"]);
+ redraw();
+ }
+ break;
+
+ default:
+ leave();
+ break;
+ }
+}
+
+} // namespace Interactions
+} // namespace ViewsEnh
+} // namespace MM1
+} // namespace MM
diff --git a/engines/mm/mm1/views_enh/interactions/keeper.h b/engines/mm/mm1/views_enh/interactions/keeper.h
new file mode 100644
index 00000000000..c13f9db4b3d
--- /dev/null
+++ b/engines/mm/mm1/views_enh/interactions/keeper.h
@@ -0,0 +1,56 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef MM1_VIEWS_ENH_INTERACTIONS_KEEPER_H
+#define MM1_VIEWS_ENH_INTERACTIONS_KEEPER_H
+
+#include "mm/mm1/views_enh/interactions/interaction.h"
+
+namespace MM {
+namespace MM1 {
+namespace ViewsEnh {
+namespace Interactions {
+
+class Keeper : public Interaction {
+private:
+ int _pageNum = 0;
+ bool _isWorthy = false;
+protected:
+ /**
+ * Handles any action/press
+ */
+ void viewAction() override;
+
+public:
+ Keeper();
+
+ /**
+ * Handles focus
+ */
+ bool msgFocus(const FocusMessage &msg) override;
+};
+
+} // namespace Interactions
+} // namespace ViewsEnh
+} // namespace MM1
+} // namespace MM
+
+#endif
diff --git a/engines/mm/module.mk b/engines/mm/module.mk
index 499fc218af8..1dc2fc93a7a 100644
--- a/engines/mm/module.mk
+++ b/engines/mm/module.mk
@@ -195,6 +195,7 @@ MODULE_OBJS += \
mm1/views_enh/interactions/inspectron.o \
mm1/views_enh/interactions/interaction.o \
mm1/views_enh/interactions/interaction_query.o \
+ mm1/views_enh/interactions/keeper.o \
mm1/views_enh/interactions/leprechaun.o \
mm1/views_enh/interactions/lion.o \
mm1/views_enh/interactions/lord_archer.o \
More information about the Scummvm-git-logs
mailing list