Android Open Source - DroidSweeper Matrix Observer






From Project

Back to project page DroidSweeper.

License

The source code is released under:

MIT License

If you think the Android project DroidSweeper listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.nisble.droidsweeper.game.jni;
/* w  w w .  j  a v a2 s . c  o  m*/
import de.nisble.droidsweeper.game.Position;

/** Interface that is used to observe changes in the matrix of the native
 * library.
 * @author Moritz Nisbl moritz.nisble@gmx.de */
public interface MatrixObserver {
  /** Called from native code via {@link MineSweeperMatrix} when the internal
   * {@link GameStatus
   * status} of the
   * game has changed.
   * @param newStatus The new status. */
  void onGameStatusChanged(GameStatus newStatus);

  /** Called from native code via {@link MineSweeperMatrix} when the count of
   * the remaining bombs has changed because the user has marked some fields.
   * @param remainingBombs The new count of remaining bombs. */
  void onRemainingBombsChanged(int remainingBombs);

  /** Called from native code via {@link MineSweeperMatrix} after the
   * {@link FieldStatus status} of a field has changed.<br>
   * In contrast to {@link FieldListener#onStatusChanged(FieldStatus, int)}
   * this function is commonly called for status changes of fields.
   * <p>
   * <b>Note:</b> This function is called after
   * {@link FieldListener#onStatusChanged(FieldStatus, int)}.
   * </p>
   * @param p The {@link Position} of the field.
   * @param fs The new {@link FieldStatus status}.
   * @param adjacentBombs The count of adjacent bombs. */
  void afterFieldStatusChanged(Position p, FieldStatus fs, int adjacentBombs);
}




Java Source Code List

de.nisble.droidsweeper.config.ApplicationConfig.java
de.nisble.droidsweeper.config.Constants.java
de.nisble.droidsweeper.config.GameConfig.java
de.nisble.droidsweeper.config.Level.java
de.nisble.droidsweeper.game.Field.java
de.nisble.droidsweeper.game.GameObserver.java
de.nisble.droidsweeper.game.Game.java
de.nisble.droidsweeper.game.Position.java
de.nisble.droidsweeper.game.database.DSDBAdapter.java
de.nisble.droidsweeper.game.database.DSDBContract.java
de.nisble.droidsweeper.game.database.DSDBGameEntry.java
de.nisble.droidsweeper.game.database.DSDBHelper.java
de.nisble.droidsweeper.game.jni.FieldListener.java
de.nisble.droidsweeper.game.jni.FieldStatus.java
de.nisble.droidsweeper.game.jni.GameStatus.java
de.nisble.droidsweeper.game.jni.MatrixObserver.java
de.nisble.droidsweeper.game.jni.MineSweeperMatrix.java
de.nisble.droidsweeper.game.replay.PlayerObserver.java
de.nisble.droidsweeper.game.replay.Player.java
de.nisble.droidsweeper.game.replay.Recorder.java
de.nisble.droidsweeper.game.replay.Replay.java
de.nisble.droidsweeper.game.replay.TimeStep.java
de.nisble.droidsweeper.gui.DroidSweeperActivity.java
de.nisble.droidsweeper.gui.HighScoreActivity.java
de.nisble.droidsweeper.gui.HighScoreListAdapter.java
de.nisble.droidsweeper.gui.SettingsActivity.java
de.nisble.droidsweeper.gui.grid.FieldDrawables.java
de.nisble.droidsweeper.gui.grid.FieldView.java
de.nisble.droidsweeper.gui.grid.GameGridView.java
de.nisble.droidsweeper.utilities.LogDog.java
de.nisble.droidsweeper.utilities.Timer.java