diff options
Diffstat (limited to 'engines/titanic/game')
-rw-r--r-- | engines/titanic/game/bar_bell.cpp | 15 | ||||
-rw-r--r-- | engines/titanic/game/bowl_unlocker.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/game/bridge_view.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/game/captains_wheel.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/game/cell_point_button.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/game/chicken_dispensor.cpp | 7 | ||||
-rw-r--r-- | engines/titanic/game/desk_click_responder.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/game/sgt/armchair.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/sgt/basin.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/sgt/bedfoot.cpp | 11 | ||||
-rw-r--r-- | engines/titanic/game/sgt/bedhead.cpp | 3 | ||||
-rw-r--r-- | engines/titanic/game/sgt/chest_of_drawers.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/sgt/desk.cpp | 5 | ||||
-rw-r--r-- | engines/titanic/game/sgt/deskchair.cpp | 5 |
14 files changed, 45 insertions, 31 deletions
diff --git a/engines/titanic/game/bar_bell.cpp b/engines/titanic/game/bar_bell.cpp index 5f17dffda1..448a7d2919 100644 --- a/engines/titanic/game/bar_bell.cpp +++ b/engines/titanic/game/bar_bell.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/bar_bell.h" +#include "titanic/translation.h" namespace Titanic { @@ -68,23 +69,23 @@ bool CBarBell::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { case 0: case 1: case 5: - playSound("c#54.wav", _volume, _soundVal3); + playSound(TRANSLATE("c#54.wav", "c#38.wav"), _volume, _soundVal3); break; case 2: - playSound("c#52.wav", _volume, _soundVal3); + playSound(TRANSLATE("c#52.wav", "c#36.wav"), _volume, _soundVal3); break; case 3: - playSound("c#53.wav", _volume, _soundVal3); + playSound(TRANSLATE("c#53.wav", "c#37.wav"), _volume, _soundVal3); break; case 4: - playSound("c#55.wav", _volume, _soundVal3); + playSound(TRANSLATE("c#55.wav", "c#39.wav"), _volume, _soundVal3); break; default: - playSound("c#51.wav", _volume, _soundVal3); + playSound(TRANSLATE("c#51.wav", "c#35.wav"), _volume, _soundVal3); break; } } else if (_fieldBC >= 5) { @@ -93,7 +94,7 @@ bool CBarBell::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { actMsg.execute("Barbot"); } - playSound("c#51.wav", _volume, _soundVal3); + playSound(TRANSLATE("c#51.wav", "c#35.wav"), _volume, _soundVal3); } else { if (_fieldBC == 3) { CActMsg actMsg("BellRing1"); @@ -103,7 +104,7 @@ bool CBarBell::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { actMsg.execute("Barbot"); } - playSound("c#54.wav", _volume, _soundVal3); + playSound(TRANSLATE("c#54.wav", "c#38.wav"), _volume, _soundVal3); } return true; diff --git a/engines/titanic/game/bowl_unlocker.cpp b/engines/titanic/game/bowl_unlocker.cpp index 06d70256c5..43e5d8a12d 100644 --- a/engines/titanic/game/bowl_unlocker.cpp +++ b/engines/titanic/game/bowl_unlocker.cpp @@ -22,6 +22,7 @@ #include "titanic/game/bowl_unlocker.h" #include "titanic/core/room_item.h" +#include "titanic/translation.h" namespace Titanic { @@ -60,7 +61,7 @@ bool CBowlUnlocker::MovieEndMsg(CMovieEndMsg *msg) { CNutPuzzleMsg puzzleMsg("BowlUnlocked"); puzzleMsg.execute(getRoom(), nullptr, MSGFLAG_SCAN); - playSound("z#47.wav"); + playSound(TRANSLATE("z#47.wav", "z#578.wav")); return true; } diff --git a/engines/titanic/game/bridge_view.cpp b/engines/titanic/game/bridge_view.cpp index 14361b4e8c..608724c16c 100644 --- a/engines/titanic/game/bridge_view.cpp +++ b/engines/titanic/game/bridge_view.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/bridge_view.h" +#include "titanic/translation.h" namespace Titanic { @@ -78,7 +79,7 @@ bool CBridgeView::ActMsg(CActMsg *msg) { CChangeMusicMsg musicMsg; musicMsg._flags = 1; musicMsg.execute("BridgeAutoMusicPlayer"); - playSound("a#42.wav"); + playSound(TRANSLATE("a#42.wav", "a#35.wav")); playMovie(MOVIE_NOTIFY_OBJECT); } } diff --git a/engines/titanic/game/captains_wheel.cpp b/engines/titanic/game/captains_wheel.cpp index 32582ed996..7beb29c072 100644 --- a/engines/titanic/game/captains_wheel.cpp +++ b/engines/titanic/game/captains_wheel.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/captains_wheel.h" +#include "titanic/translation.h" namespace Titanic { @@ -119,7 +120,7 @@ bool CCaptainsWheel::ActMsg(CActMsg *msg) { playMovie(162, 168, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); } } else if (msg->_action == "SetDestin") { - playSound("a#44.wav"); + playSound(TRANSLATE("a#44.wav", "a#37.wav")); CSetVolumeMsg volumeMsg; volumeMsg._volume = 25; volumeMsg.execute("EngineSounds"); diff --git a/engines/titanic/game/cell_point_button.cpp b/engines/titanic/game/cell_point_button.cpp index 2afcf39f48..75b8772d19 100644 --- a/engines/titanic/game/cell_point_button.cpp +++ b/engines/titanic/game/cell_point_button.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/cell_point_button.h" +#include "titanic/translation.h" namespace Titanic { @@ -89,7 +90,7 @@ bool CCellPointButton::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { playMovie(0); _regionNum = _regionNum ? 0 : 1; - playSound("z#425.wav"); + playSound(TRANSLATE("z#425.wav", "z#170.wav")); talkSetDialRegion(_npcName, _dialNum, _regionNum); return true; diff --git a/engines/titanic/game/chicken_dispensor.cpp b/engines/titanic/game/chicken_dispensor.cpp index 692c364918..8d16289647 100644 --- a/engines/titanic/game/chicken_dispensor.cpp +++ b/engines/titanic/game/chicken_dispensor.cpp @@ -24,6 +24,7 @@ #include "titanic/carry/chicken.h" #include "titanic/core/project_item.h" #include "titanic/pet_control/pet_control.h" +#include "titanic/translation.h" namespace Titanic { @@ -90,7 +91,7 @@ bool CChickenDispensor::StatusChangeMsg(CStatusChangeMsg *msg) { if (_disabled) { playMovie(0, 12, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); - playSound("z#400.wav"); + playSound(TRANSLATE("z#400.wav", "z#145.wav")); } else { playMovie(12, 16, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); } @@ -109,7 +110,7 @@ bool CChickenDispensor::MovieEndMsg(CMovieEndMsg *msg) { if (movieFrame == 16) { // Dispensed a chicken _cursorId = CURSOR_HAND; - playSound("b#50.wav", 50); + playSound(TRANSLATE("b#50.wav", "b#30.wav"), 50); CActMsg actMsg("Dispense Chicken"); actMsg.execute("Chicken"); @@ -156,7 +157,7 @@ bool CChickenDispensor::LeaveViewMsg(CLeaveViewMsg *msg) { } bool CChickenDispensor::EnterViewMsg(CEnterViewMsg *msg) { - playSound("b#51.wav"); + playSound(TRANSLATE("b#51.wav", "b#31.wav")); _dispensed = false; _cursorId = CURSOR_ARROW; return true; diff --git a/engines/titanic/game/desk_click_responder.cpp b/engines/titanic/game/desk_click_responder.cpp index 0650b3a1f5..efdf13fa92 100644 --- a/engines/titanic/game/desk_click_responder.cpp +++ b/engines/titanic/game/desk_click_responder.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/desk_click_responder.h" +#include "titanic/translation.h" namespace Titanic { @@ -52,7 +53,7 @@ bool CDeskClickResponder::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { uint ticks = getTicksCount(); if (!_ticks || ticks > (_ticks + 4000)) { - playSound("a#22.wav"); + playSound(TRANSLATE("a#22.wav", "a#17.wav")); _ticks = ticks; } diff --git a/engines/titanic/game/sgt/armchair.cpp b/engines/titanic/game/sgt/armchair.cpp index 6c0e7fe0ca..e9348f4484 100644 --- a/engines/titanic/game/sgt/armchair.cpp +++ b/engines/titanic/game/sgt/armchair.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/sgt/armchair.h" +#include "titanic/translation.h" namespace Titanic { @@ -56,7 +57,7 @@ bool CArmchair::TurnOn(CTurnOn *msg) { } playMovie(_startFrame, _endFrame, MOVIE_WAIT_FOR_FINISH); - playSound("b#0.wav"); + playSound(TRANSLATE("b#0.wav", "b#85.wav")); _statics->_armchair = "Open"; _isClosed = false; } @@ -71,7 +72,7 @@ bool CArmchair::TurnOff(CTurnOff *msg) { _endFrame = 21; _isClosed = true; playMovie(11, 21, MOVIE_WAIT_FOR_FINISH | MOVIE_NOTIFY_OBJECT); - playSound("b#0.wav"); + playSound(TRANSLATE("b#0.wav", "b#85.wav")); } return true; diff --git a/engines/titanic/game/sgt/basin.cpp b/engines/titanic/game/sgt/basin.cpp index fe3216e002..2aef5bdc9d 100644 --- a/engines/titanic/game/sgt/basin.cpp +++ b/engines/titanic/game/sgt/basin.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/sgt/basin.h" +#include "titanic/translation.h" namespace Titanic { @@ -49,7 +50,7 @@ bool CBasin::TurnOn(CTurnOn *msg) { _startFrame = 0; _endFrame = 6; playMovie(0, 6, MOVIE_WAIT_FOR_FINISH); - playSound("b#13.wav"); + playSound(TRANSLATE("b#13.wav", "b#98.wav")); } return true; @@ -62,7 +63,7 @@ bool CBasin::TurnOff(CTurnOff *msg) { _startFrame = 8; _endFrame = 14; playMovie(8, 14, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); - playSound("b#13.wav"); + playSound(TRANSLATE("b#13.wav", "b#98.wav")); } return true; diff --git a/engines/titanic/game/sgt/bedfoot.cpp b/engines/titanic/game/sgt/bedfoot.cpp index 8f90e0f100..0cd4eec4a3 100644 --- a/engines/titanic/game/sgt/bedfoot.cpp +++ b/engines/titanic/game/sgt/bedfoot.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/sgt/bedfoot.h" +#include "titanic/translation.h" namespace Titanic { @@ -46,11 +47,11 @@ bool CBedfoot::TurnOn(CTurnOn *msg) { if (_statics->_washstand == "Open") { _endFrame = 13; _statics->_bedfoot = "Open"; - playSound("b#7.wav"); + playSound(TRANSLATE("b#7.wav", "b#92.wav")); } else { _endFrame = 17; _statics->_bedfoot = "NotOnWashstand"; - playSound("b#4.wav"); + playSound(TRANSLATE("b#4.wav", "b#89.wav")); } playMovie(_startFrame, _endFrame, MOVIE_WAIT_FOR_FINISH); @@ -95,7 +96,7 @@ bool CBedfoot::TurnOff(CTurnOff *msg) { } playMovie(_startFrame, _endFrame, MOVIE_WAIT_FOR_FINISH); - playSound("b#7.wav"); + playSound(TRANSLATE("b#7.wav", "b#92.wav")); } else if (_statics->_bedfoot == "NotOnWashstand" && _statics->_bedhead == "ClosedWrong") { _isClosed = true; @@ -110,14 +111,14 @@ bool CBedfoot::TurnOff(CTurnOff *msg) { } playMovie(_startFrame, _endFrame, MOVIE_WAIT_FOR_FINISH); - playSound("b#7.wav"); + playSound(TRANSLATE("b#7.wav", "b#92.wav")); } else if (_statics->_bedfoot == "RestingUTV" && _statics->_tv == "Closed") { _statics->_bedfoot = "Closed"; _startFrame = 25; _endFrame = 30; playMovie(25, 30, MOVIE_WAIT_FOR_FINISH); - playSound("b#7.wav"); + playSound(TRANSLATE("b#7.wav", "b#92.wav")); } if (_statics->_bedfoot == "Closed") diff --git a/engines/titanic/game/sgt/bedhead.cpp b/engines/titanic/game/sgt/bedhead.cpp index 7775ad38dc..b94c2cc46b 100644 --- a/engines/titanic/game/sgt/bedhead.cpp +++ b/engines/titanic/game/sgt/bedhead.cpp @@ -23,6 +23,7 @@ #include "titanic/game/sgt/bedhead.h" #include "titanic/support/files_manager.h" #include "titanic/titanic.h" +#include "titanic/translation.h" namespace Titanic { @@ -112,7 +113,7 @@ bool CBedhead::TurnOn(CTurnOn *msg) { _statics->_bedhead = entry._name4; playMovie(entry._startFrame, entry._endFrame, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); - playSound("b#6.wav"); + playSound(TRANSLATE("b#6.wav", "b#91.wav")); _isClosed = false; } } diff --git a/engines/titanic/game/sgt/chest_of_drawers.cpp b/engines/titanic/game/sgt/chest_of_drawers.cpp index d2d40c8e99..c9664d21ea 100644 --- a/engines/titanic/game/sgt/chest_of_drawers.cpp +++ b/engines/titanic/game/sgt/chest_of_drawers.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/sgt/chest_of_drawers.h" +#include "titanic/translation.h" namespace Titanic { @@ -47,7 +48,7 @@ bool CChestOfDrawers::TurnOn(CTurnOn *msg) { _startFrame = 1; _endFrame = 14; playMovie(1, 14, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); - playSound("b#11.wav"); + playSound(TRANSLATE("b#11.wav", "b#96.wav")); } return true; @@ -63,7 +64,7 @@ bool CChestOfDrawers::TurnOff(CTurnOff *msg) { _startFrame = 14; _endFrame = 27; playMovie(14, 27, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); - playSound("b#11.wav"); + playSound(TRANSLATE("b#11.wav", "b#96.wav")); } return true; diff --git a/engines/titanic/game/sgt/desk.cpp b/engines/titanic/game/sgt/desk.cpp index 1aea9a8ab3..3bc76e703c 100644 --- a/engines/titanic/game/sgt/desk.cpp +++ b/engines/titanic/game/sgt/desk.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/sgt/desk.h" +#include "titanic/translation.h" namespace Titanic { @@ -48,7 +49,7 @@ bool CDesk::TurnOn(CTurnOn *msg) { _startFrame = 1; _endFrame = 26; playMovie(1, 26, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); - playSound("b#12.wav"); + playSound(TRANSLATE("b#12.wav", "b#97.wav")); } return true; @@ -65,7 +66,7 @@ bool CDesk::TurnOff(CTurnOff *msg) { _startFrame = 26; _endFrame = 51; playMovie(26, 51, MOVIE_WAIT_FOR_FINISH); - playSound("b#9.wav"); + playSound(TRANSLATE("b#9.wav", "b#94.wav")); } return true; diff --git a/engines/titanic/game/sgt/deskchair.cpp b/engines/titanic/game/sgt/deskchair.cpp index 23b6ad64d7..c1363a4e03 100644 --- a/engines/titanic/game/sgt/deskchair.cpp +++ b/engines/titanic/game/sgt/deskchair.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/sgt/deskchair.h" +#include "titanic/translation.h" namespace Titanic { @@ -49,7 +50,7 @@ bool CDeskchair::TurnOn(CTurnOn *msg) { _startFrame = 0; _endFrame = 16; playMovie(0, 16, MOVIE_WAIT_FOR_FINISH); - playSound("b#8.wav"); + playSound(TRANSLATE("b#8.wav", "b#93.wav")); } return true; @@ -62,7 +63,7 @@ bool CDeskchair::TurnOff(CTurnOff *msg) { _startFrame = 16; _endFrame = 32; playMovie(16, 32, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH); - playSound("b#2.wav"); + playSound(TRANSLATE("b#2.wav", "b#87.wav")); } return true; |