public void renderInUse ( int x , int y ) { if ( frames . size ( ) == 0 ) { return ; } if ( autoUpdate ) { long now = getTime ( ) ; long delta = now - lastUpdate ; if ( firstUpdate ) { delta = 0 ; firstUpdate = false ; } lastUpdate = now ; nextFrame ( delta ) ; } Frame frame = ( Frame ) frames . get ( currentFrame ) ; spriteSheet . renderInUse ( x , y , frame . x , frame . y ) ; }
Render the appropriate frame when the spriteSheet backing this Animation is in use .