public class TiledWangColor
extends java.lang.Object
A TiledWangColor represents a color that can be used to define the corner or edge of a Wang tile. It corresponds to a <wangcornercolor> or <wangedgecolor> tag in a Tiled XML file.
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Returns this color's value; that is, the actual color.
|
java.lang.String |
getName()
Returns this color's name.
|
float |
getProbability()
Returns the relative probability that this color is chosen over others in
case of multiple options.
|
TiledTile |
getTile()
Returns the tile from this color's tileset that represents this color, or
null if none was specified.
|
public final java.lang.String getName()
public final java.awt.Color getColor()
public final TiledTile getTile()
public final float getProbability()