2012-11-14 17:42:04 +00:00
|
|
|
#include "aiwander.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::AiWander::AiWander(int distance, int duration, int timeOfDay, const std::vector<int>& idle):
|
2012-11-16 17:38:15 +00:00
|
|
|
mDistance(distance), mDuration(duration), mTimeOfDay(timeOfDay), mIdle(idle)
|
2012-11-14 17:42:04 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
MWMechanics::AiPackage * MWMechanics::AiWander::clone() const
|
|
|
|
{
|
|
|
|
return new AiWander(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool MWMechanics::AiWander::execute (const MWWorld::Ptr& actor)
|
|
|
|
{
|
2013-04-06 11:46:28 +00:00
|
|
|
// Return completed
|
2012-11-14 17:42:04 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
int MWMechanics::AiWander::getTypeId() const
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|