openmw-tes3coop/apps/openmw/mwmechanics/actor.cpp

22 lines
466 B
C++
Raw Normal View History

#include "actor.hpp"
2015-04-25 13:19:17 +00:00
#include "character.hpp"
namespace MWMechanics
{
Actor::Actor(const MWWorld::Ptr &ptr, MWRender::Animation *animation)
{
2015-04-25 13:19:17 +00:00
mCharacterController.reset(new CharacterController(ptr, animation));
}
void Actor::updatePtr(const MWWorld::Ptr &newPtr)
{
2015-04-25 13:19:17 +00:00
mCharacterController->updatePtr(newPtr);
}
CharacterController* Actor::getCharacterController()
{
2015-04-25 13:19:17 +00:00
return mCharacterController.get();
}
}