#include <DC_NestedFsmActivator.h>
Inheritance diagram for DC_NestedFsmActivator:
This FsmState is useful to implement "nested FSM" where one outer FSM controls one or more "inner" FSMs. In this case, to each FsmState of the outer FSM, one of the inner FSMs is associated. The task of the FsmStates is activate their associated FSMs. This class can be used to implement one of these FsmStates.
A DC_NestedFsmActivator
is configured with one parameter: the target FSM. The target FSM is the FSM that the FsmState controls and must periodically activate. The continuation action of an DC_NestedFsmActivator
consists in activating the target FSM.
The initialization action of the DC_NestedFsmActivator
is implemented to reset the target FSM.
All other actions and checks associated to the DC_NestedFsmActivator
have their default implementations as defined in the base class FsmState
.
Definition at line 40 of file DC_NestedFsmActivator.h.
Public Member Functions | |
DC_NestedFsmActivator (void) | |
Set the class identifier. | |
void | setTargetFsm (CC_FSM *pTargetFsm) |
Set the target FSM. | |
CC_FSM * | getTargetFsm (void) |
Get the target FSM. | |
virtual void | doContinue (void) |
Activate the target FSM. | |
virtual void | doInit (void) |
Reset the target FSM. | |
virtual bool | isObjectConfigured (void) |
Perform a class-specific configuration check: verify that the target FSM has been loaded. |
|
Set the class identifier.
Definition at line 17 of file DC_NestedFsmActivator.cpp. |
|
Activate the target FSM.
Implements FsmState. Definition at line 32 of file DC_NestedFsmActivator.cpp. |
|
Reset the target FSM.
Reimplemented from FsmState. Definition at line 37 of file DC_NestedFsmActivator.cpp. |
|
Get the target FSM.
Definition at line 27 of file DC_NestedFsmActivator.cpp. |
|
Perform a class-specific configuration check: verify that the target FSM has been loaded.
Reimplemented from CC_RootObject. Reimplemented in DC_NestedFsmActivatorWithEndState, and DC_NestedFsmActivatorWithExitCheck. Definition at line 42 of file DC_NestedFsmActivator.cpp. |
|
Set the target FSM.
Definition at line 22 of file DC_NestedFsmActivator.cpp. |