Skip to content

Commit

Permalink
Removed whitespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Gramlich committed Feb 10, 2013
1 parent 115b84a commit c4b3a23
Show file tree
Hide file tree
Showing 75 changed files with 144 additions and 144 deletions.
10 changes: 5 additions & 5 deletions build.xml
Expand Up @@ -4,7 +4,7 @@
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<loadproperties srcFile="local.properties" />
<loadproperties srcFile="local.properties"/>

<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
Expand All @@ -26,7 +26,7 @@
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<property file="ant.properties"/>

<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
Expand All @@ -37,13 +37,13 @@
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<loadproperties srcFile="project.properties"/>

<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'"
unless="sdk.dir"
/>
/>


<!-- extension targets. Uncomment the ones where you want to do custom work
Expand Down Expand Up @@ -80,6 +80,6 @@
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
<import file="${sdk.dir}/tools/ant/build.xml"/>

</project>
4 changes: 2 additions & 2 deletions src/org/andengine/engine/camera/BoundCamera.java
Expand Up @@ -95,11 +95,11 @@ public float getBoundsHeight() {
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================

@Override
public void setCenter(final float pCenterX, final float pCenterY) {
super.setCenter(pCenterX, pCenterY);

if(this.mBoundsEnabled) {
this.ensureInBounds();
}
Expand Down
4 changes: 2 additions & 2 deletions src/org/andengine/engine/handler/IUpdateHandler.java
Expand Up @@ -20,13 +20,13 @@ public interface IUpdateHandler {

public void onUpdate(final float pSecondsElapsed);
public void reset();

// TODO Maybe add onRegister and onUnregister. (Maybe add SimpleUpdateHandler that implements all methods, but onUpdate)

// ===========================================================
// Inner and Anonymous Classes
// ===========================================================

public interface IUpdateHandlerMatcher extends IMatcher<IUpdateHandler> {
// ===========================================================
// Constants
Expand Down
2 changes: 1 addition & 1 deletion src/org/andengine/engine/handler/timer/TimerHandler.java
Expand Up @@ -65,7 +65,7 @@ public float getTimerSeconds() {
public float getTimerSecondsElapsed() {
return this.mTimerSecondsElapsed;
}

public boolean isTimerCallbackTriggered() {
return this.mTimerCallbackTriggered;
}
Expand Down
Expand Up @@ -68,32 +68,32 @@ protected void onUpdateScene(final float pSecondsElapsed) {
protected void onDrawScene(final GLState pGLState, final Camera pFirstCamera) {
if(super.mScene != null) {
final Camera secondCamera = this.getSecondCamera();

final int surfaceWidth = this.mSurfaceWidth;
final int surfaceWidthHalf = surfaceWidth >> 1;

final int surfaceHeight = this.mSurfaceHeight;

pGLState.enableScissorTest();

/* First Screen. With first camera, on the left half of the screens width. */
{
GLES20.glScissor(0, 0, surfaceWidthHalf, surfaceHeight);
GLES20.glViewport(0, 0, surfaceWidthHalf, surfaceHeight);

super.mScene.onDraw(pGLState, pFirstCamera);
pFirstCamera.onDrawHUD(pGLState);
}

/* Second Screen. With second camera, on the right half of the screens width. */
{
GLES20.glScissor(surfaceWidthHalf, 0, surfaceWidthHalf, surfaceHeight);
GLES20.glViewport(surfaceWidthHalf, 0, surfaceWidthHalf, surfaceHeight);

super.mScene.onDraw(pGLState, secondCamera);
secondCamera.onDrawHUD(pGLState);
}

pGLState.disableScissorTest();
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/org/andengine/entity/Entity.java
Expand Up @@ -1009,7 +1009,7 @@ public boolean unregisterUpdateHandlers(final IUpdateHandlerMatcher pUpdateHandl
}
return this.mUpdateHandlers.removeAll(pUpdateHandlerMatcher);
}

@Override
public int getUpdateHandlerCount() {
if(this.mUpdateHandlers == null) {
Expand Down Expand Up @@ -1049,7 +1049,7 @@ public boolean unregisterEntityModifiers(final IEntityModifierMatcher pEntityMod
}
return this.mEntityModifiers.removeAll(pEntityModifierMatcher);
}

@Override
public int getEntityModifierCount() {
if(this.mEntityModifiers == null) {
Expand Down Expand Up @@ -1626,16 +1626,16 @@ protected void updateLocalCentersYs() {
this.updateLocalScaleCenterY();
this.updateLocalSkewCenterY();
}

protected void updateLocalOffsetCenter() {
this.updateLocalOffsetCenterX();
this.updateLocalOffsetCenterY();
}

protected void updateLocalOffsetCenterX() {
this.mLocalOffsetCenterX = this.mOffsetCenterX * this.mWidth;
}

protected void updateLocalOffsetCenterY() {
this.mLocalOffsetCenterY = this.mOffsetCenterY * this.mHeight;
}
Expand Down
Expand Up @@ -126,7 +126,7 @@ public CubicBezierCurveMoveModifier deepCopy() {

@Override
protected void onManagedInitialize(final IEntity pEntity) {

}

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/org/andengine/entity/modifier/IEntityModifier.java
Expand Up @@ -19,7 +19,7 @@ public interface IEntityModifier extends IModifier<IEntity> {
// ===========================================================
// Methods
// ===========================================================

@Override
public IEntityModifier deepCopy() throws DeepCopyNotSupportedException;

Expand All @@ -36,7 +36,7 @@ public static interface IEntityModifierListener extends IModifierListener<IEntit
// Methods
// ===========================================================
}

public interface IEntityModifierMatcher extends IMatcher<IModifier<IEntity>> {
// ===========================================================
// Constants
Expand Down
Expand Up @@ -28,15 +28,15 @@ public class ColorParticleInitializer<T extends IEntity> extends BaseTripleValue
public ColorParticleInitializer(final Color pColor) {
super(pColor.getRed(), pColor.getRed(), pColor.getGreen(), pColor.getGreen(), pColor.getBlue(), pColor.getBlue());
}

public ColorParticleInitializer(final float pRed, final float pGreen, final float pBlue) {
super(pRed, pRed, pGreen, pGreen, pBlue, pBlue);
}

public ColorParticleInitializer(final Color pMinColor, final Color pMaxColor) {
super(pMinColor.getRed(), pMaxColor.getRed(), pMinColor.getGreen(), pMaxColor.getGreen(), pMinColor.getBlue(), pMaxColor.getBlue());
}

public ColorParticleInitializer(final float pMinRed, final float pMaxRed, final float pMinGreen, final float pMaxGreen, final float pMinBlue, final float pMaxBlue) {
super(pMinRed, pMaxRed, pMinGreen, pMaxGreen, pMinBlue, pMaxBlue);
}
Expand Down
Expand Up @@ -137,7 +137,7 @@ public void onDraw(final GLState pGLState, final Camera pCamera, final float pPa
pGLState.translateModelViewGLMatrixf(baseOffset, 0, 0);

float currentMaxX = baseOffset;

do {
this.mEntity.onDraw(pGLState, pCamera);
pGLState.translateModelViewGLMatrixf(entityWidthScaled, 0, 0);
Expand Down
Expand Up @@ -33,11 +33,11 @@ public SpriteBackground(final float pRed, final float pGreen, final float pBlue,
// ===========================================================
// Getter & Setter
// ===========================================================

public Sprite getSprite() {
return (Sprite)this.mEntity;
}

// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
Expand Down
Expand Up @@ -26,7 +26,7 @@ public class SequenceBackgroundModifier extends SequenceModifier<IBackground> im
public SequenceBackgroundModifier(final IBackgroundModifier... pBackgroundModifiers) throws IllegalArgumentException {
super(pBackgroundModifiers);
}

public SequenceBackgroundModifier(final ISubSequenceBackgroundModifierListener pSubSequenceBackgroundModifierListener, final IBackgroundModifier... pBackgroundModifiers) throws IllegalArgumentException {
super(pSubSequenceBackgroundModifierListener, pBackgroundModifiers);
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/andengine/entity/sprite/IAnimationData.java
Expand Up @@ -18,7 +18,7 @@ public interface IAnimationData {
// ===========================================================
// Methods
// ===========================================================

public int[] getFrames();
public long[] getFrameDurations();
public int getLoopCount();
Expand Down
4 changes: 2 additions & 2 deletions src/org/andengine/entity/sprite/Sprite.java
Expand Up @@ -104,13 +104,13 @@ public Sprite(final float pX, final float pY, final float pWidth, final float pH

public Sprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final ISpriteVertexBufferObject pSpriteVertexBufferObject, final ShaderProgram pShaderProgram) {
super(pX, pY, pShaderProgram);

this.mTextureRegion = pTextureRegion;
this.mSpriteVertexBufferObject = pSpriteVertexBufferObject;

this.setBlendingEnabled(true);
this.initBlendFunction(pTextureRegion);

this.setSize(pWidth, pHeight);

this.onUpdateColor();
Expand Down
6 changes: 3 additions & 3 deletions src/org/andengine/entity/sprite/UniformColorSprite.java
Expand Up @@ -60,23 +60,23 @@ public UniformColorSprite(final float pX, final float pY, final ITextureRegion p
public UniformColorSprite(final float pX, final float pY, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final DrawType pDrawType) {
this(pX, pY, pTextureRegion.getWidth(), pTextureRegion.getHeight(), pTextureRegion, pVertexBufferObjectManager, pDrawType);
}

public UniformColorSprite(final float pX, final float pY, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final DrawType pDrawType, final ShaderProgram pShaderProgram) {
this(pX, pY, pTextureRegion.getWidth(), pTextureRegion.getHeight(), pTextureRegion, pVertexBufferObjectManager, pDrawType, pShaderProgram);
}

public UniformColorSprite(final float pX, final float pY, final ITextureRegion pTextureRegion, final IUniformColorSpriteVertexBufferObject pVertexBufferObject) {
this(pX, pY, pTextureRegion.getWidth(), pTextureRegion.getHeight(), pTextureRegion, pVertexBufferObject);
}

public UniformColorSprite(final float pX, final float pY, final ITextureRegion pTextureRegion, final IUniformColorSpriteVertexBufferObject pVertexBufferObject, final ShaderProgram pShaderProgram) {
this(pX, pY, pTextureRegion.getWidth(), pTextureRegion.getHeight(), pTextureRegion, pVertexBufferObject, pShaderProgram);
}

public UniformColorSprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager) {
this(pX, pY, pWidth, pHeight, pTextureRegion, pVertexBufferObjectManager, DrawType.STATIC);
}

public UniformColorSprite(final float pX, final float pY, final float pWidth, final float pHeight, final ITextureRegion pTextureRegion, final VertexBufferObjectManager pVertexBufferObjectManager, final ShaderProgram pShaderProgram) {
this(pX, pY, pWidth, pHeight, pTextureRegion, pVertexBufferObjectManager, DrawType.STATIC, pShaderProgram);
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/andengine/input/touch/detector/ClickDetector.java
Expand Up @@ -105,7 +105,7 @@ public boolean onManagedTouchEvent(final TouchEvent pSceneTouchEvent) {
// ===========================================================
// Methods
// ===========================================================

private void prepareClick(final TouchEvent pSceneTouchEvent) {
this.mDownTimeMilliseconds = pSceneTouchEvent.getMotionEvent().getDownTime();
this.mPointerID = pSceneTouchEvent.getPointerID();
Expand Down
14 changes: 7 additions & 7 deletions src/org/andengine/input/touch/detector/ScrollDetector.java
Expand Up @@ -22,7 +22,7 @@ public class ScrollDetector extends BaseDetector {

private float mTriggerScrollMinimumDistance;
private final IScrollDetectorListener mScrollDetectorListener;

private int mPointerID = TouchEvent.INVALID_POINTER_ID;

private boolean mTriggering;
Expand Down Expand Up @@ -95,7 +95,7 @@ public boolean onManagedTouchEvent(final TouchEvent pSceneTouchEvent) {
} else {
this.triggerOnScroll(distanceX, distanceY);
}

this.mLastX = touchX;
this.mLastY = touchY;
this.mTriggering = true;
Expand Down Expand Up @@ -125,29 +125,29 @@ public boolean onManagedTouchEvent(final TouchEvent pSceneTouchEvent) {
// ===========================================================
// Methods
// ===========================================================

private void prepareScroll(final int pPointerID, final float pTouchX, final float pTouchY) {
this.mLastX = pTouchX;
this.mLastY = pTouchY;
this.mTriggering = false;
this.mPointerID = pPointerID;
}

private void triggerOnScrollStarted(final float pDistanceX, final float pDistanceY) {
if(this.mPointerID != TouchEvent.INVALID_POINTER_ID) {
this.mScrollDetectorListener.onScrollStarted(this, this.mPointerID, pDistanceX, pDistanceY);
}
}

private void triggerOnScroll(final float pDistanceX, final float pDistanceY) {
if(this.mPointerID != TouchEvent.INVALID_POINTER_ID) {
this.mScrollDetectorListener.onScroll(this, this.mPointerID, pDistanceX, pDistanceY);
}
}

private void triggerOnScrollFinished(final float pDistanceX, final float pDistanceY) {
this.mTriggering = false;

if(this.mPointerID != TouchEvent.INVALID_POINTER_ID) {
this.mScrollDetectorListener.onScrollFinished(this, this.mPointerID, pDistanceX, pDistanceY);
}
Expand Down
Expand Up @@ -23,7 +23,7 @@ public class SurfaceGestureDetectorAdapter extends SurfaceGestureDetector {

public SurfaceGestureDetectorAdapter(final Context pContext) {
super(pContext);
}
}

public SurfaceGestureDetectorAdapter(final Context pContext, final float pSwipeMinDistance) {
super(pContext, pSwipeMinDistance);
Expand Down
2 changes: 1 addition & 1 deletion src/org/andengine/opengl/font/BitmapFont.java
Expand Up @@ -449,7 +449,7 @@ private static boolean getBooleanAttribute(final String[] pData, final int pPosi

return Integer.parseInt(data.substring(attributeLength + 1)) != 0;
}

private static char getCharAttribute(final String[] pData, final int pPosition, final String pAttribute) {
return (char) BitmapFont.getIntAttribute(pData, pPosition, pAttribute);
}
Expand Down

0 comments on commit c4b3a23

Please sign in to comment.