35 #ifndef _DistanceTrigger_H__    36 #define _DistanceTrigger_H__   109                 { this->distance_ = distance; }
   115                 { 
return this->distance_; }
   123             { 
return this->beaconMode_; }
   132                 { this->targetName_ = targetname; }
   138                 { 
return this->targetName_; }
   140             bool checkDistance(); 
   143             virtual bool isTriggered(
TriggerMode mode) 
override; 
 #define _ObjectsExport
Definition: ObjectsPrereqs.h:60
 
float getDistance() const 
Get the range of the DistanceTrigger. 
Definition: DistanceTrigger.h:114
 
The ClassTreeMask is a set of rules, containing the information for each class whether it's included ...
Definition: ClassTreeMask.h:187
 
The DistanceTrigger is in identify-mode. 
 
TriggerMode
The different modes the trigger can be in. 
Definition: TriggerBase.h:54
 
::std::string string
Definition: gtest-port.h:756
 
Declaration of the ClassTreeMask, ClassTreeMaskNode, and ClassTreeMaskIterator classes. 
 
Definition of the Trigger class. 
 
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted. 
Definition: CorePrereqs.h:236
 
ClassTreeMask beaconMask_
A mask, that only accepts DistanceTriggerBeacons. 
Definition: DistanceTrigger.h:161
 
void setTargetName(const std::string &targetname)
Set the name a DistanceTriggerBeacon needs to have to make the DistanceTrigger react to it if in beac...
Definition: DistanceTrigger.h:131
 
The DistanceMultiTrigger is not in beacon-mode. 
 
PlayerTrigger is an interface if implemented by a specific trigger can be used to recover the Player ...
Definition: PlayerTrigger.h:54
 
xmlelement
Definition: Super.h:519
 
A Trigger is an object that can either be active or inactive, with a specified behavior how to switch...
Definition: Trigger.h:79
 
static const std::string beaconModeOff_s
Strings for the beacon modes. 
Definition: DistanceTrigger.h:153
 
The DistanceTrigger is a Trigger that triggers whenever an object (that is of the specified target ty...
Definition: DistanceTrigger.h:93
 
DistanceTriggerBeaconMode beaconMode_
The beacon mode. 
Definition: DistanceTrigger.h:159
 
const std::string & getTargetName(void)
Get the target name. 
Definition: DistanceTrigger.h:137
 
Die Wagnis Klasse hat die folgenden Aufgaben: 
Definition: ApplicationPaths.cc:66
 
Mode
Definition: CorePrereqs.h:102
 
virtual void notifyMaskUpdate()
Notifies interested parties about a change of the DistanceTrigger's target mask. 
Definition: DistanceTrigger.h:147
 
ClassTreeMask targetMask_
The target mask, specifies by which types of objects the DistanceTrigger can be triggered. 
Definition: DistanceTrigger.h:149
 
WeakPtr< WorldEntity > cache_
Caches the entity that triggered the DistanceTrigger last. 
Definition: DistanceTrigger.h:163
 
static const std::string beaconModeIdentify_s
Definition: DistanceTrigger.h:154
 
static const std::string beaconModeExlcude_s
Definition: DistanceTrigger.h:155
 
Shared library macros, enums, constants and forward declarations for the objects module  ...
 
void setDistance(float distance)
Set the range of the DistanceTrigger. 
Definition: DistanceTrigger.h:108
 
Definition of the PlayerTrigger class. 
 
DistanceTriggerBeaconMode
Enum for the beacon mode of the DistanceTrigger. 
Definition: DistanceTrigger.h:57
 
float distance_
The range of the DistanceTrigger. 
Definition: DistanceTrigger.h:157
 
std::string targetName_
The name a DistanceTriggerBeacon needs to have to make the DistanceTrigger react to it if in beacon-m...
Definition: DistanceTrigger.h:160
 
DistanceTriggerBeaconMode getBeaconModeDirect(void) const 
Get the beacon mode. 
Definition: DistanceTrigger.h:122