Android Open Source - lamp-game Base Scene






From Project

Back to project page lamp-game.

License

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.

Java Source Code

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();
  
}




Java Source Code List

com.lifestudio.GameActivity.java
com.lifestudio.base.BaseScene.java
com.lifestudio.extras.LevelCompleteWindow.java
com.lifestudio.manager.ResourcesManager.java
com.lifestudio.manager.SceneManager.java
com.lifestudio.object.Player.java
com.lifestudio.scene.GameScene.java
com.lifestudio.scene.LoadingScene.java
com.lifestudio.scene.MainMenuScene.java
com.lifestudio.scene.SplashScene.java