Enum Class ParticleType

java.lang.Object
java.lang.Enum<ParticleType>
de.gurkenlabs.litiengine.graphics.emitters.particles.ParticleType
All Implemented Interfaces:
Serializable, Comparable<ParticleType>, Constable

public enum ParticleType extends Enum<ParticleType>
Enumerates the shape/render types supported by the engine's built-in Particle implementations.
  • Enum Constant Details

    • RECTANGLE

      public static final ParticleType RECTANGLE
      Rectangular particle.
    • ELLIPSE

      public static final ParticleType ELLIPSE
      Elliptic particle.
    • TRIANGLE

      public static final ParticleType TRIANGLE
      Triangular particle.
    • DIAMOND

      public static final ParticleType DIAMOND
      Diamond-shaped particle.
    • LINE

      public static final ParticleType LINE
      Line particle.
    • TEXT

      public static final ParticleType TEXT
      Text particle.
    • SPRITE

      public static final ParticleType SPRITE
      Sprite-based particle.
  • Method Details

    • values

      public static ParticleType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ParticleType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null