diff options
author | Pacien TRAN-GIRARD | 2014-05-18 23:55:52 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-18 23:55:52 +0200 |
commit | 3ff1fbbc8c79ebd86b74e53b8a4d08a51adcc1b6 (patch) | |
tree | a2d94371a610edeb4c6763c23423fe7f47d0f9de /src | |
parent | e9cd16ec488e951ece912525ec766a1fed57a629 (diff) | |
download | esieequest-3ff1fbbc8c79ebd86b74e53b8a4d08a51adcc1b6.tar.gz |
Move location update to Beamer
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/controller/commands/UseCommand.java | 4 | ||||
-rw-r--r-- | src/esieequest/model/items/Beamer.java | 4 |
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 |