2013-09-25 16:01:36 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_AICOMBAT_H
|
|
|
|
#define GAME_MWMECHANICS_AICOMBAT_H
|
|
|
|
|
|
|
|
#include "aipackage.hpp"
|
|
|
|
|
|
|
|
#include "pathfinding.hpp"
|
|
|
|
|
|
|
|
#include "movement.hpp"
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
class AiCombat : public AiPackage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AiCombat(const std::string &targetId);
|
|
|
|
|
|
|
|
virtual AiCombat *clone() const;
|
|
|
|
|
2013-10-30 19:42:50 +00:00
|
|
|
virtual bool execute (const MWWorld::Ptr& actor,float duration);
|
2013-09-25 16:01:36 +00:00
|
|
|
///< \return Package completed?
|
|
|
|
|
|
|
|
virtual int getTypeId() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string mTargetId;
|
|
|
|
|
|
|
|
PathFinder mPathFinder;
|
2013-10-07 08:20:02 +00:00
|
|
|
PathFinder mPathFinder2;
|
2013-10-30 19:42:50 +00:00
|
|
|
float mTimer;
|
2013-10-30 19:52:23 +00:00
|
|
|
float mTimer2;
|
2013-09-25 16:01:36 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|