35 #ifndef _DistanceMultiTrigger_H__ 36 #define _DistanceMultiTrigger_H__ 104 {
if(distance >= 0) this->distance_ = distance; }
110 {
return this->distance_; }
118 {
return this->beaconMode_; }
127 { this->targetName_ = targetname; }
133 {
return this->targetName_; }
136 virtual std::queue<MultiTriggerState*>* letTrigger(
void);
158 #endif // _DistanceMultiTrigger_H__ #define _ObjectsExport
Definition: ObjectsPrereqs.h:60
float getDistance() const
Get the distance at which the DistanceMultiTrigger triggers.
Definition: DistanceMultiTrigger.h:109
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.
void setTargetName(const std::string &targetname)
Set the target name of DistanceTriggerBeacons that triggers this DistanceMultiTrigger.
Definition: DistanceMultiTrigger.h:126
std::set< WeakPtr< WorldEntity > > range_
The set of entities that currently are in range of the DistanceMultiTrigger.
Definition: DistanceMultiTrigger.h:152
ClassTreeMask beaconMask_
A mask, that only accepts DistanceTriggerBeacons.
Definition: DistanceMultiTrigger.h:150
::std::string string
Definition: gtest-port.h:756
static const std::string beaconModeIdentify_s
Definition: DistanceMultiTrigger.h:143
std::string targetName_
The target name, used in single-target mode.
Definition: DistanceMultiTrigger.h:149
The DistanceMultiTrigger is a MultiTrigger that triggers whenever an object (that is of the specified...
Definition: DistanceMultiTrigger.h:90
Definition of WeakPtr<T>, wraps a pointer to an object.
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
The DistanceMultiTrigger is not in beacon-mode.
The DistanceTrigger is in exclude-mode.
xmlelement
Definition: Super.h:519
float distance_
The distance at which the DistanceMultiTrigger triggers.
Definition: DistanceMultiTrigger.h:146
DistanceMultiTriggerBeaconMode getBeaconModeDirect(void) const
Get the beacon mode.
Definition: DistanceMultiTrigger.h:117
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Definition of the MultiTrigger class.
DistanceMultiTriggerBeaconMode beaconMode_
The beacon mode, the DistanceMultiTrigger is in.
Definition: DistanceMultiTrigger.h:148
void setDistance(float distance)
Set the distance at which the DistanceMultiTrigger triggers.
Definition: DistanceMultiTrigger.h:103
static const std::string beaconModeExlcude_s
Definition: DistanceMultiTrigger.h:144
Shared library macros, enums, constants and forward declarations for the objects module ...
DistanceMultiTriggerBeaconMode
Enum for the beacon mode of the DistanceMultiTrigger.
Definition: DistanceMultiTrigger.h:57
const std::string & getTargetName(void) const
Get the target name of the DistanceTriggerbeacon, that triggers this DistanceMultiTrigger.
Definition: DistanceMultiTrigger.h:132
static const std::string beaconModeOff_s
Strings for the beacon modes.
Definition: DistanceMultiTrigger.h:142
The MultiTrigger class implements a trigger that has a distinct state for each object triggering it...
Definition: MultiTrigger.h:98