question: updates this animation 's current image frame , if neccesary . concode_field_sep long totalDuration concode_elem_sep Image image concode_elem_sep ArrayList frames concode_elem_sep int currFrameIndex concode_elem_sep long animTime concode_elem_sep long endTime concode_field_sep AnimFrame getFrame concode_elem_sep Object clone concode_elem_sep void start concode_elem_sep void addFrame concode_elem_sep Image getImage
target: void function ( long arg0 ) { if ( frames . size ( ) > 1 ) { animTime += arg0 ; if ( animTime >= totalDuration ) { animTime = animTime % totalDuration ; currFrameIndex = 0 ; } while ( animTime > getFrame ( currFrameIndex ) . endTime ) { currFrameIndex ++ ; } } }