BcPOC
SF-HRP ASM implementation
D:/bcatch/bcpoc_src/bcpoc/src/sfhrp/SFHRP/plan_rule.hpp
Go to the documentation of this file.
00001 #ifndef PLAN_RULE 
00002 #define PLAN_RULE
00003 
00004 #include "base_rule.hpp"
00005 
00009 class PlanRule : public BaseRule {
00010 public:
00011 
00012         //parent plan, priority, weight, contains plan, flags, sticky_timeout, fails, successes
00013         PlanRule(ptrSimplePlan, unsigned int, unsigned int, ptrSimplePlan,
00014                 unsigned int, unsigned int, unsigned int, unsigned int);
00015 
00016         //when choosen
00017         virtual int     GetAction();
00018 
00019         //force fail
00020         //virtual void  Fail() = 0;
00021 
00022         //force success
00023         //virtual void  Success() = 0;
00024 
00025         
00026 protected:
00027         ptrSimplePlan _plan;
00028         
00029 };
00030 
00031 #endif
00032