aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_v2.h
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-16 14:32:49 +0000
committerJohannes Schickel2008-03-16 14:32:49 +0000
commitf0d54b451300088534071130e75c5a9a01bc89f5 (patch)
treed95a228af1db027e8d870f601885081db7aba08d /engines/kyra/kyra_v2.h
parentc7175fac8dff38b8b49b30c42e3a57312cdb15ce (diff)
downloadscummvm-rg350-f0d54b451300088534071130e75c5a9a01bc89f5.tar.gz
scummvm-rg350-f0d54b451300088534071130e75c5a9a01bc89f5.tar.bz2
scummvm-rg350-f0d54b451300088534071130e75c5a9a01bc89f5.zip
Reworked skipFlag handling.
svn-id: r31143
Diffstat (limited to 'engines/kyra/kyra_v2.h')
-rw-r--r--engines/kyra/kyra_v2.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v2.h b/engines/kyra/kyra_v2.h
index 4f82556582..9365d3b8be 100644
--- a/engines/kyra/kyra_v2.h
+++ b/engines/kyra/kyra_v2.h
@@ -320,7 +320,21 @@ protected:
int _mouseX, _mouseY;
int _mouseState;
- Common::List<Common::Event> _eventList;
+
+ struct Event {
+ Common::Event event;
+ bool causedSkip;
+
+ Event() : event(), causedSkip(false) {}
+ Event(Common::Event e) : event(e), causedSkip(false) {}
+ Event(Common::Event e, bool skip) : event(e), causedSkip(skip) {}
+
+ operator Common::Event() const { return event; }
+ };
+ Common::List<Event> _eventList;
+
+ bool skipFlag() const;
+ void resetSkipFlag(bool removeEvent = true);
// gfx/animation specific
uint8 *_gamePlayBuffer;