aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît LUBRANO DI SBARAGLIONE2014-02-11 20:38:52 +0100
committerBenoît LUBRANO DI SBARAGLIONE2014-02-11 20:38:52 +0100
commit02ff696e341199e97d79442e3fd86a2baea1ff3c (patch)
tree7059d272a56783c2f41aa608f6e776ee8f073449
parent87eb1a8ea0e765a15aa03f488f3bbda1c9b66841 (diff)
downloadesieequest-02ff696e341199e97d79442e3fd86a2baea1ff3c.tar.gz
Add exits location.
-rw-r--r--src/esieequest/Game.java29
1 files changed, 26 insertions, 3 deletions
diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java
index 059fb8a..263244b 100644
--- a/src/esieequest/Game.java
+++ b/src/esieequest/Game.java
@@ -4,7 +4,7 @@ package esieequest;
4 * Moteur du jeu. 4 * Moteur du jeu.
5 * 5 *
6 * @author Pacien TRAN-GIRARD and Benoit LUBRANO DI SBARAGLIONE 6 * @author Pacien TRAN-GIRARD and Benoit LUBRANO DI SBARAGLIONE
7 * @version Février 2014 7 * @version Février 2014
8 */ 8 */
9public class Game 9public class Game
10{ 10{
@@ -36,7 +36,7 @@ public class Game
36 36
37 private void createRooms() 37 private void createRooms()
38 { 38 {
39 // création des lieux 39 // création des lieux
40 40
41 Room vAmphitheaterSeat = new Room("in the amphitheater"); 41 Room vAmphitheaterSeat = new Room("in the amphitheater");
42 Room vAmphitheaterStage = new Room("on the amphitheater stage"); 42 Room vAmphitheaterStage = new Room("on the amphitheater stage");
@@ -63,7 +63,30 @@ public class Game
63 Room vOffice = new Room("in the office number 3254"); 63 Room vOffice = new Room("in the office number 3254");
64 64
65 // positionnement des sorties (N,S,E,W) 65 // positionnement des sorties (N,S,E,W)
66 // TODO 66 vAmphitheaterSeat.setExits(vAmphitheaterFront, vAmphitheaterFront, null, null);
67 vAmphitheaterStage.setExits(null, null, vAmphitheaterEntrance, vCafeteria);
68 vAmphitheaterEntrance.setExits(vAmphitheaterFront, null, null, vAmphitheaterStage);
69 vAmphitheaterFront.setExits(null, vAmphitheaterEntrance, vStreetEsieespace, vCafeteriaFront);
70 vCafeteria.setExits(vCafeteriaFront, null, vAmphitheaterStage, null);
71 vCafeteriaFront.setExits(null, vCafeteria, vAmphitheaterFront, vStudentsUnionFront);
72 vStudentsUnionFront.setExits(null, vStudentsUnion, vCafeteriaFront, null);
73 vStudentsUnion.setExits(vStudentsUnionFront, null, null, null);
74 vStreetEsieespace.setExits(null, vEsieespaceEntrance, null, null);
75 vEsieespaceEntrance.setExits(vStreetEsieespace, null, vEsieespace, null);
76 vEsieespace.setExits(null, null, null, vEsieespaceEntrance);
77 vReception.setExits(null, vEntranceStairs, vWingFront, vStreetEsieespace);
78 vEntranceStairs.setExits(vReception, vRoundabout, null, null);
79 vRoundabout.setExits(vEntranceStairs, null, null, null);
80 vWingFront.setExits(vCorridorOne, null, null, vReception);
81 vCorridorOne.setExits(null, vWingFront, vWcOne, vStairsOne);
82 vStairsOne.setExits(vStairsTwo, null, vCorridorOne, null);
83 vStairsTwo.setExits(null, vStairsOne, vCorridorTwo, null);
84 vCorridorTwo.setExits(vCorridorTwoOffice, null, vWcTwo, vStairsTwo);
85 vWcOne.setExits(null, null, null, null);
86 vWcTwo.setExits(null, null, null, vCorridorTwo);
87 vCorridorTwoOffice.setExits(null, vCorridorTwo, vOffice, null);
88 vOffice.setExits(null, null, null, vCorridorTwoOffice);
89
67 90
68 // initialisation du lieu courant 91 // initialisation du lieu courant
69 this.aCurrentRoom = vAmphitheaterSeat; 92 this.aCurrentRoom = vAmphitheaterSeat;