Package engine

Examples of engine.Board


      } catch (IOException e) {
        JOptionPane.showMessageDialog(this,e.toString(),"Otwieranie",JOptionPane.ERROR_MESSAGE);
      }
    if (!loaded) {
      // Create new scheme in empty set
      currentSchemeSet.add(new Scheme(new Board(DEFAULT_BOARD_WIDTH,DEFAULT_BOARD_HEIGHT)));
    }
    initInterface();
    setSchemeSet(currentSchemeSet,null);
  }
View Full Code Here


  @Override
  public void elementsSet() {
    if (currentDialog == null) beginUndoAction(UndoAction.VIEW_ELEMENTS_SET);   
    currentScheme.movesTrimStart(currentMoveIndex);
    currentMoveIndex = 0;
    currentScheme.setStart(new Board(viewBoard.getBoard()));
    viewSchemeSet.updateCache(currentSchemeIndex);
    viewFullSchemeSet.updateCache(currentSchemeIndex);
    updateMoveIndex();
    if (currentDialog == null) endUndoAction();
  }
View Full Code Here

       
    if (ev.getSource() == miEditNewScheme) {
      viewBoard.pause();
      currentSchemeIndex++;
      beginUndoAction(UndoAction.EDIT_NEW_SCHEME);
      addScheme(currentSchemeIndex,new Scheme(new Board(DEFAULT_BOARD_WIDTH,DEFAULT_BOARD_HEIGHT)),currentMoveIndex);
      setSchemeIndex(currentSchemeIndex,true);
      endUndoAction();
    } else

    if (ev.getSource() == miEditDuplicateScheme) {
View Full Code Here

TOP

Related Classes of engine.Board

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.