aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-18 23:55:52 +0200
committerPacien TRAN-GIRARD2014-05-18 23:55:52 +0200
commit3ff1fbbc8c79ebd86b74e53b8a4d08a51adcc1b6 (patch)
treea2d94371a610edeb4c6763c23423fe7f47d0f9de
parente9cd16ec488e951ece912525ec766a1fed57a629 (diff)
downloadesieequest-3ff1fbbc8c79ebd86b74e53b8a4d08a51adcc1b6.tar.gz
Move location update to Beamer
-rw-r--r--src/esieequest/controller/commands/UseCommand.java4
-rw-r--r--src/esieequest/model/items/Beamer.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/esieequest/controller/commands/UseCommand.java b/src/esieequest/controller/commands/UseCommand.java
index 170050e..c90bb8f 100644
--- a/src/esieequest/controller/commands/UseCommand.java
+++ b/src/esieequest/controller/commands/UseCommand.java
@@ -30,10 +30,6 @@ public class UseCommand implements Executable {
30 final Item item = game.getPlayer().getInventory().getItem(itemName); 30 final Item item = game.getPlayer().getInventory().getItem(itemName);
31 item.use(game, view); 31 item.use(game, view);
32 32
33 view.updateLocation(game.getPlayer().getCurrentRoom(), game.getPlayer()
34 .getCurrentDirection(), game.getPlayer().getCurrentSide(), game.getPlayer()
35 .canGoBack());
36
37 } 33 }
38 34
39} 35}
diff --git a/src/esieequest/model/items/Beamer.java b/src/esieequest/model/items/Beamer.java
index b452e87..053be18 100644
--- a/src/esieequest/model/items/Beamer.java
+++ b/src/esieequest/model/items/Beamer.java
@@ -41,6 +41,10 @@ public class Beamer extends SimpleItem {
41 view.echo(Text.BEAMER_TELEPORTED.toString()); 41 view.echo(Text.BEAMER_TELEPORTED.toString());
42 this.room = null; 42 this.room = null;
43 } 43 }
44
45 view.updateLocation(game.getPlayer().getCurrentRoom(), game.getPlayer()
46 .getCurrentDirection(), game.getPlayer().getCurrentSide(), game.getPlayer()
47 .canGoBack());
44 } 48 }
45 49
46 @Override 50 @Override