From 35ee3b1ee2d9d77f605f06e8adb5b69708463ba3 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 6 Apr 2014 15:17:34 +0200 Subject: Implement carryable weight increasing via negative mass item --- src/esieequest/controller/Interpreter.java | 3 --- src/esieequest/controller/Performer.java | 7 ------- src/esieequest/model/Game.java | 1 + 3 files changed, 1 insertion(+), 10 deletions(-) (limited to 'src') diff --git a/src/esieequest/controller/Interpreter.java b/src/esieequest/controller/Interpreter.java index ea01fd7..5c60f6d 100644 --- a/src/esieequest/controller/Interpreter.java +++ b/src/esieequest/controller/Interpreter.java @@ -69,9 +69,6 @@ class Interpreter { case "look": this.performer.look(); return; - case "eat": - this.performer.eat(); - return; case "inventory": this.performer.listItems(); return; diff --git a/src/esieequest/controller/Performer.java b/src/esieequest/controller/Performer.java index 7f41109..8f8afeb 100644 --- a/src/esieequest/controller/Performer.java +++ b/src/esieequest/controller/Performer.java @@ -124,13 +124,6 @@ class Performer { this.echo(this.game.getPlayer().getCurrentRoom().getInformations()); } - /** - * Displays a special message. - */ - public void eat() { - this.echo(this.game.getEatMessage()); - } - /** * Moves an item from the current Room to the Player's inventory. * diff --git a/src/esieequest/model/Game.java b/src/esieequest/model/Game.java index f08f264..cc6157d 100644 --- a/src/esieequest/model/Game.java +++ b/src/esieequest/model/Game.java @@ -193,6 +193,7 @@ public class Game { private void createItems() { this.rooms.get("Cafeteria").getItems().putItem("banana", new Item("A yellow banana", 5)); this.rooms.get("Cafeteria").getItems().putItem("orange", new Item("An orange orange", 6)); + this.rooms.get("Cafeteria").getItems().putItem("anti-matter", new Item("A block of anti-matter with a negative mass", -10)); } /** -- cgit v1.2.3