#ifndef PLAN_RULE #define PLAN_RULE #include "base_rule.hpp" /** * Rule representing sub-plan */ class PlanRule : public BaseRule { public: //parent plan, priority, weight, contains plan, flags, sticky_timeout, fails, successes PlanRule(ptrSimplePlan, unsigned int, unsigned int, ptrSimplePlan, 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: ptrSimplePlan _plan; }; #endif