Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
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
Triggerable
Definition:
triggerable.h:4
Trigger
Definition:
trigger.h:11
src
utils
statemachine
trigger.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6