GameKit  0.0.1a
C++ gamedev tools
PositionComponent.hpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: PositionComponent.hpp
5  *
6  * Description:
7  *
8  * Created: 24/01/2018 00:04:22
9  *
10  * Author: Quentin Bazin, <quent42340@gmail.com>
11  *
12  * =====================================================================================
13  */
14 #ifndef GK_POSITIONCOMPONENT_HPP_
15 #define GK_POSITIONCOMPONENT_HPP_
16 
17 #include "gk/core/Vector2.hpp"
18 
19 namespace gk {
20 
21 class PositionComponent : public Vector2f {
22  public:
23  PositionComponent(float x, float y) : Vector2f(x, y) {}
24  PositionComponent(const Vector2f &pos) : Vector2f(pos) {}
25 };
26 
27 } // namespace gk
28 
29 #endif // GK_POSITIONCOMPONENT_HPP_
PositionComponent(float x, float y)
PositionComponent(const Vector2f &pos)