From 87eb1a8ea0e765a15aa03f488f3bbda1c9b66841 Mon Sep 17 00:00:00 2001 From: Benoît LUBRANO DI SBARAGLIONE Date: Tue, 11 Feb 2014 09:52:15 +0100 Subject: Add new rooms --- src/esieequest/Game.java | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java index de0b2b4..059fb8a 100644 --- a/src/esieequest/Game.java +++ b/src/esieequest/Game.java @@ -3,8 +3,8 @@ package esieequest; /** * Moteur du jeu. * - * @author Pacien TRAN-GIRARD - * @version Février 2013 + * @author Pacien TRAN-GIRARD and Benoit LUBRANO DI SBARAGLIONE + * @version Février 2014 */ public class Game { @@ -37,21 +37,36 @@ public class Game private void createRooms() { // création des lieux - Room vOutside = new Room("outside the main entrance of the university"); - Room vTheatre = new Room("in a lecture theatre"); - Room vPub = new Room("in the campus pub"); - Room vLab = new Room("in a computing lab"); - Room vOffice = new Room("in the computing admin office"); - // positionnement des sorties - vOutside.setExits(null, vLab, vPub, vTheatre); - vTheatre.setExits(null, null, vOutside, null); - vPub.setExits(null, null, null, vOutside); - vLab.setExits(vOutside, null, null, vOffice); - vOffice.setExits(null, null, vLab, null); + Room vAmphitheaterSeat = new Room("in the amphitheater"); + Room vAmphitheaterStage = new Room("on the amphitheater stage"); + Room vAmphitheaterEntrance = new Room("at the amphitheater entrance"); + Room vAmphitheaterFront = new Room("in front of the amphitheater"); + Room vCafeteria = new Room("in the cafeteria"); + 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 vEsieespaceEntrance = new Room("at the ESIEEspace HQ entrance"); + Room vEsieespace = new Room("in the ESIEEspace HQ"); + Room vReception = new Room("at the Reception"); + Room vEntranceStairs = new Room("at the entrance stairs"); + Room vRoundabout = new Room("at the roundabout"); + Room vWingFront = new Room("in font of wing 3"); + Room vCorridorOne = new Room("Corridor 3 main floor"); + 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 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"); + + // positionnement des sorties (N,S,E,W) + // TODO // initialisation du lieu courant - this.aCurrentRoom = vOutside; + this.aCurrentRoom = vAmphitheaterSeat; } public void goRoom(final Command pCommand) -- cgit v1.2.3