Android Open Source - spacegunner Game Model






From Project

Back to project page spacegunner.

License

The source code is released under:

MIT License

If you think the Android project spacegunner 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 com.example.spacegunner.game;
/*from   w  w w.  jav  a2 s.  c  om*/
public interface GameModel {

  /**
   * Start the next level.
   */
  public void startNextLevel();

  /**
   * Count down the time.
   */
  public void countdownTime();

  /**
   * Called whenever a ship is destroyed.
   */
  public void shipDestroyed();

  /**
   * @return whether the current level is finished
   */
  public boolean isLevelFinished();

  /**
   * @return whether the current game is over
   */
  public boolean isGameOver();

  /**
   * @return the level
   */
  public int getLevel();

  /**
   * @return the speed modifier of the ships.
   */
  public int getSpeedModifier();

  /**
   * @return the points
   */
  public int getPoints();

  /**
   * @return the points the player had when the level started. Used when the
   *         game is paused to return to the previous LevelView.
   */
  public int getPointsAtLevelStart();

  /**
   * @return the shipsToDisplay
   */
  public int getShipsToDestroy();

  /**
   * @return the shipsDestroyed
   */
  public int getShipsDestroyed();

  /**
   * @return the secondsToPlay
   */
  public int getTime();

  /**
   * @return the secondsPerLevel
   */
  public int getSecondsPerLevel();

  /**
   * @return the maximum time a ship should be shown
   */
  public int getMaximumTimeShown();

  /**
   * @return the number of the first level
   */
  public int getFirstLevel();

  /**
   * @return the toString() method.
   */
  public String toString();

  

}




Java Source Code List

com.example.spacegunner.constants.Constants.java
com.example.spacegunner.game.GameModelImpl.java
com.example.spacegunner.game.GameModel.java
com.example.spacegunner.game.GamePresenterImpl.java
com.example.spacegunner.game.GamePresenter.java
com.example.spacegunner.game.GameViewImpl.java
com.example.spacegunner.game.GameView.java
com.example.spacegunner.gameresult.GameResultModelImpl.java
com.example.spacegunner.gameresult.GameResultModel.java
com.example.spacegunner.gameresult.GameResultPresenterImpl.java
com.example.spacegunner.gameresult.GameResultPresenter.java
com.example.spacegunner.gameresult.GameResultViewImpl.java
com.example.spacegunner.gameresult.GameResultView.java
com.example.spacegunner.ioservice.IOService.java
com.example.spacegunner.ioservice.PlayerHighscore.java
com.example.spacegunner.level.LevelModelImpl.java
com.example.spacegunner.level.LevelModel.java
com.example.spacegunner.level.LevelPresenterImpl.java
com.example.spacegunner.level.LevelPresenter.java
com.example.spacegunner.level.LevelViewImpl.java
com.example.spacegunner.level.LevelView.java
com.example.spacegunner.main.MainPresenterImpl.java
com.example.spacegunner.main.MainPresenter.java
com.example.spacegunner.main.MainViewImpl.java
com.example.spacegunner.main.MainView.java