Package mines.MinesUtils

Examples of mines.MinesUtils.MineSweeperData


 
  /**
   * Signal handler, when the user wants to open the mines editor.
   */
  void runEditor(){
    MineSweeperData data = new MineSweeperData();
    data.mRealContent = mRealMinefield;
    data.mViewedContent = mViewedMinefield;

    mEditorShowSignal.emit(data);
  }
View Full Code Here


  /**
   * Saves current minefield to file for debugging purposes.
   * @param filePath Filename, where the minefield will be saved.
   */
  void saveCurrentMinefieldState(String filePath) {
    MineSweeperData data = new MineSweeperData();
    data.mRealContent = mRealMinefield;
    data.mViewedContent = mViewedMinefield;

    MinesUtils.saveMinefieldToFileSafely(data, filePath);
  }
View Full Code Here

    if (filename.equals("")) {
      return;
    }

    // load the new minefield
    MineSweeperData data = MinesUtils.loadObjectFromFileSafely(filename);

    if ((data.mRealContent != null) && (data.mViewedContent != null)) {
      setContent(data.mRealContent, data.mViewedContent);
    }
  }
View Full Code Here

TOP

Related Classes of mines.MinesUtils.MineSweeperData

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.