|
|
@ -16,11 +16,7 @@ void Actors::insertNPC(const MWWorld::Ptr& ptr){
|
|
|
|
insertBegin(ptr, true, true);
|
|
|
|
insertBegin(ptr, true, true);
|
|
|
|
NpcAnimation* anim = new MWRender::NpcAnimation(ptr, mEnvironment, mRend);
|
|
|
|
NpcAnimation* anim = new MWRender::NpcAnimation(ptr, mEnvironment, mRend);
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mAllActors[ptr] = anim;
|
|
|
|
mAllActors[ptr] = anim;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void Actors::insertBegin (const MWWorld::Ptr& ptr, bool enabled, bool static_){
|
|
|
|
void Actors::insertBegin (const MWWorld::Ptr& ptr, bool enabled, bool static_){
|
|
|
|
Ogre::SceneNode* cellnode;
|
|
|
|
Ogre::SceneNode* cellnode;
|
|
|
@ -121,10 +117,9 @@ void Actors::skipAnimation (const MWWorld::Ptr& ptr){
|
|
|
|
if(mAllActors.find(ptr) != mAllActors.end())
|
|
|
|
if(mAllActors.find(ptr) != mAllActors.end())
|
|
|
|
mAllActors[ptr]->stopScript();
|
|
|
|
mAllActors[ptr]->stopScript();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void Actors::addTime(){
|
|
|
|
void Actors::update (float duration){
|
|
|
|
//std::cout << "Adding time in actors\n";
|
|
|
|
|
|
|
|
for(std::map<MWWorld::Ptr, Animation*>::iterator iter = mAllActors.begin(); iter != mAllActors.end(); iter++)
|
|
|
|
for(std::map<MWWorld::Ptr, Animation*>::iterator iter = mAllActors.begin(); iter != mAllActors.end(); iter++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
(iter->second)->runAnimation(mEnvironment.mFrameDuration);
|
|
|
|
(iter->second)->runAnimation(duration);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|