aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-02-16 16:40:43 +0100
committerPacien TRAN-GIRARD2014-02-16 16:40:43 +0100
commitbd81b6604b83f8bc9cd53140399587687346dd81 (patch)
treea3c49aed51717e7fffd2a372041437fbbbef67c8 /src
parent44010c14b53cc38d79db1f805b3961688fd2fa27 (diff)
downloadesieequest-bd81b6604b83f8bc9cd53140399587687346dd81.tar.gz
Remove old rooms
Diffstat (limited to 'src')
-rw-r--r--src/esieequest/Game.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java
index 646bd49..a21c56a 100644
--- a/src/esieequest/Game.java
+++ b/src/esieequest/Game.java
@@ -27,7 +27,7 @@ public class Game {
27 vFinished = this.processCommand(vCommand); 27 vFinished = this.processCommand(vCommand);
28 } 28 }
29 29
30 System.out.println("Thank you for playing. Good bye."); 30 System.out.println("Thank you for playing. Good bye.");
31 } 31 }
32 32
33 private void createRooms() { 33 private void createRooms() {
@@ -51,8 +51,6 @@ public class Game {
51 Room vStairsOne = new Room("in the stairwell at main floor"); 51 Room vStairsOne = new Room("in the stairwell at main floor");
52 Room vStairsTwo = new Room("in the stairwell at second floor"); 52 Room vStairsTwo = new Room("in the stairwell at second floor");
53 Room vCorridorTwo = new Room("at the corridor 3, second floor"); 53 Room vCorridorTwo = new Room("at the corridor 3, second floor");
54 Room vWcOne = new Room("in the WC at floor 1, door is closed behind you, you lose, type quit");
55 Room vWcTwo = new Room("in the WC at floor 2");
56 Room vCorridorTwoOffice = new Room("in front of the office at floor 2"); 54 Room vCorridorTwoOffice = new Room("in front of the office at floor 2");
57 Room vOffice = new Room("in the office number 3254 (corridor 3, floor 2, right side 5, room 4)"); 55 Room vOffice = new Room("in the office number 3254 (corridor 3, floor 2, right side 5, room 4)");
58 56
@@ -72,12 +70,10 @@ public class Game {
72 vEntranceStairs.setExits(vReception, vRoundabout, null, null); 70 vEntranceStairs.setExits(vReception, vRoundabout, null, null);
73 vRoundabout.setExits(vEntranceStairs, null, null, null); 71 vRoundabout.setExits(vEntranceStairs, null, null, null);
74 vWingFront.setExits(vCorridorOne, null, null, vReception); 72 vWingFront.setExits(vCorridorOne, null, null, vReception);
75 vCorridorOne.setExits(null, vWingFront, vWcOne, vStairsOne); 73 vCorridorOne.setExits(null, vWingFront, null, vStairsOne);
76 vStairsOne.setExits(null, vStairsTwo, vCorridorOne, null); 74 vStairsOne.setExits(null, vStairsTwo, vCorridorOne, null);
77 vStairsTwo.setExits(null, vStairsOne, vCorridorTwo, null); 75 vStairsTwo.setExits(null, vStairsOne, vCorridorTwo, null);
78 vCorridorTwo.setExits(vCorridorTwoOffice, null, vWcTwo, vStairsTwo); 76 vCorridorTwo.setExits(vCorridorTwoOffice, null, null, vStairsTwo);
79 vWcOne.setExits(null, null, null, null);
80 vWcTwo.setExits(null, null, null, vCorridorTwo);
81 vCorridorTwoOffice.setExits(null, vCorridorTwo, vOffice, null); 77 vCorridorTwoOffice.setExits(null, vCorridorTwo, vOffice, null);
82 vOffice.setExits(null, null, null, vCorridorTwoOffice); 78 vOffice.setExits(null, null, null, vCorridorTwoOffice);
83 79