public abstract class

BaseGameActivity

extends BaseActivity
implements IGameInterface
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ org.anddev.andengine.ui.activity.BaseActivity
             ↳ org.anddev.andengine.ui.activity.BaseGameActivity
Known Direct 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 boolean mHasWindowFocused
protected RenderSurfaceView mRenderSurfaceView
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
BaseGameActivity()
Public Methods
Engine getEngine()
FontManager getFontManager()
MusicManager getMusicManager()
SoundManager getSoundManager()
TextureManager getTextureManager()
void onPauseGame()
void onResumeGame()
void onUnloadResources()
void onWindowFocusChanged(boolean pHasWindowFocus)
void runOnUpdateThread(Runnable pRunnable)
Protected Methods
FrameLayout.LayoutParams createSurfaceViewLayoutParams()
boolean disableAccelerometerSensor()
void disableLocationSensor()
boolean disableOrientationSensor()
boolean enableAccelerometerSensor(IAccelerometerListener pAccelerometerListener, AccelerometerSensorOptions pAccelerometerSensorOptions)
boolean enableAccelerometerSensor(IAccelerometerListener pAccelerometerListener)
void enableLocationSensor(ILocationListener pLocationListener, LocationSensorOptions pLocationSensorOptions)
boolean enableOrientationSensor(IOrientationListener pOrientationListener)
boolean enableOrientationSensor(IOrientationListener pOrientationListener, OrientationSensorOptions pLocationSensorOptions)
void enableVibrator()
void onCreate(Bundle pSavedInstanceState)
void onDestroy()
void onPause()
void onResume()
void onSetContentView()
[Expand]
Inherited Methods
From class org.anddev.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.anddev.andengine.ui.IGameInterface

Fields

protected Engine mEngine

protected boolean mHasWindowFocused

protected RenderSurfaceView mRenderSurfaceView

Public Constructors

public BaseGameActivity ()

Public Methods

public Engine getEngine ()

public FontManager getFontManager ()

public MusicManager getMusicManager ()

public SoundManager getSoundManager ()

public TextureManager getTextureManager ()

public void onPauseGame ()

public void onResumeGame ()

public void onUnloadResources ()

public void onWindowFocusChanged (boolean pHasWindowFocus)

public void runOnUpdateThread (Runnable pRunnable)

Protected Methods

protected FrameLayout.LayoutParams createSurfaceViewLayoutParams ()

protected boolean disableAccelerometerSensor ()

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

protected void disableLocationSensor ()

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

protected boolean disableOrientationSensor ()

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

protected boolean enableAccelerometerSensor (IAccelerometerListener pAccelerometerListener, AccelerometerSensorOptions pAccelerometerSensorOptions)

See Also
  • {@link Engine#enableAccelerometerSensor(Context, IAccelerometerListener, AccelerometerSensorOptions)}

protected boolean enableAccelerometerSensor (IAccelerometerListener pAccelerometerListener)

See Also
  • {@link Engine#enableAccelerometerSensor(Context, IAccelerometerListener)}

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 void onDestroy ()

protected void onPause ()

protected void onResume ()

protected void onSetContentView ()