ParticleEffect to use in Scene2d applications. The particle effect is positioned at 0, 0
in the ParticleEffectActor. Its bounding box is not limited to the size of this actor.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| protected boolean | |
| protected float | |
| protected boolean | |
| private final ParticleEffect | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | act(float delta)
Overrides com. Updates the actor based on time. |
| public void | |
| public void | |
| public void | dispose()
Implements com. Releases all resources of this object. |
| public void | draw(Batch batch, float parentAlpha)
Overrides com. Draws the actor. |
| public ParticleEffect | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected void | scaleChanged()
Overrides com. Called when the actor's scale has been changed. |
| public ParticleEffectActor | |
| public ParticleEffectActor | |
| public void |
| autoRemove | back to summary |
|---|---|
| private boolean autoRemove | |
| isRunning | back to summary |
|---|---|
| protected boolean isRunning | |
| lastDelta | back to summary |
|---|---|
| protected float lastDelta | |
| ownsEffect | back to summary |
|---|---|
| protected boolean ownsEffect | |
| particleEffect | back to summary |
|---|---|
| private final ParticleEffect particleEffect | |
| resetOnStart | back to summary |
|---|---|
| private boolean resetOnStart | |
| ParticleEffectActor | back to summary |
|---|---|
| public ParticleEffectActor(ParticleEffect particleEffect, boolean resetOnStart) | |
| ParticleEffectActor | back to summary |
|---|---|
| public ParticleEffectActor(FileHandle particleFile, TextureAtlas atlas) | |
| ParticleEffectActor | back to summary |
|---|---|
| public ParticleEffectActor(FileHandle particleFile, FileHandle imagesDir) | |
| act | back to summary |
|---|---|
| public void act(float delta) Overrides com. Doc from com. Updates the actor based on time. Typically this is called each frame by
The default implementation calls
| |
| allowCompletion | back to summary |
|---|---|
| public void allowCompletion() | |
| cancel | back to summary |
|---|---|
| public void cancel() | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Releases all resources of this object.
| |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float parentAlpha) Overrides com. Doc from com. Draws the actor. The batch is configured to draw in the parent's coordinate system.
The default implementation does nothing.
| |
| getEffect | back to summary |
|---|---|
| public ParticleEffect getEffect() | |
| isAutoRemove | back to summary |
|---|---|
| public boolean isAutoRemove() | |
| isResetOnStart | back to summary |
|---|---|
| public boolean isResetOnStart() | |
| isRunning | back to summary |
|---|---|
| public boolean isRunning() | |
| scaleChanged | back to summary |
|---|---|
| protected void scaleChanged() Overrides com. Doc from com. Called when the actor's scale has been changed.
| |
| setAutoRemove | back to summary |
|---|---|
| public ParticleEffectActor setAutoRemove(boolean autoRemove) | |
| setResetOnStart | back to summary |
|---|---|
| public ParticleEffectActor setResetOnStart(boolean resetOnStart) | |
| start | back to summary |
|---|---|
| public void start() | |