org.andengine.entity.IEntityFactory Java Examples
The following examples show how to use
org.andengine.entity.IEntityFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ParticleSystem.java From tilt-game-android with MIT License | 5 votes |
@SuppressWarnings("unchecked") public ParticleSystem(final float pX, final float pY, final IEntityFactory<T> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { super(pX, pY); this.mEntityFactory = pEntityFactory; this.mParticleEmitter = pParticleEmitter; this.mParticles = (Particle<T>[]) new Particle[pParticlesMaximum]; this.mRateMinimum = pRateMinimum; this.mRateMaximum = pRateMaximum; this.mParticlesMaximum = pParticlesMaximum; this.registerUpdateHandler(this.mParticleEmitter); }
Example #2
Source File: ParticleSystem.java From 30-android-libraries-in-30-days with Apache License 2.0 | 5 votes |
@SuppressWarnings("unchecked") public ParticleSystem(final float pX, final float pY, final IEntityFactory<T> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { super(pX, pY); this.mEntityFactory = pEntityFactory; this.mParticleEmitter = pParticleEmitter; this.mParticles = new Particle[pParticlesMaximum]; this.mRateMinimum = pRateMinimum; this.mRateMaximum = pRateMaximum; this.mParticlesMaximum = pParticlesMaximum; this.registerUpdateHandler(this.mParticleEmitter); }
Example #3
Source File: ConfettiParticleSystem.java From sopa with Apache License 2.0 | 5 votes |
private static IEntityFactory<Rectangle> createEntityFactory(final VertexBufferObjectManager vbom) { return new IEntityFactory<Rectangle>() { @Override public Rectangle create(final float pX, final float pY) { Rectangle rectangle = new Rectangle(pX, pY, 30, 15, vbom); rectangle.setColor(COLOR_MAP[getRandomBetweenZeroAndThree()]); rectangle.registerEntityModifier(new RotationModifier(7f, (float) Math.random() * 360, (7 - (float) Math.random() * 15) * 360)); rectangle.registerEntityModifier(new AlphaModifier(4f, 0.7f, 0f)); return rectangle; }}; }
Example #4
Source File: BlendFunctionParticleSystem.java From tilt-game-android with MIT License | 4 votes |
public BlendFunctionParticleSystem(final IEntityFactory<T> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { super(pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #5
Source File: BlendFunctionParticleSystem.java From tilt-game-android with MIT License | 4 votes |
public BlendFunctionParticleSystem(final float pX, final float pY, final IEntityFactory<T> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { super(pX, pY, pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #6
Source File: SpriteParticleSystem.java From tilt-game-android with MIT License | 4 votes |
protected SpriteParticleSystem(final float pX, final float pY, final IEntityFactory<Sprite> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { super(pX, pY, pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #7
Source File: ParticleSystem.java From tilt-game-android with MIT License | 4 votes |
public ParticleSystem(final IEntityFactory<T> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { this(0, 0, pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #8
Source File: ParticleSystem.java From tilt-game-android with MIT License | 4 votes |
public IEntityFactory<T> getParticleFactory() { return this.mEntityFactory; }
Example #9
Source File: BlendFunctionParticleSystem.java From 30-android-libraries-in-30-days with Apache License 2.0 | 4 votes |
public BlendFunctionParticleSystem(IEntityFactory<T> pEntityFactory, IParticleEmitter pParticleEmitter, float pRateMinimum, float pRateMaximum, int pParticlesMaximum) { super(pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #10
Source File: BlendFunctionParticleSystem.java From 30-android-libraries-in-30-days with Apache License 2.0 | 4 votes |
public BlendFunctionParticleSystem(float pX, float pY, IEntityFactory<T> pEntityFactory, IParticleEmitter pParticleEmitter, float pRateMinimum, float pRateMaximum, int pParticlesMaximum) { super(pX, pY, pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #11
Source File: SpriteParticleSystem.java From 30-android-libraries-in-30-days with Apache License 2.0 | 4 votes |
protected SpriteParticleSystem(final float pX, final float pY, final IEntityFactory<Sprite> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { super(pX, pY, pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #12
Source File: ParticleSystem.java From 30-android-libraries-in-30-days with Apache License 2.0 | 4 votes |
public ParticleSystem(final IEntityFactory<T> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) { this(0, 0, pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum); }
Example #13
Source File: ParticleSystem.java From 30-android-libraries-in-30-days with Apache License 2.0 | 4 votes |
public IEntityFactory<T> getParticleFactory() { return this.mEntityFactory; }