#ifndef GAME_MWMECHANICS_AIPACKAGE_H #define GAME_MWMECHANICS_AIPACKAGE_H namespace MWWorld { class Ptr; } namespace MWMechanics { /// \brief Base class for AI packages class AiPackage { public: ///Enumerates the various AITypes availible. enum TypeId { TypeIdNone = -1, TypeIdWander = 0, TypeIdTravel = 1, TypeIdEscort = 2, TypeIdFollow = 3, TypeIdActivate = 4, TypeIdCombat = 5, TypeIdPursue = 6 }; ///Default Deconstructor virtual ~AiPackage(); ///Clones the package virtual AiPackage *clone() const = 0; /// Updates and runs the package (Should run every frame) /// \return Package completed? virtual bool execute (const MWWorld::Ptr& actor,float duration) = 0; /// Returns the TypeID of the AiPackage /// \see enum TypeId virtual int getTypeId() const = 0; /// Higher number is higher priority (0 beeing the lowest) virtual unsigned int getPriority() const {return 0;} }; } #endif