Feature #391 Dummy AI package classes
parent
e6c8e1f0d7
commit
4b939c7521
@ -1,27 +0,0 @@
|
||||
#include "aifallow.hpp"
|
||||
|
||||
MWMechanics::AiFallow::AiFallow(std::string ActorID,float duration, float X, float Y, float Z, bool Reset)
|
||||
{
|
||||
mActorID = ActorID;
|
||||
mDuration = duration;
|
||||
mX = X;
|
||||
mY = Y;
|
||||
mZ = Z;
|
||||
mReset = Reset;
|
||||
}
|
||||
MWMechanics::AiFallow *MWMechanics::AiFallow::clone() const
|
||||
{
|
||||
AiFallow * temp = new AiFallow(*this);
|
||||
return temp;
|
||||
}
|
||||
|
||||
bool MWMechanics::AiFallow::execute (const MWWorld::Ptr& actor)
|
||||
{
|
||||
std::cout << "AiFallow complited. \n";
|
||||
return true;
|
||||
}
|
||||
|
||||
int MWMechanics::AiFallow::getTypeId() const
|
||||
{
|
||||
return 3;
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
#ifndef AIFALLOW_H
|
||||
#define AIFALLOW_H
|
||||
|
||||
#include "aipackage.hpp"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
class Ptr;
|
||||
}
|
||||
|
||||
namespace MWMechanics
|
||||
{
|
||||
|
||||
class AiFallow : AiPackage
|
||||
{
|
||||
public:
|
||||
AiFallow(std::string ActorID,float duration, float X, float Y, float Z, bool Reset = false);
|
||||
virtual AiFallow *clone() const;
|
||||
|
||||
virtual bool execute (const MWWorld::Ptr& actor);
|
||||
///< \return Package completed?
|
||||
|
||||
virtual int getTypeId() const;
|
||||
///< 0: Wanter, 1 Travel, 2 Escort, 3 Follo
|
||||
private:
|
||||
float mDuration;
|
||||
float mX;
|
||||
float mY;
|
||||
float mZ;
|
||||
bool mReset;
|
||||
std::string mActorID;
|
||||
};
|
||||
}
|
||||
#endif // AIFALLOW_H
|
Loading…
Reference in New Issue