本文整理汇总了Java中org.andengine.entity.IEntityFactory类的典型用法代码示例。如果您正苦于以下问题:Java IEntityFactory类的具体用法?Java IEntityFactory怎么用?Java IEntityFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IEntityFactory类属于org.andengine.entity包,在下文中一共展示了IEntityFactory类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ParticleSystem
import org.andengine.entity.IEntityFactory; //导入依赖的package包/类
@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);
}
示例2: ParticleSystem
import org.andengine.entity.IEntityFactory; //导入依赖的package包/类
@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);
}
示例3: createEntityFactory
import org.andengine.entity.IEntityFactory; //导入依赖的package包/类
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;
}};
}
示例4: BlendFunctionParticleSystem
import org.andengine.entity.IEntityFactory; //导入依赖的package包/类
public BlendFunctionParticleSystem(final IEntityFactory<T> pEntityFactory, final IParticleEmitter pParticleEmitter, final float pRateMinimum, final float pRateMaximum, final int pParticlesMaximum) {
super(pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum);
}
示例5: SpriteParticleSystem
import org.andengine.entity.IEntityFactory; //导入依赖的package包/类
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);
}
示例6: getParticleFactory
import org.andengine.entity.IEntityFactory; //导入依赖的package包/类
public IEntityFactory<T> getParticleFactory() {
return this.mEntityFactory;
}
示例7: BlendFunctionParticleSystem
import org.andengine.entity.IEntityFactory; //导入依赖的package包/类
public BlendFunctionParticleSystem(IEntityFactory<T> pEntityFactory, IParticleEmitter pParticleEmitter, float pRateMinimum, float pRateMaximum, int pParticlesMaximum) {
super(pEntityFactory, pParticleEmitter, pRateMinimum, pRateMaximum, pParticlesMaximum);
}