2012-09-04 11:25:53 +00:00
|
|
|
#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:
|
2014-01-07 00:12:37 +00:00
|
|
|
enum TypeId {
|
|
|
|
TypeIdNone = -1,
|
|
|
|
TypeIdWander = 0,
|
|
|
|
TypeIdTravel = 1,
|
|
|
|
TypeIdEscort = 2,
|
|
|
|
TypeIdFollow = 3,
|
|
|
|
TypeIdActivate = 4,
|
2014-04-02 04:18:22 +00:00
|
|
|
TypeIdCombat = 5,
|
|
|
|
TypeIdPersue = 6
|
2014-01-07 00:12:37 +00:00
|
|
|
};
|
|
|
|
|
2012-09-04 11:25:53 +00:00
|
|
|
virtual ~AiPackage();
|
|
|
|
|
|
|
|
virtual AiPackage *clone() const = 0;
|
|
|
|
|
2013-10-30 19:42:50 +00:00
|
|
|
virtual bool execute (const MWWorld::Ptr& actor,float duration) = 0;
|
2012-09-04 11:25:53 +00:00
|
|
|
///< \return Package completed?
|
|
|
|
|
|
|
|
virtual int getTypeId() const = 0;
|
2014-01-07 00:12:37 +00:00
|
|
|
///< @see enum TypeId
|
2013-11-18 11:33:09 +00:00
|
|
|
|
|
|
|
virtual unsigned int getPriority() const {return 0;}
|
|
|
|
///< higher number is higher priority (0 beeing the lowest)
|
2012-09-04 11:25:53 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|