BcPOC
SF-HRP ASM implementation
|
#include <sf_hrp_plan.hpp>
Public Member Functions | |
CSFHRPPlan (CSFHRPASM *, IEngineDescriptor *, int, CCondition *, InitPhase *, ReactivePlanner *, TermPhase *) | |
~CSFHRPPlan () | |
int | GetAction () |
int | GetPriority () |
void | Activate () |
void | Deactivate () |
bool | IsSwitched () |
void | SwitchOut () |
void | SwitchIn () |
bool | IsActive () |
Single top level plan
CSFHRPPlan::CSFHRPPlan | ( | CSFHRPASM * | agent, |
IEngineDescriptor * | engd, | ||
int | prio, | ||
CCondition * | cond, | ||
InitPhase * | init, | ||
ReactivePlanner * | rplanner, | ||
TermPhase * | term | ||
) |
Ctor
CSFHRPPlan::~CSFHRPPlan | ( | ) |
Dtor
void CSFHRPPlan::Activate | ( | ) | [virtual] |
from IReleasable
Implements IReleaseable.
void CSFHRPPlan::Deactivate | ( | ) | [virtual] |
from IReleasable
Implements IReleaseable.
int CSFHRPPlan::GetAction | ( | ) |
Get appropriate action acording to the state
int CSFHRPPlan::GetPriority | ( | ) |
Get priority of plan
bool CSFHRPPlan::IsActive | ( | ) |
Whether is plan holding
bool CSFHRPPlan::IsSwitched | ( | ) |
Whether plan was switched out and can be executed another
void CSFHRPPlan::SwitchIn | ( | ) |
Initiate switch out of the plan
if there is no switch out, go directly to the switched phase
void CSFHRPPlan::SwitchOut | ( | ) |
Initiate switch out of the plan
if there is no switch out, go directly to the switched phase