Back to project page MoonMiner.
The source code is released under:
MIT License
If you think the Android project MoonMiner 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.lhbdev.moonminer.base; //w w w . ja v a2 s . c o m import org.andengine.engine.Engine; import org.andengine.engine.camera.BoundCamera; import org.andengine.entity.scene.Scene; import org.andengine.opengl.vbo.VertexBufferObjectManager; import com.lhbdev.moonminer.manager.ResourcesManager; import com.lhbdev.moonminer.manager.SceneManager.SceneType; import android.app.Activity; public abstract class BaseScene extends Scene { //-------------------------------------------------------- //VARIABLES //-------------------------------------------------------- protected Engine engine; protected Activity activity; protected ResourcesManager resourcesManager; protected VertexBufferObjectManager vbom; protected BoundCamera camera; //-------------------------------------------------------- //CONSTRUCTOR //-------------------------------------------------------- public BaseScene() { this.resourcesManager = ResourcesManager.getInstance(); this.engine = resourcesManager.engine; this.activity = resourcesManager.activity; this.vbom = resourcesManager.vbom; this.camera = resourcesManager.camera; createScene(); } //-------------------------------------------------------- //ABSTRACTION //-------------------------------------------------------- public abstract void createScene(); public abstract void onBackKeyPressed(); public abstract SceneType getSceneType(); public abstract void disposeScene(); }