LRT14
1.0
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Event.h
1
#ifndef EVENT_H_
2
#define EVENT_H_
3
4
#include <vector>
5
#include "../Automation/Automation.h"
6
10
class
Event
11
{
12
public
:
13
Event
();
14
virtual
~
Event
();
15
21
virtual
bool
CheckCondition
() = 0;
26
virtual
bool
Fired
();
27
31
virtual
void
Update
();
32
37
void
AddStartListener
(
Automation
* routine);
42
void
AddAbortListener
(
Automation
* routine);
47
void
AddContinueListener
(
Automation
* routine);
52
std::vector<Automation*>&
GetStartListeners
();
57
std::vector<Automation*>&
GetAbortListeners
();
62
std::vector<Automation*>&
GetContinueListeners
();
63
64
static
std::vector<Event*> event_vector;
65
66
private
:
67
std::vector<Automation*> start_listeners;
68
std::vector<Automation*> abort_listeners;
69
std::vector<Automation*> continue_listeners;
70
bool
lastFired;
71
};
72
73
#endif
Brain
Events
Event.h
Generated on Tue Feb 11 2014 00:29:33 for LRT14 by
1.8.3