2012-11-15 21:15:20 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_AIWANDER_H
|
|
|
|
#define GAME_MWMECHANICS_AIWANDER_H
|
2012-11-14 17:42:04 +00:00
|
|
|
|
|
|
|
#include "aipackage.hpp"
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
|
2012-11-16 17:38:15 +00:00
|
|
|
class AiWander : public AiPackage
|
|
|
|
{
|
|
|
|
public:
|
2012-11-14 17:42:04 +00:00
|
|
|
|
2012-11-16 19:28:20 +00:00
|
|
|
AiWander(int distance, int duration, int timeOfDay, const std::vector<int>& idle);
|
2012-11-16 17:38:15 +00:00
|
|
|
virtual AiPackage *clone() const;
|
|
|
|
virtual bool execute (const MWWorld::Ptr& actor);
|
|
|
|
///< \return Package completed?
|
|
|
|
virtual int getTypeId() const;
|
|
|
|
///< 0: Wander
|
2012-11-14 17:42:04 +00:00
|
|
|
|
2012-11-16 17:38:15 +00:00
|
|
|
private:
|
|
|
|
int mDistance;
|
|
|
|
int mDuration;
|
2012-11-16 19:28:20 +00:00
|
|
|
int mTimeOfDay;
|
2012-11-16 17:38:15 +00:00
|
|
|
std::vector<int> mIdle;
|
|
|
|
};
|
|
|
|
}
|
2012-11-14 17:42:04 +00:00
|
|
|
|
2012-11-16 19:28:20 +00:00
|
|
|
#endif
|