java.lang.Object
de.gurkenlabs.litiengine.graphics.emitters.particles.Particle
de.gurkenlabs.litiengine.graphics.emitters.particles.SpriteParticle
All Implemented Interfaces:
ITimeToLive

public class SpriteParticle
extends Particle
  • Constructor Details

  • Method Details

    • render

      public void render​(java.awt.Graphics2D g, java.awt.geom.Point2D emitterOrigin)
      Specified by:
      render in class Particle
    • update

      public void update​(java.awt.geom.Point2D emitterOrigin, float updateRatio)
      Description copied from class: Particle
      Updates the effect's position, change in xCurrent, change in yCurrent, remaining lifetime, and color.
      Overrides:
      update in class Particle
      Parameters:
      emitterOrigin - The current Emitter origin
      updateRatio - The update ratio for this particle.
    • getBoundingBox

      public java.awt.geom.Rectangle2D getBoundingBox​(java.awt.geom.Point2D origin)
      Description copied from class: Particle
      Gets the current bounding box of the particle, depending on its spawn location.
      Overrides:
      getBoundingBox in class Particle
      Parameters:
      origin - the spawn location of this particle
      Returns:
      The Rectangular particle bounding box.
    • isAnimatingSprite

      public boolean isAnimatingSprite()
    • setAnimateSprite

      public void setAnimateSprite​(boolean animateSprite)
    • isLoopingSprite

      public boolean isLoopingSprite()
    • setLoopSprite

      public void setLoopSprite​(boolean loopSprite)