| Modifier and Type | Field and Description |
|---|---|
| private BoundingBox | |
| private final Array | |
| protected float | |
| private boolean | |
| protected float | |
| protected float |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | dispose()
Implements com. Disposes the texture for each sprite for each ParticleEmitter. |
| public void | |
| public void | |
| public ParticleEmitter | |
| public void | |
| public BoundingBox | |
| public Array | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected Texture | |
| protected ParticleEmitter | |
| protected ParticleEmitter | |
| public void | |
| public void | |
| public void | reset(boolean
Whether to restore the original size and motion parameters if they were scaled. Repeated scaling and
resetting may introduce error. resetScaling)Resets the effect so it can be started again like a new effect. |
| public void | reset(boolean
Whether to restore the original size and motion parameters if they were scaled. Repeated scaling and
resetting may introduce error. resetScaling, boolean Whether to start the effect after resetting. start)Resets the effect so it can be started again like a new effect. |
| public void | |
| public void | scaleEffect(float scaleFactor)
Permanently scales all the size and motion parameters of all the emitters in this effect. |
| public void | scaleEffect(float scaleFactor, float motionScaleFactor)
Permanently scales all the size and motion parameters of all the emitters in this effect. |
| public void | scaleEffect(float xSizeScaleFactor, float ySizeScaleFactor, float motionScaleFactor)
Permanently scales all the size and motion parameters of all the emitters in this effect. |
| public void | |
| public void | setEmittersCleanUpBlendFunction(boolean cleanUpBlendFunction)
Sets the |
| public void | |
| public void | |
| public void | |
| public void |
| bounds | back to summary |
|---|---|
| private BoundingBox bounds | |
| emitters | back to summary |
|---|---|
| private final Array<ParticleEmitter> emitters | |
| motionScale | back to summary |
|---|---|
| protected float motionScale | |
| ownsTexture | back to summary |
|---|---|
| private boolean ownsTexture | |
| xSizeScale | back to summary |
|---|---|
| protected float xSizeScale | |
| ySizeScale | back to summary |
|---|---|
| protected float ySizeScale | |
| ParticleEffect | back to summary |
|---|---|
| public ParticleEffect() | |
| ParticleEffect | back to summary |
|---|---|
| public ParticleEffect(ParticleEffect effect) | |
| allowCompletion | back to summary |
|---|---|
| public void allowCompletion() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Disposes the texture for each sprite for each ParticleEmitter. | |
| draw | back to summary |
|---|---|
| public void draw(Batch spriteBatch) | |
| draw | back to summary |
|---|---|
| public void draw(Batch spriteBatch, float delta) | |
| findEmitter | back to summary |
|---|---|
| public ParticleEmitter findEmitter(String name) Returns the emitter with the specified name, or null. | |
| flipY | back to summary |
|---|---|
| public void flipY() | |
| getBoundingBox | back to summary |
|---|---|
| public BoundingBox getBoundingBox() Returns the bounding box for all active particles. z axis will always be zero. | |
| getEmitters | back to summary |
|---|---|
| public Array | |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() | |
| load | back to summary |
|---|---|
| public void load(FileHandle effectFile, FileHandle imagesDir) | |
| load | back to summary |
|---|---|
| public void load(FileHandle effectFile, TextureAtlas atlas) | |
| load | back to summary |
|---|---|
| public void load(FileHandle effectFile, TextureAtlas atlas, String atlasPrefix) | |
| loadEmitterImages | back to summary |
|---|---|
| public void loadEmitterImages(TextureAtlas atlas) | |
| loadEmitterImages | back to summary |
|---|---|
| public void loadEmitterImages(TextureAtlas atlas, String atlasPrefix) | |
| loadEmitterImages | back to summary |
|---|---|
| public void loadEmitterImages(FileHandle imagesDir) | |
| loadEmitters | back to summary |
|---|---|
| public void loadEmitters(FileHandle effectFile) | |
| loadTexture | back to summary |
|---|---|
| protected Texture loadTexture(FileHandle file) | |
| newEmitter | back to summary |
|---|---|
| protected ParticleEmitter newEmitter(BufferedReader reader) throws IOException | |
| newEmitter | back to summary |
|---|---|
| protected ParticleEmitter newEmitter(ParticleEmitter emitter) | |
| preAllocateParticles | back to summary |
|---|---|
| public void preAllocateParticles() Allocates all emitters particles. See | |
| reset | back to summary |
|---|---|
| public void reset() Resets the effect so it can be started again like a new effect. Any changes to scale are reverted. See
| |
| reset | back to summary |
|---|---|
| public void reset(boolean resetScaling) Resets the effect so it can be started again like a new effect.
| |
| reset | back to summary |
|---|---|
| public void reset(boolean resetScaling, boolean start) Resets the effect so it can be started again like a new effect.
| |
| save | back to summary |
|---|---|
| public void save(Writer output) throws IOException | |
| scaleEffect | back to summary |
|---|---|
| public void scaleEffect(float scaleFactor) Permanently scales all the size and motion parameters of all the emitters in this effect. If this effect originated from a
| |
| scaleEffect | back to summary |
|---|---|
| public void scaleEffect(float scaleFactor, float motionScaleFactor) Permanently scales all the size and motion parameters of all the emitters in this effect. If this effect originated from a
| |
| scaleEffect | back to summary |
|---|---|
| public void scaleEffect(float xSizeScaleFactor, float ySizeScaleFactor, float motionScaleFactor) Permanently scales all the size and motion parameters of all the emitters in this effect. If this effect originated from a
| |
| setDuration | back to summary |
|---|---|
| public void setDuration(int duration) | |
| setEmittersCleanUpBlendFunction | back to summary |
|---|---|
| public void setEmittersCleanUpBlendFunction(boolean cleanUpBlendFunction) Sets the Important Note If set to false and if the next object to use this Batch expects alpha blending, you are responsible for setting the Batch's blend function to (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) before that next object is drawn. | |
| setFlip | back to summary |
|---|---|
| public void setFlip(boolean flipX, boolean flipY) | |
| setPosition | back to summary |
|---|---|
| public void setPosition(float x, float y) | |
| start | back to summary |
|---|---|
| public void start() | |
| update | back to summary |
|---|---|
| public void update(float delta) | |