Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/environments/mover_trigger_intervisibility.h @ 10772

Last change on this file since 10772 was 10696, checked in by snellen, 17 years ago

added all the new mover classes

File size: 768 bytes
Line 
1/*!
2 * @file mover_trigger_intervisibility.h
3 *  Gets triggered when the trigger "sees" the player.
4 */
5
6#ifndef _MOVER_TRIGGER_INTERVISIBILITY_H
7#define _MOVER_TRIGGER_INTERVISIBILITY_H
8
9#include "mover_trigger.h"
10
11
12class IntervisibilityTrigger : public MoverTrigger
13{
14    ObjectListDeclaration(IntervisibilityTrigger);
15
16    public:
17        IntervisibilityTrigger(const TiXmlElement* root = NULL);
18        virtual void loadParams(const TiXmlElement* root);
19        void setOnlyHumans(bool onlyHumans = true) { this->onlyHumans = onlyHumans; }
20        void setOnlyNPCs(bool onlyNPCs = true) { this->onlyNPCs = onlyNPCs; }
21
22    private:
23        virtual bool checkIsTriggered();
24        bool onlyHumans;
25        bool onlyNPCs;
26};
27
28
29#endif
30
Note: See TracBrowser for help on using the repository browser.