aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.h
diff options
context:
space:
mode:
authorMax Horn2010-02-13 17:46:44 +0000
committerMax Horn2010-02-13 17:46:44 +0000
commitb9a11ddb0b69910418d0ccc8cf303a2e2a181f3a (patch)
tree277ec4eb1546916c8695f47e9bafb357916247bb /engines/sci/sci.h
parent06021f79acfb32677e68b8697d5ba63059a6893d (diff)
downloadscummvm-rg350-b9a11ddb0b69910418d0ccc8cf303a2e2a181f3a.tar.gz
scummvm-rg350-b9a11ddb0b69910418d0ccc8cf303a2e2a181f3a.tar.bz2
scummvm-rg350-b9a11ddb0b69910418d0ccc8cf303a2e2a181f3a.zip
SCI: Move language related code from EngineState to SciEngine
svn-id: r48052
Diffstat (limited to 'engines/sci/sci.h')
-rw-r--r--engines/sci/sci.h31
1 files changed, 29 insertions, 2 deletions
diff --git a/engines/sci/sci.h b/engines/sci/sci.h
index 2138b131cd..088b4312bf 100644
--- a/engines/sci/sci.h
+++ b/engines/sci/sci.h
@@ -100,8 +100,6 @@ enum kDebugLevels {
kDebugLevelOnStartup = 1 << 23
};
-extern const char *versionNames[];
-
/** SCI versions */
enum SciVersion {
SCI_VERSION_NONE,
@@ -124,6 +122,19 @@ enum MoveCountType {
kIncrementMoveCount
};
+/** Supported languages */
+enum kLanguage {
+ K_LANG_NONE = 0,
+ K_LANG_ENGLISH = 1,
+ K_LANG_FRENCH = 33,
+ K_LANG_SPANISH = 34,
+ K_LANG_ITALIAN = 39,
+ K_LANG_GERMAN = 49,
+ K_LANG_JAPANESE = 81,
+ K_LANG_PORTUGUESE = 351
+};
+
+
class SciEngine : public Engine {
friend class Console;
public:
@@ -166,6 +177,22 @@ public:
Common::String unwrapFilename(const Common::String &name) const;
public:
+
+ /**
+ * Processes a multilanguage string based on the current language settings and
+ * returns a string that is ready to be displayed.
+ * @param str the multilanguage string
+ * @param sep optional seperator between main language and subtitle language,
+ * if NULL is passed no subtitle will be added to the returned string
+ * @return processed string
+ */
+ Common::String strSplit(const char *str, const char *sep = "\r----------\r");
+
+ kLanguage getSciLanguage();
+
+ Common::String getSciLanguageString(const char *str, kLanguage lang) const;
+
+public:
GfxAnimate *_gfxAnimate; // Animate for 16-bit gfx
GfxCache *_gfxCache;
GfxCompare *_gfxCompare;