Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/contentcreation/pps/FabianLandau/mover/environments/mover_trigger_intervisibility.h @ 10017

Last change on this file since 10017 was 4844, checked in by landauf, 17 years ago
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.