diff options
-rw-r--r-- | engines/pegasus/neighborhood/neighborhood.cpp | 36 | ||||
-rw-r--r-- | engines/pegasus/neighborhood/neighborhood.h | 2 | ||||
-rwxr-xr-x | engines/pegasus/neighborhood/prehistoric.cpp | 4 | ||||
-rwxr-xr-x | engines/pegasus/neighborhood/prehistoric.h | 1 |
4 files changed, 7 insertions, 36 deletions
diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp index 7b7f229adc..d87a536d90 100644 --- a/engines/pegasus/neighborhood/neighborhood.cpp +++ b/engines/pegasus/neighborhood/neighborhood.cpp @@ -131,7 +131,7 @@ void Neighborhood::init() { _navMovie.initFromMovieFile(getNavMovieName()); _navMovie.setVolume(_vm->getSoundFXLevel()); - loadSoundSpots(); + _spotSounds.initFromQuickTime(getSoundSpotsName()); _spotSounds.setVolume(_vm->getSoundFXLevel()); _navMovie.setDisplayOrder(kNavMovieOrder); @@ -367,40 +367,6 @@ void Neighborhood::createNeighborhoodSpots() { delete hotspotList; } -void Neighborhood::loadSoundSpots() { - // TODO: Eventually push to the subclasses - - Common::String fileName = "Sounds/"; - - switch (getObjectID()) { - case kCaldoriaID: - fileName += "Caldoria/Caldoria Spots"; - break; - case kFullTSAID: - case kFinalTSAID: - case kTinyTSAID: - fileName += "TSA/TSA Spots"; - break; - case kPrehistoricID: - fileName += "Prehistoric/Prehistoric Spots"; - break; - case kMarsID: - fileName += "Mars/Mars Spots"; - break; - case kWSCID: - fileName += "World Science Center/WSC Spots"; - break; - case kNoradAlphaID: - fileName += "Norad/Norad Alpha Spots"; - break; - case kNoradDeltaID: - fileName += "Norad/Norad Delta Spots"; - break; - } - - _spotSounds.initFromQuickTime(fileName); -} - void Neighborhood::popActionQueue() { if (!_actionQueue.empty()) { tQueueRequest topRequest = _actionQueue.pop(); diff --git a/engines/pegasus/neighborhood/neighborhood.h b/engines/pegasus/neighborhood/neighborhood.h index 1896e0fbe1..1ceb3a295c 100644 --- a/engines/pegasus/neighborhood/neighborhood.h +++ b/engines/pegasus/neighborhood/neighborhood.h @@ -253,7 +253,7 @@ protected: PegasusEngine *_vm; Common::String _resName; - virtual void loadSoundSpots(); + virtual Common::String getSoundSpotsName() = 0; virtual Common::String getNavMovieName() = 0; // Notification function. diff --git a/engines/pegasus/neighborhood/prehistoric.cpp b/engines/pegasus/neighborhood/prehistoric.cpp index b290c81c63..26c9e54065 100755 --- a/engines/pegasus/neighborhood/prehistoric.cpp +++ b/engines/pegasus/neighborhood/prehistoric.cpp @@ -682,4 +682,8 @@ Common::String Prehistoric::getNavMovieName() { return "Images/Prehistoric/Prehistoric.movie"; } +Common::String Prehistoric::getSoundSpotsName() { + return "Sounds/Prehistoric/Prehistoric Spots"; +} + } // End of namespace Pegasus diff --git a/engines/pegasus/neighborhood/prehistoric.h b/engines/pegasus/neighborhood/prehistoric.h index ecc62da3fa..44084f5110 100755 --- a/engines/pegasus/neighborhood/prehistoric.h +++ b/engines/pegasus/neighborhood/prehistoric.h @@ -150,6 +150,7 @@ protected: FlagsArray<byte, kNumPrehistoricPrivateFlags> _privateFlags; Common::String getNavMovieName(); + Common::String getSoundSpotsName(); }; } // End of namespace Pegasus |