Back to project page AndroidSettlers.
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.
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; } }