package org.andengine.ui.activity;
import org.andengine.entity.scene.Scene;
import org.andengine.ui.IGameInterface;
/**
* This class exists so that the callback parameters of the methods in {@link IGameInterface} get called automatically.
*
* (c) Zynga 2012
*
* @author Nicolas Gramlich <ngramlich@zynga.com>
* @since 3:11:05 PM - Jan 12, 2012
*/
public abstract class SimpleLayoutGameActivity extends LayoutGameActivity {
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
// ===========================================================
// Constructors
// ===========================================================
// ===========================================================
// Getter & Setter
// ===========================================================
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
protected abstract void onCreateResources();
protected abstract Scene onCreateScene();
@Override
public final void onCreateResources(final OnCreateResourcesCallback pOnCreateResourcesCallback) throws Exception {
this.onCreateResources();
pOnCreateResourcesCallback.onCreateResourcesFinished();
}
@Override
public final void onCreateScene(final OnCreateSceneCallback pOnCreateSceneCallback) throws Exception {
final Scene scene = this.onCreateScene();
pOnCreateSceneCallback.onCreateSceneFinished(scene);
}
@Override
public final void onPopulateScene(final Scene pScene, final OnPopulateSceneCallback pOnPopulateSceneCallback) throws Exception {
pOnPopulateSceneCallback.onPopulateSceneFinished();
}
// ===========================================================
// Methods
// ===========================================================
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}