The base class for state types in CYIStateMachine.
This class provides a common interface for any state. States have a parent, and are usually part of a CYIStateMachine.
States can be given a name for debugging purposes.
Entered and Exited callbacks are provided in the form of signals and virtual methods.
#include <deprecated/YiAbstractState.h>

Public Member Functions | |
| virtual | ~CYIAbstractState () |
| CYICompoundState * | GetParent () const |
| CYIStateMachine * | GetMachine () const |
| const CYIString & | GetName () const |
Public Member Functions inherited from CYIScriptableObject | |
| CYIScriptableObject () | |
| CYIScriptableObject (const CYIScriptableObject &other) | |
| CYIScriptableObject & | operator= (const CYIScriptableObject &other) |
| virtual | ~CYIScriptableObject () |
| CYIBindingImplementation * | GetBindingImplementation () const |
| void | SetBindingImplementation (CYIBindingImplementation *pBindingImplementation) |
| virtual const CYIRuntimeTypeInfo * | GetRuntimeTypeInfoForScriptObject () const |
Public Attributes | |
| CYISignal | StateEntered |
| CYISignal | StateExited |
Protected Member Functions | |
| virtual void | OnEntry (CYIEvent *e) |
| virtual void | OnExit (CYIEvent *e) |
| CYIAbstractState (CYIAbstractStatePriv *priv, CYICompoundState *parent=0, const CYIString &name="") | |
Protected Attributes | |
| CYIAbstractStatePriv * | m_pPriv |
Friends | |
| class | CYIState |
| class | CYIParallelState |
| class | CYIHistoryState |
| class | CYITransition |
| class | CYIAbstractSignalTransition |
| class | CYIAbstractStatePriv |
|
virtual |
|
protected |
| CYIStateMachine* yi::deprecated::CYIAbstractState::GetMachine | ( | ) | const |
Returns the CYIStateMachine this state belongs to. Can be nullptr if not part of any machine.
| const CYIString& yi::deprecated::CYIAbstractState::GetName | ( | ) | const |
Returns the name of this state.
| CYICompoundState* yi::deprecated::CYIAbstractState::GetParent | ( | ) | const |
Returns the parent of this state machine. Can be nullptr if no parent is set.
|
protectedvirtual |
This virtual method is called when the state is entered.
|
protectedvirtual |
This virtual method is called when the state is exited.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
| CYISignal yi::deprecated::CYIAbstractState::StateEntered |
Triggered when this state is entered.
| CYISignal yi::deprecated::CYIAbstractState::StateExited |
Triggered when this state is exited.