diff options
author | Strangerke | 2014-05-23 17:13:12 +0200 |
---|---|---|
committer | Strangerke | 2014-05-23 17:13:12 +0200 |
commit | cdbf1349275637b1d022ffe2ae83f37a2cd83e21 (patch) | |
tree | 44a5a3b9a72669ac7b2c9f04d081870f11a20d29 | |
parent | 27d4573edf104911758f235e8a4cf85795cd66dd (diff) | |
download | scummvm-rg350-cdbf1349275637b1d022ffe2ae83f37a2cd83e21.tar.gz scummvm-rg350-cdbf1349275637b1d022ffe2ae83f37a2cd83e21.tar.bz2 scummvm-rg350-cdbf1349275637b1d022ffe2ae83f37a2cd83e21.zip |
MADS: Move contructors out of the header in scene group 6
-rw-r--r-- | engines/mads/nebular/nebular_scenes6.cpp | 209 | ||||
-rw-r--r-- | engines/mads/nebular/nebular_scenes6.h | 18 |
2 files changed, 170 insertions, 57 deletions
diff --git a/engines/mads/nebular/nebular_scenes6.cpp b/engines/mads/nebular/nebular_scenes6.cpp index 4313366e08..9413350c27 100644 --- a/engines/mads/nebular/nebular_scenes6.cpp +++ b/engines/mads/nebular/nebular_scenes6.cpp @@ -217,12 +217,11 @@ void Scene601::actions() { /*------------------------------------------------------------------------*/ -void Scene602::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(VERB_WALKTO); - _scene->addActiveVocab(NOUN_SAFE); - _scene->addActiveVocab(NOUN_LASER_BEAM); +Scene602::Scene602(MADSEngine *vm) : Scene6xx(vm) { + _lastSpriteIdx = -1; + _lastSequenceIdx = -1; + _cycleIndex = -1; + _safeMode = -1; } void Scene602::synchronize(Common::Serializer &s) { @@ -234,6 +233,14 @@ void Scene602::synchronize(Common::Serializer &s) { s.syncAsSint16LE(_safeMode); } +void Scene602::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(VERB_WALKTO); + _scene->addActiveVocab(NOUN_SAFE); + _scene->addActiveVocab(NOUN_LASER_BEAM); +} + void Scene602::enter() { _globals._spriteIndexes[1] = _scene->_sprites.addSprites(formAnimName('h', -1)); _globals._spriteIndexes[2] = _scene->_sprites.addSprites(formAnimName('x', 0)); @@ -539,12 +546,9 @@ void Scene602::actions() { /*------------------------------------------------------------------------*/ -void Scene603::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(VERB_WALKTO); - _scene->addActiveVocab(NOUN_COMPACT_CASE); - _scene->addActiveVocab(NOUN_NOTE); +Scene603::Scene603(MADSEngine *vm) : Scene6xx(vm) { + _compactCaseHotspotId = -1; + _noteHotspotId = -1; } void Scene603::synchronize(Common::Serializer &s) { @@ -554,6 +558,14 @@ void Scene603::synchronize(Common::Serializer &s) { s.syncAsSint16LE(_noteHotspotId); } +void Scene603::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(VERB_WALKTO); + _scene->addActiveVocab(NOUN_COMPACT_CASE); + _scene->addActiveVocab(NOUN_NOTE); +} + void Scene603::enter() { if (_game._objects[OBJ_COMPACT_CASE]._roomNumber == _scene->_currentSceneId) { _globals._spriteIndexes[4] = _scene->_sprites.addSprites("*RXMRD_3"); @@ -688,12 +700,15 @@ void Scene603::actions() { /*------------------------------------------------------------------------*/ -void Scene604::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(NOUN_SEA_MONSTER); - _scene->addActiveVocab(VERB_WALKTO); - _scene->addActiveVocab(NOUN_TIMEBOMB); +Scene604::Scene604(MADSEngine *vm) : Scene6xx(vm) { + _timebombHotspotId = -1; + _bombMode = -1; + _monsterFrame = -1; + + _monsterTimer = 0; + + _monsterActive = false; + _animationActiveFl = false; } void Scene604::synchronize(Common::Serializer &s) { @@ -709,6 +724,14 @@ void Scene604::synchronize(Common::Serializer &s) { s.syncAsByte(_animationActiveFl); } +void Scene604::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(NOUN_SEA_MONSTER); + _scene->addActiveVocab(VERB_WALKTO); + _scene->addActiveVocab(NOUN_TIMEBOMB); +} + void Scene604::enter() { _globals._spriteIndexes[2] = _scene->_sprites.addSprites(formAnimName('c', 0)); _globals._spriteIndexes[4] = _scene->_sprites.addSprites("*RXCD_9"); @@ -1014,11 +1037,18 @@ void Scene605::actions() { /*------------------------------------------------------------------------*/ -void Scene607::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(NOUN_OBNOXIOUS_DOG); - _scene->addActiveVocab(VERB_WALKTO); +Scene607::Scene607(MADSEngine *vm) : Scene6xx(vm) { + _dogTimer = 0; + _lastFrameTime = 0; + + _dogLoop = false; + _dogEatsRex = false; + _dogBarking = false; + _shopAvailable = false; + + _animationMode = -1; + _animationActive = -1; + _counter = -1; } void Scene607::synchronize(Common::Serializer &s) { @@ -1037,6 +1067,13 @@ void Scene607::synchronize(Common::Serializer &s) { s.syncAsSint16LE(_counter); } +void Scene607::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(NOUN_OBNOXIOUS_DOG); + _scene->addActiveVocab(VERB_WALKTO); +} + void Scene607::enter() { _globals._spriteIndexes[2] = _scene->_sprites.addSprites(formAnimName('c', 0)); _globals._spriteIndexes[3] = _scene->_sprites.addSprites("*RXCD_3"); @@ -1463,13 +1500,36 @@ void Scene607::actions() { /*------------------------------------------------------------------------*/ -void Scene608::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(VERB_WALKTO); - _scene->addActiveVocab(NOUN_POLYCEMENT); - _scene->addActiveVocab(NOUN_CAR); - _scene->addActiveVocab(NOUN_OBNOXIOUS_DOG); +Scene608::Scene608(MADSEngine *vm) : Scene6xx(vm) { + _carMode = -1; + _carFrame = -1; + _carMoveMode = -1; + _dogDeathMode = -1; + _carHotspotId = -1; + _barkCount = -1; + _polycementHotspotId = -1; + _animationMode = -1; + _nextTrigger = -1; + _throwMode = -1; + + _resetPositionsFl = false; + _dogActiveFl = false; + _dogBarkingFl = false; + _dogFirstEncounter = false; + _rexBeingEaten = false; + _dogHitWindow = false; + _checkFl = false; + _dogSquashFl = false; + _dogSafeFl = false; + _buttonPressedonTimeFl = false; + _dogUnderCar = false; + _dogYelping = false; + + _dogWindowTimer = -1; + _dogRunTimer = -1; + + _dogTimer1 = 0; + _dogTimer2 = 0; } void Scene608::synchronize(Common::Serializer &s) { @@ -1506,6 +1566,15 @@ void Scene608::synchronize(Common::Serializer &s) { s.syncAsUint32LE(_dogTimer2); } +void Scene608::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(VERB_WALKTO); + _scene->addActiveVocab(NOUN_POLYCEMENT); + _scene->addActiveVocab(NOUN_CAR); + _scene->addActiveVocab(NOUN_OBNOXIOUS_DOG); +} + void Scene608::resetDogVariables() { _globals._sequenceIndexes[5] = _scene->_sequences.startCycle(_globals._spriteIndexes[5], false, 1); int idx = _scene->_dynamicHotspots.add(NOUN_OBNOXIOUS_DOG, VERB_WALKTO, _globals._sequenceIndexes[5], Common::Rect(0, 0, 0, 0)); @@ -2457,9 +2526,8 @@ void Scene608::actions() { /*------------------------------------------------------------------------*/ -void Scene609::setup() { - setPlayerSpritesPrefix(); - setAAName(); +Scene609::Scene609(MADSEngine *vm) : Scene6xx(vm) { + _videoDoorMode = -1; } void Scene609::synchronize(Common::Serializer &s) { @@ -2468,6 +2536,11 @@ void Scene609::synchronize(Common::Serializer &s) { s.syncAsSint16LE(_videoDoorMode); } +void Scene609::setup() { + setPlayerSpritesPrefix(); + setAAName(); +} + void Scene609::enter() { _globals._spriteIndexes[1] = _scene->_sprites.addSprites(formAnimName('c', 0)); _globals._spriteIndexes[2] = _scene->_sprites.addSprites(formAnimName('x', 0)); @@ -2786,11 +2859,14 @@ void Scene609::actions() { /*------------------------------------------------------------------------*/ -void Scene610::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(NOUN_PHONE_HANDSET); - _scene->addActiveVocab(VERB_WALKTO); +Scene610::Scene610(MADSEngine *vm) : Scene6xx(vm) { + _handsetHotspotId = -1; + _checkVal = -1; + + _cellCharging = false; + + _cellChargingTimer = -1; + _lastFrameTimer = 0; } void Scene610::synchronize(Common::Serializer &s) { @@ -2805,6 +2881,13 @@ void Scene610::synchronize(Common::Serializer &s) { s.syncAsUint32LE(_lastFrameTimer); } +void Scene610::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(NOUN_PHONE_HANDSET); + _scene->addActiveVocab(VERB_WALKTO); +} + void Scene610::enter() { _globals._spriteIndexes[1] = _scene->_sprites.addSprites(formAnimName('p', -1)); _globals._spriteIndexes[2] = _scene->_sprites.addSprites("*RXMRC_9"); @@ -2981,11 +3064,29 @@ void Scene610::actions() { /*------------------------------------------------------------------------*/ -void Scene611::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(NOUN_RAT); - _scene->addActiveVocab(VERB_WALKTO); +Scene611::Scene611(MADSEngine *vm) : Scene6xx(vm), _defaultDialogPos(0, 0) { + _seenRatFl = false; + _eyesRunningFl = false; + _shouldRemoveEyes = false; + _ratPresentFl = false; + _duringDialogFl = false; + _resetBatterieText = false; + _hermitTalkingFl = false; + _hermitMovingFl = false; + _alreadyTalkingFl = false; + _giveBatteriesFl = false; + _startTradingFl = false; + _check1Fl = false; + _stickFingerFl = false; + + _randVal = -1; + _ratHotspotId = -1; + _hermitDialogNode = -1; + _hermitDisplayedQuestion = -1; + _nextFrame = -1; + _hermitMode = -1; + + _ratTimer = 0; } void Scene611::synchronize(Common::Serializer &s) { @@ -3018,6 +3119,13 @@ void Scene611::synchronize(Common::Serializer &s) { s.syncAsSint16LE(_defaultDialogPos.y); } +void Scene611::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(NOUN_RAT); + _scene->addActiveVocab(VERB_WALKTO); +} + void Scene611::handleRatMoves() { _ratPresentFl = false; _scene->_sequences.remove(_globals._sequenceIndexes[1]); @@ -4386,11 +4494,9 @@ void Scene611::actions() { /*------------------------------------------------------------------------*/ -void Scene612::setup() { - setPlayerSpritesPrefix(); - setAAName(); - _scene->addActiveVocab(NOUN_FISHING_LINE); - _scene->addActiveVocab(VERB_WALKTO); +Scene612::Scene612(MADSEngine *vm) : Scene6xx(vm) { + _actionMode = -1; + _cycleIndex = -1; } void Scene612::synchronize(Common::Serializer &s) { @@ -4400,6 +4506,13 @@ void Scene612::synchronize(Common::Serializer &s) { s.syncAsSint16LE(_cycleIndex); } +void Scene612::setup() { + setPlayerSpritesPrefix(); + setAAName(); + _scene->addActiveVocab(NOUN_FISHING_LINE); + _scene->addActiveVocab(VERB_WALKTO); +} + void Scene612::handleWinchMovement() { switch (_game._trigger) { case 0: diff --git a/engines/mads/nebular/nebular_scenes6.h b/engines/mads/nebular/nebular_scenes6.h index 680d006f66..74467858bd 100644 --- a/engines/mads/nebular/nebular_scenes6.h +++ b/engines/mads/nebular/nebular_scenes6.h @@ -70,7 +70,7 @@ private: void handleSafeActions(); public: - Scene602(MADSEngine *vm) : Scene6xx(vm) {} + Scene602(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -84,7 +84,7 @@ private: int _noteHotspotId; public: - Scene603(MADSEngine *vm) : Scene6xx(vm) {} + Scene603(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -106,7 +106,7 @@ private: void handleBombActions(); public: - Scene604(MADSEngine *vm) : Scene6xx(vm) {} + Scene604(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -142,7 +142,7 @@ private: void handleThrowingBone(); public: - Scene607(MADSEngine *vm) : Scene6xx(vm) {} + Scene607(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -190,7 +190,7 @@ private: void handleThrowingBone(); public: - Scene608(MADSEngine *vm) : Scene6xx(vm) {} + Scene608(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -207,7 +207,7 @@ private: void enterStore(); public: - Scene609(MADSEngine *vm) : Scene6xx(vm) {} + Scene609(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -228,7 +228,7 @@ private: uint32 _lastFrameTimer; public: - Scene610(MADSEngine *vm) : Scene6xx(vm) {} + Scene610(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -280,7 +280,7 @@ private: bool check4ChargedBatteries(); public: - Scene611(MADSEngine *vm) : Scene6xx(vm) {} + Scene611(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); @@ -298,7 +298,7 @@ private: void handleWinchMovement(); public: - Scene612(MADSEngine *vm) : Scene6xx(vm) {} + Scene612(MADSEngine *vm); void synchronize(Common::Serializer &s); virtual void setup(); |