Block

data class Block<T : Any>(var x: Int, var y: Int, val size: Int, val payload: T) : Rectangle

Constructors

Link copied to clipboard
constructor(x: Int, y: Int, size: Int, payload: T)

Properties

Link copied to clipboard
open override val h: Int
Link copied to clipboard
val payload: T
Link copied to clipboard
val size: Int
Link copied to clipboard
open override val w: Int
Link copied to clipboard
open override var x: Int
Link copied to clipboard
open override var y: Int

Functions

Link copied to clipboard
open fun contains(x: Int, y: Int): Boolean
Link copied to clipboard

Returns whether the rectangle is adjacent or overlaps with the other.