#ifndef _GAME_RENDER_ANIMATION_H #define _GAME_RENDER_ANIMATION_H #include #include #include #include "../mwworld/actiontalk.hpp" #include #include namespace MWRender { struct PosAndRot { Ogre::Quaternion vecRot; Ogre::Vector3 vecPos; }; class Animation { protected: Ogre::SceneNode* mInsert; OEngine::Render::OgreRenderer &mRend; static std::map sUniqueIDs; float mTime; int mAnimate; bool mSkipFrame; NifOgre::EntityList mEntityList; public: Animation(OEngine::Render::OgreRenderer& _rend); virtual ~Animation(); void playGroup(std::string groupname, int mode, int loops); void skipAnim(); virtual void runAnimation(float timepassed); }; } #endif