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