Fix syntax errors and warnings
parent
f24193b309
commit
fbf18501d7
Binary file not shown.
Binary file not shown.
@ -0,0 +1,31 @@
|
||||
#include "entity.h"
|
||||
|
||||
Entity::Entity(coordinate _x, coordinate _y) :
|
||||
pos_x(_x), pos_y(_y)
|
||||
{}
|
||||
|
||||
Entity::~Entity()
|
||||
{}
|
||||
|
||||
/// Get current Entity position
|
||||
void Entity::position(coordinate &x, coordinate &y) const noexcept
|
||||
{
|
||||
x = pos_x;
|
||||
y = pos_y;
|
||||
}
|
||||
|
||||
void Entity::setPosition(coordinate x, coordinate y)
|
||||
{
|
||||
pos_x = x;
|
||||
pos_y = y;
|
||||
}
|
||||
|
||||
coordinate Entity::x() const noexcept
|
||||
{
|
||||
return pos_x;
|
||||
}
|
||||
|
||||
coordinate Entity::y() const noexcept
|
||||
{
|
||||
return pos_y;
|
||||
}
|
Loading…
Reference in New Issue