Enum AssetDef.Kind

java.lang.Object
java.lang.Enum<AssetDef.Kind>
com.codename1.gaming.level.AssetDef.Kind
All Implemented Interfaces:
Comparable<AssetDef.Kind>
Enclosing class:
AssetDef

public static enum AssetDef.Kind extends Enum<AssetDef.Kind>
How an asset is placed: painted into a grid cell, or freely positioned.
  • Enum Constant Details

    • TILE

      public static final AssetDef.Kind TILE
      Painted into a grid cell of a Layer.Kind#TILE layer.
    • ACTOR

      public static final AssetDef.Kind ACTOR
      A freely placed entity / model.
  • Method Details

    • values

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

      public static AssetDef.Kind valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • wireName

      public String wireName()
      The lowercase JSON token for this kind ("tile" / "actor").
    • fromWire

      public static AssetDef.Kind fromWire(String name)
      The kind for a JSON token (case-insensitive); defaults to #ACTOR.