TileSet implements PropertyBagHolder Uses PropertyBagTrait
Represents the tileOffset object.
Tags
Interfaces, Classes and Traits
- PropertyBagHolder
- Interface for all elements, which contains properties.
Table of Contents
- $columns : int|null
- The number of tile columns in the tileset.
- $firstGid : int|null
- The first global tile ID of this tileset (this global ID maps to the first tile in this tileset).
- $image : Image|null
- $margin : int|null
- The margin around the tiles in this tileset.
- $name : string|null
- The name of this tileset.
- $objectAlignment : string|null
- Controls the alignment for tile objects.
- $propertyBag : PropertyBag|null
- $source : string|null
- If this tileset is stored in an external TSX (Tile Set XML) file, this attribute refers to that file.
- $spacing : int|null
- The spacing in pixels between the tiles in this tileset.
- $terrainCollection : TerrainCollection|null
- $tileCount : int|null
- The number of tiles in this tileset.
- $tileHeight : int|null
- The (maximum) height of the tiles in this tileset.
- $tileOffset : TileOffset|null
- $tiles : array<string|int, mixed>
- $tileWidth : int|null
- The (maximum) width of the tiles in this tileset.
- $wangCollection : WangCollection|null
- addTile() : self
- getColumns() : int|null
- getFirstGid() : int|null
- getImage() : Image|null
- getMargin() : int|null
- getName() : string|null
- getObjectAlignment() : string|null
- getPropertyBag() : PropertyBag|null
- getSource() : string|null
- getSpacing() : int|null
- getTerrainCollection() : TerrainCollection|null
- getTileCount() : int|null
- getTileHeight() : int|null
- getTileOffset() : TileOffset|null
- getTiles() : array<string|int, Tile>
- getTileWidth() : int|null
- getWangCollection() : WangCollection|null
- removeTile() : self
- setColumns() : TileSet
- setFirstGid() : TileSet
- setImage() : TileSet
- setMargin() : TileSet
- setName() : TileSet
- setObjectAlignment() : TileSet
- setPropertyBag() : self
- setSource() : TileSet
- setSpacing() : TileSet
- setTerrainCollection() : TileSet
- setTileCount() : TileSet
- setTileHeight() : TileSet
- setTileOffset() : TileSet
- setTileWidth() : TileSet
- setWangCollection() : TileSet
Properties
$columns
The number of tile columns in the tileset.
private
int|null
$columns
= null
For image collection tilesets it is editable and is used when displaying the tileset.
Tags
$firstGid
The first global tile ID of this tileset (this global ID maps to the first tile in this tileset).
private
int|null
$firstGid
= null
Tags
$image
private
Image|null
$image
= null
Tags
$margin
The margin around the tiles in this tileset.
private
int|null
$margin
= null
Tags
$name
The name of this tileset.
private
string|null
$name
= null
Tags
$objectAlignment
Controls the alignment for tile objects.
private
string|null
$objectAlignment
= null
Tags
$propertyBag
private
PropertyBag|null
$propertyBag
= null
Tags
$source
If this tileset is stored in an external TSX (Tile Set XML) file, this attribute refers to that file.
private
string|null
$source
= null
Tags
$spacing
The spacing in pixels between the tiles in this tileset.
private
int|null
$spacing
= null
Tags
$terrainCollection
private
TerrainCollection|null
$terrainCollection
= null
Tags
$tileCount
The number of tiles in this tileset.
private
int|null
$tileCount
= null
Tags
$tileHeight
The (maximum) height of the tiles in this tileset.
private
int|null
$tileHeight
= null
Tags
$tileOffset
private
TileOffset|null
$tileOffset
= null
Tags
$tiles
private
array<string|int, mixed>
$tiles
= []
Tags
$tileWidth
The (maximum) width of the tiles in this tileset.
private
int|null
$tileWidth
= null
Tags
$wangCollection
private
WangCollection|null
$wangCollection
= null
Tags
Methods
addTile()
public
addTile(Tile $tile) : self
Parameters
- $tile : Tile
Return values
self —getColumns()
public
getColumns() : int|null
Return values
int|null —getFirstGid()
public
getFirstGid() : int|null
Return values
int|null —getImage()
public
getImage() : Image|null
Return values
Image|null —getMargin()
public
getMargin() : int|null
Return values
int|null —getName()
public
getName() : string|null
Return values
string|null —getObjectAlignment()
public
getObjectAlignment() : string|null
Return values
string|null —getPropertyBag()
public
getPropertyBag() : PropertyBag|null
Return values
PropertyBag|null —getSource()
public
getSource() : string|null
Return values
string|null —getSpacing()
public
getSpacing() : int|null
Return values
int|null —getTerrainCollection()
public
getTerrainCollection() : TerrainCollection|null
Return values
TerrainCollection|null —getTileCount()
public
getTileCount() : int|null
Return values
int|null —getTileHeight()
public
getTileHeight() : int|null
Return values
int|null —getTileOffset()
public
getTileOffset() : TileOffset|null
Return values
TileOffset|null —getTiles()
public
getTiles() : array<string|int, Tile>
Return values
array<string|int, Tile> —getTileWidth()
public
getTileWidth() : int|null
Return values
int|null —getWangCollection()
public
getWangCollection() : WangCollection|null
Return values
WangCollection|null —removeTile()
public
removeTile(Tile $tile) : self
Parameters
- $tile : Tile
Return values
self —setColumns()
public
setColumns(int|null $columns) : TileSet
Parameters
- $columns : int|null
Return values
TileSet —setFirstGid()
public
setFirstGid(int|null $firstGid) : TileSet
Parameters
- $firstGid : int|null
Return values
TileSet —setImage()
public
setImage(Image|null $image) : TileSet
Parameters
- $image : Image|null
Return values
TileSet —setMargin()
public
setMargin(int|null $margin) : TileSet
Parameters
- $margin : int|null
Return values
TileSet —setName()
public
setName(string|null $name) : TileSet
Parameters
- $name : string|null
Return values
TileSet —setObjectAlignment()
public
setObjectAlignment(string|null $objectAlignment) : TileSet
Parameters
- $objectAlignment : string|null
Return values
TileSet —setPropertyBag()
public
setPropertyBag(PropertyBag|null $propertyBag) : self
Parameters
- $propertyBag : PropertyBag|null
Return values
self —setSource()
public
setSource(string|null $source) : TileSet
Parameters
- $source : string|null
Return values
TileSet —setSpacing()
public
setSpacing(int|null $spacing) : TileSet
Parameters
- $spacing : int|null
Return values
TileSet —setTerrainCollection()
public
setTerrainCollection(TerrainCollection|null $terrainCollection) : TileSet
Parameters
- $terrainCollection : TerrainCollection|null
Return values
TileSet —setTileCount()
public
setTileCount(int|null $tileCount) : TileSet
Parameters
- $tileCount : int|null
Return values
TileSet —setTileHeight()
public
setTileHeight(int|null $tileHeight) : TileSet
Parameters
- $tileHeight : int|null
Return values
TileSet —setTileOffset()
public
setTileOffset(TileOffset|null $tileOffset) : TileSet
Parameters
- $tileOffset : TileOffset|null
Return values
TileSet —setTileWidth()
public
setTileWidth(int|null $tileWidth) : TileSet
Parameters
- $tileWidth : int|null
Return values
TileSet —setWangCollection()
public
setWangCollection(WangCollection|null $wangCollection) : TileSet
Parameters
- $wangCollection : WangCollection|null