package esieequest.engine.commands; import esieequest.game.Game; import esieequest.game.Text; import esieequest.ui.View; /** * Allows the user to commit suicide. * * @author Benoit LUBRANO DI SBARAGLIONE */ public class KillCommand implements Executable { @Override public void execute(final String argument, final Game game, final View view) { if (!argument.isEmpty()) { view.echo(Text.TOO_MANY_ARGUMENTS.toString()); return; } view.echo(Text.KILL.toString()); view.disableInput(); view.stopMusic(); } }