enemies and combat

This commit is contained in:
jslightham
2019-05-27 12:47:12 -04:00
parent 8f8a55949a
commit 9e8c5e812c
10 changed files with 160 additions and 26 deletions

View File

@@ -158,14 +158,14 @@ class Room {
*/
public String longDescription() {
return "Room: " + roomName + "\n\n" + description + "\n" + exitString();
return "Room: " + roomName + "\n\n" + description + "\n";
}
/**
* Return a string describing the room's exits, for example "Exits: north
* west ".
*/
private String exitString() {
public String exitString() {
String returnString = "Exits:";
Set keys = exits.keySet();
for (Iterator iter = keys.iterator(); iter.hasNext();)