2011-11-24 06:48:54 +00:00
|
|
|
#ifndef _GAME_RENDER_ACTORS_H
|
|
|
|
#define _GAME_RENDER_ACTORS_H
|
|
|
|
|
|
|
|
#include "components/esm_store/cell_store.hpp"
|
2011-11-25 04:13:34 +00:00
|
|
|
#include <map>
|
2011-12-12 04:42:39 +00:00
|
|
|
#include <list>
|
2011-11-24 06:48:54 +00:00
|
|
|
|
2011-12-09 08:02:09 +00:00
|
|
|
|
|
|
|
|
2011-11-24 06:48:54 +00:00
|
|
|
#include <openengine/ogre/renderer.hpp>
|
2011-12-09 05:08:30 +00:00
|
|
|
#include "components/nifogre/ogre_nif_loader.hpp"
|
2011-12-09 08:02:09 +00:00
|
|
|
|
|
|
|
#include "../mwworld/refdata.hpp"
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
#include "../mwworld/actiontalk.hpp"
|
2011-12-09 05:08:30 +00:00
|
|
|
#include "../mwworld/environment.hpp"
|
2011-12-12 03:40:00 +00:00
|
|
|
#include "npcanimation.hpp"
|
|
|
|
#include "creatureanimation.hpp"
|
2011-12-09 08:02:09 +00:00
|
|
|
|
2011-11-24 06:48:54 +00:00
|
|
|
namespace MWRender{
|
|
|
|
class Actors{
|
|
|
|
OEngine::Render::OgreRenderer &mRend;
|
|
|
|
std::map<MWWorld::Ptr::CellStore *, Ogre::SceneNode *> mCellSceneNodes;
|
|
|
|
Ogre::SceneNode* mMwRoot;
|
2011-12-09 05:08:30 +00:00
|
|
|
MWWorld::Environment& mEnvironment;
|
2011-12-12 04:42:39 +00:00
|
|
|
std::list<Animation> mAllActors;
|
2011-11-25 04:13:34 +00:00
|
|
|
|
|
|
|
|
2011-11-24 06:48:54 +00:00
|
|
|
|
|
|
|
public:
|
2011-12-09 05:08:30 +00:00
|
|
|
Actors(OEngine::Render::OgreRenderer& _rend, MWWorld::Environment& _env): mRend(_rend), mEnvironment(_env){}
|
2011-11-25 04:13:34 +00:00
|
|
|
~Actors(){}
|
|
|
|
void setMwRoot(Ogre::SceneNode* root);
|
|
|
|
void insertBegin (const MWWorld::Ptr& ptr, bool enabled, bool static_);
|
2011-12-12 03:40:00 +00:00
|
|
|
void insertCreature (const MWWorld::Ptr& ptr);
|
2011-12-09 05:08:30 +00:00
|
|
|
void insertNPC(const MWWorld::Ptr& ptr);
|
2011-11-25 04:13:34 +00:00
|
|
|
bool deleteObject (const MWWorld::Ptr& ptr);
|
|
|
|
///< \return found?
|
|
|
|
|
|
|
|
void removeCell(MWWorld::Ptr::CellStore* store);
|
|
|
|
|
2011-11-24 06:48:54 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|