Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
2 changes: 2 additions & 0 deletions src/org/andengine/examples/DigitalOnScreenControlExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ public void onControlChange(final BaseOnScreenControl pBaseOnScreenControl, fina
return scene;
}

@SuppressWarnings("deprecation")
@Override
public void onGameCreated() {
this.showDialog(DIALOG_ALLOWDIAGONAL_ID);
}

@SuppressWarnings("deprecation")
@Override
protected Dialog onCreateDialog(final int pID) {
switch(pID) {
Expand Down
4 changes: 3 additions & 1 deletion src/org/andengine/examples/ETC1TextureExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class ETC1TextureExample extends SimpleBaseGameActivity {

@Override
public EngineOptions onCreateEngineOptions() {
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG);
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG).show();

this.mSmoothCamera = new SmoothCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT, 0, 0, 0.1f) {
@Override
Expand All @@ -76,6 +76,8 @@ public void onUpdate(final float pSecondsElapsed) {
case OUT:
this.setZoomFactor(this.getZoomFactor() - 0.1f * pSecondsElapsed);
break;
default:
break;
}
super.onUpdate(pSecondsElapsed);
}
Expand Down
3 changes: 3 additions & 0 deletions src/org/andengine/examples/MultiplayerBluetoothExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ private void initMessagePool() {
// Methods for/from SuperClass/Interfaces
// ===========================================================

@SuppressWarnings("deprecation")
@Override
protected void onCreate(final Bundle pSavedInstanceState) {
super.onCreate(pSavedInstanceState);
Expand All @@ -139,6 +140,7 @@ protected void onCreate(final Bundle pSavedInstanceState) {
}
}

@SuppressWarnings("deprecation")
@Override
protected Dialog onCreateDialog(final int pID) {
switch(pID) {
Expand Down Expand Up @@ -285,6 +287,7 @@ public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final ITouchArea
return scene;
}

@SuppressWarnings("deprecation")
@Override
protected void onActivityResult(final int pRequestCode, final int pResultCode, final Intent pData) {
switch(pRequestCode) {
Expand Down
2 changes: 2 additions & 0 deletions src/org/andengine/examples/MultiplayerExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private void initMessagePool() {
// Methods for/from SuperClass/Interfaces
// ===========================================================

@SuppressWarnings("deprecation")
@Override
public EngineOptions onCreateEngineOptions() {
this.showDialog(DIALOG_CHOOSE_SERVER_OR_CLIENT_ID);
Expand Down Expand Up @@ -191,6 +192,7 @@ public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final ITouchArea
return scene;
}

@SuppressWarnings("deprecation")
@Override
protected Dialog onCreateDialog(final int pID) {
switch(pID) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private void initMessagePool() {
// Methods for/from SuperClass/Interfaces
// ===========================================================

@SuppressWarnings("deprecation")
@Override
public EngineOptions onCreateEngineOptions() {
this.showDialog(DIALOG_CHOOSE_SERVER_OR_CLIENT_ID);
Expand Down Expand Up @@ -197,6 +198,7 @@ public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final ITouchArea
return scene;
}

@SuppressWarnings("deprecation")
@Override
protected Dialog onCreateDialog(final int pID) {
switch(pID) {
Expand Down
4 changes: 3 additions & 1 deletion src/org/andengine/examples/PVRCCZTextureExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class PVRCCZTextureExample extends SimpleBaseGameActivity {

@Override
public EngineOptions onCreateEngineOptions() {
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG);
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG).show();

final Camera camera = new SmoothCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT, 0, 0, 0.1f) {
@Override
Expand All @@ -76,6 +76,8 @@ public void onUpdate(final float pSecondsElapsed) {
case OUT:
this.setZoomFactor(this.getZoomFactor() - 0.1f * pSecondsElapsed);
break;
default:
break;
}
super.onUpdate(pSecondsElapsed);
}
Expand Down
4 changes: 3 additions & 1 deletion src/org/andengine/examples/PVRGZTextureExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class PVRGZTextureExample extends SimpleBaseGameActivity {

@Override
public EngineOptions onCreateEngineOptions() {
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG);
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG).show();

final Camera camera = new SmoothCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT, 0, 0, 0.1f) {
@Override
Expand All @@ -76,6 +76,8 @@ public void onUpdate(final float pSecondsElapsed) {
case OUT:
this.setZoomFactor(this.getZoomFactor() - 0.1f * pSecondsElapsed);
break;
default:
break;
}
super.onUpdate(pSecondsElapsed);
}
Expand Down
6 changes: 4 additions & 2 deletions src/org/andengine/examples/PVRTextureExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public class PVRTextureExample extends SimpleBaseGameActivity {

@Override
public EngineOptions onCreateEngineOptions() {
Toast.makeText(this, "The lower houses use MipMaps!", Toast.LENGTH_LONG);
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG);
Toast.makeText(this, "The lower houses use MipMaps!", Toast.LENGTH_LONG).show();
Toast.makeText(this, "Click the top half of the screen to zoom in or the bottom half to zoom out!", Toast.LENGTH_LONG).show();

final Camera camera = new SmoothCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT, 0, 0, 0.1f) {
@Override
Expand All @@ -87,6 +87,8 @@ public void onUpdate(final float pSecondsElapsed) {
case OUT:
this.setZoomFactor(this.getZoomFactor() - 0.1f * pSecondsElapsed);
break;
default:
break;
}
super.onUpdate(pSecondsElapsed);
}
Expand Down
2 changes: 2 additions & 0 deletions src/org/andengine/examples/benchmark/AnimationBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public Scene onCreateScene() {
return scene;
}

@SuppressWarnings("unused")
private void drawUsingSprites(Scene pScene) {
for(int i = 0; i < SPRITE_COUNT; i++) {
/* Quickly twinkling face. */
Expand All @@ -138,6 +139,7 @@ private void drawUsingSprites(Scene pScene) {
}
}

@SuppressWarnings("unused")
private void drawUsingSpritesWithSharedVertexBuffer(Scene pScene) {
/* As we are creating quite a lot of the same Sprites, we can let them share a VertexBuffer to significantly increase performance. */
final ITiledSpriteVertexBufferObject faceSharedVertexBuffer = new LowMemoryTiledSpriteVertexBufferObject(this.getVertexBufferObjectManager(), Sprite.SPRITE_SIZE, DrawType.STATIC, true, Sprite.VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT);
Expand Down
2 changes: 2 additions & 0 deletions src/org/andengine/examples/benchmark/BaseBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public abstract class BaseBenchmark extends SimpleBaseGameActivity {
protected void showResult(final float pFPS) {
this.mFPS = pFPS;
this.runOnUiThread(new Runnable() {
@SuppressWarnings("deprecation")
@Override
public void run() {
BaseBenchmark.this.showDialog(DIALOG_SHOW_RESULT);
Expand Down Expand Up @@ -122,6 +123,7 @@ public void onTimePassed(final TimerHandler pTimerHandler) {
}));
}

@SuppressWarnings("deprecation")
@Override
protected Dialog onCreateDialog(final int pID) {
switch(pID) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public Scene onCreateScene() {
// Methods
// ===========================================================

@SuppressWarnings("unused")
private void drawUsingSprites(final Scene pScene) {
final IEntityModifier faceEntityModifier = new SequenceEntityModifier(
new RotationByModifier(2, 90),
Expand Down Expand Up @@ -137,6 +138,7 @@ private void drawUsingSprites(final Scene pScene) {
}
}

@SuppressWarnings("unused")
private void drawUsingSpritesWithSharedVertexBuffer(final Scene pScene) {
final IEntityModifier faceEntityModifier = new SequenceEntityModifier(
new RotationByModifier(2, 90),
Expand Down
2 changes: 2 additions & 0 deletions src/org/andengine/examples/benchmark/SpriteBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public Scene onCreateScene() {
// Methods
// ===========================================================

@SuppressWarnings("unused")
private void drawUsingSprites(final Scene pScene) {
final VertexBufferObjectManager vertexBufferObjectManager = this.getVertexBufferObjectManager();
for(int i = 0; i < SpriteBenchmark.SPRITE_COUNT; i++) {
Expand All @@ -118,6 +119,7 @@ private void drawUsingSprites(final Scene pScene) {
}
}

@SuppressWarnings("unused")
private void drawUsingSpritesWithSharedVertexBuffer(final Scene pScene) {
/* As we are creating quite a lot of the same Sprites, we can let them share a VertexBuffer to significantly increase performance. */
final ISpriteVertexBufferObject sharedVertexBuffer = new LowMemorySpriteVertexBufferObject(this.getVertexBufferObjectManager(), Sprite.SPRITE_SIZE, DrawType.STATIC, true, Sprite.VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT);
Expand Down
2 changes: 2 additions & 0 deletions src/org/andengine/examples/game/pong/PongGameActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public EngineOptions onCreateEngineOptions() {
return new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), this.mCamera);
}

@SuppressWarnings("deprecation")
@Override
public Engine onCreateEngine(final EngineOptions pEngineOptions) {
this.showDialog(DIALOG_CHOOSE_SERVER_OR_CLIENT_ID);
Expand Down Expand Up @@ -231,6 +232,7 @@ public boolean onMenuItemSelected(final int pFeatureId, final MenuItem pItem) {
}
}

@SuppressWarnings("deprecation")
@Override
protected Dialog onCreateDialog(final int pID) {
switch(pID) {
Expand Down
5 changes: 5 additions & 0 deletions src/org/andengine/examples/launcher/ExampleLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class ExampleLauncher extends ExpandableListActivity {
// Constructors
// ===========================================================

@SuppressWarnings("deprecation")
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -99,6 +100,7 @@ public void onClick(final View pView) {
// Methods for/from SuperClass/Interfaces
// ===========================================================

@SuppressWarnings("deprecation")
@Override
protected Dialog onCreateDialog(final int pId) {
switch(pId) {
Expand Down Expand Up @@ -157,6 +159,9 @@ public void onGroupExpand(final int pGroupPosition) {
switch(this.mExpandableExampleLauncherListAdapter.getGroup(pGroupPosition)){
case BENCHMARK:
Toast.makeText(this, "When running a benchmark, a dialog with the results will appear after some seconds.", Toast.LENGTH_SHORT).show();
break;
default:
break;
}
super.onGroupExpand(pGroupPosition);
}
Expand Down