Interface ITerrain
- All Known Implementing Classes:
WangColor
public interface ITerrain
Interface representing a terrain with specific characteristics. Implementations of this interface define methods
to retrieve the name, color, and probability associated with the terrain, which may be used
for automatic mapping purposes.
-
Method Details
-
getName
String getName()Gets the name of the terrain.- Returns:
- A
Stringrepresenting the name of the terrain.
-
getColor
Color getColor()Gets the color associated with the terrain.- Returns:
- A
Colorobject representing the color of the terrain.
-
getProbability
double getProbability()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.
- Returns:
- A
doublerepresenting the probability value of the terrain.
-