public class TiledWangColor extends 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 |
---|---|
Color |
getColor()
Returns this color's value; that is, the actual color.
|
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 String getName()
public final Color getColor()
public final TiledTile getTile()
public final float getProbability()
Copyright © 2020. All rights reserved.