#ifndef ACTION_RULE #define ACTION_RULE #include "base_rule.hpp" /** * Implements rule with action, i. e. leaf of the be-tree */ class ActionRule : public BaseRule { public: //parent plan, priority, weight, action, flags, sticky_timeout, fails, successes ActionRule(std::string &, ptrSimplePlan, unsigned int, unsigned int, std::vector< int> &, unsigned int, unsigned int, unsigned int, unsigned int); //when choosen virtual int GetAction(); //force fail //virtual void Fail() = 0; //force success //virtual void Success() = 0; protected: std::vector::iterator _action_it; std::vector< int> _actions; std::string _id; }; #endif