Move

class Move<S : Drawable>(drawable: S, x: Float = drawable.x, y: Float = drawable.y, add: Boolean = true, animation: Animation? = null, onFinish: S.() -> Unit? = null) : DrawableOp.Animatable<S>

Constructors

Link copied to clipboard
constructor(drawable: S, at: Vec2, add: Boolean = true, animation: Animation? = null, onFinish: S.() -> Unit? = null)
constructor(drawable: S, x: Float = drawable.x, y: Float = drawable.y, add: Boolean = true, animation: Animation? = null, onFinish: S.() -> Unit? = null)

Properties

Link copied to clipboard
var onFinish: S.() -> Unit?

Functions

Link copied to clipboard
fun add()
Link copied to clipboard
open override fun apply()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
@ApiStatus.Experimental
open fun finishNow()

finish this operation immediately.

Link copied to clipboard
fun remove()
Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun reverse()
Link copied to clipboard
open override fun unapply(): Boolean
Link copied to clipboard
open override fun verify(): Boolean

override this function to verify that this operation is valid, which is run before it is applied. (default: always true)