GameKit
0.0.1a
C++ gamedev tools
include
gk
scene
component
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_
Vector2.hpp
gk::Vector2< float >::x
float x
Definition:
Vector2.hpp:60
gk
Definition:
AudioPlayer.hpp:21
gk::PositionComponent
Definition:
PositionComponent.hpp:21
gk::Vector2< float >::y
float y
Definition:
Vector2.hpp:61
gk::PositionComponent::PositionComponent
PositionComponent(float x, float y)
Definition:
PositionComponent.hpp:23
gk::Vector2< float >
gk::PositionComponent::PositionComponent
PositionComponent(const Vector2f &pos)
Definition:
PositionComponent.hpp:24
Generated by
1.8.12