epr24pr3_ojanssen2_dummed_d.../PositionVector.cpp

23 lines
392 B
C++
Raw Normal View History

//
// Created by moonleay on 12/12/24.
//
#include "PositionVector.h"
namespace game
{
PositionVector::PositionVector(const int x, const int y)
{
2024-12-16 23:44:01 +01:00
// Setze die Werte des PositionVectors
this->x = x;
this->y = y;
}
void PositionVector::update(const int x, const int y)
{
2024-12-16 23:44:01 +01:00
// Aktualisiere die Werte des PositionVectors
this->x = x;
this->y = y;
}
} // game