Package tools.aqua.bgw.animation

Types

Link copied to clipboard
sealed class Animation

Animation baseclass.

Link copied to clipboard
sealed class ComponentAnimation<T : ComponentView> : Animation
Link copied to clipboard
class DelayAnimation(val duration: Int = DEFAULT_ANIMATION_DURATION) : Animation

An asynchronous delay that fires onFinished after given duration.

Link copied to clipboard
class DiceAnimation<T : DiceView>(    dice: T,     val toSide: Int,     duration: Int = DEFAULT_ANIMATION_DURATION,     speed: Int = DEFAULT_ANIMATION_SPEED) : SteppedComponentAnimation<T>

A dice roll Animation.

Link copied to clipboard
class FadeAnimation<T : ComponentView>(    componentView: T,     fromOpacity: Number = componentView.opacity,     toOpacity: Number = componentView.opacity,     duration: Int = DEFAULT_ANIMATION_SPEED) : ComponentAnimation<T>

A fade Animation.

Link copied to clipboard
class FlipAnimation<T : GameComponentView>(    gameComponentView: T,     val fromVisual: Visual,     val toVisual: Visual,     duration: Int = DEFAULT_ANIMATION_SPEED) : ComponentAnimation<T>

A flip Animation.

Link copied to clipboard
class MovementAnimation<T : ComponentView>(    componentView: T,     fromX: Number = componentView.posX,     toX: Number = componentView.posX,     fromY: Number = componentView.posY,     toY: Number = componentView.posY,     duration: Int = DEFAULT_ANIMATION_SPEED) : ComponentAnimation<T>

A movement Animation.

Link copied to clipboard
data class ParallelAnimation(val animations: List<Animation>) : Animation

An Animation consisting of multiple Animations that are played in parallel, when this ParallelAnimation is played.

Link copied to clipboard
class RandomizeAnimation<T : GameComponentView>(    gameComponentView: T,     val visuals: List<Visual>,     val toVisual: Visual,     duration: Int = DEFAULT_ANIMATION_DURATION,     speed: Int = DEFAULT_ANIMATION_SPEED) : SteppedComponentAnimation<T>

A randomization Animation that shuffles between different visuals.

Link copied to clipboard
class RotationAnimation<T : ComponentView>(    componentView: T,     fromAngle: Number = componentView.rotation,     toAngle: Number = componentView.rotation,     duration: Int = DEFAULT_ANIMATION_DURATION) : ComponentAnimation<T>

A rotation Animation.

Link copied to clipboard
class ScaleAnimation<T : ComponentView>(    componentView: T,     fromScaleX: Number = componentView.scaleX,     toScaleX: Number = componentView.scaleX,     fromScaleY: Number = componentView.scaleY,     toScaleY: Number = componentView.scaleY,     duration: Int = DEFAULT_ANIMATION_SPEED) : ComponentAnimation<T>

A scale Animation.

Link copied to clipboard
data class SequentialAnimation(val animations: List<Animation>) : Animation

An Animation consisting of multiple Animations that is played in sequence, when this SequentialAnimation is played.

Link copied to clipboard
sealed class SteppedComponentAnimation<T : GameComponentView> : ComponentAnimation<T>