22 lines
246 B
C++
22 lines
246 B
C++
#include "Positie.h"
|
|
|
|
Positie::Positie(int x, int y): X(x), Y(y){
|
|
|
|
}
|
|
|
|
Positie::~Positie(){
|
|
|
|
}
|
|
|
|
int Positie::x() const{
|
|
return X;
|
|
}
|
|
|
|
int Positie::y() const{
|
|
return Y;
|
|
}
|
|
|
|
void Positie::move(int dx, int dy){
|
|
X = X+dx;
|
|
Y = Y+dy;
|
|
} |