aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2017-11-15 23:47:42 +0000
committerThierry Crozat2018-01-23 02:15:40 +0000
commitee905b762a6356a6313aa9c150338991fc0dc6ed (patch)
treeb43224160341fc82f76a4bfa6ad8235d5046ba6b /engines
parent58cfbb532bd5092b3159211713c146c94dacead9 (diff)
downloadscummvm-rg350-ee905b762a6356a6313aa9c150338991fc0dc6ed.tar.gz
scummvm-rg350-ee905b762a6356a6313aa9c150338991fc0dc6ed.tar.bz2
scummvm-rg350-ee905b762a6356a6313aa9c150338991fc0dc6ed.zip
SUPERNOVA: Implement shipstart cutscene
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/rooms.cpp17
-rw-r--r--engines/supernova/rooms.h2
-rw-r--r--engines/supernova/state.cpp4
-rw-r--r--engines/supernova/state.h1
4 files changed, 17 insertions, 7 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index b598b0dc4a..6e3c7f0e75 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -2138,7 +2138,7 @@ void ArsanoMeetup2::onEntrance() {
if (sentenceRemoved(1, 1))
_vm->renderMessage(kStringArsanoMeetup2_2); // All spaceships have left the planet, except one ...
else
- _gm->shipStart();
+ shipStart();
} else if (sentenceRemoved(1, 1))
_vm->renderMessage(kStringArsanoMeetup2_1); // All spaceships have left the planet
@@ -2189,7 +2189,7 @@ bool ArsanoMeetup2::interact(Action verb, Object &obj1, Object &obj2) {
_gm->_rooms[MEETUP2]->getObject(1)->_click = 255;
_vm->renderRoom(*this);
_vm->paletteBrightness();
- _gm->shipStart();
+ shipStart();
if (flight) {
_vm->renderImage(13, 0);
_vm->paletteBrightness();
@@ -2247,6 +2247,19 @@ bool ArsanoMeetup2::interact(Action verb, Object &obj1, Object &obj2) {
return true;
}
+void ArsanoMeetup2::shipStart() {
+ _gm->wait2(12);
+ for (int i = 2; i <= 11; ++i) {
+ if (i >= 9)
+ _gm->drawImage(i - 1 + 128);
+ else
+ setSectionVisible(i - 1, false);
+ _gm->drawImage(i);
+ _gm->wait2(2);
+ }
+ _gm->drawImage(11 + 128);
+}
+
bool ArsanoMeetup3::interact(Action verb, Object &obj1, Object &obj2) {
byte row2[6] = {1, 1, 1, 1, 0, 0};
byte row3[6] = {1, 1, 0, 0, 0, 0};
diff --git a/engines/supernova/rooms.h b/engines/supernova/rooms.h
index 164248c24c..402c4d6414 100644
--- a/engines/supernova/rooms.h
+++ b/engines/supernova/rooms.h
@@ -805,6 +805,8 @@ public:
virtual void onEntrance();
virtual bool interact(Action verb, Object &obj1, Object &obj2);
+ void shipStart();
+
private:
// TODO: change to 6, fix initialization
StringID _dialog1[2];
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 7291152f48..7b72e58801 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -918,10 +918,6 @@ bool GameManager::airless() {
(_currentRoom->getId() == AIRLOCK && _rooms[AIRLOCK]->getObject(1)->hasProperty(OPENED)));
}
-void GameManager::shipStart() {
- warning("STUB: shipStart");
-}
-
void GameManager::sentence(int number, bool brightness) {
if (number < 0)
return;
diff --git a/engines/supernova/state.h b/engines/supernova/state.h
index 91a066e71c..a979d228f5 100644
--- a/engines/supernova/state.h
+++ b/engines/supernova/state.h
@@ -196,7 +196,6 @@ public:
void reply(StringID textId, int aus1, int aus2);
void reply(const char *text, int aus1, int aus2);
void mousePosDialog(int x, int y);
- void shipStart();
void shot(int a, int b);
void takeMoney(int amount);
void search(int time);