/** * If a particle systems renderMode is changed, so are all the particles contained in the particle * system. To change a single particle, change that particles rendermode * * <p>This will overwrite an individual particle's rendermode. It will not be able to revert back * to its original renderMode automatically, you will be responsible for resetting any particle to * a different render mode as you see fit. */ public void setRenderMode(E3DRenderMode renderMode) { super.setRenderMode(renderMode); E3DParticle particle; for (int i = 0; i < particleList.size(); i++) { particle = (E3DParticle) particleList.get(i); particle.setRenderMode(new E3DRenderMode(renderMode)); } }
public void setBlendMode(E3DBlendMode blendMode) { super.setBlendMode(blendMode); E3DParticle particle; for (int i = 0; i < particleList.size(); i++) { particle = (E3DParticle) particleList.get(i); particle.setBlendMode(new E3DBlendMode(blendMode)); } }
/** * Override setSector to automatically set the sector the particles are in as well as the system. * This is done automatically when adding it to a sector so normally should be modified. * * @param sector */ public void setSector(E3DSector sector) { super.setSector(sector); if (particleList != null) { for (int i = 0; i < particleList.size(); i++) // update all particles to have this sector... Particles could also point to the // parent for the getter?? ((E3DParticle) particleList.get(i)).setSector(sector); } }