aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoît LUBRANO DI SBARAGLIONE2014-02-12 10:52:15 +0100
committerBenoît LUBRANO DI SBARAGLIONE2014-02-12 10:52:15 +0100
commitb947214d9bdf24da50ef1058db651f45930183e3 (patch)
tree5821348601087c3e3af491c138a5ee5a56ccfbef /src
parent0479af3b1945f65862bfc3b842756291e360e5a5 (diff)
downloadesieequest-b947214d9bdf24da50ef1058db651f45930183e3.tar.gz
Add game lose and description.
Diffstat (limited to 'src')
-rw-r--r--src/esieequest/Game.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java
index 52273ac..a5eedfd 100644
--- a/src/esieequest/Game.java
+++ b/src/esieequest/Game.java
@@ -40,7 +40,7 @@ public class Game {
40 Room vCafeteriaFront = new Room("in front of the cafeteria"); 40 Room vCafeteriaFront = new Room("in front of the cafeteria");
41 Room vStudentsUnionFront = new Room("in front of the Students' Union"); 41 Room vStudentsUnionFront = new Room("in front of the Students' Union");
42 Room vStudentsUnion = new Room("in the Students' Union HQ"); 42 Room vStudentsUnion = new Room("in the Students' Union HQ");
43 Room vStreetEsieespace = new Room("in front of the ESIEEspace HQ"); 43 Room vStreetEsieespace = new Room("in the ESIEE street, in front of the ESIEEspace HQ");
44 Room vEsieespaceEntrance = new Room("at the ESIEEspace HQ entrance"); 44 Room vEsieespaceEntrance = new Room("at the ESIEEspace HQ entrance");
45 Room vEsieespace = new Room("in the ESIEEspace HQ"); 45 Room vEsieespace = new Room("in the ESIEEspace HQ");
46 Room vReception = new Room("at the Reception"); 46 Room vReception = new Room("at the Reception");
@@ -51,7 +51,7 @@ public class Game {
51 Room vStairsOne = new Room("in the stairwell at floor 1"); 51 Room vStairsOne = new Room("in the stairwell at floor 1");
52 Room vStairsTwo = new Room("in the stairwell at floor 2"); 52 Room vStairsTwo = new Room("in the stairwell at floor 2");
53 Room vCorridorTwo = new Room("Corridor 3 floor 2"); 53 Room vCorridorTwo = new Room("Corridor 3 floor 2");
54 Room vWcOne = new Room("in the WC at floor 1"); 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"); 55 Room vWcTwo = new Room("in the WC at floor 2");
56 Room vCorridorTwoOffice = new Room("in front of the office at floor 2"); 56 Room vCorridorTwoOffice = new Room("in front of the office at floor 2");
57 Room vOffice = new Room("in the office number 3254"); 57 Room vOffice = new Room("in the office number 3254");
@@ -65,7 +65,7 @@ public class Game {
65 vCafeteriaFront.setExits(null, vCafeteria, vAmphitheaterFront, vStudentsUnionFront); 65 vCafeteriaFront.setExits(null, vCafeteria, vAmphitheaterFront, vStudentsUnionFront);
66 vStudentsUnionFront.setExits(null, vStudentsUnion, vCafeteriaFront, null); 66 vStudentsUnionFront.setExits(null, vStudentsUnion, vCafeteriaFront, null);
67 vStudentsUnion.setExits(vStudentsUnionFront, null, null, null); 67 vStudentsUnion.setExits(vStudentsUnionFront, null, null, null);
68 vStreetEsieespace.setExits(null, vEsieespaceEntrance, null, null); 68 vStreetEsieespace.setExits(null, vEsieespaceEntrance, vReception, null);
69 vEsieespaceEntrance.setExits(vStreetEsieespace, null, vEsieespace, null); 69 vEsieespaceEntrance.setExits(vStreetEsieespace, null, vEsieespace, null);
70 vEsieespace.setExits(null, null, null, vEsieespaceEntrance); 70 vEsieespace.setExits(null, null, null, vEsieespaceEntrance);
71 vReception.setExits(null, vEntranceStairs, vWingFront, vStreetEsieespace); 71 vReception.setExits(null, vEntranceStairs, vWingFront, vStreetEsieespace);
@@ -119,7 +119,7 @@ public class Game {
119 } 119 }
120 120
121 private void printRoomInfo() { 121 private void printRoomInfo() {
122 System.out.println(this.aCurrentRoom.getDescription()); 122 System.out.println("You are " + this.aCurrentRoom.getDescription() + ".");
123 123
124 System.out.print("Available exits:"); 124 System.out.print("Available exits:");
125 if (this.aCurrentRoom.aNorthExit != null) { 125 if (this.aCurrentRoom.aNorthExit != null) {