LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
DelayedEvent Class Reference

Event that fires when the conditions of an event are true for a number of cycles. More...

#include <DelayedEvent.h>

Inheritance diagram for DelayedEvent:
Collaboration diagram for DelayedEvent:

Public Member Functions

virtual bool CheckCondition ()
 Checks if the condition required to fire this event is met, regardless of the last cycle.
 
virtual void Update ()
 Updates the event. Should be called at the end of the cycle.
 
- Public Member Functions inherited from Event
virtual bool Fired ()
 Checks if the event fired this cycle (condition not true last cycle but true this 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.
 

Detailed Description

Event that fires when the conditions of an event are true for a number of cycles.

Member Function Documentation

bool DelayedEvent::CheckCondition ( )
virtual

Checks if the condition required to fire this event is met, regardless of the last cycle.

Returns
if the condition is met

Implements Event.


The documentation for this class was generated from the following files: