2012-11-14 18:42:04 +01:00
|
|
|
#include "aiescort.hpp"
|
2012-11-15 22:15:20 +01:00
|
|
|
#include <iostream>
|
2012-11-14 18:42:04 +01:00
|
|
|
|
2012-11-16 18:38:15 +01: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-15 22:15:20 +01:00
|
|
|
{
|
2012-11-14 18:42:04 +01:00
|
|
|
}
|
|
|
|
MWMechanics::AiEscort *MWMechanics::AiEscort::clone() const
|
|
|
|
{
|
2012-11-15 22:15:20 +01:00
|
|
|
return new AiEscort(*this);
|
2012-11-14 18:42:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool MWMechanics::AiEscort::execute (const MWWorld::Ptr& actor)
|
|
|
|
{
|
2012-11-15 22:15:20 +01:00
|
|
|
std::cout << "AiEscort completed. \n";
|
2012-11-14 18:42:04 +01: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;
|
|
|
|
}
|