WangColor
Abstract class which are used by wangCornerColor and wangEdgeColor.
Tags
Table of Contents
- $color : string|null
- The color in #RRGGBB format.
- $name : string|null
- The name of this color.
- $probability : float
- The relative probability that this color is chosen over others in case of multiple options.
- $tileId : int|null
- The tile ID of the tile representing this color.
- getColor() : string|null
- getName() : string|null
- getProbability() : float
- getTileId() : int|null
- setColor() : WangColor
- setName() : WangColor
- setProbability() : WangColor
- setTileId() : WangColor
Properties
$color
The color in #RRGGBB format.
private
string|null
$color
= null
Tags
$name
The name of this color.
private
string|null
$name
= null
Tags
$probability
The relative probability that this color is chosen over others in case of multiple options.
private
float
$probability
= 1.0
Tags
$tileId
The tile ID of the tile representing this color.
private
int|null
$tileId
= null
Tags
Methods
getColor()
public
getColor() : string|null
Return values
string|null —getName()
public
getName() : string|null
Return values
string|null —getProbability()
public
getProbability() : float
Return values
float —getTileId()
public
getTileId() : int|null
Return values
int|null —setColor()
public
setColor(string|null $color) : WangColor
Parameters
- $color : string|null
Return values
WangColor —setName()
public
setName(string|null $name) : WangColor
Parameters
- $name : string|null
Return values
WangColor —setProbability()
public
setProbability(float $probability) : WangColor
Parameters
- $probability : float
Return values
WangColor —setTileId()
public
setTileId(int|null $tileId) : WangColor
Parameters
- $tileId : int|null