aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/string.h')
-rw-r--r--engines/titanic/string.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/titanic/string.h b/engines/titanic/string.h
index d70e23d023..6b8e4b784e 100644
--- a/engines/titanic/string.h
+++ b/engines/titanic/string.h
@@ -28,6 +28,15 @@
namespace Titanic {
+enum FileType {
+ FILETYPE_UNKNOWN = 0, FILETYPE_IMAGE = 1, FILETYPE_MOVIE = 2,
+ FILETYPE_WAV = 3, FILETYPE_DLG = 4
+};
+
+enum ImageType {
+ IMAGETYPE_UNKNOWN = 0, IMAGETYPE_TARGA = 1, IMAGETYPE_JPEG = 2
+};
+
class CString : public Common::String {
public:
CString() : Common::String() {}
@@ -66,6 +75,16 @@ public:
* Returns the index of the last occurance of a given character
*/
int lastIndexOf(char c);
+
+ /**
+ * Returns the type of a filename based on it's extension
+ */
+ FileType fileTypeSuffix() const;
+
+ /**
+ * Returns the type of an image filename based on it's extension
+ */
+ ImageType imageTypeSuffix() const;
};
} // End of namespace Titanic