org.dishevelled.piccolo.sprite
Interface Animation

All Known Implementing Classes:
LoopedFramesAnimation, MultipleFramesAnimation, SingleFrameAnimation

public interface Animation

One or more images as frames in an animation.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Method Summary
 boolean advance()
          Advance this animation one frame.
 Image getCurrentFrame()
          Return the current frame for this animation.
 

Method Detail

advance

boolean advance()
Advance this animation one frame.

Returns:
true if consumers of this animation should schedule a repaint

getCurrentFrame

Image getCurrentFrame()
Return the current frame for this animation. The current frame will not be null.

Returns:
the current frame for this animation


Copyright (c) 2006-2011 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).