Class ParticlesCanvas

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.prineside.tdi2.ui.actors.ParticlesCanvas

public class ParticlesCanvas extends com.badlogic.gdx.scenes.scene2d.Actor
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, float x, float y)
     
    addParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, float x, float y, boolean foreground)
     
    void
     
    void
    draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
    Draws the actor.
    void
    removeParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect)
     

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

    act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, 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, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • scissors

      public boolean scissors
  • Constructor Details

    • ParticlesCanvas

      public ParticlesCanvas()
  • Method Details

    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
      Description copied from class: com.badlogic.gdx.scenes.scene2d.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. If Batch.end() is called to draw without the batch then Batch.begin() must be called before the method returns.

      The default implementation does nothing.

      Overrides:
      draw in class com.badlogic.gdx.scenes.scene2d.Actor
      parentAlpha - The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
    • addParticle

      public ParticlesCanvas.ParticleConfig addParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, float x, float y)
    • addParticle

      public ParticlesCanvas.ParticleConfig addParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, float x, float y, boolean foreground)
    • removeParticle

      public void removeParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect)
    • clearParticles

      public void clearParticles()