diff options
author | Pacien TRAN-GIRARD | 2014-05-18 23:42:39 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-18 23:42:39 +0200 |
commit | 1ac58713d0251a05c128f7ec1aacfde6cbd3249b (patch) | |
tree | ef75d01139c381d8d1f5c28fca8b0244735992c5 | |
parent | 9a908a7f1b1f617c675647c9e8b7bd7005abfb18 (diff) | |
download | esieequest-1ac58713d0251a05c128f7ec1aacfde6cbd3249b.tar.gz |
Update location on Item use
-rw-r--r-- | src/esieequest/controller/commands/UseCommand.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/esieequest/controller/commands/UseCommand.java b/src/esieequest/controller/commands/UseCommand.java index c90bb8f..170050e 100644 --- a/src/esieequest/controller/commands/UseCommand.java +++ b/src/esieequest/controller/commands/UseCommand.java | |||
@@ -30,6 +30,10 @@ 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 | |||
33 | } | 37 | } |
34 | 38 | ||
35 | } | 39 | } |