Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
transition.h
1
#pragma once
2
3
#include <string>
4
5
6
class
State
;
7
15
class
Transition
{
16
public
:
17
Transition
(
State
* from,
State
* to);
18
Transition
(
State
* from,
State
* to,
const
std::string& name);
19
virtual
~
Transition
();
20
21
const
std::string& name()
const
;
22
void
setName(
const
std::string& name);
23
24
State
* from();
25
State
* to();
26
27
virtual
bool
isPossible()
const
= 0;
28
29
virtual
void
onPerformed();
30
31
32
protected
:
33
State
* m_from;
34
State
* m_to;
35
std::string m_name;
36
};
37
State
Definition:
state.h:14
Transition
Definition:
transition.h:15
src
utils
statemachine
transition.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6