Show Undo in prompt if last action is undoable

Clean up unnecessary items from Game menu
This commit is contained in:
drdev
2014-07-01 04:46:24 +00:00
parent e32f335010
commit b51b67e6f0
9 changed files with 59 additions and 42 deletions

View File

@@ -229,6 +229,17 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
return this.bResolving;
}
/**
* <p>
* undo.
* </p>
*
* @return a boolean.
*/
public final boolean canUndo() {
return !undoStack.isEmpty();
}
/**
* <p>
* undo.