final long now = System.currentTimeMillis();
Animation currentAnimation = this.animationQueue.peek();
while (((!Objects.equal(currentAnimation, null)) && (now >= (this.lastStart + currentAnimation.getDelay())))) {
{
Animation _poll = this.animationQueue.poll();
TortoiseFigure _tortoiseFigure = this.view.getTortoiseFigure();
_poll.set(_tortoiseFigure, 1);
int _delay = currentAnimation.getDelay();
long _plus = (this.lastStart + _delay);
this.lastStart = _plus;
Animation _peek = this.animationQueue.peek();
currentAnimation = _peek;
}
}
boolean _notEquals = (!Objects.equal(currentAnimation, null));
if (_notEquals) {
int _delay = currentAnimation.getDelay();
final double alpha = (((double) (now - this.lastStart)) / _delay);
TortoiseFigure _tortoiseFigure = this.view.getTortoiseFigure();
currentAnimation.set(_tortoiseFigure, alpha);
this.schedule(this.UPDATE_INTERVAL);
} else {
this.isScheduled = false;
}