com.badlogic.gdx.graphics.g3d.utils
Interface AnimationController.AnimationListener

Enclosing class:
AnimationController

public static interface AnimationController.AnimationListener

Listener that will be informed when an animation is looped or completed.

Author:
Xoppa

Method Summary
 void onEnd(AnimationController.AnimationDesc animation)
          Gets called when an animation is completed.
 void onLoop(AnimationController.AnimationDesc animation)
          Gets called when an animation is looped.
 

Method Detail

onEnd

void onEnd(AnimationController.AnimationDesc animation)
Gets called when an animation is completed.

Parameters:
animation - The animation which just completed.

onLoop

void onLoop(AnimationController.AnimationDesc animation)
Gets called when an animation is looped. The AnimationController.AnimationDesc.loopCount is updated prior to this call and can be read or written to alter the number of remaining loops.

Parameters:
animation - The animation which just looped.


Copyright © 2013. All Rights Reserved.