Terrain implements PropertyBagHolder Uses PropertyBagTrait
Represents terrains.
Tags
Interfaces, Classes and Traits
- PropertyBagHolder
- Interface for all elements, which contains properties.
Table of Contents
- $name : string|null
- The name of the terrain type.
- $propertyBag : PropertyBag|null
- $tile : int|null
- The local tile-id of the tile that represents the terrain visually.
- getName() : string|null
- getPropertyBag() : PropertyBag|null
- getTile() : int|null
- setName() : Terrain
- setPropertyBag() : self
- setTile() : Terrain
Properties
$name
The name of the terrain type.
private
string|null
$name
= null
Tags
$propertyBag
private
PropertyBag|null
$propertyBag
= null
Tags
$tile
The local tile-id of the tile that represents the terrain visually.
private
int|null
$tile
= null
Tags
Methods
getName()
public
getName() : string|null
Return values
string|null —getPropertyBag()
public
getPropertyBag() : PropertyBag|null
Return values
PropertyBag|null —getTile()
public
getTile() : int|null
Return values
int|null —setName()
public
setName(string|null $name) : Terrain
Parameters
- $name : string|null
Return values
Terrain —setPropertyBag()
public
setPropertyBag(PropertyBag|null $propertyBag) : self
Parameters
- $propertyBag : PropertyBag|null
Return values
self —setTile()
public
setTile(int|null $tile) : Terrain
Parameters
- $tile : int|null