2012-11-15 21:32:15 +00:00
|
|
|
#include "aifollow.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
|
2012-11-16 19:28:20 +00:00
|
|
|
MWMechanics::AiFollow::AiFollow(const std::string &actorId,float duration, float x, float y, float z)
|
|
|
|
: mDuration(duration), mX(x), mY(y), mZ(z), mActorId(actorId)
|
2012-11-15 21:32:15 +00:00
|
|
|
{
|
|
|
|
}
|
2012-11-30 00:16:16 +00:00
|
|
|
MWMechanics::AiFollow::AiFollow(const std::string &actorId,const std::string &cellId,float duration, float x, float y, float z)
|
|
|
|
: mDuration(duration), mX(x), mY(y), mZ(z), mActorId(actorId), mCellId(cellId)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-11-15 21:32:15 +00:00
|
|
|
MWMechanics::AiFollow *MWMechanics::AiFollow::clone() const
|
|
|
|
{
|
|
|
|
return new AiFollow(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool MWMechanics::AiFollow::execute (const MWWorld::Ptr& actor)
|
|
|
|
{
|
|
|
|
std::cout << "AiFollow completed.\n";
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
int MWMechanics::AiFollow::getTypeId() const
|
|
|
|
{
|
|
|
|
return 3;
|
|
|
|
}
|