aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/files.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-28 17:52:56 -0400
committerPaul Gilbert2016-08-28 17:52:56 -0400
commitfd2d4622966d36299129b3f1654484b49ee0c996 (patch)
tree6ab885a971901877f3500f3f49a96690c1b1d4e5 /engines/xeen/files.h
parentdffa696b7beea02782579a004862f4aa86e8f3e6 (diff)
downloadscummvm-rg350-fd2d4622966d36299129b3f1654484b49ee0c996.tar.gz
scummvm-rg350-fd2d4622966d36299129b3f1654484b49ee0c996.tar.bz2
scummvm-rg350-fd2d4622966d36299129b3f1654484b49ee0c996.zip
XEEN: Moved method comments from CPP to header files
Diffstat (limited to 'engines/xeen/files.h')
-rw-r--r--engines/xeen/files.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/xeen/files.h b/engines/xeen/files.h
index f0c92d1050..fc75031a72 100644
--- a/engines/xeen/files.h
+++ b/engines/xeen/files.h
@@ -56,6 +56,9 @@ public:
bool _isDarkCc;
CCArchive *_sideArchives[2];
public:
+ /**
+ * Instantiates the resource manager
+ */
FileManager(XeenEngine *vm);
void setGameCc(bool isDarkCc) { _isDarkCc = isDarkCc; }
@@ -73,7 +76,14 @@ public:
}
virtual ~File() {}
+ /**
+ * Opens the given file, throwing an error if it can't be opened
+ */
void openFile(const Common::String &filename);
+
+ /**
+ * Opens the given file, throwing an error if it can't be opened
+ */
void openFile(const Common::String &filename, Common::Archive &archive);
Common::String readString();
@@ -112,10 +122,20 @@ class BaseCCArchive : public Common::Archive {
protected:
Common::Array<CCEntry> _index;
+ /**
+ * Load the index of a given CC file
+ */
void loadIndex(Common::SeekableReadStream *stream);
+ /**
+ * Given a resource name, returns whether an entry exists, and returns
+ * the header index data for that entry
+ */
virtual bool getHeaderEntry(const Common::String &resourceName, CCEntry &ccEntry) const;
public:
+ /**
+ * Hash a given filename to produce the Id that represents it
+ */
static uint16 convertNameToId(const Common::String &resourceName);
public:
BaseCCArchive() {}