Class WangColor

java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.WangColor
All Implemented Interfaces:
ITerrain

public class WangColor extends Object implements ITerrain
  • Constructor Details

    • WangColor

      public WangColor()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: ITerrain
      Gets the name of the terrain.
      Specified by:
      getName in interface ITerrain
      Returns:
      A String representing the name of the terrain.
    • getColor

      public Color getColor()
      Description copied from interface: ITerrain
      Gets the color associated with the terrain.
      Specified by:
      getColor in interface ITerrain
      Returns:
      A Color object representing the color of the terrain.
    • getProbability

      public double getProbability()
      Description copied from interface: ITerrain
      Gets the probability value associated with the terrain.

      The probability value is used in automatic mapping processes to indicate the likelihood or preference of using this terrain in specific contexts. Higher probability values may suggest a higher preference for automatic mapping.

      Specified by:
      getProbability in interface ITerrain
      Returns:
      A double representing the probability value of the terrain.