aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2006-07-30 12:10:44 +0000
committerPaul Gilbert2006-07-30 12:10:44 +0000
commit906f36a3237efba519c5fdf2110fee94e7d2e94f (patch)
tree629b86eaf523abcc585cdae5c4755bec71fcc464 /engines/lure
parent2b4518d8a9a472ac7a6439e85c0ac723d94b91d5 (diff)
downloadscummvm-rg350-906f36a3237efba519c5fdf2110fee94e7d2e94f.tar.gz
scummvm-rg350-906f36a3237efba519c5fdf2110fee94e7d2e94f.tar.bz2
scummvm-rg350-906f36a3237efba519c5fdf2110fee94e7d2e94f.zip
Added script method for changing the current hotspot header flags mask byte
svn-id: r23629
Diffstat (limited to 'engines/lure')
-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);