Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/environments/mover_trigger_event.h @ 10767

Last change on this file since 10767 was 10696, checked in by snellen, 18 years ago

added all the new mover classes

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.