Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PostMachine.h

Go to the documentation of this file.
00001 #ifndef _Included_PostMachine_h_
00002 #define _Included_PostMachine_h_
00003 
00004 #include "Behaviors/StateNode.h"
00005 
00006 //! This node can be included in an embedded state machine to make it post a completion event
00007 class PostMachineCompletion : public StateNode {
00008 public:
00009   PostMachineCompletion(const std::string &name="PostMachineCompletion") : StateNode(name) {}
00010   virtual void doStart() { postParentCompletion(); }
00011 };
00012 
00013 //! This node can be included in an embedded state machine to make it post a success event
00014 class PostMachineSuccess : public StateNode {
00015 public:
00016   PostMachineSuccess(const std::string &name="PostMachineSuccess") : StateNode(name) {}
00017   virtual void doStart() { postParentSuccess(); }
00018 };
00019 
00020 //! This node can be included in an embedded state machine to make it post a failure event
00021 class PostMachineFailure : public StateNode {
00022 public:
00023   PostMachineFailure(const std::string &name="PostMachineFailure") : StateNode(name) {}
00024   virtual void doStart() { postParentFailure(); }
00025 };
00026 
00027 #endif

Tekkotsu v5.1CVS
Generated Fri Mar 16 05:26:50 2012 by Doxygen 1.6.3