From 8fed210dc4b63bc3b7170e8877eb2ad43c4a2e2e Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 24 May 2014 22:13:44 +0200 Subject: Update inventory for new games --- src/esieequest/controller/commands/LoadCommand.java | 2 +- src/esieequest/controller/commands/NewCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/esieequest/controller/commands/LoadCommand.java b/src/esieequest/controller/commands/LoadCommand.java index 26e18e2..c15e6ba 100644 --- a/src/esieequest/controller/commands/LoadCommand.java +++ b/src/esieequest/controller/commands/LoadCommand.java @@ -48,12 +48,12 @@ public class LoadCommand implements Executable { return; } - view.enableInput(); view.updateQuest(game.getPlayer().getCurrentQuest()); view.updateInventory(game.getPlayer().getInventory()); view.updateLocation(game.getPlayer().getCurrentRoom(), game.getPlayer() .getCurrentDirection(), game.getPlayer().getCurrentSide(), game.getPlayer() .canGoBack()); + view.enableInput(); } } diff --git a/src/esieequest/controller/commands/NewCommand.java b/src/esieequest/controller/commands/NewCommand.java index 571b4a9..8967820 100644 --- a/src/esieequest/controller/commands/NewCommand.java +++ b/src/esieequest/controller/commands/NewCommand.java @@ -30,7 +30,7 @@ public class NewCommand implements Executable { @Override public void call() { view.updateQuest(game.getPlayer().getCurrentQuest()); - + view.updateInventory(game.getPlayer().getInventory()); view.updateLocation(game.getPlayer().getCurrentRoom(), game.getPlayer() .getCurrentDirection(), game.getPlayer().getCurrentSide(), game.getPlayer() .canGoBack()); -- cgit v1.2.3