aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lure/scripts.cpp10
-rw-r--r--engines/lure/scripts.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp
index 3fe5785340..5d865c890b 100644
--- a/engines/lure/scripts.cpp
+++ b/engines/lure/scripts.cpp
@@ -61,6 +61,15 @@ void Script::setHotspotScript(uint16 hotspotId, uint16 scriptIndex, uint16 v3) {
rsc->sequenceOffset = offset;
}
+void Script::method2(uint16 v1, uint16 v2, uint16 v3) {
+ // Not yet implemented
+}
+
+void Script::setHotspotFlagMask(uint16 maskVal, uint16 v2, uint16 v3) {
+ ValueTableData &fields = Resources::getReference().fieldList();
+ fields.hdrFlagMask() = (uint8) maskVal;
+}
+
// Clears the sequence delay list
void Script::clearSequenceDelayList(uint16 v1, uint16 scriptIndex, uint16 v3) {
@@ -431,6 +440,7 @@ struct SequenceMethodRecord {
SequenceMethodRecord scriptMethods[] = {
{0, Script::activateHotspot},
{1, Script::setHotspotScript},
+ {3, Script::setHotspotFlagMask},
{4, Script::clearSequenceDelayList},
{5, Script::deactivateHotspotSet},
{6, Script::deactivateHotspot},
diff --git a/engines/lure/scripts.h b/engines/lure/scripts.h
index 91b8a050c2..f9ac3a9f72 100644
--- a/engines/lure/scripts.h
+++ b/engines/lure/scripts.h
@@ -77,6 +77,7 @@ public:
static void activateHotspot(uint16 hotspotId, uint16 v2, uint16 v3);
static void setHotspotScript(uint16 hotspotId, uint16 scriptIndex, uint16 v3);
static void method2(uint16 v1, uint16 v2, uint16 v3);
+ static void setHotspotFlagMask(uint16 maskVal, uint16 v2, uint16 v3);
static void clearSequenceDelayList(uint16 v1, uint16 scriptIndex, uint16 v3);
static void deactivateHotspotSet(uint16 listIndex, uint16 v2, uint16 v3);
static void deactivateHotspot(uint16 hotspotId, uint16 v2, uint16 v3);