!function(){window.QyPath=cc.Class.extend({ctor:function(t){this.at_end="stop";this.speed=100;t||(t={});this.target=t.target;this.setupOpt(t);var e;window.current_scene&&current_scene.classId&&(e=t[current_scene.classId]);if(!e)for(var s in t)if(t[s].points){e=t[s];break}e&&this.setupOpt(e)}});QyPath.prototype.setupOpt=function(t){t||(t={});null!=t.closed&&(this.closed=t.closed);null!=t.at_end&&(this.at_end=t.at_end);null!=t.relative&&(this.relative=t.relative);null!=t.reversed&&(this.reversed=t.reversed);null!=t.speed&&(this.speed=t.speed);null!=t.points&&this.setPoints(t.points)};QyPath.prototype.setPoints=function(t){for(var e=cc.winSize,s=[],n=0;n<t.length;n++)s.push(cc.p(t[n].x,e.height-t[n].y));this.points=s};QyPath.prototype.start=function(t){if(!this.target||this.started)return this;t&&this.setupOpt(t);this.target.currentSprite.runAction(this.getAction())};QyPath.prototype.stop=function(){};QyPath.prototype.getAction=function(){for(var t=[],e=0;e<this.points.length;e++)t.push(cc.moveTo(1,this.points[e]));return cc.sequence(t)}}();