Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
triggeredtransition.h
1 #pragma once
2 
3 #include "transition.h"
4 #include "triggerable.h"
5 
6 
7 /*
8  Transition that is invokable by calling trigger
9  Useful for events like keypresses or reacting on an attack
10 */
12 public:
13  TriggeredTransition(State* from, State* to);
14  TriggeredTransition(State* from, State* to, const std::string& name);
15 
16  virtual bool isPossible() const override;
17 
18  virtual void trigger() override;
19 
20  virtual void onPerformed() override;
21 
22 
23 protected:
24  bool m_triggered;
25 };
Definition: triggerable.h:4
Definition: state.h:14
Definition: triggeredtransition.h:11
Definition: transition.h:15