From de9d2a4ab6f9803f9cc8159ccd89b5d096b43907 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Fri, 21 Feb 2014 23:33:45 +0100 Subject: Add off-script rooms --- src/esieequest/Game.java | 31 ++++++++++++++++++++++++++++--- 1 file 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 { Room vWingCorridorTwoOffice = new Room("in front of the office #3254"); Room vWingOffice = new Room("in the office #3254"); - Room vOffscript = new Room("nowhere"); + Room vOffscriptEat = new Room("somewhere implementing hunger"); + Room vOffscriptEatPantry = new Room("in the pantry"); + Room vOffscriptTake = new Room("somewhere implementing weight"); + Room vOffscriptTakeStorageroom = new Room("in a storage room"); + Room vOffscriptTrapdoor = new Room("somewhere implementing a trap"); + Room vOffscriptTrapdoorDeadend = new Room("trapped"); + Room vOffscriptBeamer = new Room("somewhere implementing teleportation"); + Room vOffscriptBeamerAnchor = new Room("on a checkpoint"); + Room vOffscriptLock = new Room("somewhere implementing a doorlock"); + Room vOffscriptLockLockedroom = new Room("in a locked room that is not anymore"); + Room vOffscriptAlea = new Room("somewhere implementing alea"); + Room vOffscriptAleaRoomrandomizer = new Room("in a weird room that will transport you somewhere else"); + Room vOffscriptMovingcharacter = new Room("somewhere implementing a moving character"); + Room vOffscriptMovingcharacterMo = new Room("in M-O's room"); // connect rooms (N, W, S, E) vAmphitheaterSeat.setExits(vAmphitheaterStage, null, null, null); @@ -84,14 +97,26 @@ public class Game { vEntranceRoundabout.setExits(vEntranceStairs, null, null, null); vWingStreet.setExits(vWingCorridorOne, vEntranceStreet, null, vClubnixStreet); - vWingCorridorOne.setExits(null, vWingStairsOne, vWingStreet, vOffscript); + vWingCorridorOne.setExits(null, vWingStairsOne, vWingStreet, vOffscriptEat); vWingStairsOne.setExits(null, null, vWingStairsTwo, vWingCorridorOne); vWingStairsTwo.setExits(null, null, vWingStairsOne, vWingCorridorTwo); vWingCorridorTwo.setExits(vWingCorridorTwoOffice, null, null, null); vWingCorridorTwoOffice.setExits(null, null, vWingCorridorTwo, vWingOffice); vWingOffice.setExits(null, vWingCorridorTwoOffice, null, null); - vOffscript.setExits(null, vWingCorridorOne, null, null); + vOffscriptEat.setExits(vOffscriptEatPantry, vWingCorridorOne, null, vOffscriptTake); + vOffscriptEatPantry.setExits(null, null, vOffscriptEat, null); + vOffscriptTake.setExits(vOffscriptTakeStorageroom, vOffscriptEat, null, vOffscriptTrapdoor); + vOffscriptTakeStorageroom.setExits(null, null, vOffscriptTake, null); + vOffscriptTrapdoor.setExits(vOffscriptTrapdoorDeadend, vOffscriptTake, null, vOffscriptBeamer); + vOffscriptTrapdoorDeadend.setExits(null, null, vOffscriptTrapdoor, null); + vOffscriptBeamer.setExits(vOffscriptBeamerAnchor, vOffscriptTrapdoor, null, vOffscriptLock); + vOffscriptBeamerAnchor.setExits(null, null, vOffscriptBeamer, null); + vOffscriptLock.setExits(vOffscriptLockLockedroom, vOffscriptBeamer, null, vOffscriptAlea); + vOffscriptLockLockedroom.setExits(null, null, vOffscriptLock, null); + vOffscriptAlea.setExits(vOffscriptAleaRoomrandomizer, vOffscriptLock, null, vOffscriptMovingcharacter); + vOffscriptAleaRoomrandomizer.setExits(null, null, vOffscriptAlea, null); + vOffscriptMovingcharacter.setExits(vOffscriptMovingcharacterMo, vOffscriptAlea, null, null); // set the starting room this.aCurrentRoom = vAmphitheaterSeat; -- cgit v1.2.3