18 lines
223 B
C++
18 lines
223 B
C++
#include "Robot.h"
|
|
#include "Interface.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();
|
|
} |