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