Enum Class StaticShadowType

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

public enum StaticShadowType extends Enum<StaticShadowType>
Enumerates the offset directions used when rendering a static (baked) shadow. Each value describes the offset of the shadow shape relative to the source map object.
  • Enum Constant Details

    • DOWN

      public static final StaticShadowType DOWN
      Shadow offset downward.
    • DOWNLEFT

      public static final StaticShadowType DOWNLEFT
      Shadow offset down and to the left.
    • DOWNRIGHT

      public static final StaticShadowType DOWNRIGHT
      Shadow offset down and to the right.
    • LEFT

      public static final StaticShadowType LEFT
      Shadow offset to the left.
    • LEFTDOWN

      public static final StaticShadowType LEFTDOWN
      Shadow offset to the left and downward.
    • LEFTRIGHT

      public static final StaticShadowType LEFTRIGHT
      Shadow offset to the left and the right.
    • NONE

      public static final StaticShadowType NONE
      No shadow is rendered.
    • NOOFFSET

      public static final StaticShadowType NOOFFSET
      Shadow is rendered without any offset.
    • RIGHTDOWN

      public static final StaticShadowType RIGHTDOWN
      Shadow offset to the right and downward.
    • RIGHTLEFT

      public static final StaticShadowType RIGHTLEFT
      Shadow offset to the right and the left.
  • Method Details

    • values

      public static StaticShadowType[] 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 StaticShadowType 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
    • get

      public static StaticShadowType get(String mapObjectType)
      Returns the enum value matching the supplied name, or NOOFFSET if the name is blank or does not match any known value.
      Parameters:
      mapObjectType - the type name
      Returns:
      the matching enum value, or NOOFFSET