From b947214d9bdf24da50ef1058db651f45930183e3 Mon Sep 17 00:00:00 2001 From: Benoît LUBRANO DI SBARAGLIONE Date: Wed, 12 Feb 2014 10:52:15 +0100 Subject: Add game lose and description. --- src/esieequest/Game.java | 8 ++++---- 1 file 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 { Room vCafeteriaFront = new Room("in front of the cafeteria"); Room vStudentsUnionFront = new Room("in front of the Students' Union"); Room vStudentsUnion = new Room("in the Students' Union HQ"); - Room vStreetEsieespace = new Room("in front of the ESIEEspace HQ"); + Room vStreetEsieespace = new Room("in the ESIEE street, in front of the ESIEEspace HQ"); Room vEsieespaceEntrance = new Room("at the ESIEEspace HQ entrance"); Room vEsieespace = new Room("in the ESIEEspace HQ"); Room vReception = new Room("at the Reception"); @@ -51,7 +51,7 @@ public class Game { Room vStairsOne = new Room("in the stairwell at floor 1"); Room vStairsTwo = new Room("in the stairwell at floor 2"); Room vCorridorTwo = new Room("Corridor 3 floor 2"); - Room vWcOne = new Room("in the WC at floor 1"); + Room vWcOne = new Room("in the WC at floor 1, door is closed behind you, you lose, type quit"); Room vWcTwo = new Room("in the WC at floor 2"); Room vCorridorTwoOffice = new Room("in front of the office at floor 2"); Room vOffice = new Room("in the office number 3254"); @@ -65,7 +65,7 @@ public class Game { vCafeteriaFront.setExits(null, vCafeteria, vAmphitheaterFront, vStudentsUnionFront); vStudentsUnionFront.setExits(null, vStudentsUnion, vCafeteriaFront, null); vStudentsUnion.setExits(vStudentsUnionFront, null, null, null); - vStreetEsieespace.setExits(null, vEsieespaceEntrance, null, null); + vStreetEsieespace.setExits(null, vEsieespaceEntrance, vReception, null); vEsieespaceEntrance.setExits(vStreetEsieespace, null, vEsieespace, null); vEsieespace.setExits(null, null, null, vEsieespaceEntrance); vReception.setExits(null, vEntranceStairs, vWingFront, vStreetEsieespace); @@ -119,7 +119,7 @@ public class Game { } private void printRoomInfo() { - System.out.println(this.aCurrentRoom.getDescription()); + System.out.println("You are " + this.aCurrentRoom.getDescription() + "."); System.out.print("Available exits:"); if (this.aCurrentRoom.aNorthExit != null) { -- cgit v1.2.3