Back to project page lamp-game.
The source code is released under:
GNU General Public License
If you think the Android project lamp-game 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.lifestudio.base; // www . jav a 2s . c o m import org.andengine.engine.Engine; import org.andengine.engine.camera.BoundCamera; import org.andengine.engine.camera.Camera; import org.andengine.entity.scene.Scene; import org.andengine.opengl.vbo.VertexBufferObjectManager; import android.app.Activity; import com.lifestudio.manager.ResourcesManager; import com.lifestudio.manager.SceneManager.SceneType; 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(); }