aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-15 21:25:07 -0400
committerPaul Gilbert2015-03-15 21:25:07 -0400
commit92c55e2bb192785e4587e143c9c367213f30233c (patch)
tree22f49059bcecd595fd257c82e0eb66db1ab29a37 /engines/sherlock/scalpel
parent1452c18ffb21da0d97725c7c982b25992bd75fe8 (diff)
downloadscummvm-rg350-92c55e2bb192785e4587e143c9c367213f30233c.tar.gz
scummvm-rg350-92c55e2bb192785e4587e143c9c367213f30233c.tar.bz2
scummvm-rg350-92c55e2bb192785e4587e143c9c367213f30233c.zip
SHERLOCK: Beginning of animation player
Diffstat (limited to 'engines/sherlock/scalpel')
-rw-r--r--engines/sherlock/scalpel/scalpel.cpp34
-rw-r--r--engines/sherlock/scalpel/scalpel.h5
2 files changed, 39 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index 1eaf7c91ee..72c5f1dcf3 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -21,6 +21,7 @@
*/
#include "sherlock/scalpel/scalpel.h"
+#include "sherlock/sherlock.h"
namespace Sherlock {
@@ -44,9 +45,42 @@ void ScalpelEngine::initialize() {
* Show the opening sequence
*/
void ScalpelEngine::showOpening() {
+ if (!_events->isKeyPressed())
+ showCityCutscene();
+ if (!_events->isKeyPressed())
+ showAlleyCutscene();
+ if (!_events->isKeyPressed())
+ showStreetCutscene();
+ if (!_events->isKeyPressed())
+ showOfficeCutscene();
+
+ _events->clearEvents();
+ _sound->stopMusic();
+}
+
+void ScalpelEngine::showCityCutscene() {
+ byte palette[PALETTE_SIZE];
+
+ _sound->playMusic("prolog1.mus");
+ _animation->_titleOverride = "title.lib";
+ _animation->_soundOverride = "title.snd";
+ _animation->playPrologue("26open1", 1, 255, true, 2);
+
// TODO
}
+void ScalpelEngine::showAlleyCutscene() {
+
+}
+
+void ScalpelEngine::showStreetCutscene() {
+
+}
+
+void ScalpelEngine::showOfficeCutscene() {
+
+}
+
} // End of namespace Scalpel
diff --git a/engines/sherlock/scalpel/scalpel.h b/engines/sherlock/scalpel/scalpel.h
index 6016984e45..5da33e1d52 100644
--- a/engines/sherlock/scalpel/scalpel.h
+++ b/engines/sherlock/scalpel/scalpel.h
@@ -30,6 +30,11 @@ namespace Sherlock {
namespace Scalpel {
class ScalpelEngine : public SherlockEngine {
+private:
+ void showCityCutscene();
+ void showAlleyCutscene();
+ void showStreetCutscene();
+ void showOfficeCutscene();
protected:
virtual void initialize();