Class CommandHistory

    • Field Detail

      • stack

        protected java.util.List<Command> stack
      • stackPointer

        protected int stackPointer
      • executing

        protected boolean executing
    • Constructor Detail

      • CommandHistory

        public CommandHistory()
    • Method Detail

      • execute

        public void execute​(Command command)
      • goBack

        public void goBack()
      • canGoBack

        public boolean canGoBack()
      • goForward

        public void goForward()
      • canGoForward

        public boolean canGoForward()