aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/esieequest/Game.java43
1 files changed, 29 insertions, 14 deletions
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;
3/** 3/**
4 * Moteur du jeu. 4 * Moteur du jeu.
5 * 5 *
6 * @author Pacien TRAN-GIRARD 6 * @author Pacien TRAN-GIRARD and Benoit LUBRANO DI SBARAGLIONE
7 * @version Février 2013 7 * @version Février 2014
8 */ 8 */
9public class Game 9public class Game
10{ 10{
@@ -37,21 +37,36 @@ public class Game
37 private void createRooms() 37 private void createRooms()
38 { 38 {
39 // création des lieux 39 // création des lieux
40 Room vOutside = new Room("outside the main entrance of the university");
41 Room vTheatre = new Room("in a lecture theatre");
42 Room vPub = new Room("in the campus pub");
43 Room vLab = new Room("in a computing lab");
44 Room vOffice = new Room("in the computing admin office");
45 40
46 // positionnement des sorties 41 Room vAmphitheaterSeat = new Room("in the amphitheater");
47 vOutside.setExits(null, vLab, vPub, vTheatre); 42 Room vAmphitheaterStage = new Room("on the amphitheater stage");
48 vTheatre.setExits(null, null, vOutside, null); 43 Room vAmphitheaterEntrance = new Room("at the amphitheater entrance");
49 vPub.setExits(null, null, null, vOutside); 44 Room vAmphitheaterFront = new Room("in front of the amphitheater");
50 vLab.setExits(vOutside, null, null, vOffice); 45 Room vCafeteria = new Room("in the cafeteria");
51 vOffice.setExits(null, null, vLab, null); 46 Room vCafeteriaFront = new Room("in front of the cafeteria");
47 Room vStudentsUnionFront = new Room("in front of the Students' Union");
48 Room vStudentsUnion = new Room("in the Students' Union HQ");
49 Room vStreetEsieespace = new Room("in front of the ESIEEspace HQ");
50 Room vEsieespaceEntrance = new Room("at the ESIEEspace HQ entrance");
51 Room vEsieespace = new Room("in the ESIEEspace HQ");
52 Room vReception = new Room("at the Reception");
53 Room vEntranceStairs = new Room("at the entrance stairs");
54 Room vRoundabout = new Room("at the roundabout");
55 Room vWingFront = new Room("in font of wing 3");
56 Room vCorridorOne = new Room("Corridor 3 main floor");
57 Room vStairsOne = new Room("in the stairwell at floor 1");
58 Room vStairsTwo = new Room("in the stairwell at floor 2");
59 Room vCorridorTwo = new Room("Corridor 3 floor 2");
60 Room vWcOne = new Room("in the WC at floor 1");
61 Room vWcTwo = new Room("in the WC at floor 2");
62 Room vCorridorTwoOffice = new Room("in front of the office at floor 2");
63 Room vOffice = new Room("in the office number 3254");
64
65 // positionnement des sorties (N,S,E,W)
66 // TODO
52 67
53 // initialisation du lieu courant 68 // initialisation du lieu courant
54 this.aCurrentRoom = vOutside; 69 this.aCurrentRoom = vAmphitheaterSeat;
55 } 70 }
56 71
57 public void goRoom(final Command pCommand) 72 public void goRoom(final Command pCommand)