GameKit  0.0.1a
C++ gamedev tools
Movement.hpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: Movement.hpp
5  *
6  * Description:
7  *
8  * Created: 17/01/2018 19:41:30
9  *
10  * Author: Quentin Bazin, <quent42340@gmail.com>
11  *
12  * =====================================================================================
13  */
14 #ifndef GK_MOVEMENT_HPP_
15 #define GK_MOVEMENT_HPP_
16 
17 #include "gk/scene/SceneObject.hpp"
18 
19 namespace gk {
20 
21 class Movement {
22  public:
23  virtual ~Movement() = default;
24 
25  bool isFinished() const { return m_isFinished; }
26 
27  virtual void process(SceneObject &object) = 0;
28 
29  protected:
30  bool m_isFinished = false;
31 };
32 
33 } // namespace gk
34 
35 #endif // GK_MOVEMENT_HPP_
virtual ~Movement()=default
bool m_isFinished
Definition: Movement.hpp:30
bool isFinished() const
Definition: Movement.hpp:25
virtual void process(SceneObject &object)=0