85 virtual void tick(
float dt);
92 {
return this->bActive_; }
94 void delayChanged(
void);
96 static void debugFlares(
bool bVisible);
97 virtual void changedVisibility();
105 {
return this->isTriggered(this->mode_); }
107 virtual void triggered(
bool bIsTriggered);
117 void setBillboardColour(
const ColourValue&
colour);
#define _ObjectsExport
Definition: ObjectsPrereqs.h:60
BillboardSet debugBillboard_
A set of debug billboards to visualize the state of the trigger.
Definition: Trigger.h:126
TriggerMode
The different modes the trigger can be in.
Definition: TriggerBase.h:54
float timeSinceLastEvent_
The time since the last event came in.
Definition: Trigger.h:124
Ogre::ColourValue colour(const btVector3 &color, btScalar alpha)
Definition: OgreBulletUtils.h:41
float remainingTime_
The time until the next state (in the queue) takes effect.
Definition: Trigger.h:123
A Trigger is an object that can either be active or inactive, with a specified behavior how to switch...
Definition: Trigger.h:79
The TriggerBase class is a base class for the two types of triggers, the (normal) Triggers and the Mu...
Definition: TriggerBase.h:70
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
char latestState_
Temporarily stores a state consisting of whether the trigger is triggeres at the first bit (least sig...
Definition: Trigger.h:122
bool bActive_
Whether the trigger is active (to the outside triggered).
Definition: Trigger.h:119
bool bTriggered_
Whether the trigger is triggered (to the inside).
Definition: Trigger.h:120
Shared library macros, enums, constants and forward declarations for the objects module ...
Definition: BillboardSet.h:37
bool isTriggered()
Check whether the Trigger is triggered according to its mode.
Definition: Trigger.h:104
std::queue< std::pair< float, char > > stateChanges_
A queue of state changes (in the same format as latestState_) paired with the time they will take eff...
Definition: Trigger.h:128
bool isActive(void) const
Check whether the Trigger is active.
Definition: Trigger.h:91
Definition of the TriggerBase class.