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, 6 insertions, 2 deletions
diff --git a/src/esieequest/model/Game.java b/src/esieequest/model/Game.java
index 0a9aa01..5ef4c22 100644
--- a/src/esieequest/model/Game.java
+++ b/src/esieequest/model/Game.java
@@ -2,6 +2,10 @@ package esieequest.model;
2 2
3import java.util.HashMap; 3import java.util.HashMap;
4 4
5import esieequest.model.entities.Player;
6import esieequest.model.items.Item;
7import esieequest.model.map.Room;
8
5/** 9/**
6 * Represents the game. 10 * Represents the game.
7 * 11 *
@@ -187,8 +191,8 @@ public class Game {
187 * Creates and adds items into rooms. 191 * Creates and adds items into rooms.
188 */ 192 */
189 private void createItems() { 193 private void createItems() {
190 this.rooms.get("Cafeteria").addItem("Banana", new Item("A yellow banana", 12)); 194 this.rooms.get("Cafeteria").putItem("banana", new Item("A yellow banana", 12));
191 this.rooms.get("Cafeteria").addItem("Orange", new Item("An orange orange", 15)); 195 this.rooms.get("Cafeteria").putItem("orange", new Item("An orange orange", 15));
192 } 196 }
193 197
194 /** 198 /**