OpenMW
apps/openmw/mwmechanics/aicombat.hpp
Go to the documentation of this file.
00001 #ifndef GAME_MWMECHANICS_AICOMBAT_H
00002 #define GAME_MWMECHANICS_AICOMBAT_H
00003 
00004 #include "aipackage.hpp"
00005 
00006 #include "pathfinding.hpp"
00007 
00008 #include "movement.hpp"
00009 
00010 namespace MWMechanics
00011 {
00012     class AiCombat : public AiPackage
00013     {
00014         public:
00015             AiCombat(const std::string &targetId);
00016 
00017             virtual AiCombat *clone() const;
00018 
00019             virtual bool execute (const MWWorld::Ptr& actor,float duration);
00021 
00022             virtual int getTypeId() const;
00023 
00024             virtual unsigned int getPriority() const;
00025 
00026         private:
00027             std::string mTargetId;
00028 
00029             PathFinder mPathFinder;
00030             PathFinder mPathFinder2;
00031             float mTimer;
00032             float mTimer2;
00033     };
00034 }
00035 
00036 #endif