本文整理汇总了Java中org.andengine.entity.particle.Particle类的典型用法代码示例。如果您正苦于以下问题:Java Particle类的具体用法?Java Particle怎么用?Java Particle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Particle类属于org.andengine.entity.particle包,在下文中一共展示了Particle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onUpdateParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
public void onUpdateParticle(final Particle<T> pParticle) {
final float lifeTime = pParticle.getLifeTime();
if (lifeTime > this.mFromTime && lifeTime < this.mToTime) {
final float percentageDone = this.mEaseFunction.getPercentage((lifeTime - this.mFromTime), this.mDuration);
this.onSetValue(pParticle, percentageDone, this.mFromValue + percentageDone * this.mValueSpan);
}
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:9,代码来源:BaseSingleValueSpanParticleModifier.java
示例2: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onInitializeParticle(final Particle<T> pParticle, final float pScale) {
pParticle.getEntity().setScale(pScale);
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:5,代码来源:ScaleParticleInitializer.java
示例3: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
public void onInitializeParticle(final Particle<T> pParticle, final float pVelocityX, final float pVelocityY) {
pParticle.getPhysicsHandler().setVelocity(pVelocityX, pVelocityY);
}
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:5,代码来源:VelocityParticleInitializer.java
示例4: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
public void onInitializeParticle(final Particle<T> pParticle) {
this.onSetInitialValue(pParticle, this.mFromValue);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:BaseSingleValueSpanParticleModifier.java
示例5: onSetInitialValues
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
public void onSetInitialValues(final Particle<T> pParticle, final float pValueA, final float pValueB) {
this.onSetInitialValues(pParticle, pValueA, pValueB, this.mFromValueC);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:BaseTripleValueSpanParticleModifier.java
示例6: onSetValues
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetValues(final Particle<T> pParticle, final float pPercentageDone, final float pValueA, final float pValueB) {
this.onSetValues(pParticle, pPercentageDone, pValueA, pValueB, this.mFromValueC + pPercentageDone * this.mValueSpanC);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:BaseTripleValueSpanParticleModifier.java
示例7: onSetValues
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetValues(final Particle<T> pParticle, final float pPercentageDone, final float pScaleX, final float pScaleY) {
pParticle.getEntity().setScale(pScaleX, pScaleY);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:ScaleParticleModifier.java
示例8: onSetInitialValue
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetInitialValue(final Particle<T> pParticle, final float pRotation) {
pParticle.getEntity().setRotation(pRotation);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:RotationParticleModifier.java
示例9: onSetValue
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetValue(final Particle<T> pParticle, final float pPercentageDone, final float pRotation) {
pParticle.getEntity().setRotation(pRotation);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:RotationParticleModifier.java
示例10: onSetInitialValues
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetInitialValues(final Particle<T> pParticle, final float pRed, final float pGreen, final float pBlue) {
pParticle.getEntity().setColor(pRed, pGreen, pBlue);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:ColorParticleModifier.java
示例11: onSetValues
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetValues(final Particle<T> pParticle, final float pPercentageDone, final float pRed, final float pGreen, final float pBlue) {
pParticle.getEntity().setColor(pRed, pGreen, pBlue);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:ColorParticleModifier.java
示例12: onSetInitialValue
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetInitialValue(final Particle<T> pParticle, final float pAlpha) {
pParticle.getEntity().setAlpha(pAlpha);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:AlphaParticleModifier.java
示例13: onSetValue
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetValue(final Particle<T> pParticle, final float pPercentageDone, final float pAlpha) {
pParticle.getEntity().setAlpha(pAlpha);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:AlphaParticleModifier.java
示例14: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected final void onInitializeParticle(final Particle<T> pParticle, final float pValueA) {
this.onInitializeParticle(pParticle, pValueA, this.getRandomValueB());
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:5,代码来源:BaseDoubleValueParticleInitializer.java
示例15: onSetValue
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onSetValue(final Particle<T> pParticle, final float pPercentageDone, final float pValueA) {
this.onSetValues(pParticle, pPercentageDone, pValueA, this.mFromValueB + pPercentageDone * this.mValueSpanB);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:BaseDoubleValueSpanParticleModifier.java
示例16: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
public final void onInitializeParticle(final Particle<T> pParticle) {
this.onInitializeParticle(pParticle, this.getRandomValue());
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:5,代码来源:BaseSingleValueParticleInitializer.java
示例17: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
public void onInitializeParticle(final Particle<T> pParticle) {
pParticle.getEntity().setBlendFunction(this.mBlendFunctionSource, this.mBlendFunctionDestination);
}
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:5,代码来源:BlendFunctionParticleInitializer.java
示例18: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected final void onInitializeParticle(final Particle<T> pParticle, final float pValueA, final float pValueB) {
this.onInitializeParticle(pParticle, pValueA, pValueB, this.getRandomValueC());
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:BaseTripleValueParticleInitializer.java
示例19: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
public void onInitializeParticle(final Particle<T> pParticle, final float pAccelerationX, final float pAccelerationY) {
pParticle.getPhysicsHandler().accelerate(pAccelerationX, pAccelerationY);
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:5,代码来源:AccelerationParticleInitializer.java
示例20: onInitializeParticle
import org.andengine.entity.particle.Particle; //导入依赖的package包/类
@Override
protected void onInitializeParticle(final Particle<T> pParticle, final float pRed, final float pGreen, final float pBlue) {
pParticle.getEntity().setColor(pRed, pGreen, pBlue);
}
开发者ID:mediamonks,项目名称:tilt-game-android,代码行数:5,代码来源:ColorParticleInitializer.java
注:本文中的org.andengine.entity.particle.Particle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论