Package com.prineside.tdi2.ui.actors
Class ParticlesCanvas
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.ui.actors.ParticlesCanvas
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParticle
(ParticleEffect particleEffect, float x, float y) addParticleForeground
(ParticleEffect particleEffect, float x, float y, boolean foreground) void
void
Draws the actor.void
removeParticle
(ParticleEffect particleEffect) Methods inherited from class com.prineside.tdi2.scene2d.Actor
act, 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
-
Field Details
-
scissors
public boolean scissors
-
-
Constructor Details
-
ParticlesCanvas
public ParticlesCanvas()
-
-
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.
-
addParticle
-
addParticleForeground
public ParticlesCanvas.ParticleConfig addParticleForeground(ParticleEffect particleEffect, float x, float y, boolean foreground) -
removeParticle
-
clearParticles
public void clearParticles()
-