1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/apps/openmw/mwmechanics/aiwander.cpp

24 lines
527 B
C++
Raw Normal View History

2012-11-14 18:42:04 +01:00
#include "aiwander.hpp"
2012-11-15 22:15:20 +01:00
#include <iostream>
2012-11-14 18:42:04 +01:00
2012-11-16 20:28:20 +01:00
MWMechanics::AiWander::AiWander(int distance, int duration, int timeOfDay, const std::vector<int>& idle):
2012-11-16 18:38:15 +01:00
mDistance(distance), mDuration(duration), mTimeOfDay(timeOfDay), mIdle(idle)
2012-11-14 18:42:04 +01:00
{
}
MWMechanics::AiPackage * MWMechanics::AiWander::clone() const
{
return new AiWander(*this);
}
bool MWMechanics::AiWander::execute (const MWWorld::Ptr& actor)
{
2012-11-15 22:15:20 +01:00
std::cout << "AiWadner completed.\n";
2012-11-14 18:42:04 +01:00
return true;
}
int MWMechanics::AiWander::getTypeId() const
{
return 0;
}