simplify mains
This commit is contained in:
@@ -13,7 +13,11 @@ public class CommandExecutor {
|
||||
private final GameDispatcher dispatcher;
|
||||
|
||||
public CommandExecutor() {
|
||||
this.game = null;
|
||||
this(null);
|
||||
}
|
||||
|
||||
public CommandExecutor(Game game) {
|
||||
this.game = game;
|
||||
this.dispatcher = new GameDispatcher();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user