From 906f36a3237efba519c5fdf2110fee94e7d2e94f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 30 Jul 2006 12:10:44 +0000 Subject: Added script method for changing the current hotspot header flags mask byte svn-id: r23629 --- engines/lure/scripts.cpp | 10 ++++++++++ engines/lure/scripts.h | 1 + 2 files changed, 11 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3