22 #ifndef FIFE_MAPLOADER_H_ 23 #define FIFE_MAPLOADER_H_ 46 class AnimationManager;
48 class PercentDoneListener;
89 bool isLoadable(
const std::string& filename)
const;
94 Map*
load(
const std::string& filename);
101 void loadImportFile(
const std::string& file,
const std::string& directory=
"");
Abstract interface for all the renderbackends.
void addPercentDoneListener(PercentDoneListener *listener)
allows adding a listener to the map loader for percent completed events
Map * load(const std::string &filename)
void setAnimationLoader(const FIFE::AnimationLoaderPtr &animationLoader)
MapLoader(Model *model, VFS *vfs, ImageManager *imageManager, RenderBackend *renderBackend)
void setAtlasLoader(const FIFE::AtlasLoaderPtr &atlasLoader)
bool isLoadable(const std::string &filename) const
void loadImportFile(const std::string &file, const std::string &directory="")
used to load an object file if directory is provided then file is assumed relative to directory if re...
MapLoader * createDefaultMapLoader(Model *model, VFS *vfs, ImageManager *imageManager, RenderBackend *renderBackend)
convenience function for creating the default fife map loader deleting the object returned from this ...
std::vector< std::string > m_importDirectories
void setObjectLoader(const FIFE::ObjectLoaderPtr &objectLoader)
PercentDoneCallback m_percentDoneListener
ObjectLoaderPtr m_objectLoader
FIFE::AnimationLoaderPtr getAnimationLoader()
const std::string & getLoaderName() const
returns the loader name associated with this map file loader, this will only be populated after the l...
ImageManager * m_imageManager
FIFE::ObjectLoaderPtr getObjectLoader()
A model is a facade for everything in the model.
RenderBackend * m_renderBackend
Interface class that all map loaders should derive from.
std::string m_mapDirectory
the main VFS (virtual file system) class
FIFE::AtlasLoaderPtr getAtlasLoader()
void loadImportDirectory(const std::string &directory)
used to load a directory of object files recursively if relativeToMap is true then the directory is a...
AnimationManager * m_animationManager