mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
5c7e39a92f
Also renamed one field of AIWander class because it's not longer unknown.
28 lines
768 B
C++
28 lines
768 B
C++
#include "aifollow.hpp"
|
|
#include <iostream>
|
|
|
|
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)
|
|
{
|
|
}
|
|
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)
|
|
{
|
|
}
|
|
|
|
MWMechanics::AiFollow *MWMechanics::AiFollow::clone() const
|
|
{
|
|
return new AiFollow(*this);
|
|
}
|
|
|
|
bool MWMechanics::AiFollow::execute (const MWWorld::Ptr& actor,float duration)
|
|
{
|
|
std::cout << "AiFollow completed.\n";
|
|
return true;
|
|
}
|
|
|
|
int MWMechanics::AiFollow::getTypeId() const
|
|
{
|
|
return TypeIdFollow;
|
|
}
|