aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-02-23 17:10:01 +0100
committerPacien TRAN-GIRARD2014-02-23 17:10:01 +0100
commit4145a5e8ce6cc4a7be3e51fcef71ca004b2ba463 (patch)
tree4d6d9c24abb08255fccf8a134212f393c1412e5b /src
parentb59d06ffe40216a9e94c271ed2fb77f42bf8c0e6 (diff)
downloadesieequest-4145a5e8ce6cc4a7be3e51fcef71ca004b2ba463.tar.gz
Add a vertical direction
Diffstat (limited to 'src')
-rw-r--r--src/esieequest/Game.java2
-rw-r--r--src/esieequest/Room.java14
2 files changed, 12 insertions, 4 deletions
diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java
index a0e0cd2..1be4d15 100644
--- a/src/esieequest/Game.java
+++ b/src/esieequest/Game.java
@@ -117,8 +117,10 @@ public class Game {
117 vWingCorridorOne.setExit("south", vWingStreet); 117 vWingCorridorOne.setExit("south", vWingStreet);
118 vWingCorridorOne.setExit("east", vOffscriptEat); 118 vWingCorridorOne.setExit("east", vOffscriptEat);
119 vWingStairsOne.setExit("south", vWingStairsTwo); 119 vWingStairsOne.setExit("south", vWingStairsTwo);
120 vWingStairsOne.setExit("up", vWingStairsTwo);
120 vWingStairsOne.setExit("east", vWingCorridorOne); 121 vWingStairsOne.setExit("east", vWingCorridorOne);
121 vWingStairsTwo.setExit("south", vWingStairsOne); 122 vWingStairsTwo.setExit("south", vWingStairsOne);
123 vWingStairsTwo.setExit("down", vWingStairsOne);
122 vWingStairsTwo.setExit("east", vWingCorridorTwo); 124 vWingStairsTwo.setExit("east", vWingCorridorTwo);
123 vWingCorridorTwo.setExit("north", vWingCorridorTwoOffice); 125 vWingCorridorTwo.setExit("north", vWingCorridorTwoOffice);
124 vWingCorridorTwoOffice.setExit("south", vWingCorridorTwo); 126 vWingCorridorTwoOffice.setExit("south", vWingCorridorTwo);
diff --git a/src/esieequest/Room.java b/src/esieequest/Room.java
index 780f76a..1b23afa 100644
--- a/src/esieequest/Room.java
+++ b/src/esieequest/Room.java
@@ -58,16 +58,22 @@ public class Room {
58 public String getExitString() { 58 public String getExitString() {
59 String vExitsString = "Available exits:"; 59 String vExitsString = "Available exits:";
60 if (this.aExits.get("north") != null) { 60 if (this.aExits.get("north") != null) {
61 vExitsString += " North"; 61 vExitsString += " north";
62 } 62 }
63 if (this.aExits.get("south") != null) { 63 if (this.aExits.get("south") != null) {
64 vExitsString += " South"; 64 vExitsString += " south";
65 } 65 }
66 if (this.aExits.get("east") != null) { 66 if (this.aExits.get("east") != null) {
67 vExitsString += " East"; 67 vExitsString += " east";
68 } 68 }
69 if (this.aExits.get("west") != null) { 69 if (this.aExits.get("west") != null) {
70 vExitsString += " West"; 70 vExitsString += " west";
71 }
72 if (this.aExits.get("up") != null) {
73 vExitsString += " up";
74 }
75 if (this.aExits.get("down") != null) {
76 vExitsString += " down";
71 } 77 }
72 vExitsString += "."; 78 vExitsString += ".";
73 return vExitsString; 79 return vExitsString;