You.i Engine
YiActionEventTransition.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_ACTION_EVENT_TRANSITION_H_
3 #define _YI_ACTION_EVENT_TRANSITION_H_
4 
6 
7 namespace yi
8 {
14 namespace deprecated
15 {
22 {
23 public:
28  YI_EVENT_TYPE type,
29  uint8_t actionButton,
30  CYICompoundState *source,
31  CYIAbstractState *target = 0);
32 
33  virtual ~CYIActionEventTransition();
34 
38  uint8_t GetActionButton();
39 
40 protected:
44  virtual bool TestEvent(CYIEvent *) override;
45 
46 protected:
47  uint8_t m_uButton;
48 };
49 
50 } //namespace deprecated
51 
54 } //namespace yi
55 
56 #endif /* _YI_ACTION_EVENT_TRANSITION_H_ */
Definition: YiAbstractSignalTransition.h:7
Base class for events.
Definition: YiEvent.h:489
The base class for state types in CYIStateMachine.
Definition: YiAbstractState.h:31
YI_EVENT_TYPE
The event type of the CYIEvent class instance.
Definition: YiEvent.h:23
The base class for transitions based on CYIEvent.
Definition: YiEventTransition.h:27
The base class for CYIState and CYIParallelState.
Definition: YiCompoundState.h:26
uint8_t m_uButton
Definition: YiActionEventTransition.h:47
Represents an event target of type YI_SPECIAL_EVENT_TARGET_TYPE.
Definition: YiEventTarget.h:37
CYIActionEventTransition(CYIEventTarget *pEventTarget, YI_EVENT_TYPE type, uint8_t actionButton, CYICompoundState *source, CYIAbstractState *target=0)
Transition based on CYIActionEvent.
Definition: YiActionEventTransition.h:21
virtual bool TestEvent(CYIEvent *) override