Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
trigger.h
1 #pragma once
2 
3 
4 class Triggerable;
5 
6 /*
7  Handle to a TriggeredTransition.
8  The only advantage over holding (and trigger()ing) the transition directly is
9  that a Trigger will just do nothing if no transition is registered.
10 */
11 class Trigger {
12 public:
13  Trigger(Triggerable* target = nullptr);
14 
15  Triggerable* target();
16  void setTarget(Triggerable* target);
17 
18  void trigger();
19 
20  virtual void update(float deltaSec);
21 
22 
23 protected:
24  Triggerable* m_target;
25 };
26 
Definition: triggerable.h:4
Definition: trigger.h:11