FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <animationloader.h>
Public Member Functions | |
AnimationLoader (VFS *vfs, ImageManager *imageManager, AnimationManager *animationManager) | |
virtual bool | isLoadable (const std::string &filename) |
virtual AnimationPtr | load (const std::string &filename) |
virtual std::vector< AnimationPtr > | loadMultiple (const std::string &filename) |
Public Member Functions inherited from FIFE::IAnimationLoader | |
virtual | ~IAnimationLoader () |
Private Member Functions | |
AnimationPtr | loadAnimation (const std::string &filename, TiXmlElement *animationElem) |
Private Attributes | |
VFS * | m_vfs |
ImageManager * | m_imageManager |
AnimationManager * | m_animationManager |
Definition at line 46 of file animationloader.h.
FIFE::AnimationLoader::AnimationLoader | ( | VFS * | vfs, |
ImageManager * | imageManager, | ||
AnimationManager * | animationManager | ||
) |
Definition at line 51 of file animationloader.cpp.
|
virtual |
Implements FIFE::IAnimationLoader.
Definition at line 56 of file animationloader.cpp.
References FIFE::RawData::getDataLength(), m_vfs, FIFE::VFS::open(), and FIFE::RawData::readString().
|
virtual |
Implements FIFE::IAnimationLoader.
Definition at line 96 of file animationloader.cpp.
References FIFE::_log, FL_ERR, FIFE::RawData::getDataLength(), loadAnimation(), m_vfs, FIFE::VFS::open(), and FIFE::RawData::readString().
|
private |
Definition at line 195 of file animationloader.cpp.
References FIFE::Animation::addFrame(), FIFE::AnimationManager::create(), FIFE::ImageManager::create(), FIFE::AnimationManager::exists(), FIFE::ImageManager::exists(), FIFE::Animation::getFrameCount(), FIFE::GetParentPath(), FIFE::AnimationManager::getPtr(), FIFE::ImageManager::getPtr(), FIFE::HasParentPath(), m_animationManager, m_imageManager, FIFE::Animation::setActionFrame(), FIFE::Animation::setDirection(), FIFE::Image::setXShift(), and FIFE::Image::setYShift().
Referenced by load(), and loadMultiple().
|
virtual |
Implements FIFE::IAnimationLoader.
Definition at line 143 of file animationloader.cpp.
References FIFE::_log, FL_ERR, FIFE::RawData::getDataLength(), loadAnimation(), m_vfs, FIFE::VFS::open(), and FIFE::RawData::readString().
|
private |
Definition at line 70 of file animationloader.h.
Referenced by loadAnimation().
|
private |
Definition at line 69 of file animationloader.h.
Referenced by loadAnimation().
|
private |
Definition at line 68 of file animationloader.h.
Referenced by isLoadable(), load(), and loadMultiple().