AnimationBuilder

data class AnimationBuilder : Builder<Animation>

Types

Companion
Link copied to clipboard
common
object Companion

Functions

addFrame
Link copied to clipboard
common
fun addFrame(frame: AnimationFrame): AnimationBuilder
addFrames
Link copied to clipboard
common
fun addFrames(frames: List<AnimationFrame>): AnimationBuilder
addPosition
Link copied to clipboard
common
fun addPosition(position: Position): AnimationBuilder
addPositions
Link copied to clipboard
common
fun addPositions(positions: List<Position>): AnimationBuilder
build
Link copied to clipboard
common
open override fun build(): Animation
Builds an object of type T.
copy
Link copied to clipboard
common
fun copy(frames: MutableList<InternalAnimationFrame> = mutableListOf(), positions: MutableList<Position> = mutableListOf(), tick: Long = 1000L / DEFAULT_FPS, uniqueFrameCount: Int = -1): AnimationBuilder
createCopy
Link copied to clipboard
common
open override fun createCopy(): AnimationBuilder
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
setPositionForAll
Link copied to clipboard
common
fun setPositionForAll(position: Position): AnimationBuilder
toString
Link copied to clipboard
common
open override fun toString(): String
withFps
Link copied to clipboard
common
fun withFps(fps: Int): AnimationBuilder
withLoopCount
Link copied to clipboard
common
fun withLoopCount(loopCount: Int): AnimationBuilder

Properties

loopCount
Link copied to clipboard
common
var loopCount: Int = 1
totalFrameCount
Link copied to clipboard
common
var totalFrameCount: Int

Sources

(source)
Link copied to clipboard