zuul4
This commit is contained in:
@@ -210,9 +210,7 @@ public class Game
|
||||
}
|
||||
private void printRoomInformation(Room currentRoom)
|
||||
{
|
||||
System.out.println("You are " + currentRoom.getDescription());
|
||||
System.out.print("Exits: ");
|
||||
System.out.print(currentRoom.exitsToString());
|
||||
System.out.print(currentRoom.getLongDescription());
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ public class Room
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public String getLongDescription() {
|
||||
return "You are " + getDescription() + "\nExits: " + exitsToString();
|
||||
}
|
||||
public String exitsToString() {
|
||||
StringBuilder exitsInString = new StringBuilder();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user