blob: 9f5dc49ed3fd7bfa6220d949973d830a6daffd46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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();
}
}
|