2015-06-14 14:13:55 +02:00
|
|
|
|
/* 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 "sherlock/sherlock.h"
|
|
|
|
|
#include "sherlock/fixed_text.h"
|
|
|
|
|
|
|
|
|
|
namespace Sherlock {
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextEN[] = {
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Window buttons
|
2015-06-14 14:13:55 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Up",
|
2015-06-14 14:51:43 +02:00
|
|
|
|
"Down",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Inventory buttons
|
2015-06-14 14:51:43 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Look",
|
|
|
|
|
"Use",
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Give",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal text
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Watson's Journal",
|
|
|
|
|
"Page %d",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal buttons
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Back 10",
|
|
|
|
|
"Up",
|
|
|
|
|
"Down",
|
|
|
|
|
"Ahead 10",
|
|
|
|
|
"Search",
|
|
|
|
|
"First Page",
|
|
|
|
|
"Last Page",
|
|
|
|
|
"Print Text",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal search
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Backward",
|
|
|
|
|
"Forward",
|
2015-06-14 20:40:02 +02:00
|
|
|
|
"Text Not Found !",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Initial Inventory
|
2015-06-14 20:40:02 +02:00
|
|
|
|
"A message requesting help",
|
|
|
|
|
"A number of business cards",
|
|
|
|
|
"Opera Tickets",
|
|
|
|
|
"Cuff Link",
|
|
|
|
|
"Wire Hook",
|
|
|
|
|
"Note",
|
|
|
|
|
"An open pocket watch",
|
|
|
|
|
"A piece of paper with numbers on it",
|
|
|
|
|
"A letter folded many times",
|
|
|
|
|
"Tarot Cards",
|
|
|
|
|
"An ornate key",
|
2015-06-16 21:13:34 -04:00
|
|
|
|
"A pawn ticket",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH2: Verbs
|
2015-06-16 21:13:34 -04:00
|
|
|
|
"Open",
|
|
|
|
|
"Look",
|
|
|
|
|
"Talk",
|
|
|
|
|
"Journal"
|
2015-06-14 14:13:55 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// sharp-s : 0xE1 / octal 341
|
|
|
|
|
// small a-umlaut: 0x84 / octal 204
|
|
|
|
|
// small o-umlaut: 0x94 / octal 224
|
|
|
|
|
// small u-umlaut: 0x81 / octal 201
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextDE[] = {
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Window buttons
|
2015-06-14 14:13:55 +02:00
|
|
|
|
"Zur\201ck",
|
|
|
|
|
"Hoch",
|
2015-06-14 14:51:43 +02:00
|
|
|
|
"Runter",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Inventory buttons
|
2015-06-14 14:51:43 +02:00
|
|
|
|
"Zur\201ck",
|
|
|
|
|
"Schau",
|
|
|
|
|
"Benutze",
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Gib",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal text
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Watsons Tagebuch",
|
|
|
|
|
"Seite %d",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal buttons
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Zur\201ck",
|
|
|
|
|
"10 hoch",
|
|
|
|
|
"Hoch",
|
|
|
|
|
"Runter",
|
|
|
|
|
"10 runter",
|
|
|
|
|
"Suche",
|
|
|
|
|
"Erste Seite",
|
|
|
|
|
"Letzte Seite",
|
|
|
|
|
"Drucke Text",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal search
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Zur\201ck",
|
|
|
|
|
"R\201ckw\204rts", // original: "Backward"
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Vorw\204rts", // original: "Forward"
|
2015-06-14 20:40:02 +02:00
|
|
|
|
"Text nicht gefunden!",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Initial Inventory
|
2015-06-14 20:40:02 +02:00
|
|
|
|
"Ein Hilferuf von Lestrade",
|
|
|
|
|
"Holmes' Visitenkarten",
|
|
|
|
|
"Karten f\201rs Opernhaus",
|
|
|
|
|
"Manschettenkn\224pfe",
|
|
|
|
|
"Zum Haken verbogener Drahtkorb",
|
|
|
|
|
"Mitteilung am Epstein",
|
|
|
|
|
"Eine offene Taschenuhr",
|
|
|
|
|
"Ein Zettel mit Zahlen drauf",
|
|
|
|
|
"Ein mehrfach gefalteter Briefbogen",
|
|
|
|
|
"Ein Tarock-Kartenspiel", // [sic]
|
|
|
|
|
"Ein verzierter Schl\201ssel",
|
2015-06-16 21:13:34 -04:00
|
|
|
|
"Ein Pfandschein",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH2: Verbs
|
|
|
|
|
"\231ffne",
|
|
|
|
|
"Schau",
|
|
|
|
|
"Rede",
|
|
|
|
|
"Tagebuch"
|
2015-06-14 14:13:55 +02:00
|
|
|
|
};
|
2015-06-14 17:52:11 +02:00
|
|
|
|
|
|
|
|
|
// up-side down exclamation mark - 0xAD / octal 255
|
|
|
|
|
// up-side down question mark - 0xA8 / octal 250
|
2015-06-14 20:40:02 +02:00
|
|
|
|
// n with a wave on top - 0xA4 / octal 244
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextES[] = {
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Window buttons
|
2015-06-14 14:13:55 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Subir",
|
2015-06-14 14:51:43 +02:00
|
|
|
|
"Bajar",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Inventory buttons
|
2015-06-14 14:51:43 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Mirar",
|
|
|
|
|
"Usar",
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Dar",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal text
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Diario de Watson",
|
|
|
|
|
"Pagina %d",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal buttons
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Retroceder",
|
|
|
|
|
"Subir",
|
|
|
|
|
"baJar",
|
|
|
|
|
"Adelante",
|
|
|
|
|
"Buscar",
|
|
|
|
|
"1a pagina",
|
|
|
|
|
"Ult pagina",
|
|
|
|
|
"Imprimir",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Journal search
|
2015-06-14 15:49:32 +02:00
|
|
|
|
"Exit",
|
|
|
|
|
"Retroceder",
|
|
|
|
|
"Avanzar",
|
2015-06-14 20:40:02 +02:00
|
|
|
|
"Texto no encontrado!",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH1: Initial Inventory
|
2015-06-14 20:40:02 +02:00
|
|
|
|
"Un mensaje solicitando ayuda",
|
|
|
|
|
"Unas cuantas tarjetas de visita",
|
|
|
|
|
"Entradas para la opera",
|
|
|
|
|
"Unos gemelos",
|
|
|
|
|
"Un gancho de alambre",
|
|
|
|
|
"Una nota",
|
|
|
|
|
"Un reloj de bolsillo abierto",
|
|
|
|
|
"Un trozo de papel con unos numeros",
|
|
|
|
|
"Un carta muy plegada",
|
|
|
|
|
"Unas cartas de Tarot",
|
|
|
|
|
"Una llave muy vistosa",
|
2015-06-16 21:13:34 -04:00
|
|
|
|
"Una papeleta de empe\244o",
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// SH2: Verbs --- TODO: not known at the moment
|
2015-06-16 21:13:34 -04:00
|
|
|
|
"Open",
|
|
|
|
|
"Look",
|
|
|
|
|
"Talk",
|
|
|
|
|
"Journal"
|
2015-06-14 14:13:55 +02:00
|
|
|
|
};
|
|
|
|
|
|
2015-06-14 17:52:11 +02:00
|
|
|
|
// =========================================
|
|
|
|
|
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// === Sherlock Holmes 1: Serrated Scalpel ===
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextEN_ActionOpen[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"This cannot be opened",
|
|
|
|
|
"It is already open",
|
|
|
|
|
"It is locked",
|
|
|
|
|
"Wait for Watson",
|
|
|
|
|
" ",
|
|
|
|
|
"."
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextDE_ActionOpen[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Das kann man nicht \224ffnen",
|
|
|
|
|
"Ist doch schon offen!",
|
|
|
|
|
"Leider verschlossen",
|
|
|
|
|
"Warte auf Watson",
|
|
|
|
|
" ",
|
|
|
|
|
"."
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextES_ActionOpen[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"No puede ser abierto",
|
|
|
|
|
"Ya esta abierto",
|
|
|
|
|
"Esta cerrado",
|
|
|
|
|
"Espera a Watson",
|
|
|
|
|
" ",
|
|
|
|
|
"."
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextEN_ActionClose[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"This cannot be closed",
|
|
|
|
|
"It is already closed",
|
|
|
|
|
"The safe door is in the way"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextDE_ActionClose[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Das kann man nicht schlie\341en",
|
|
|
|
|
"Ist doch schon zu!",
|
|
|
|
|
"Die safet\201r ist Weg"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextES_ActionClose[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"No puede ser cerrado",
|
|
|
|
|
"Ya esta cerrado",
|
|
|
|
|
"La puerta de seguridad esta entre medias"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextEN_ActionMove[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"This cannot be moved",
|
|
|
|
|
"It is bolted to the floor",
|
|
|
|
|
"It is too heavy",
|
|
|
|
|
"The other crate is in the way"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextDE_ActionMove[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"L\204\341t sich nicht bewegen",
|
|
|
|
|
"Festged\201belt in der Erde...",
|
|
|
|
|
"Oha, VIEL zu schwer",
|
|
|
|
|
"Der andere Kiste ist im Weg" // [sic]
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextES_ActionMove[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"No puede moverse",
|
|
|
|
|
"Esta sujeto a la pared",
|
|
|
|
|
"Es demasiado pesado",
|
|
|
|
|
"El otro cajon esta en mitad"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextEN_ActionPick[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Nothing of interest here",
|
|
|
|
|
"It is bolted down",
|
|
|
|
|
"It is too big to carry",
|
|
|
|
|
"It is too heavy",
|
|
|
|
|
"I think a girl would be more your type",
|
|
|
|
|
"Those flowers belong to Penny",
|
|
|
|
|
"She's far too young for you!",
|
|
|
|
|
"I think a girl would be more your type!",
|
|
|
|
|
"Government property for official use only"
|
2015-06-14 14:13:55 +02:00
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextDE_ActionPick[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Nichts Interessantes da",
|
|
|
|
|
"Zu gut befestigt",
|
|
|
|
|
"Ist ja wohl ein bi\341chen zu gro\341, oder ?",
|
2015-06-14 17:55:57 +02:00
|
|
|
|
"Oha, VIEL zu schwer",
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Ich denke, Du stehst mehr auf M\204dchen ?",
|
|
|
|
|
"Diese Blumen geh\224ren Penny",
|
|
|
|
|
"Sie ist doch viel zu jung f\201r Dich!",
|
2015-06-14 17:55:57 +02:00
|
|
|
|
"Ich denke, Du stehst mehr auf M\204dchen ?",
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Staatseigentum - Nur f<>r den Dienstgebrauch !"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextES_ActionPick[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"No hay nada interesante",
|
|
|
|
|
"Esta anclado al suelo",
|
|
|
|
|
"Es muy grande para llevarlo",
|
|
|
|
|
"Pesa demasiado",
|
|
|
|
|
"Creo que una chica sera mas tu tipo",
|
|
|
|
|
"Esas flores pertenecen a Penny",
|
|
|
|
|
"\255Es demasiado joven para ti!"
|
|
|
|
|
"\255Creo que una chica sera mas tu tipo!",
|
|
|
|
|
"Propiedad del gobierno para uso oficial"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextEN_ActionUse[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"You can't do that",
|
|
|
|
|
"It had no effect",
|
|
|
|
|
"You can't reach it",
|
|
|
|
|
"OK, the door looks bigger! Happy?"
|
|
|
|
|
"Doors don't smoke"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextDE_ActionUse[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"Nein, das geht wirklich nicht",
|
|
|
|
|
"Tja keinerlei Wirkung",
|
|
|
|
|
"Da kommst du nicht dran",
|
|
|
|
|
"Na gut, die T<>r sieht jetzt gr\224\341er aus. Zufrieden?"
|
|
|
|
|
"T<EFBFBD>ren sind Nichtraucher!"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:12:49 +02:00
|
|
|
|
static const char *const fixedTextES_ActionUse[] = {
|
2015-06-14 17:52:11 +02:00
|
|
|
|
"No puedes hacerlo",
|
|
|
|
|
"No tuvo ningun efecto",
|
|
|
|
|
"No puedes alcanzarlo",
|
|
|
|
|
"Bien, \255es enorme! \250Feliz?"
|
|
|
|
|
"Las puertas no fuman"
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 10:23:54 +02:00
|
|
|
|
#define FIXEDTEXT_GETCOUNT(_name_) sizeof(_name_) / sizeof(byte *)
|
2015-06-14 18:14:52 +02:00
|
|
|
|
#define FIXEDTEXT_ENTRY(_name_) _name_, FIXEDTEXT_GETCOUNT(_name_)
|
|
|
|
|
|
2015-06-14 17:52:11 +02:00
|
|
|
|
static const FixedTextActionEntry fixedTextEN_Actions[] = {
|
2015-06-14 18:14:52 +02:00
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionOpen) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionClose) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionMove) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionPick) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextEN_ActionUse) }
|
2015-06-14 17:52:11 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const FixedTextActionEntry fixedTextDE_Actions[] = {
|
2015-06-14 18:14:52 +02:00
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionOpen) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionClose) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionMove) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionPick) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextDE_ActionUse) }
|
2015-06-14 17:52:11 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const FixedTextActionEntry fixedTextES_Actions[] = {
|
2015-06-14 18:14:52 +02:00
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextES_ActionOpen) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextES_ActionClose) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextES_ActionMove) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextES_ActionPick) },
|
|
|
|
|
{ FIXEDTEXT_ENTRY(fixedTextES_ActionUse) }
|
2015-06-14 17:52:11 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// =========================================
|
|
|
|
|
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// TODO:
|
|
|
|
|
// It seems there was a French version of Sherlock Holmes 2
|
2015-06-14 17:52:11 +02:00
|
|
|
|
static const FixedTextLanguageEntry fixedTextLanguages[] = {
|
|
|
|
|
{ Common::DE_DEU, fixedTextDE, fixedTextDE_Actions },
|
|
|
|
|
{ Common::ES_ESP, fixedTextES, fixedTextES_Actions },
|
|
|
|
|
{ Common::EN_ANY, fixedTextEN, fixedTextEN_Actions },
|
|
|
|
|
{ Common::UNK_LANG, fixedTextEN, fixedTextEN_Actions }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// =========================================
|
|
|
|
|
|
|
|
|
|
// =========================================
|
2015-06-14 14:13:55 +02:00
|
|
|
|
|
2015-06-17 18:11:30 +02:00
|
|
|
|
// TODO: split this class up into 2 classes. One for each Sherlock Holmes game
|
|
|
|
|
// We definitely do not want to share fixed text between both, simply because translations may not be the same
|
2015-06-14 14:13:55 +02:00
|
|
|
|
FixedText::FixedText(SherlockEngine *vm) : _vm(vm) {
|
|
|
|
|
// Figure out which fixed texts to use
|
|
|
|
|
Common::Language curLanguage = _vm->getLanguage();
|
|
|
|
|
|
2015-06-14 17:52:11 +02:00
|
|
|
|
const FixedTextLanguageEntry *curLanguageEntry = fixedTextLanguages;
|
2015-06-14 14:13:55 +02:00
|
|
|
|
|
|
|
|
|
while (curLanguageEntry->language != Common::UNK_LANG) {
|
|
|
|
|
if (curLanguageEntry->language == curLanguage)
|
|
|
|
|
break; // found current language
|
|
|
|
|
curLanguageEntry++;
|
|
|
|
|
}
|
2015-06-14 17:52:11 +02:00
|
|
|
|
_curLanguageEntry = curLanguageEntry;
|
2015-06-14 14:13:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const Common::String FixedText::getText(FixedTextId fixedTextId) {
|
2015-06-16 10:23:54 +02:00
|
|
|
|
return Common::String(_curLanguageEntry->fixedTextArray[fixedTextId]);
|
2015-06-14 14:13:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-06-14 17:52:11 +02:00
|
|
|
|
const Common::String FixedText::getActionMessage(FixedTextActionId actionId, int messageIndex) {
|
|
|
|
|
assert(actionId >= 0);
|
2015-06-14 18:14:52 +02:00
|
|
|
|
assert(messageIndex >= 0);
|
|
|
|
|
const FixedTextActionEntry *curActionEntry = &_curLanguageEntry->actionArray[actionId];
|
|
|
|
|
|
|
|
|
|
assert(messageIndex < curActionEntry->fixedTextArrayCount);
|
2015-06-16 10:23:54 +02:00
|
|
|
|
return Common::String(curActionEntry->fixedTextArray[messageIndex]);
|
2015-06-14 17:52:11 +02:00
|
|
|
|
}
|
2015-06-14 14:13:55 +02:00
|
|
|
|
|
|
|
|
|
} // End of namespace Sherlock
|