Android Open Source - DroidSweeper Constants






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.config;
/*  w  w w  . ja  va  2 s . c o  m*/
import android.app.Activity;

/** Global constants.
 * @author Moritz Nisbl moritz.nisble@gmx.de */
public final class Constants {
  /** Timer resolution. */
  public static final long TIMER_PERIOD = 50;

  /** Maximum count of highscores in the database per {@link Level difficulty
   * level}. */
  public static final int MAX_HIGHSCORES = 10;

  /** Horizontal dimension of a game at {@link Level#EASY}. */
  public static final int EASY_X = 6;
  /** Vertical dimension of a game at {@link Level#EASY}. */
  public static final int EASY_Y = 8;
  /** Bomb count of a game at {@link Level#EASY}. */
  public static final int EASY_BOMBS = 6;

  /** Horizontal dimension of a game at {@link Level#NORMAL}. */
  public static final int NORMAL_X = 8;
  /** Vertical dimension of a game at {@link Level#NORMAL}. */
  public static final int NORMAL_Y = 12;
  /** Bomb count of a game at {@link Level#NORMAL}. */
  public static final int NORMAL_BOMBS = 15;

  /** Horizontal dimension of a game at {@link Level#HARD}. */
  public static final int HARD_X = 10;
  /** Vertical dimension of a game at {@link Level#HARD}. */
  public static final int HARD_Y = 18;
  /** Bomb count of a game at {@link Level#HARD}. */
  public static final int HARD_BOMBS = 37;

  public static final int INTENTREQUEST_SETTINGS = 0;
  public static final int INTENTREQUEST_HIGHSCORELIST = 1;

  public static final int INTENTRESULT_PLAY_REPLAY = Activity.RESULT_FIRST_USER + 0;
  public static final int INTENTRESULT_CHANGE_GAMECONFIG = Activity.RESULT_FIRST_USER + 1;
}




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