File: game_info.cpp

package info (click to toggle)
scummvm 2.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 450,268 kB
  • sloc: cpp: 4,297,604; asm: 28,322; python: 12,901; sh: 11,219; java: 8,477; xml: 7,843; perl: 2,633; ansic: 2,465; yacc: 1,670; javascript: 1,020; makefile: 933; lex: 578; awk: 275; objc: 82; sed: 11; php: 1
file content (282 lines) | stat: -rw-r--r-- 6,729 bytes parent folder | download | duplicates (3)
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
/* 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 3 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, see <http://www.gnu.org/licenses/>.
 *
 */

/*
 * Based on ScottFree interpreter version 1.14 developed by Swansea
 * University Computer Society without disassembly of any other game
 * drivers, only of game databases as permitted by EEC law (for purposes
 * of compatibility).
 *
 * Licensed under GPLv2
 *
 * https://github.com/angstsmurf/spatterlight/tree/master/terps/scott
 */

#include "common/array.h"
#include "common/str.h"
#include "common/str-array.h"
#include "glk/scott/definitions.h"

namespace Glk {
namespace Scott {

/* This is supposed to be the original ScottFree system
 messages in second person, as far as possible */
const char *g_sysDict[] = {
	"North",
	"South",
	"East",
	"West",
	"Up",
	"Down",
	"The game is now over. Play again?",
	"You have stored",
	"treasures. ",
	"On a scale of 0 to 100 that rates",
	"O.K.",
	"O.K.",
	"O.K. ",
	"Well done.\n",
	"I don't understand ",
	"You can't do that yet. ",
	"Huh ? ",
	"Give me a direction too. ",
	"You haven't got it. ",
	"You have it. ",
	"You don't see it. ",
	"It is beyond your power to do that. ",
	"\nDangerous to move in the dark! ",
	"You fell down and broke your neck. ",
	"You can't go in that direction. ",
	"I don't know how to \"",
	"\" something. ",
	"I don't know what a \"",
	"\" is. ",
	"You can't see. It is too dark!\n",
	"You are in a ",
	"\nYou can also see: ",
	"Obvious exits: ",
	"You are carrying:\n",
	"Nothing.\n",
	"Tell me what to do ? ",
	"<HIT ENTER>",
	"Light has run out. ",
	"Light runs out in",
	"turns! ",
	"You are carrying too much. \n",
	"You're dead. ",
	"Resume a saved game? ",
	"None",
	"There's nothing here to take. ",
	"You carry nothing. ",
	"Your light is growing dim. ",
	", ",
	"\n",
	" - ",
	"What ?",
	"yes",
	"no",
	"Answer yes or no.\n",
	"Are you sure? ",
	"Move undone. ",
	"Can't undo on first turn. ",
	"No more undo states stored. ",
	"Saved. ",
	"You can't use ALL with that verb. ",
	"Transcript is now off.\n",
	"Transcript is now on.\n",
	"No transcript is currently running.\n",
	"A transcript is already running.\n",
	"Failed to create transcript file. ",
	"Start of transcript\n\n",
	"\n\nEnd of transcript\n",
	"BAD DATA! Invalid save file.\n",
	"State saved.\n",
	"State restored.\n",
	"No saved state exists.\n"
};

/* These are supposed to be the original ScottFree system
 messages in first person, as far as possible */
const char *g_sysDictIAm[] = {
	"North",
	"South",
	"East",
	"West",
	"Up",
	"Down",
	"The game is now over. Play again?",
	"You have stored",
	"treasures. ",
	"On a scale of 0 to 100 that rates",
	"O.K.",
	"O.K.",
	"O.K. ",
	"Well done.\n",
	"I don't understand ",
	"I can't do that yet. ",
	"Huh ? ",
	"Give me a direction too.",
	"I'm not carrying it. ",
	"I already have it. ",
	"I don't see it here. ",
	"It is beyond my power to do that. ",
	"Dangerous to move in the dark! ",
	"\nI fell and broke my neck.",
	"I can't go in that direction. ",
	"I don't know how to \"",
	"\" something. ",
	"I don't know what a \"",
	"\" is. ",
	"I can't see. It is too dark!\n",
	"I'm in a ",
	"\nI can also see: ",
	"Obvious exits: ",
	"I'm carrying: \n",
	"Nothing.\n",
	"Tell me what to do ? ",
	"<HIT ENTER>",
	"Light has run out. ",
	"Light runs out in",
	"turns! ",
	"I've too much to carry. \n",
	"I'm dead. ",
	"Resume a saved game? ",
	"None",
	"There's nothing here to take. ",
	"I have nothing to drop. ",
	"My light is growing dim. ",
	nullptr
};

/* These are supposed to be the original TI-99/4A system
 messages in first person, as far as possible */
const char *g_sysDictTI994A[] = {
	"North",
	"South",
	"East",
	"West",
	"Up",
	"Down",
	"This adventure is over. Play again?",
	"You have stored",
	"treasures. ",
	"On a scale of 0 to 100 that rates",
	"OK. ",
	"OK. ",
	"OK. ",
	"Well done.\n",
	"I don't understand the command. ",
	"I can't do that yet. ",
	"Huh? ",
	"Give me a direction too.",
	"I'm not carrying it. ",
	"I already have it. ",
	"I don't see it here. ",
	"It is beyond my power to do that. ",
	"Dangerous to move in the dark!\n",
	"\nI fell down and broke my neck.",
	"I can't go in that direction. ",
	"I don't know how to \"",
	"\" something. ",
	"I don't know what a \"",
	"\" is. ",
	"I can't see. It is too dark!\n",
	"I am in a ",
	"\nVisible items are : ",
	"Obvious exits : ",
	"I am carrying : ",
	"Nothing. ",
	"What shall I do? ",
	"<HIT ENTER>",
	"Light went out! ",
	"Light runs out in",
	"turns! ",
	"I am carrying too much.\n",
	"I'm dead... ",
	"Resume a saved game? ",
	"None",
	"There's nothing here to take. ",
	"I have nothing to drop. ",
	"Light is growing dim ",
	", ",
	" ",
	", ",
	nullptr,
};

const char *g_sysDictZX[] = {
	"NORTH",
	"SOUTH",
	"EAST",
	"WEST",
	"UP",
	"DOWN",
	"The Adventure is over. Want to try this Adventure again? ",
	"I've stored",
	"Treasures. ",
	"On a scale of 0 to 100 that rates",
	"Dropped.",
	"Taken.",
	"O.K. ",
	"FANTASTIC! You've solved it ALL! \n",
	"I must be stupid, but I just don't understand what you mean ",
	"I can't do that...yet! ",
	"Huh? ",
	"I need a direction too. ",
	"I'm not carrying it. ",
	"I already have it. ",
	"I don't see it here. ",
	"It's beyond my Power to do that. ",
	"It's dangerous to move in the dark! ",
	"\nI fell and broke my neck! I'm DEAD! ",
	"I can't go in that direction. ",
	"I don't know how to \"",
	"\" something. ",
	"I don't know what a \"",
	"\" is. ",
	"It's too dark to see!\n",
	"I am in a ",
	". Visible items:\n",
	"Exits: ",
	"I'm carrying the following: ",
	"Nothing at all. ",
	"---TELL ME WHAT TO DO ? ",
	"<HIT ENTER> ",
	"Light has run out. ",
	"Light runs out in",
	"turns! ",
	"I'm carrying too much! Try: TAKE INVENTORY. ",
	"I'm DEAD!! ",
	"Restore a previously saved game ? ",
	"None",
	"There's nothing here to take. ",
	"I have nothing to drop. ",
	"My light is growing dim. ",
	" ",
	" ",
	". ",
	"What ? ",
	nullptr
};

} // End of namespace Scott
} // End of namespace Glk