diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-29 11:03:48 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-29 11:03:48 +0000 |
commit | c00d3acf930359740ae6125533b5233ae06b765e (patch) | |
tree | a1ba92c7142c455e95758b37daf35a959903bf8a /src/resources/resourcemanager.h | |
parent | 4d117b39c555966d7648a03e0127560278e47170 (diff) | |
download | mana-client-c00d3acf930359740ae6125533b5233ae06b765e.tar.gz mana-client-c00d3acf930359740ae6125533b5233ae06b765e.tar.bz2 mana-client-c00d3acf930359740ae6125533b5233ae06b765e.tar.xz mana-client-c00d3acf930359740ae6125533b5233ae06b765e.zip |
Moved tileset management into the map class and made sure the tilesets are
cleaned up properly on switching maps.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r-- | src/resources/resourcemanager.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index a11ea4cb..a5a66901 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -63,38 +63,45 @@ class ResourceManager ~ResourceManager(); /** - * Sets the write directory + * Sets the write directory. * * @param path The path of the directory to be added. * @return <code>true</code> on success, <code>false</code> otherwise. */ - bool setWriteDir(const std::string &path); + bool + setWriteDir(const std::string &path); /** * Adds a directory or archive to the search path. */ - void addToSearchPath(const std::string &path, bool append); + void + addToSearchPath(const std::string &path, bool append); /** * Searches for zip files and adds them to the search path. */ - void searchAndAddArchives( - const std::string &path, const std::string &ext, bool append); + void + searchAndAddArchives(const std::string &path, + const std::string &ext, + bool append); /** * Creates a directory in the write path */ - bool mkdir(const std::string &path); + bool + mkdir(const std::string &path); /** * Checks whether the given file or directory exists in the search path */ - bool exists(const std::string &path); + bool + exists(const std::string &path); /** * Checks whether the given path is a directory. */ - bool isDirectory(const std::string &path); + bool + isDirectory(const std::string &path); /** * Creates a resource and adds it to the resource map. The idPath is |