
class AnimationComposite extends Animation {
  private AnimationList animations;

  public AnimationComposite() {
    animations = new AnimationList();
  }

  public void addAnimation( Animation animation ) {
    animations.add( animation );
  }

  public boolean removeAnimation( Animation animation ) {
    return animations.remove( animation );
  }

  public void reset() {
    animations.reset();
  }

  protected void animateHook( double secs ) {
    animations.animate( secs );
  }
}
