aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/fixed_text.h
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-14 14:13:55 +0200
committerMartin Kiewitz2015-06-14 14:13:55 +0200
commite7dcf4905e2cacd0d726aad08fd4a857a3459120 (patch)
tree4e671d172cc09ba6ea13bde92ba7603b3dcfe90f /engines/sherlock/fixed_text.h
parent9e1ae6d82a7c6dbf08f78488d99daaff416c47ae (diff)
downloadscummvm-rg350-e7dcf4905e2cacd0d726aad08fd4a857a3459120.tar.gz
scummvm-rg350-e7dcf4905e2cacd0d726aad08fd4a857a3459120.tar.bz2
scummvm-rg350-e7dcf4905e2cacd0d726aad08fd4a857a3459120.zip
SHERLOCK: fixedText class to support localizations
also implemented text for windows (exit/up/down) using this class
Diffstat (limited to 'engines/sherlock/fixed_text.h')
-rw-r--r--engines/sherlock/fixed_text.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/engines/sherlock/fixed_text.h b/engines/sherlock/fixed_text.h
new file mode 100644
index 0000000000..016a1fb493
--- /dev/null
+++ b/engines/sherlock/fixed_text.h
@@ -0,0 +1,59 @@
+/* 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.
+ *
+ */
+
+#ifndef SHERLOCK_FIXED_TEXT_H
+#define SHERLOCK_FIXED_TEXT_H
+
+#include "common/scummsys.h"
+
+namespace Sherlock {
+
+enum FixedTextId {
+ kFixedText_Window_Exit = 0,
+ kFixedText_Window_Up,
+ kFixedText_Window_Down
+};
+
+struct SherlockFixedTextLanguageEntry {
+ Common::Language language;
+ const Common::String *fixedTextArray;
+};
+
+class FixedText {
+private:
+ SherlockEngine *_vm;
+
+ const Common::String *_fixedText;
+
+public:
+ FixedText(SherlockEngine *vm);
+ ~FixedText() {}
+
+ /**
+ * Gets hardcoded text
+ */
+ const Common::String getText(FixedTextId fixedTextId);
+};
+
+} // End of namespace Sherlock
+
+#endif