aboutsummaryrefslogtreecommitdiff
path: root/src/esieequest/controller/commands/SaveCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/esieequest/controller/commands/SaveCommand.java')
-rw-r--r--src/esieequest/controller/commands/SaveCommand.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/esieequest/controller/commands/SaveCommand.java b/src/esieequest/controller/commands/SaveCommand.java
index 44e83c0..9e32762 100644
--- a/src/esieequest/controller/commands/SaveCommand.java
+++ b/src/esieequest/controller/commands/SaveCommand.java
@@ -1,18 +1,19 @@
1package esieequest.controller.commands; 1package esieequest.controller.commands;
2 2
3import esieequest.model.Game; 3import esieequest.model.Game;
4import esieequest.view.View; 4import esieequest.view.Viewable;
5 5
6/** 6/**
7 * Saves the current Game. 7 * Saves the current Game.
8 * 8 *
9 * @author Pacien TRAN-GIRARD 9 * @author Pacien TRAN-GIRARD
10 */ 10 */
11public class SaveCommand implements CommandInterface { 11public class SaveCommand implements Executable {
12 12
13 @Override 13 @Override
14 public void execute(final String argument, final Game game, final View view) { 14 public void execute(final String argument, final Game game, final Viewable view) {
15 // TODO Auto-generated method stub 15
16 view.echo(game.serialise().toJSONString());
16 17
17 } 18 }
18 19