Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/contentcreation/pps/FabianLandau/mover/environments/mover_trigger_event.h @ 10223

Last change on this file since 10223 was 4844, checked in by landauf, 18 years ago
File size: 757 bytes
Line 
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
12class 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.