diff options
author | Pacien TRAN-GIRARD | 2014-02-21 23:33:45 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-02-21 23:33:45 +0100 |
commit | de9d2a4ab6f9803f9cc8159ccd89b5d096b43907 (patch) | |
tree | 6b6ccd56b6cc95b92fd9e73c48300bbd38b1e1ad /src | |
parent | 2f05974c14777701ffd9a4bfb9be10d4fed6c5e4 (diff) | |
download | esieequest-de9d2a4ab6f9803f9cc8159ccd89b5d096b43907.tar.gz |
Add off-script rooms
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/Game.java | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/esieequest/Game.java b/src/esieequest/Game.java index 3548b62..5589a3a 100644 --- a/src/esieequest/Game.java +++ b/src/esieequest/Game.java | |||
@@ -60,7 +60,20 @@ public class Game { | |||
60 | Room vWingCorridorTwoOffice = new Room("in front of the office #3254"); | 60 | Room vWingCorridorTwoOffice = new Room("in front of the office #3254"); |
61 | Room vWingOffice = new Room("in the office #3254"); | 61 | Room vWingOffice = new Room("in the office #3254"); |
62 | 62 | ||
63 | Room vOffscript = new Room("nowhere"); | 63 | Room vOffscriptEat = new Room("somewhere implementing hunger"); |
64 | Room vOffscriptEatPantry = new Room("in the pantry"); | ||
65 | Room vOffscriptTake = new Room("somewhere implementing weight"); | ||
66 | Room vOffscriptTakeStorageroom = new Room("in a storage room"); | ||
67 | Room vOffscriptTrapdoor = new Room("somewhere implementing a trap"); | ||
68 | Room vOffscriptTrapdoorDeadend = new Room("trapped"); | ||
69 | Room vOffscriptBeamer = new Room("somewhere implementing teleportation"); | ||
70 | Room vOffscriptBeamerAnchor = new Room("on a checkpoint"); | ||
71 | Room vOffscriptLock = new Room("somewhere implementing a doorlock"); | ||
72 | Room vOffscriptLockLockedroom = new Room("in a locked room that is not anymore"); | ||
73 | Room vOffscriptAlea = new Room("somewhere implementing alea"); | ||
74 | Room vOffscriptAleaRoomrandomizer = new Room("in a weird room that will transport you somewhere else"); | ||
75 | Room vOffscriptMovingcharacter = new Room("somewhere implementing a moving character"); | ||
76 | Room vOffscriptMovingcharacterMo = new Room("in M-O's room"); | ||
64 | 77 | ||
65 | // connect rooms (N, W, S, E) | 78 | // connect rooms (N, W, S, E) |
66 | vAmphitheaterSeat.setExits(vAmphitheaterStage, null, null, null); | 79 | vAmphitheaterSeat.setExits(vAmphitheaterStage, null, null, null); |
@@ -84,14 +97,26 @@ public class Game { | |||
84 | vEntranceRoundabout.setExits(vEntranceStairs, null, null, null); | 97 | vEntranceRoundabout.setExits(vEntranceStairs, null, null, null); |
85 | 98 | ||
86 | vWingStreet.setExits(vWingCorridorOne, vEntranceStreet, null, vClubnixStreet); | 99 | vWingStreet.setExits(vWingCorridorOne, vEntranceStreet, null, vClubnixStreet); |
87 | vWingCorridorOne.setExits(null, vWingStairsOne, vWingStreet, vOffscript); | 100 | vWingCorridorOne.setExits(null, vWingStairsOne, vWingStreet, vOffscriptEat); |
88 | vWingStairsOne.setExits(null, null, vWingStairsTwo, vWingCorridorOne); | 101 | vWingStairsOne.setExits(null, null, vWingStairsTwo, vWingCorridorOne); |
89 | vWingStairsTwo.setExits(null, null, vWingStairsOne, vWingCorridorTwo); | 102 | vWingStairsTwo.setExits(null, null, vWingStairsOne, vWingCorridorTwo); |
90 | vWingCorridorTwo.setExits(vWingCorridorTwoOffice, null, null, null); | 103 | vWingCorridorTwo.setExits(vWingCorridorTwoOffice, null, null, null); |
91 | vWingCorridorTwoOffice.setExits(null, null, vWingCorridorTwo, vWingOffice); | 104 | vWingCorridorTwoOffice.setExits(null, null, vWingCorridorTwo, vWingOffice); |
92 | vWingOffice.setExits(null, vWingCorridorTwoOffice, null, null); | 105 | vWingOffice.setExits(null, vWingCorridorTwoOffice, null, null); |
93 | 106 | ||
94 | vOffscript.setExits(null, vWingCorridorOne, null, null); | 107 | vOffscriptEat.setExits(vOffscriptEatPantry, vWingCorridorOne, null, vOffscriptTake); |
108 | vOffscriptEatPantry.setExits(null, null, vOffscriptEat, null); | ||
109 | vOffscriptTake.setExits(vOffscriptTakeStorageroom, vOffscriptEat, null, vOffscriptTrapdoor); | ||
110 | vOffscriptTakeStorageroom.setExits(null, null, vOffscriptTake, null); | ||
111 | vOffscriptTrapdoor.setExits(vOffscriptTrapdoorDeadend, vOffscriptTake, null, vOffscriptBeamer); | ||
112 | vOffscriptTrapdoorDeadend.setExits(null, null, vOffscriptTrapdoor, null); | ||
113 | vOffscriptBeamer.setExits(vOffscriptBeamerAnchor, vOffscriptTrapdoor, null, vOffscriptLock); | ||
114 | vOffscriptBeamerAnchor.setExits(null, null, vOffscriptBeamer, null); | ||
115 | vOffscriptLock.setExits(vOffscriptLockLockedroom, vOffscriptBeamer, null, vOffscriptAlea); | ||
116 | vOffscriptLockLockedroom.setExits(null, null, vOffscriptLock, null); | ||
117 | vOffscriptAlea.setExits(vOffscriptAleaRoomrandomizer, vOffscriptLock, null, vOffscriptMovingcharacter); | ||
118 | vOffscriptAleaRoomrandomizer.setExits(null, null, vOffscriptAlea, null); | ||
119 | vOffscriptMovingcharacter.setExits(vOffscriptMovingcharacterMo, vOffscriptAlea, null, null); | ||
95 | 120 | ||
96 | // set the starting room | 121 | // set the starting room |
97 | this.aCurrentRoom = vAmphitheaterSeat; | 122 | this.aCurrentRoom = vAmphitheaterSeat; |