2011-11-24 06:48:54 +00:00
|
|
|
#ifndef _GAME_RENDER_NPCANIMATION_H
|
|
|
|
#define _GAME_RENDER_NPCANIMATION_H
|
|
|
|
#include "animation.hpp"
|
|
|
|
#include <components/nif/data.hpp>
|
|
|
|
#include <components/nif/node.hpp>
|
2011-12-14 04:49:03 +00:00
|
|
|
#include <components/nif/property.hpp>
|
|
|
|
#include <components/nif/controller.hpp>
|
|
|
|
#include <components/nif/extra.hpp>
|
2011-12-12 03:40:00 +00:00
|
|
|
|
|
|
|
#include "../mwworld/refdata.hpp"
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
#include "../mwworld/environment.hpp"
|
|
|
|
#include "components/nifogre/ogre_nif_loader.hpp"
|
|
|
|
|
2011-11-24 06:48:54 +00:00
|
|
|
namespace MWRender{
|
|
|
|
|
2011-12-12 03:40:00 +00:00
|
|
|
class NpcAnimation: public Animation{
|
2011-12-28 03:35:22 +00:00
|
|
|
|
2012-01-06 02:45:17 +00:00
|
|
|
|
2011-12-29 02:52:05 +00:00
|
|
|
|
2011-12-12 03:40:00 +00:00
|
|
|
public:
|
|
|
|
NpcAnimation(const MWWorld::Ptr& ptr, MWWorld::Environment& _env, OEngine::Render::OgreRenderer& _rend);
|
2012-03-15 16:40:42 +00:00
|
|
|
virtual ~NpcAnimation();
|
2011-12-12 03:40:00 +00:00
|
|
|
Ogre::Entity* insertBoundedPart(const std::string &mesh, std::string bonename);
|
2011-12-17 06:29:08 +00:00
|
|
|
void insertFreePart(const std::string &mesh, const std::string suffix, Ogre::SceneNode* insert);
|
2011-12-26 03:37:26 +00:00
|
|
|
virtual void runAnimation(float timepassed);
|
|
|
|
|
2011-11-24 06:48:54 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|