Commit 6da55744 authored by Denis Khachko's avatar Denis Khachko

Robot Console fix

parent be6c6d02
name = ActorComplexNumbers
gui = false
\ No newline at end of file
gui = false
......@@ -3501,7 +3501,7 @@ namespace ActorRobot {
CFieldItem* ConsoleField::getCurItem()
{
qDebug()<<"R"<<roboRow<<" C"<<roboCol;
// qDebug()<<"R"<<roboRow<<" C"<<roboCol;
return getItem(roboRow, roboCol);
}
......@@ -3513,12 +3513,14 @@ namespace ActorRobot {
}
bool ConsoleField::goRight()
{
qDebug()<<"RIGHT BEFORE ROW"<<roboRow<<" Col"<<roboCol;
if(getItem(roboRow, roboCol)->rightWall)return false;
roboCol++;
return true;
}
bool ConsoleField::goUp()
{
qDebug()<<"ROW"<<roboRow<<" Col"<<roboCol;
if(getItem(roboRow, roboCol)->upWall)return false;
roboRow--;
return true;
......@@ -3526,6 +3528,7 @@ namespace ActorRobot {
bool ConsoleField::goDown()
{
qDebug()<<"ROW"<<roboRow<<" Col"<<roboCol;
if(getItem(roboRow, roboCol)->downWall)return false;
roboRow++;
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment