aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-02-21 22:07:14 +0100
committerPacien TRAN-GIRARD2014-02-21 22:07:14 +0100
commit2f05974c14777701ffd9a4bfb9be10d4fed6c5e4 (patch)
tree9d5fa7d8748f8773ad67167bdb6f87b109c8cbf6 /src
parentbd81b6604b83f8bc9cd53140399587687346dd81 (diff)
downloadesieequest-2f05974c14777701ffd9a4bfb9be10d4fed6c5e4.tar.gz
Modify rooms according to the new map
Diffstat (limited to 'src')
-rw-r--r--src/esieequest/Game.java94
-rw-r--r--src/esieequest/Room.java2
2 files changed, 56 insertions, 40 deletions
diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java
index a21c56a..3548b62 100644
--- a/src/esieequest/Game.java
+++ b/src/esieequest/Game.java
@@ -34,48 +34,64 @@ public class Game {
34 // create rooms 34 // create rooms
35 Room vAmphitheaterSeat = new Room("in the amphitheater"); 35 Room vAmphitheaterSeat = new Room("in the amphitheater");
36 Room vAmphitheaterStage = new Room("on the amphitheater stage"); 36 Room vAmphitheaterStage = new Room("on the amphitheater stage");
37 Room vAmphitheaterEntrance = new Room("at the amphitheater entrance"); 37
38 Room vAmphitheaterFront = new Room("in ESIEE main corridor, in front of the amphitheater"); 38 Room vCafeteriaStreet = new Room("in the main corridor, in front of the cafeteria");
39 Room vCafeteria = new Room("in the cafeteria"); 39 Room vCafeteria = new Room("at the cafeteria");
40 Room vCafeteriaFront = new Room("in ESIEE main corridor, in front of the cafeteria"); 40
41 Room vStudentsUnionFront = new Room("in ESIEE main corridor, in front of the Students' Union"); 41 Room vEsieespaceStreet = new Room("in the main corridor, in front of the ESIEEspace HQ");
42 Room vStudentsUnion = new Room("in the Students' Union HQ"); 42 Room vEsieespaceFront = new Room("in front of the ESIEEspace HQ");
43 Room vStreetEsieespace = new Room("in ESIEE main corridor, in front of the ESIEEspace HQ");
44 Room vEsieespaceEntrance = new Room("at the ESIEEspace HQ entrance"); 43 Room vEsieespaceEntrance = new Room("at the ESIEEspace HQ entrance");
45 Room vEsieespace = new Room("in the ESIEEspace HQ"); 44 Room vEsieespace = new Room("in the ESIEEspace HQ");
46 Room vReception = new Room("in ESIEE main corridor, at the Reception"); 45
47 Room vEntranceStairs = new Room("at the entrance stairs"); 46 Room vClubnixStreet = new Room("in the main corridor, in front of the Club*Nix");
48 Room vRoundabout = new Room("at the roundabout"); 47 Room vClubnixFront = new Room("in front of the Club*Nix");
49 Room vWingFront = new Room("in font of wing 3"); 48 Room vClubnixEntrance = new Room("at the Club*Nix entrance");
50 Room vCorridorOne = new Room("at the corridor 3, main floor"); 49 Room vClubnix = new Room("in the Club*Nix");
51 Room vStairsOne = new Room("in the stairwell at main floor"); 50
52 Room vStairsTwo = new Room("in the stairwell at second floor"); 51 Room vEntranceStreet = new Room("in the main corridor, at the reception");
53 Room vCorridorTwo = new Room("at the corridor 3, second floor"); 52 Room vEntranceStairs = new Room("on the main entrance stairs");
54 Room vCorridorTwoOffice = new Room("in front of the office at floor 2"); 53 Room vEntranceRoundabout = new Room("on the roundabout");
55 Room vOffice = new Room("in the office number 3254 (corridor 3, floor 2, right side 5, room 4)"); 54
56 55 Room vWingStreet = new Room("in font of wing #3");
57 // connect rooms (N, S, E, W) 56 Room vWingCorridorOne = new Room("in the corridor in wing #3, on the ground floor");
57 Room vWingStairsOne = new Room("in the stairwell on the ground floor");
58 Room vWingStairsTwo = new Room("in the stairwell on the first floor");
59 Room vWingCorridorTwo = new Room("in the corridor in wind #3, on the first floor");
60 Room vWingCorridorTwoOffice = new Room("in front of the office #3254");
61 Room vWingOffice = new Room("in the office #3254");
62
63 Room vOffscript = new Room("nowhere");
64
65 // connect rooms (N, W, S, E)
58 vAmphitheaterSeat.setExits(vAmphitheaterStage, null, null, null); 66 vAmphitheaterSeat.setExits(vAmphitheaterStage, null, null, null);
59 vAmphitheaterStage.setExits(null, null, vAmphitheaterEntrance, vCafeteria); 67 vAmphitheaterStage.setExits(null, vCafeteria, null, null);
60 vAmphitheaterEntrance.setExits(vAmphitheaterFront, null, null, vAmphitheaterStage); 68
61 vAmphitheaterFront.setExits(null, vAmphitheaterEntrance, vStreetEsieespace, vCafeteriaFront); 69 vCafeteriaStreet.setExits(null, null, vCafeteria, vEsieespaceStreet);
62 vCafeteria.setExits(vCafeteriaFront, null, vAmphitheaterStage, null); 70 vCafeteria.setExits(vCafeteriaStreet, null, null, vAmphitheaterStage);
63 vCafeteriaFront.setExits(null, vCafeteria, vAmphitheaterFront, vStudentsUnionFront); 71
64 vStudentsUnionFront.setExits(null, vStudentsUnion, vCafeteriaFront, null); 72 vEsieespaceStreet.setExits(null, vCafeteria, vEsieespaceFront, vEntranceStreet);
65 vStudentsUnion.setExits(vStudentsUnionFront, null, null, null); 73 vEsieespaceFront.setExits(vEsieespaceStreet, null, null, vEsieespaceEntrance);
66 vStreetEsieespace.setExits(null, vEsieespaceEntrance, vReception, vAmphitheaterFront); 74 vEsieespaceEntrance.setExits(vEsieespace, vEsieespaceFront, null, null);
67 vEsieespaceEntrance.setExits(vStreetEsieespace, null, vEsieespace, null); 75 vEsieespace.setExits(null, null, vEsieespaceEntrance, null);
68 vEsieespace.setExits(null, null, null, vEsieespaceEntrance); 76
69 vReception.setExits(null, vEntranceStairs, vWingFront, vStreetEsieespace); 77 vClubnixStreet.setExits(null, vWingStreet, vClubnixFront, null);
70 vEntranceStairs.setExits(vReception, vRoundabout, null, null); 78 vClubnixFront.setExits(vClubnixStreet, null, null, vClubnixEntrance);
71 vRoundabout.setExits(vEntranceStairs, null, null, null); 79 vClubnixEntrance.setExits(vClubnix, vClubnixFront, null, null);
72 vWingFront.setExits(vCorridorOne, null, null, vReception); 80 vClubnix.setExits(null, null, vClubnixEntrance, null);
73 vCorridorOne.setExits(null, vWingFront, null, vStairsOne); 81
74 vStairsOne.setExits(null, vStairsTwo, vCorridorOne, null); 82 vEntranceStreet.setExits(null, vEsieespaceStreet, vEntranceStairs, vWingStreet);
75 vStairsTwo.setExits(null, vStairsOne, vCorridorTwo, null); 83 vEntranceStairs.setExits(vEntranceStreet, null, vEntranceRoundabout, null);
76 vCorridorTwo.setExits(vCorridorTwoOffice, null, null, vStairsTwo); 84 vEntranceRoundabout.setExits(vEntranceStairs, null, null, null);
77 vCorridorTwoOffice.setExits(null, vCorridorTwo, vOffice, null); 85
78 vOffice.setExits(null, null, null, vCorridorTwoOffice); 86 vWingStreet.setExits(vWingCorridorOne, vEntranceStreet, null, vClubnixStreet);
87 vWingCorridorOne.setExits(null, vWingStairsOne, vWingStreet, vOffscript);
88 vWingStairsOne.setExits(null, null, vWingStairsTwo, vWingCorridorOne);
89 vWingStairsTwo.setExits(null, null, vWingStairsOne, vWingCorridorTwo);
90 vWingCorridorTwo.setExits(vWingCorridorTwoOffice, null, null, null);
91 vWingCorridorTwoOffice.setExits(null, null, vWingCorridorTwo, vWingOffice);
92 vWingOffice.setExits(null, vWingCorridorTwoOffice, null, null);
93
94 vOffscript.setExits(null, vWingCorridorOne, null, null);
79 95
80 // set the starting room 96 // set the starting room
81 this.aCurrentRoom = vAmphitheaterSeat; 97 this.aCurrentRoom = vAmphitheaterSeat;
diff --git a/src/esieequest/Room.java b/src/esieequest/Room.java
index b7a3339..0a16e33 100644
--- a/src/esieequest/Room.java
+++ b/src/esieequest/Room.java
@@ -27,7 +27,7 @@ public class Room {
27 /** 27 /**
28 * Defines the four exits (other rooms) of this room. 28 * Defines the four exits (other rooms) of this room.
29 */ 29 */
30 public void setExits(final Room pNorthExit, final Room pSouthExit, final Room pEastExit, final Room pWestExit) { 30 public void setExits(final Room pNorthExit, final Room pWestExit, final Room pSouthExit, final Room pEastExit) {
31 this.aNorthExit = pNorthExit; 31 this.aNorthExit = pNorthExit;
32 this.aSouthExit = pSouthExit; 32 this.aSouthExit = pSouthExit;
33 this.aEastExit = pEastExit; 33 this.aEastExit = pEastExit;