aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/globals.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-23 21:01:48 -0400
committerPaul Gilbert2014-04-23 21:01:48 -0400
commitc1a90cdda1f1424cb9b6b2e91b82c47cf0913335 (patch)
treeec98a3d3e3a562488484de697773b4d240140413 /engines/mads/globals.h
parentee1a33946fb8f7b61d37e15285e1c5f21f012aa0 (diff)
downloadscummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.tar.gz
scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.tar.bz2
scummvm-rg350-c1a90cdda1f1424cb9b6b2e91b82c47cf0913335.zip
MADS: Further synchronization implementation
Diffstat (limited to 'engines/mads/globals.h')
-rw-r--r--engines/mads/globals.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/mads/globals.h b/engines/mads/globals.h
index ea327b0045..fa7a630f7f 100644
--- a/engines/mads/globals.h
+++ b/engines/mads/globals.h
@@ -25,24 +25,30 @@
#include "common/scummsys.h"
#include "common/array.h"
+#include "common/serializer.h"
namespace MADS {
class Globals {
protected:
- Common::Array<int16> _flags;
+ Common::Array<int16> _data;
public:
Globals() {}
/**
* Square brackets operator for accessing flags
*/
- int16 &operator[](int idx) { return _flags[idx]; }
+ int16 &operator[](int idx) { return _data[idx]; }
/*
* Resets all the globals to empty
*/
void reset();
+
+ /**
+ * Synchronize the globals data
+ */
+ void synchronize(Common::Serializer &s);
};
} // End of namespace MADS