Flip Animation
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.
Sets background to given fromVisual than contracts background in half the given duration, switches to toVisual and extends again in half the given duration.
Parameters
T
Generic GameComponentView.
game Component View
GameComponentView to animate.
duration
Duration in milliseconds. Default: DEFAULT_ANIMATION_SPEED.
Constructors
Link copied to clipboard
fun <T : GameComponentView> FlipAnimation( gameComponentView: T, fromVisual: Visual, toVisual: Visual, duration: Int = DEFAULT_ANIMATION_SPEED)
Content copied to clipboard
Creates a FlipAnimation for the given GameComponentView.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets invoked when Animation has finished.