Android Open Source - spacegunner Game View






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.  j  a  va  2s.  c  o  m*/
import com.example.spacegunner.ioservice.PlayerHighscore;

public interface GameView {

  public void setBackgroundImageAndCredits(int level);
  
  public void showLevelStartInfo(int level);

  public void increaseFrame();

  public long getFrame();

  public void resetFrame();

  public void setPoints(final int points);

  public void setLevel(final int level);

  public void setHits(final int shipsDestroyed);

  public void setTime(final int time);

  public int setHitBarWidth(final int shipsDestroyed, final int shipsToDestroy);

  public void setTimeBarWidth(final int time, final int secondsPerLevel);

  public void moveShipsToNewLocation(int speedModifier);

  public void displayShip();

  public void removeShips(final int maximumTimeShown);

  public abstract void showShipDestroyedAnimation();

  public abstract void playExplosionSound();

  public PlayerHighscore getHighscore();

  public void startMainView();

  public void startLevelView(int level, int points);

  public void returnToPreviousLevelView(int previousLevel, int pointsAtLevelStart);

  public void startGameResultView(int points);

}




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