Voxellancer  0.3
A game about voxels in space
 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 
Definition: state.h:14
Definition: transition.h:15