moveBy

open override fun moveBy(position: Position): Boolean

Moves this Movable relative to its current position by the given position. Eg.: if its current position is (3, 2) and it is moved by (-1, 2), its new position will be (2, 4).

Sources

(source)
Link copied to clipboard