18 lines
221 B
C++
18 lines
221 B
C++
|
#include "Robot.h"
|
||
|
#include "Positie.h"
|
||
|
|
||
|
#include <iostream>
|
||
|
|
||
|
Robot::Robot(Interface *Pos): P(Pos){
|
||
|
|
||
|
}
|
||
|
|
||
|
Robot::~Robot(){}
|
||
|
|
||
|
void Robot::run(){
|
||
|
P->move(10,20);
|
||
|
}
|
||
|
|
||
|
void Robot::show(){
|
||
|
std::cout << P->x() << P->y();
|
||
|
}
|