2024-12-14 17:32:06 +01:00
|
|
|
#include "PositionVector.h"
|
|
|
|
|
|
|
|
namespace game
|
|
|
|
{
|
|
|
|
PositionVector::PositionVector(const int x, const int y)
|
|
|
|
{
|
|
|
|
this->x = x;
|
|
|
|
this->y = y;
|
|
|
|
}
|
|
|
|
|
2024-12-18 09:12:00 +01:00
|
|
|
void PositionVector::update(const int& x, const int& y)
|
2024-12-14 17:32:06 +01:00
|
|
|
{
|
|
|
|
this->x = x;
|
|
|
|
this->y = y;
|
|
|
|
}
|
|
|
|
} // game
|