Command refactor
This commit is contained in:
@@ -6,7 +6,9 @@ import chess.model.Game;
|
||||
public abstract class Command {
|
||||
|
||||
public enum CommandResult {
|
||||
/** The command was successfull. Should update display and switch player turn. */
|
||||
/**
|
||||
* The command was successfull. Should update display and switch player turn.
|
||||
*/
|
||||
Moved,
|
||||
/** The command was successfull. Should not update anything */
|
||||
NotMoved,
|
||||
@@ -18,5 +20,4 @@ public abstract class Command {
|
||||
|
||||
public abstract CommandResult execute(Game game, GameListener outputSystem);
|
||||
|
||||
public void postExec(Game game, GameListener outputSystem) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user