/*    */   public synchronized void update(long elapsedTime) {
/* 29 */     if (this.frames.size() > 1) {
/* 30 */       this.animTime += elapsedTime;
/* 31 */       if (this.animTime >= this.totalDuration) {
/* 32 */         this.animTime %= this.totalDuration;
/* 33 */         this.currentFrame = 0;
/*    */       }
/*    */ 
/* 36 */       while (this.animTime > getFrame(this.currentFrame).endTime)
/* 37 */         this.currentFrame += 1;
/*    */     }
/*    */   }