2012-11-15 21:22:44 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_AIACTIVATE_H
|
|
|
|
#define GAME_MWMECHANICS_AIACTIVATE_H
|
|
|
|
|
2014-04-01 18:15:55 +00:00
|
|
|
#include "aipackage.hpp"
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "pathfinding.hpp"
|
|
|
|
|
|
|
|
namespace MWMechanics
|
2014-04-30 03:40:59 +00:00
|
|
|
{
|
2014-05-13 07:58:32 +00:00
|
|
|
/// \brief Causes actor to walk to activatable object and activate it
|
|
|
|
/** Will actiavte when close to object or path grid complete **/
|
2012-11-16 19:28:20 +00:00
|
|
|
class AiActivate : public AiPackage
|
2012-11-16 17:38:15 +00:00
|
|
|
{
|
2014-04-30 03:40:59 +00:00
|
|
|
public:
|
|
|
|
/// Constructor
|
|
|
|
/** \param objectId Reference to object to activate **/
|
2014-04-02 04:18:22 +00:00
|
|
|
AiActivate(const std::string &objectId);
|
2014-04-01 18:15:55 +00:00
|
|
|
virtual AiActivate *clone() const;
|
|
|
|
virtual bool execute (const MWWorld::Ptr& actor,float duration);
|
2012-11-16 17:38:15 +00:00
|
|
|
virtual int getTypeId() const;
|
2012-11-15 21:22:44 +00:00
|
|
|
|
2014-04-01 18:15:55 +00:00
|
|
|
private:
|
2012-11-16 19:28:20 +00:00
|
|
|
std::string mObjectId;
|
2014-02-05 15:12:50 +00:00
|
|
|
int mCellX;
|
|
|
|
int mCellY;
|
2012-11-16 17:38:15 +00:00
|
|
|
};
|
2012-11-15 21:22:44 +00:00
|
|
|
}
|
|
|
|
#endif // GAME_MWMECHANICS_AIACTIVATE_H
|