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-15 21:15:20 +00:00
|
|
|
MWMechanics::AiEscort::AiEscort(const std::string &ActorID,int Duration, float X, float Y, float Z):
|
|
|
|
mActorID(ActorID), mDuration(Duration), mX(X), mY(Y), mZ(Z)
|
|
|
|
{
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
float MWMechanics::AiEscort::getX()
|
|
|
|
{
|
|
|
|
return mX;
|
|
|
|
}
|
|
|
|
float MWMechanics::AiEscort::getY()
|
|
|
|
{
|
|
|
|
return mY;
|
|
|
|
}
|
|
|
|
float MWMechanics::AiEscort::getZ()
|
|
|
|
{
|
|
|
|
return mZ;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string MWMechanics::AiEscort::getActorID()
|
|
|
|
{
|
|
|
|
return mActorID;
|
|
|
|
}
|
|
|
|
|
|
|
|
int MWMechanics::AiEscort::getDuration()
|
|
|
|
{
|
|
|
|
return mDuration;
|
|
|
|
}
|