aboutsummaryrefslogtreecommitdiff
path: root/src/esieequest/model/Game.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/esieequest/model/Game.java')
-rw-r--r--src/esieequest/model/Game.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/esieequest/model/Game.java b/src/esieequest/model/Game.java
index d1607a9..68dc1c2 100644
--- a/src/esieequest/model/Game.java
+++ b/src/esieequest/model/Game.java
@@ -1,6 +1,7 @@
1package esieequest.model; 1package esieequest.model;
2 2
3import java.util.HashMap; 3import java.util.HashMap;
4import java.util.HashSet;
4 5
5import esieequest.model.entities.Player; 6import esieequest.model.entities.Player;
6import esieequest.model.items.Beamer; 7import esieequest.model.items.Beamer;
@@ -10,6 +11,7 @@ import esieequest.model.map.Door;
10import esieequest.model.map.HiddenDoor; 11import esieequest.model.map.HiddenDoor;
11import esieequest.model.map.LockedDoor; 12import esieequest.model.map.LockedDoor;
12import esieequest.model.map.Room; 13import esieequest.model.map.Room;
14import esieequest.model.map.TransporterDoor;
13import esieequest.model.map.TrapDoor; 15import esieequest.model.map.TrapDoor;
14 16
15/** 17/**
@@ -105,7 +107,6 @@ public class Game {
105 this.createRoom("OffscriptLockLockedroom", "in a locked room"); 107 this.createRoom("OffscriptLockLockedroom", "in a locked room");
106 108
107 this.createRoom("OffscriptAlea", "somewhere implementing alea"); 109 this.createRoom("OffscriptAlea", "somewhere implementing alea");
108 this.createRoom("OffscriptAleaRandomizingroom", "in a weird room that will transport you somewhere else");
109 110
110 this.createRoom("OffscriptMovingcharacter", "somewhere implementing a moving character"); 111 this.createRoom("OffscriptMovingcharacter", "somewhere implementing a moving character");
111 this.createRoom("OffscriptMovingcharacterSumobotroom", "in the Chirac-101's room"); 112 this.createRoom("OffscriptMovingcharacterSumobotroom", "in the Chirac-101's room");
@@ -202,10 +203,11 @@ public class Game {
202 this.setRoomExit("OffscriptLock", "east", "OffscriptAlea"); 203 this.setRoomExit("OffscriptLock", "east", "OffscriptAlea");
203 // this.setRoomExit("OffscriptLockedroom", "south", "OffscriptLock"); 204 // this.setRoomExit("OffscriptLockedroom", "south", "OffscriptLock");
204 this.rooms.get("OffscriptLockLockedroom").addExit("south", new LockedDoor(this.rooms.get("OffscriptLock"))); 205 this.rooms.get("OffscriptLockLockedroom").addExit("south", new LockedDoor(this.rooms.get("OffscriptLock")));
205 this.setRoomExit("OffscriptAlea", "north", "OffscriptAleaRandomizingroom"); 206 // this.setRoomExit("OffscriptAlea", "north",
207 // "OffscriptAleaRandomizingroom");
208 this.rooms.get("OffscriptAlea").addExit("north", new TransporterDoor(new HashSet<Room>(this.rooms.values())));
206 this.setRoomExit("OffscriptAlea", "west", "OffscriptTeleportation"); 209 this.setRoomExit("OffscriptAlea", "west", "OffscriptTeleportation");
207 this.setRoomExit("OffscriptAlea", "east", "OffscriptMovingcharacter"); 210 this.setRoomExit("OffscriptAlea", "east", "OffscriptMovingcharacter");
208 this.setRoomExit("OffscriptAleaRandomizingroom", "south", "OffscriptAlea");
209 this.setRoomExit("OffscriptMovingcharacter", "north", "OffscriptMovingcharacterSumobotroom"); 211 this.setRoomExit("OffscriptMovingcharacter", "north", "OffscriptMovingcharacterSumobotroom");
210 this.setRoomExit("OffscriptMovingcharacter", "west", "OffscriptAlea"); 212 this.setRoomExit("OffscriptMovingcharacter", "west", "OffscriptAlea");
211 this.setRoomExit("OffscriptMovingcharacterSumobotroom", "south", "OffscriptMovingcharacter"); 213 this.setRoomExit("OffscriptMovingcharacterSumobotroom", "south", "OffscriptMovingcharacter");