aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/scenes/scene47.cpp
blob: 50c8c39f229fcbbc55e80bba0e359d7a54337c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/* ScummVM - Graphic Adventure Engine
 *
 * ScummVM is the legal property of its developers, whose names
 * are too numerous to list here. Please refer to the COPYRIGHT
 * file distributed with this source distribution.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */

#include "gnap/gnap.h"
#include "gnap/gamesys.h"
#include "gnap/resource.h"

namespace Gnap {

void GnapEngine::scene47_initCutscene1() {
	_s99_sequenceIdArr[0] = 0x301;
	_s99_sequenceIdArr[1] = 0x305;
	_s99_sequenceIdArr[2] = 0x302;
	_s99_sequenceIdArr[3] = 0x304;
	_s99_sequenceIdArr[4] = 0x300;
	_s99_resourceIdArr[0] = 3;
	_s99_resourceIdArr[1] = 0;
	_s99_resourceIdArr[2] = 1;
	_s99_resourceIdArr[3] = 0;
	_s99_resourceIdArr[4] = 2;
	_s99_sequenceCountArr[0] = 1;
	_s99_sequenceCountArr[1] = 1;
	_s99_sequenceCountArr[2] = 1;
	_s99_sequenceCountArr[3] = 1;
	_s99_sequenceCountArr[4] = 1;
	_s99_canSkip[0] = false;
	_s99_canSkip[1] = false;
	_s99_canSkip[2] = false;
	_s99_canSkip[3] = false;
	_s99_canSkip[4] = false;
	_s99_itemsCount = 5;
}

void GnapEngine::scene47_initCutscene2() {
	_s99_sequenceIdArr[0] = 0x306;
	_s99_sequenceIdArr[1] = 0x309;
	_s99_sequenceIdArr[2] = 0x307;
	_s99_sequenceIdArr[3] = 0x308;
	_s99_sequenceIdArr[4] = 0x30A;
	_s99_resourceIdArr[0] = 0x8E;
	_s99_resourceIdArr[1] = 0x90;
	_s99_resourceIdArr[2] = 0x8F;
	_s99_resourceIdArr[3] = 0x91;
	_s99_sequenceCountArr[0] = 2;
	_s99_sequenceCountArr[1] = 1;
	_s99_sequenceCountArr[2] = 1;
	_s99_sequenceCountArr[3] = 1;
	_s99_canSkip[0] = false;
	_s99_canSkip[1] = false;
	_s99_canSkip[2] = false;
	_s99_canSkip[3] = false;
	_s99_itemsCount = 4;
}

void GnapEngine::scene47_initCutscene3() {
	_s99_sequenceIdArr[0] = 0x320;
	_s99_sequenceIdArr[1] = 0x321;
	_s99_resourceIdArr[0] = 0x142;
	_s99_resourceIdArr[1] = 0x143;
	_s99_sequenceCountArr[0] = 1;
	_s99_sequenceCountArr[1] = 1;
	_s99_canSkip[0] = false;
	_s99_canSkip[1] = false;
	_s99_itemsCount = 2;
}

void GnapEngine::scene47_initCutscene4() {
	_s99_sequenceIdArr[0] = 0x30C;
	_s99_sequenceIdArr[1] = 0x30D;
	_s99_sequenceIdArr[2] = 0x30B;
	_s99_resourceIdArr[0] = 0x142;
	_s99_resourceIdArr[1] = 0x141;
	_s99_resourceIdArr[2] = 0x177;
	_s99_sequenceCountArr[0] = 1;
	_s99_sequenceCountArr[1] = 1;
	_s99_sequenceCountArr[2] = 1;
	_s99_canSkip[0] = false;
	_s99_canSkip[1] = false;
	_s99_canSkip[2] = false;
	_s99_itemsCount = 3;
}

void GnapEngine::scene47_initCutscene5() {
	_s99_sequenceIdArr[0] = 0x30E;
	_s99_sequenceIdArr[1] = 0x30F;
	_s99_sequenceIdArr[2] = 0x310;
	_s99_sequenceIdArr[3] = 0x311;
	_s99_resourceIdArr[0] = 0x206;
	_s99_resourceIdArr[1] = 0x207;
	_s99_sequenceCountArr[0] = 3;
	_s99_sequenceCountArr[1] = 1;
	_s99_canSkip[0] = false;
	_s99_canSkip[1] = false;
	_s99_itemsCount = 2;
}

void GnapEngine::scene47_initCutscene6() {
	_s99_sequenceIdArr[0] = 0x31E;
	_s99_sequenceIdArr[1] = 0x31F;
	_s99_resourceIdArr[0] = 0x2FA;
	_s99_sequenceCountArr[0] = 2;
	_s99_canSkip[0] = false;
	_s99_itemsCount = 1;
}

void GnapEngine::scene47_initCutscene7() {
	int v0, v4, v2, v3;
	
	_s99_sequenceIdArr[0] = 0x316;
	_s99_sequenceIdArr[1] = 0x31A;
	_s99_sequenceIdArr[2] = 0x314;
	_s99_sequenceIdArr[3] = 0x31B;
	int v1 = 4;
	if (!isFlag(kGFTwigTaken)) {
		_s99_sequenceIdArr[4] = 0x31C;
		v1 = 5;
	}
	if (!isFlag(kGFPlatypusTalkingToAssistant))
		_s99_sequenceIdArr[v1++] = 0x31D;
	v4 = v1;
	_s99_sequenceIdArr[v1] = 0x319;
	v0 = v1 + 1;
	v3 = v0;
	_s99_sequenceIdArr[v0++] = 0x317;
	_s99_sequenceIdArr[v0++] = 0x312;
	_s99_sequenceIdArr[v0] = 0x31A;
	v2 = v0 + 1;
	if (!isFlag(kGFTwigTaken))
		_s99_sequenceIdArr[v2++] = 0x31C;
	if (!isFlag(kGFPlatypusTalkingToAssistant))
		_s99_sequenceIdArr[v2++] = 0x31D;
	_s99_sequenceIdArr[v2] = 0x313;
	_s99_sequenceIdArr[v2 + 1] = 0x315;
	_s99_resourceIdArr[0] = 0x2B8;
	_s99_resourceIdArr[1] = 0x20C;
	_s99_resourceIdArr[2] = 0x2B8;
	_s99_resourceIdArr[3] = 0x20B;
	_s99_resourceIdArr[4] = 0x20B;
	_s99_sequenceCountArr[0] = v4;
	_s99_sequenceCountArr[1] = 1;
	_s99_sequenceCountArr[2] = v2 - v3;
	_s99_sequenceCountArr[3] = 1;
	_s99_sequenceCountArr[4] = 1;
	_s99_canSkip[0] = false;
	_s99_canSkip[1] = false;
	_s99_canSkip[2] = false;
	_s99_canSkip[3] = false;
	_s99_canSkip[4] = false;
	_s99_itemsCount = 5;
}

} // End of namespace Gnap