mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
24 lines
527 B
C++
24 lines
527 B
C++
#include "aiwander.hpp"
|
|
#include <iostream>
|
|
|
|
MWMechanics::AiWander::AiWander(int distance, int duration, int timeOfDay, const std::vector<int>& idle):
|
|
mDistance(distance), mDuration(duration), mTimeOfDay(timeOfDay), mIdle(idle)
|
|
{
|
|
}
|
|
|
|
MWMechanics::AiPackage * MWMechanics::AiWander::clone() const
|
|
{
|
|
return new AiWander(*this);
|
|
}
|
|
|
|
bool MWMechanics::AiWander::execute (const MWWorld::Ptr& actor)
|
|
{
|
|
std::cout << "AiWadner completed.\n";
|
|
return true;
|
|
}
|
|
|
|
int MWMechanics::AiWander::getTypeId() const
|
|
{
|
|
return 0;
|
|
}
|