TiledLayer

abstract class TiledLayer(val type: String, val name: String, val id: Int, val visible: Boolean, val width: Int, val height: Int, val offsetX: Float, val offsetY: Float, val tileWidth: Int, val tileHeight: Int, val tintColor: Color?, val opacity: Float, val properties: Map<String, TiledMap.Property>) : TileLayer

Author

Colton Daily

Constructors

Link copied to clipboard
fun TiledLayer(type: String, name: String, id: Int, visible: Boolean, width: Int, height: Int, offsetX: Float, offsetY: Float, tileWidth: Int, tileHeight: Int, tintColor: Color?, opacity: Float, properties: Map<String, TiledMap.Property>)

Functions

Link copied to clipboard
fun getCellX(coordId: Int): Int
Link copied to clipboard
fun getCellY(coordId: Int): Int
Link copied to clipboard
fun getCoordId(cx: Int, cy: Int): Int
Link copied to clipboard
fun isCoordValid(cx: Int, cy: Int): Boolean
Link copied to clipboard
override fun render(batch: Batch, viewBounds: Rect, x: Float, y: Float, scale: Float)
fun render(batch: Batch, camera: Camera, x: Float, y: Float, scale: Float = 1.0f)
fun render(batch: Batch, camera: Camera, x: Float, y: Float, scale: Float = 1.0f, displayObjects: Boolean = false)
abstract fun render(batch: Batch, viewBounds: Rect, x: Float = 0.0f, y: Float = 0.0f, scale: Float = 1.0f, displayObjects: Boolean = false)

Properties

Link copied to clipboard
val height: Int
Link copied to clipboard
val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard