/////////////////////////////////////////////////////////////////////////////// // // Name: SkeletonAnimManager.h // Author: Rich Cross // Contact: rich@wildfiregames.com // /////////////////////////////////////////////////////////////////////////////// #ifndef _SKELETONANIMMANAGER_H #define _SKELETONANIMMANAGER_H #include #include class CColladaManager; class CSkeletonAnimDef; class CStr8; /////////////////////////////////////////////////////////////////////////////// // CSkeletonAnimManager : owner class of all skeleton anims - manages creation, // loading and destruction of animation data class CSkeletonAnimManager : boost::noncopyable { public: // constructor, destructor CSkeletonAnimManager(CColladaManager& colladaManager); ~CSkeletonAnimManager(); // return a given animation by filename; return null if filename doesn't // refer to valid animation file CSkeletonAnimDef* GetAnimation(const CStr8& filename); private: CSkeletonAnimDef* LoadAnimation(const char* filename); // map of all known animations. Value is NULL if it failed to load. std::map m_Animations; CColladaManager& m_ColladaManager; }; #endif