diff options
author | Strangerke | 2014-05-21 17:27:28 +0200 |
---|---|---|
committer | Strangerke | 2014-05-21 17:27:28 +0200 |
commit | 4804be16c222e847b0f5a37d0c58cbbcede94a3f (patch) | |
tree | 1de11866f3d335fc92c221388c3c3cf01cdae79e /engines/mads/nebular | |
parent | 057f239ed6f701da4e4a1c6a6624bc41e4d8c93c (diff) | |
download | scummvm-rg350-4804be16c222e847b0f5a37d0c58cbbcede94a3f.tar.gz scummvm-rg350-4804be16c222e847b0f5a37d0c58cbbcede94a3f.tar.bz2 scummvm-rg350-4804be16c222e847b0f5a37d0c58cbbcede94a3f.zip |
MADS: Add synchronize functions in scene group 8
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r-- | engines/mads/nebular/nebular_scenes8.cpp | 34 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes8.h | 4 |
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(); |