protected CCAnimation(String name,float delay,ArrayList<CCSpriteFrame> frames){
  delay_=delay;
  name_=name;
  frames_=new ArrayList<CCSpriteFrame>();
  if (frames != null)   frames_.addAll(frames);
}

protected CCAnimation ( String name , float delay , ArrayList < CCSpriteFrame > frames ) { delay_ = delay ; name_ = name ; frames_ = new ArrayList < CCSpriteFrame > ( ) ; if ( frames != null ) frames_ . addAll ( frames ) ; }
initializes a ccanimation with a name , delay and an array of ccspriteframes .
