21 lines
299 B
C++
21 lines
299 B
C++
|
//
|
||
|
// Created by moonleay on 12/12/24.
|
||
|
//
|
||
|
|
||
|
#include "PositionVector.h"
|
||
|
|
||
|
namespace game
|
||
|
{
|
||
|
PositionVector::PositionVector(const int x, const int y)
|
||
|
{
|
||
|
this->x = x;
|
||
|
this->y = y;
|
||
|
}
|
||
|
|
||
|
void PositionVector::update(const int x, const int y)
|
||
|
{
|
||
|
this->x = x;
|
||
|
this->y = y;
|
||
|
}
|
||
|
} // game
|