Package tools. aqua. bgw. animation
Types
Link copied to clipboard
ComponentAnimation baseclass.
Link copied to clipboard
class DelayAnimation(val duration: Int = DEFAULT_ANIMATION_DURATION) : Animation
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
A movement Animation.
Link copied to clipboard
data class ParallelAnimation(val animations: List<Animation>) : Animation
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
A scale Animation.
Link copied to clipboard
data class SequentialAnimation(val animations: List<Animation>) : Animation
Content copied to clipboard
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>
Content copied to clipboard
SteppedComponentAnimation baseclass.