This commit is contained in:
2025-02-18 12:36:39 +01:00
parent c5f0773686
commit 0c6cf076d0
2 changed files with 37 additions and 11 deletions

View File

@@ -21,6 +21,8 @@ public class Room
public Room southExit;
public Room eastExit;
public Room westExit;
public Room upExit;
public Room downExit;
/**
* Create a room described "description". Initially, it has
@@ -40,8 +42,10 @@ public class Room
* @param east The east east.
* @param south The south exit.
* @param west The west exit.
* @param up The up exit.
* @param down The down exit.
*/
public void setExits(Room north, Room east, Room south, Room west)
public void setExits(Room north, Room east, Room south, Room west, Room up, Room down)
{
if(north != null) {
northExit = north;
@@ -55,6 +59,12 @@ public class Room
if(west != null) {
westExit = west;
}
if(up != null) {
upExit = up;
}
if(down != null) {
downExit = down;
}
}
/**