diff options
author | Strangerke | 2011-10-02 01:01:31 +0200 |
---|---|---|
committer | Strangerke | 2011-10-02 01:02:25 +0200 |
commit | 03b0f0949e198f332a47345584bdf6cf40795f01 (patch) | |
tree | f11d6cc356fa746834c3b9e90485298f566bf75d | |
parent | 88fa659ace49e417cbd6c157436ba8c4dd79cfaa (diff) | |
download | scummvm-rg350-03b0f0949e198f332a47345584bdf6cf40795f01.tar.gz scummvm-rg350-03b0f0949e198f332a47345584bdf6cf40795f01.tar.bz2 scummvm-rg350-03b0f0949e198f332a47345584bdf6cf40795f01.zip |
TsAGE: Add 3 speakers used in scene 910
-rw-r--r-- | engines/tsage/blue_force/blueforce_speakers.cpp | 84 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_speakers.h | 23 |
2 files changed, 106 insertions, 1 deletions
diff --git a/engines/tsage/blue_force/blueforce_speakers.cpp b/engines/tsage/blue_force/blueforce_speakers.cpp index dbd7419378..f54563dddf 100644 --- a/engines/tsage/blue_force/blueforce_speakers.cpp +++ b/engines/tsage/blue_force/blueforce_speakers.cpp @@ -804,6 +804,88 @@ void SpeakerGiggles::setText(const Common::String &msg) { _object2.fixCountdown(8, _numFrames); } -} // End of namespace BlueForce +/*--------------------------------------------------------------------------*/ + +SpeakerFBI::SpeakerFBI(): VisualSpeaker() { + _color1 = 27; + _color2 = 89; + + _speakerName = "FBI"; +} + +void SpeakerFBI::setText(const Common::String &msg) { + _removeObject2 = true; + + _object2.postInit(); + _object2.setVisage(837); + _object2.setStrip2(1); + _object2.fixPriority(255); + _object2.setPosition(Common::Point(BF_GLOBALS._sceneManager._scene->_sceneBounds.left + 267, + BF_GLOBALS._sceneManager._scene->_sceneBounds.top + 166)); + + VisualSpeaker::setText(msg); + _object2.fixCountdown(8, _numFrames); +} + +/*--------------------------------------------------------------------------*/ + +SpeakerNico::SpeakerNico(): VisualSpeaker() { + _color1 = 105; + _color2 = 102; + + _speakerName = "NICO"; +} + +void SpeakerNico::setText(const Common::String &msg) { + _removeObject1 = _removeObject2 = true; + + _object1.postInit(); + _object1.setVisage(905); + _object1.setStrip2(2); + _object1.fixPriority(254); + _object1.setPosition(Common::Point(BF_GLOBALS._sceneManager._scene->_sceneBounds.left + 262, + BF_GLOBALS._sceneManager._scene->_sceneBounds.top + 166)); + + _object2.postInit(); + _object2.setVisage(905); + _object2.setStrip2(1); + _object2.fixPriority(255); + _object2.setPosition(Common::Point(BF_GLOBALS._sceneManager._scene->_sceneBounds.left + 262, + BF_GLOBALS._sceneManager._scene->_sceneBounds.top + 166)); + + VisualSpeaker::setText(msg); + _object2.fixCountdown(8, _numFrames); +} + +/*--------------------------------------------------------------------------*/ + +SpeakerNico::SpeakerNico(): VisualSpeaker() { + _color1 = 82; + _color2 = 80; + + _speakerName = "DA"; +} + +void SpeakerNico::setText(const Common::String &msg) { + _removeObject1 = _removeObject2 = true; + _object1.postInit(); + _object1.setVisage(915); + _object1.setStrip2(8); + _object1.fixPriority(254); + _object1.setPosition(Common::Point(BF_GLOBALS._sceneManager._scene->_sceneBounds.left + 84, + BF_GLOBALS._sceneManager._scene->_sceneBounds.top + 166)); + + _object2.postInit(); + _object2.setVisage(915); + _object2.setStrip2(1); + _object2.fixPriority(255); + _object2.setPosition(Common::Point(BF_GLOBALS._sceneManager._scene->_sceneBounds.left + 84, + BF_GLOBALS._sceneManager._scene->_sceneBounds.top + 166)); + + VisualSpeaker::setText(msg); + _object2.fixCountdown(8, _numFrames); +} + +} // End of namespace BlueForce } // End of namespace TsAGE diff --git a/engines/tsage/blue_force/blueforce_speakers.h b/engines/tsage/blue_force/blueforce_speakers.h index df2a617941..992cba0e2d 100644 --- a/engines/tsage/blue_force/blueforce_speakers.h +++ b/engines/tsage/blue_force/blueforce_speakers.h @@ -283,6 +283,29 @@ public: virtual void setText(const Common::String &msg); }; +class SpeakerFBI: public VisualSpeaker { +public: + SpeakerFBI(); + + virtual Common::String getClassName() { return "FBI"; } + virtual void setText(const Common::String &msg); +}; + +class SpeakerNico: public VisualSpeaker { +public: + SpeakerNico(); + + virtual Common::String getClassName() { return "NICO"; } + virtual void setText(const Common::String &msg); +}; + +class SpeakerDA: public VisualSpeaker { +public: + SpeakerDA(); + + virtual Common::String getClassName() { return "DA"; } + virtual void setText(const Common::String &msg); +}; } // End of namespace BlueForce } // End of namespace TsAGE |