Constructor and Description |
---|
SingleFrameAnimation(Image currentFrame)
Create a new single frame animation with the
specified current frame.
|
Modifier and Type | Method and Description |
---|---|
boolean |
advance()
Advance this animation one frame.
|
Image |
getCurrentFrame()
Return the current frame for this animation.
|
public SingleFrameAnimation(Image currentFrame)
currentFrame
- current frame, must not be nullpublic boolean advance()
Animation
public Image getCurrentFrame()
Animation
getCurrentFrame
in interface Animation
Copyright (c) 2006-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).