aboutsummaryrefslogtreecommitdiff
path: root/src/esieequest/engine/commands/KillCommand.java
blob: bcc0021e7b50b824ea8b986ea620873e8d6e5148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package esieequest.engine.commands;

import esieequest.game.Game;
import esieequest.game.Text;
import esieequest.ui.View;

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();

	}

}