zuul1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user