Ejemplo n.º 1
0
 private void printLocationInfo() {
   Room tempCurrentRoom = player.getCurrentRoom();
   System.out.println(tempCurrentRoom.getExitString());
   HashMap<String, Item> tempItems = tempCurrentRoom.getItems();
   if (tempItems.size() > 0) {
     System.out.println("The items in the room are: ");
     System.out.println(tempItems.keySet());
   } else System.out.println("There are no items in this room.");
 }
Ejemplo n.º 2
0
 @Override
 public String getExitString() {
   return simpleRoom.getExitString();
 }