本文整理汇总了Java中org.newdawn.slick.particles.ParticleSystem.setRemoveCompletedEmitters方法的典型用法代码示例。如果您正苦于以下问题:Java ParticleSystem.setRemoveCompletedEmitters方法的具体用法?Java ParticleSystem.setRemoveCompletedEmitters怎么用?Java ParticleSystem.setRemoveCompletedEmitters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.newdawn.slick.particles.ParticleSystem
的用法示例。
在下文中一共展示了ParticleSystem.setRemoveCompletedEmitters方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clearSystem
import org.newdawn.slick.particles.ParticleSystem; //导入方法依赖的package包/类
/**
* Clear the particle system held in this canvas
*
* @param additive
* True if the particle system should be set to additive
*/
public void clearSystem(boolean additive) {
system = new ParticleSystem("org/newdawn/slick/data/particle.tga", 2000);
if (additive) {
system.setBlendingMode(ParticleSystem.BLEND_ADDITIVE);
}
system.setRemoveCompletedEmitters(false);
}
示例2: setSystem
import org.newdawn.slick.particles.ParticleSystem; //导入方法依赖的package包/类
/**
* Set the particle system to be displayed
*
* @param system
* The system to be displayed
*/
public void setSystem(ParticleSystem system) {
this.system = system;
emitters.clear();
system.setRemoveCompletedEmitters(false);
for (int i = 0; i < system.getEmitterCount(); i++) {
emitters.add(system.getEmitter(i));
}
}
示例3: init
import org.newdawn.slick.particles.ParticleSystem; //导入方法依赖的package包/类
public void init(GameContainer container) throws SlickException {
container.getInput().addListener(listener);
container.setShowFPS(false);
system = new ParticleSystem("org/newdawn/slick/data/particle.tga", 2000);
system.setBlendingMode(ParticleSystem.BLEND_ADDITIVE);
system.setRemoveCompletedEmitters(false);
for (int i = 0; i < waiting.size(); i++) {
system.addEmitter((ParticleEmitter) waiting.get(i));
}
waiting.clear();
}