2023-04-25 13:15:39 +00:00
|
|
|
#include "Positie.h"
|
|
|
|
|
|
|
|
Positie::Positie(int x, int y): X(x), Y(y){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Positie::~Positie(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-04-26 12:39:59 +00:00
|
|
|
int Positie::x() const{
|
2023-04-25 13:15:39 +00:00
|
|
|
return X;
|
|
|
|
}
|
|
|
|
|
2023-04-26 12:39:59 +00:00
|
|
|
int Positie::y() const{
|
2023-04-25 13:15:39 +00:00
|
|
|
return Y;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Positie::move(int dx, int dy){
|
|
|
|
X = X+dx;
|
|
|
|
Y = Y+dy;
|
|
|
|
}
|