Documentation

Terrain implements PropertyBagHolder Uses PropertyBagTrait

Represents terrains.

Tags
see
https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#terrain

Documentation

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

Methods

getName()

public getName() : string|null
Return values
string|null

getTile()

public getTile() : int|null
Return values
int|null

setName()

public setName(string|null $name) : Terrain
Parameters
$name : string|null
Return values
Terrain

Search results