Class ParticlesCanvas

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

public class ParticlesCanvas extends Actor
  • Field Details

    • scissors

      public boolean scissors
  • Constructor Details

    • ParticlesCanvas

      public ParticlesCanvas()
  • Method Details

    • draw

      public void draw(Batch batch, float parentAlpha)
      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. 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 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(ParticleEffect particleEffect, float x, float y)
    • addParticleForeground

      public ParticlesCanvas.ParticleConfig addParticleForeground(ParticleEffect particleEffect, float x, float y, boolean foreground)
    • removeParticle

      public void removeParticle(ParticleEffect particleEffect)
    • clearParticles

      public void clearParticles()