Rev | Line | |
---|
[4844] | 1 | /*! |
---|
| 2 | * @file mover_trigger_event.h |
---|
| 3 | * Gets triggered when a specific event occurs. |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _MOVER_TRIGGER_EVENT_H |
---|
| 7 | #define _MOVER_TRIGGER_EVENT_H |
---|
| 8 | |
---|
| 9 | #include "mover_trigger.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | class EventTrigger : public MoverTrigger |
---|
| 13 | { |
---|
| 14 | ObjectListDeclaration(EventTrigger); |
---|
| 15 | |
---|
| 16 | public: |
---|
| 17 | EventTrigger(const TiXmlElement* root = NULL); |
---|
| 18 | virtual ~EventTrigger(); |
---|
| 19 | virtual void loadParams(const TiXmlElement* root); |
---|
| 20 | void setEvent(const std::string& eventName) { this->eventName = eventName; } |
---|
| 21 | |
---|
| 22 | private: |
---|
| 23 | virtual bool checkIsTriggered(); |
---|
| 24 | std::string eventName; |
---|
| 25 | MoverTriggerPointerList *eventTriggers; |
---|
| 26 | bool bIsChecking; |
---|
| 27 | }; |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | #endif |
---|
| 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.