LRT14
1.0
|
Base class for events, which are used to control automation routines. More...
#include <Event.h>
Public Member Functions | |
virtual bool | CheckCondition ()=0 |
Checks if the condition required to fire this event is met, regardless of the last cycle. | |
virtual bool | Fired () |
Checks if the event fired this cycle (condition not true last cycle but true this cycle). | |
virtual void | Update () |
Updates the event. Should be called at the end of the cycle. | |
void | AddStartListener (Automation *routine) |
Adds an automation routine to be started when this event fires. | |
void | AddAbortListener (Automation *routine) |
Adds an automation routine to be aborted when this event fires. | |
void | AddContinueListener (Automation *routine) |
Adds an automation routine to be continued when this event fires. | |
std::vector< Automation * > & | GetStartListeners () |
Gets the automation routines that are started by this event. | |
std::vector< Automation * > & | GetAbortListeners () |
Gets the automation routines that are aborted by this event. | |
std::vector< Automation * > & | GetContinueListeners () |
Gets the automation routines that are continued by this event. | |
Base class for events, which are used to control automation routines.
void Event::AddAbortListener | ( | Automation * | routine | ) |
Adds an automation routine to be aborted when this event fires.
routine | the routine to add |
void Event::AddContinueListener | ( | Automation * | routine | ) |
Adds an automation routine to be continued when this event fires.
routine | the routine to add |
void Event::AddStartListener | ( | Automation * | routine | ) |
Adds an automation routine to be started when this event fires.
routine | the routine to add |
|
pure virtual |
Checks if the condition required to fire this event is met, regardless of the last cycle.
Implemented in GameModeChangeEvent, MultipleEvent, JoystickMovedEvent, JoystickPressedEvent, JoystickReleasedEvent, DelayedEvent, and ValueChangeEvent< T >.
|
virtual |
Checks if the event fired this cycle (condition not true last cycle but true this cycle).
Reimplemented in GameModeChangeEvent.
vector< Automation * > & Event::GetAbortListeners | ( | ) |
Gets the automation routines that are aborted by this event.
vector< Automation * > & Event::GetContinueListeners | ( | ) |
Gets the automation routines that are continued by this event.
vector< Automation * > & Event::GetStartListeners | ( | ) |
Gets the automation routines that are started by this event.