Package com.prineside.tdi2.scene2d.ui
Class ParticleEffectActor
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.scene2d.ui.ParticleEffectActor
- All Implemented Interfaces:
Disposable
ParticleEffectActor holds an
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.-
Constructor Summary
ConstructorsConstructorDescriptionParticleEffectActor
(FileHandle particleFile, FileHandle imagesDir) ParticleEffectActor
(FileHandle particleFile, TextureAtlas atlas) ParticleEffectActor
(ParticleEffect particleEffect, boolean resetOnStart) -
Method Summary
Modifier and TypeMethodDescriptionvoid
act
(float delta) Updates the actor based on time.void
void
cancel()
void
dispose()
Releases all resources of this object.void
Draws the actor.boolean
boolean
boolean
setAutoRemove
(boolean autoRemove) setResetOnStart
(boolean resetOnStart) void
start()
Methods inherited from class com.prineside.tdi2.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString
-
Constructor Details
-
ParticleEffectActor
-
ParticleEffectActor
-
ParticleEffectActor
-
-
Method Details
-
draw
Description copied from class:Actor
Draws the actor. The batch is configured to draw in the parent's coordinate system.This draw method
is convenient to draw a rotated and scaled TextureRegion.Batch.begin()
has already been called on the batch. IfBatch.end()
is called to draw without the batch thenBatch.begin()
must be called before the method returns.The default implementation does nothing.
-
act
public void act(float delta) Description copied from class:Actor
Updates the actor based on time. Typically this is called each frame byStage.act(float)
.The default implementation calls
Action.act(float)
on each action and removes actions that are complete. -
start
public void start() -
isResetOnStart
public boolean isResetOnStart() -
setResetOnStart
-
isAutoRemove
public boolean isAutoRemove() -
setAutoRemove
-
isRunning
public boolean isRunning() -
getEffect
-
cancel
public void cancel() -
allowCompletion
public void allowCompletion() -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
-