Android Open Source - AndroidSettlers Settlers






From Project

Back to project page AndroidSettlers.

License

The source code is released under:

GNU General Public License

If you think the Android project AndroidSettlers 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.settlers.hd;
/*from ww w  .  j  a v  a  2 s .  c  om*/
import android.app.Application;
import android.content.Context;

public class Settlers extends Application {

  private Settings settingsInstance;
  private TextureManager textureManagerInstance;
  private Board boardInstance;
  
  private static Context context;
  private static Settlers instance;

  @Override
  public void onCreate() {
    super.onCreate();
    
    instance = this;
    
    context = getBaseContext();

    // load settings
    settingsInstance = new Settings(getBaseContext());

    setTextureManagerInstance(null);
    setBoardInstance(null);
  }
  
  public static Settlers getInstance() {
    return instance;
  }
  
  public Context getContext() {
    return context;
  }

  public void setBoardInstance(Board boardInstance) {
    this.boardInstance = boardInstance;
  }

  public Board getBoardInstance() {
    return boardInstance;
  }

  public void setTextureManagerInstance(TextureManager textureManagerInstance) {
    this.textureManagerInstance = textureManagerInstance;
  }

  public TextureManager getTextureManagerInstance() {
    return textureManagerInstance;
  }

  public Settings getSettingsInstance() {
    return settingsInstance;
  }
}




Java Source Code List

com.settlers.hd.AcceptTrade.java
com.settlers.hd.AutomatedPlayer.java
com.settlers.hd.BalancedAI.java
com.settlers.hd.Board.java
com.settlers.hd.CounterOffer.java
com.settlers.hd.Discard.java
com.settlers.hd.Edge.java
com.settlers.hd.GameActivity.java
com.settlers.hd.GameRenderer.java
com.settlers.hd.GameView.java
com.settlers.hd.Geometry.java
com.settlers.hd.Hexagon.java
com.settlers.hd.LocalGame.java
com.settlers.hd.Main.java
com.settlers.hd.PlayerTrade.java
com.settlers.hd.Player.java
com.settlers.hd.Reference.java
com.settlers.hd.ResourceView.java
com.settlers.hd.Rules.java
com.settlers.hd.Settings.java
com.settlers.hd.Settlers.java
com.settlers.hd.Square.java
com.settlers.hd.Stats.java
com.settlers.hd.Status.java
com.settlers.hd.TextureManager.java
com.settlers.hd.Trader.java
com.settlers.hd.UIButton.java
com.settlers.hd.Vertex.java