El jugador ya cambia de pantalla

This commit is contained in:
2022-07-05 20:44:35 +02:00
parent a8896841a3
commit 4243f89dc0
11 changed files with 221 additions and 44 deletions

View File

@@ -281,26 +281,29 @@ void Room::update()
}
}
// Devuelve el valor de la variable
std::string Room::getRoomUp()
// Devuelve la cadena del fichero de la habitación contigua segun el borde
std::string Room::getRoom(int border)
{
return room_up;
}
switch (border)
{
case BORDER_TOP:
return room_up;
break;
// Devuelve el valor de la variable
std::string Room::getRoomDown()
{
return room_down;
}
case BORDER_BOTTOM:
return room_down;
break;
// Devuelve el valor de la variable
std::string Room::getRoomLeft()
{
return room_left;
}
case BORDER_RIGHT:
return room_right;
break;
// Devuelve el valor de la variable
std::string Room::getRoomRight()
{
return room_right;
}
case BORDER_LEFT:
return room_left;
break;
default:
break;
}
return "";
}