Class TiledMapTileLayer.Cell

  • Enclosing class:
    TiledMapTileLayer

    public static class TiledMapTileLayer.Cell
    extends java.lang.Object
    • Constructor Detail

      • Cell

        public Cell()
    • Method Detail

      • getTile

        public TiledMapTile getTile()
        Returns:
        The tile currently assigned to this cell.
      • getFlipHorizontally

        public boolean getFlipHorizontally()
        Returns:
        Whether the tile should be flipped horizontally.
      • setFlipHorizontally

        public TiledMapTileLayer.Cell setFlipHorizontally​(boolean flipHorizontally)
        Sets whether to flip the tile horizontally.
        Parameters:
        flipHorizontally - whether or not to flip the tile horizontally.
        Returns:
        this, for method chaining
      • getFlipVertically

        public boolean getFlipVertically()
        Returns:
        Whether the tile should be flipped vertically.
      • setFlipVertically

        public TiledMapTileLayer.Cell setFlipVertically​(boolean flipVertically)
        Sets whether to flip the tile vertically.
        Parameters:
        flipVertically - whether or not this tile should be flipped vertically.
        Returns:
        this, for method chaining
      • getRotation

        public int getRotation()
        Returns:
        The rotation of this cell, in 90 degree increments.
      • setRotation

        public TiledMapTileLayer.Cell setRotation​(int rotation)
        Sets the rotation of this cell, in 90 degree increments.
        Parameters:
        rotation - the rotation in 90 degree increments (see ints below).
        Returns:
        this, for method chaining