aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r--engines/mads/nebular/nebular_scenes8.cpp34
-rw-r--r--engines/mads/nebular/nebular_scenes8.h4
2 files changed, 38 insertions, 0 deletions
diff --git a/engines/mads/nebular/nebular_scenes8.cpp b/engines/mads/nebular/nebular_scenes8.cpp
index dc5a4cdd1d..1fef2709b4 100644
--- a/engines/mads/nebular/nebular_scenes8.cpp
+++ b/engines/mads/nebular/nebular_scenes8.cpp
@@ -83,6 +83,13 @@ void Scene801::setup() {
setAAName();
}
+void Scene801::synchronize(Common::Serializer &s) {
+ Scene8xx::synchronize(s);
+
+ s.syncAsByte(_walkThroughDoor);
+}
+
+
void Scene801::enter() {
_globals._spriteIndexes[1] = _scene->_sprites.addSprites(formAnimName('x', 1));
_globals._spriteIndexes[2] = _scene->_sprites.addSprites(formAnimName('x', 0));
@@ -829,6 +836,21 @@ void Scene804::setup() {
Scene8xx::setAAName();
}
+void Scene804::synchronize(Common::Serializer &s) {
+ Scene8xx::synchronize(s);
+
+ s.syncAsByte(_messWithThrottle);
+ s.syncAsByte(_movingThrottle);
+ s.syncAsByte(_throttleGone);
+ s.syncAsByte(_dontPullThrottleAgain);
+ s.syncAsByte(_pullThrottleReally);
+ s.syncAsByte(_alreadyOrgan);
+ s.syncAsByte(_alreadyPop);
+
+ s.syncAsSint16LE(_resetFrame);
+ s.syncAsUint32LE(_throttleCounter);
+}
+
void Scene804::enter() {
_messWithThrottle = false;
_throttleCounter = 0;
@@ -1235,6 +1257,12 @@ void Scene808::setup() {
setAAName();
}
+void Scene808::synchronize(Common::Serializer &s) {
+ Scene8xx::synchronize(s);
+
+ s.syncAsByte(_goingTo803);
+}
+
void Scene808::enter() {
_scene->_userInterface.setup(kInputLimitedSentences);
@@ -1441,6 +1469,12 @@ void Scene810::setup() {
setAAName();
}
+void Scene810::synchronize(Common::Serializer &s) {
+ Scene8xx::synchronize(s);
+
+ s.syncAsByte(_moveAllowed);
+}
+
void Scene810::enter() {
_scene->_userInterface.setup(kInputLimitedSentences);
_game._player._visible = false;
diff --git a/engines/mads/nebular/nebular_scenes8.h b/engines/mads/nebular/nebular_scenes8.h
index 590f31ca71..f926d1ec97 100644
--- a/engines/mads/nebular/nebular_scenes8.h
+++ b/engines/mads/nebular/nebular_scenes8.h
@@ -58,6 +58,7 @@ private:
public:
Scene801(MADSEngine *vm) : Scene8xx(vm) {}
+ void synchronize(Common::Serializer &s);
virtual void setup();
virtual void enter();
@@ -101,6 +102,7 @@ private:
bool _alreadyPop;
public:
Scene804(MADSEngine *vm) : Scene8xx(vm), _throttleCounter(0) {}
+ void synchronize(Common::Serializer &s);
virtual void setup();
virtual void enter();
@@ -135,6 +137,7 @@ private:
public:
Scene808(MADSEngine *vm) : Scene8xx(vm) {}
+ void synchronize(Common::Serializer &s);
virtual void setup();
virtual void enter();
@@ -147,6 +150,7 @@ private:
public:
Scene810(MADSEngine *vm) : Scene8xx(vm) {}
+ void synchronize(Common::Serializer &s);
virtual void setup();
virtual void enter();