public abstract class

BaseGameActivity

extends BaseActivity
implements IRendererListener IGameInterface
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ org.andengine.ui.activity.BaseActivity
             ↳ org.andengine.ui.activity.BaseGameActivity
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
Fields
protected Engine mEngine
protected RenderSurfaceView mRenderSurfaceView
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
BaseGameActivity()
Public Methods
Engine getEngine()
FontManager getFontManager()
MusicManager getMusicManager()
ShaderProgramManager getShaderProgramManager()
SoundManager getSoundManager()
TextureManager getTextureManager()
VertexBufferObjectManager getVertexBufferObjectManager()
boolean isGameLoaded()
boolean isGamePaused()
boolean isGameRunning()
Engine onCreateEngine(EngineOptions pEngineOptions)
void onDestroyResources()
synchronized void onGameCreated()
synchronized void onGameDestroyed()
synchronized void onPauseGame()
void onReloadResources()
synchronized void onResumeGame()
synchronized void onSurfaceChanged(int pWidth, int pHeight)
synchronized void onSurfaceCreated()
synchronized void onWindowFocusChanged(boolean pHasWindowFocus)
void runOnUpdateThread(Runnable pRunnable)
void runOnUpdateThread(Runnable pRunnable, boolean pOnlyWhenEngineRunning)
Protected Methods
static FrameLayout.LayoutParams createSurfaceViewLayoutParams()
boolean disableAccelerationSensor()
void disableLocationSensor()
boolean disableOrientationSensor()
boolean enableAccelerationSensor(IAccelerationListener pAccelerationListener, AccelerationSensorOptions pAccelerationSensorOptions)
boolean enableAccelerationSensor(IAccelerationListener pAccelerationListener)
void enableLocationSensor(ILocationListener pLocationListener, LocationSensorOptions pLocationSensorOptions)
boolean enableOrientationSensor(IOrientationListener pOrientationListener)
boolean enableOrientationSensor(IOrientationListener pOrientationListener, OrientationSensorOptions pLocationSensorOptions)
void enableVibrator()
void onCreate(Bundle pSavedInstanceState)
synchronized void onCreateGame()
void onDestroy()
void onPause()
synchronized void onResume()
void onSetContentView()
[Expand]
Inherited Methods
From class org.andengine.ui.activity.BaseActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface org.andengine.opengl.view.IRendererListener
From interface org.andengine.ui.IGameInterface

Fields

protected Engine mEngine

protected RenderSurfaceView mRenderSurfaceView

Public Constructors

public BaseGameActivity ()

Public Methods

public Engine getEngine ()

public FontManager getFontManager ()

public MusicManager getMusicManager ()

public ShaderProgramManager getShaderProgramManager ()

public SoundManager getSoundManager ()

public TextureManager getTextureManager ()

public VertexBufferObjectManager getVertexBufferObjectManager ()

public boolean isGameLoaded ()

public boolean isGamePaused ()

public boolean isGameRunning ()

public Engine onCreateEngine (EngineOptions pEngineOptions)

public void onDestroyResources ()

Throws
Exception

public synchronized void onGameCreated ()

public synchronized void onGameDestroyed ()

public synchronized void onPauseGame ()

public void onReloadResources ()

public synchronized void onResumeGame ()

public synchronized void onSurfaceChanged (int pWidth, int pHeight)

public synchronized void onSurfaceCreated ()

public synchronized void onWindowFocusChanged (boolean pHasWindowFocus)

public void runOnUpdateThread (Runnable pRunnable)

public void runOnUpdateThread (Runnable pRunnable, boolean pOnlyWhenEngineRunning)

Protected Methods

protected static FrameLayout.LayoutParams createSurfaceViewLayoutParams ()

protected boolean disableAccelerationSensor ()

See Also
  • {@link Engine#disableAccelerationSensor(Context)}

protected void disableLocationSensor ()

See Also
  • {@link Engine#disableLocationSensor(Context)}

protected boolean disableOrientationSensor ()

See Also
  • {@link Engine#disableOrientationSensor(Context)}

protected boolean enableAccelerationSensor (IAccelerationListener pAccelerationListener, AccelerationSensorOptions pAccelerationSensorOptions)

See Also
  • {@link Engine#enableAccelerationSensor(Context, IAccelerationListener, AccelerationSensorOptions)}

protected boolean enableAccelerationSensor (IAccelerationListener pAccelerationListener)

See Also
  • {@link Engine#enableAccelerationSensor(Context, IAccelerationListener)}

protected void enableLocationSensor (ILocationListener pLocationListener, LocationSensorOptions pLocationSensorOptions)

See Also
  • {@link Engine#enableLocationSensor(Context, ILocationListener, LocationSensorOptions)}

protected boolean enableOrientationSensor (IOrientationListener pOrientationListener)

See Also
  • {@link Engine#enableOrientationSensor(Context, IOrientationListener)}

protected boolean enableOrientationSensor (IOrientationListener pOrientationListener, OrientationSensorOptions pLocationSensorOptions)

See Also
  • {@link Engine#enableOrientationSensor(Context, IOrientationListener, OrientationSensorOptions)}

protected void enableVibrator ()

protected void onCreate (Bundle pSavedInstanceState)

protected synchronized void onCreateGame ()

protected void onDestroy ()

protected void onPause ()

protected synchronized void onResume ()

protected void onSetContentView ()