aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/event.h
diff options
context:
space:
mode:
authorColin Snover2016-08-20 21:02:07 -0500
committerColin Snover2016-09-29 19:39:16 -0500
commit44dd029cb17160316b2015321a0a53f8854b6dd3 (patch)
treeb6975dd6bf0f1bc7723345273abdecf034a667a5 /engines/sci/event.h
parent2be2629a3b2b43a0c86cfb7ea26cf979b91251bd (diff)
downloadscummvm-rg350-44dd029cb17160316b2015321a0a53f8854b6dd3.tar.gz
scummvm-rg350-44dd029cb17160316b2015321a0a53f8854b6dd3.tar.bz2
scummvm-rg350-44dd029cb17160316b2015321a0a53f8854b6dd3.zip
SCI32: Implement kSetHotRectangles
Used only by chapter 7 of Phant1.
Diffstat (limited to 'engines/sci/event.h')
-rw-r--r--engines/sci/event.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/sci/event.h b/engines/sci/event.h
index 15a94b3e73..23b59f964a 100644
--- a/engines/sci/event.h
+++ b/engines/sci/event.h
@@ -50,6 +50,8 @@ struct SciEvent {
* in script coordinates.
*/
Common::Point mousePosSci;
+
+ int16 hotRectangleIndex;
#endif
};
@@ -60,6 +62,9 @@ struct SciEvent {
#define SCI_EVENT_KEYBOARD (1 << 2)
#define SCI_EVENT_DIRECTION (1 << 6)
#define SCI_EVENT_SAID (1 << 7)
+#ifdef ENABLE_SCI32
+#define SCI_EVENT_HOT_RECTANGLE (1 << 8)
+#endif
/*Fake values for other events*/
#define SCI_EVENT_QUIT (1 << 11)
#define SCI_EVENT_PEEK (1 << 15)
@@ -138,6 +143,17 @@ private:
const bool _fontIsExtended;
Common::List<SciEvent> _events;
+#ifdef ENABLE_SCI32
+public:
+ void setHotRectanglesActive(const bool active);
+ void setHotRectangles(const Common::Array<Common::Rect> &rects);
+ void checkHotRectangles(const Common::Point &mousePosition);
+
+private:
+ bool _hotRectanglesActive;
+ Common::Array<Common::Rect> _hotRects;
+ int16 _activeRectIndex;
+#endif
};
} // End of namespace Sci