diff options
Diffstat (limited to 'src/esieequest/model/Game.java')
-rw-r--r-- | src/esieequest/model/Game.java | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/esieequest/model/Game.java b/src/esieequest/model/Game.java index 83fa143..6e6b191 100644 --- a/src/esieequest/model/Game.java +++ b/src/esieequest/model/Game.java | |||
@@ -3,6 +3,7 @@ package esieequest.model; | |||
3 | import java.util.HashMap; | 3 | import java.util.HashMap; |
4 | 4 | ||
5 | import esieequest.model.entities.Player; | 5 | import esieequest.model.entities.Player; |
6 | import esieequest.model.items.Beamer; | ||
6 | import esieequest.model.items.Item; | 7 | import esieequest.model.items.Item; |
7 | import esieequest.model.map.Door; | 8 | import esieequest.model.map.Door; |
8 | import esieequest.model.map.Room; | 9 | import esieequest.model.map.Room; |
@@ -90,7 +91,7 @@ public class Game { | |||
90 | this.createRoom("OffscriptItems", "somewhere implementing weight"); | 91 | this.createRoom("OffscriptItems", "somewhere implementing weight"); |
91 | this.createRoom("OffscriptItemsStorageroom", "in a storage room"); | 92 | this.createRoom("OffscriptItemsStorageroom", "in a storage room"); |
92 | this.createRoom("OffscriptTeleportation", "somewhere implementing teleportation"); | 93 | this.createRoom("OffscriptTeleportation", "somewhere implementing teleportation"); |
93 | this.createRoom("OffscriptTeleportationAnchorroom", "on a checkpoint"); | 94 | this.createRoom("OffscriptTeleportationBeamerroom", "on a checkpoint"); |
94 | this.createRoom("OffscriptAlea", "somewhere implementing alea"); | 95 | this.createRoom("OffscriptAlea", "somewhere implementing alea"); |
95 | this.createRoom("OffscriptAleaRandomizingroom", "in a weird room that will transport you somewhere else"); | 96 | this.createRoom("OffscriptAleaRandomizingroom", "in a weird room that will transport you somewhere else"); |
96 | this.createRoom("OffscriptMovingcharacter", "somewhere implementing a moving character"); | 97 | this.createRoom("OffscriptMovingcharacter", "somewhere implementing a moving character"); |
@@ -171,10 +172,10 @@ public class Game { | |||
171 | this.setRoomExit("OffscriptItems", "north", "OffscriptItemsStorageroom"); | 172 | this.setRoomExit("OffscriptItems", "north", "OffscriptItemsStorageroom"); |
172 | this.setRoomExit("OffscriptItems", "east", "OffscriptTeleportation"); | 173 | this.setRoomExit("OffscriptItems", "east", "OffscriptTeleportation"); |
173 | this.setRoomExit("OffscriptItemsStorageroom", "south", "OffscriptItems"); | 174 | this.setRoomExit("OffscriptItemsStorageroom", "south", "OffscriptItems"); |
174 | this.setRoomExit("OffscriptTeleportation", "north", "OffscriptTeleportationAnchorroom"); | 175 | this.setRoomExit("OffscriptTeleportation", "north", "OffscriptTeleportationBeamerroom"); |
175 | this.setRoomExit("OffscriptTeleportation", "west", "OffscriptTime"); | 176 | this.setRoomExit("OffscriptTeleportation", "west", "OffscriptItems"); |
176 | this.setRoomExit("OffscriptTeleportation", "east", "OffscriptAlea"); | 177 | this.setRoomExit("OffscriptTeleportation", "east", "OffscriptAlea"); |
177 | this.setRoomExit("OffscriptTeleportationAnchorroom", "south", "OffscriptTeleportation"); | 178 | this.setRoomExit("OffscriptTeleportationBeamerroom", "south", "OffscriptTeleportation"); |
178 | this.setRoomExit("OffscriptAlea", "north", "OffscriptAleaRandomizingroom"); | 179 | this.setRoomExit("OffscriptAlea", "north", "OffscriptAleaRandomizingroom"); |
179 | this.setRoomExit("OffscriptAlea", "west", "OffscriptTeleportation"); | 180 | this.setRoomExit("OffscriptAlea", "west", "OffscriptTeleportation"); |
180 | this.setRoomExit("OffscriptAlea", "east", "OffscriptMovingcharacter"); | 181 | this.setRoomExit("OffscriptAlea", "east", "OffscriptMovingcharacter"); |
@@ -188,9 +189,11 @@ public class Game { | |||
188 | * Creates and adds items into rooms. | 189 | * Creates and adds items into rooms. |
189 | */ | 190 | */ |
190 | private void createItems() { | 191 | private void createItems() { |
191 | this.rooms.get("Cafeteria").getItems().putItem("banana", new Item("A yellow banana", 5)); | 192 | this.rooms.get("OffscriptItemsStorageroom").getItems().putItem("Weighted Storage Cube", new Item("A Weighted Storage Cube.", 5)); |
192 | this.rooms.get("Cafeteria").getItems().putItem("orange", new Item("An orange orange", 6)); | 193 | this.rooms.get("OffscriptItemsStorageroom").getItems().putItem("Edgeless Safety Cube", new Item("An Edgeless Safety Cube.", 5)); |
193 | this.rooms.get("Cafeteria").getItems().putItem("anti-matter", new Item("A block of anti-matter with a negative mass", -10)); | 194 | this.rooms.get("OffscriptItemsStorageroom").getItems().putItem("Portable Black-hole", new Item("A portable black-hole that has a negative mass.", -10)); |
195 | |||
196 | this.rooms.get("OffscriptTeleportationBeamerroom").getItems().putItem("Portable Quantum Tunelling Device", new Beamer("Basically a teleporter.", 2)); | ||
194 | } | 197 | } |
195 | 198 | ||
196 | /** | 199 | /** |