!function(){var e=window.QyAnimation=function(e){return this.createAnimation(e)};e.prototype.createAnimation=function(e){var r=current_game.animations[e];if(!r)return null;var n=this.createFrames(r.frames);return 0===r.loop?n.repeatForever():n.repeat(r.loop)};e.prototype.createFrames=function(e){for(var r=[],n=0;n<e.length;n++){var t=e[n];r.push(this.createOneFrame(t))}return 1==r.length?r[0]:cc.sequence(r)};e.prototype.createOneFrame=function(e){for(var r=[],n=e.anim,t=e.duration,a=0;a<n.length;a++){var o=n[a],c=o[0],i=o[1];cc[c]&&r.push(cc[c](t,i))}return 1==r.length?r[0]:new cc.spawn(r)}}();