window.__require = function t(e, o, i) { function n(c, a) { if (!o[c]) { if (!e[c]) { var s = c.split("/"); s = s[s.length - 1]; if (!e[s]) { var p = "function" == typeof __require && __require; if (!a && p) return p(s, !0); if (r) return r(s, !0); throw new Error("Cannot find module '" + c + "'"); } c = s; } var l = o[c] = { exports: {} }; e[c][0].call(l.exports, function(t) { return n(e[c][1][t] || t); }, l, l.exports, t, e, o, i); } return o[c].exports; } for (var r = "function" == typeof __require && __require, c = 0; c < i.length; c++) n(i[c]); return n; }({ AIBase: [ function(t, e, o) { "use strict"; cc._RF.push(e, "884851NW4JDEbZlM+S7icPi", "AIBase"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CMath"), a = t("../FSprite"), s = t("../skill/SkillBase"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.AI_CD = 100; e.atk_CD = 3e3; e.atk_count = 1; e.speed = 50; e.skills = null; e.AI_Time = 0; e.atk_Time = 0; e.canSkill = !0; return e; } e.prototype.onLoad = function() { this.sprite = this.node.getComponent(a.default); this.sprite.SPEED_WALK = this.speed; this.skills = this.node.getComponents(s.default); }; e.prototype.setTarget = function(t) { t != this.target && (this.target = t); }; e.prototype.checkTarget = function() { this.target && this.target.isValid && this.target.hp > 0 || (this.target = this.sprite.findEnemy(3e3).sprite); return this.target; }; e.prototype.update = function() { if (this.sprite && this.sprite.isActive) { if (this.sprite.gamePause) return; this.AI(); } }; e.prototype.AI = function() { var t = this; if (this.canSkill) { var e = new Date().getTime(), o = this.checkTarget(); if (o) { if (this.skills.length > 0) { var i = this.checkSkill(o); if (i) { this.canSkill = !1; i.exe(o, function() { t.canSkill = !0; }); } else if (0 == this.AI_Time) this.AI_Time = e; else if (e - this.AI_Time > this.AI_CD) { this.AI_Time = e; this.walk(this.sprite.mButtleDis); } } else if (e - this.atk_Time > this.atk_CD) { this.atk_Time = e; this.fire(o); } } else if (0 == this.AI_Time) this.AI_Time = e; else if (e - this.AI_Time > this.AI_CD) { this.AI_Time = e; this.walk(this.sprite.mButtleDis); } } }; e.prototype.checkSkill = function(t) { for (var e = [], o = 0; o < this.skills.length; o++) (p = this.skills[o]).ready() && e.push(p); if (e.length <= 0) return null; var i = this.node.getPosition(), n = t.node.getPosition(), r = cc.Vec2.distance(i, n), s = []; for (o = 0; o < e.length; o++) { var p; r < (p = e[o]).range && s.push(p); } if (s.length <= 0) { this.moveToTarget(t); return null; } this.sprite.playAction(a.SpriteActionType.stand, !0); return s[c.default.getRandom(0, s.length - 1)]; }; e.prototype.moveToTarget = function(t) { this.sprite.playAction(a.SpriteActionType.move, !0); var e = t.node.getPosition(), o = this.sprite.node.getPosition(); this.atk_Time = 0; var i = { x: 0, y: 0 }, n = e.x - o.x; Math.abs(n) < 50 ? i.x = 0 : i.x = n > 0 ? 1 : -1; var r = e.y - o.y; Math.abs(r) < 50 ? i.y = 0 : i.y = r > 0 ? 1 : -1; this.sprite.setDir(i); }; e.prototype.fire = function(t) { var e = this, o = this.sprite.mButtleDis, i = t.node.getPosition(), n = this.sprite.node.getPosition(); if (cc.Vec2.distance(i, n) > o) this.moveToTarget(t); else { this.sprite.setDir({ x: 0, y: 0 }); this.sprite.setShooting(!0); var r = 0; this.canSkill = !1; this.sprite.setFireCallback(function() { if (++r >= e.atk_count) { e.sprite.setShooting(!1); e.sprite.setFireCallback(null); cc.tween(e).delay(.7).call(function() { e.walk(e.sprite.mButtleDis); }).start(); } }); } }; e.prototype.walk = function(t) { var e = this; cc.tween(this).delay(0).call(function() { e.sprite.setDir(e.getRandState(t)); e.sprite.playAction(a.SpriteActionType.move, !0); }).delay(.5).call(function() { e.canSkill = !0; e.sprite.setDir({ x: 0, y: 0 }); e.sprite.playAction(a.SpriteActionType.stand, !0); }).start(); }; e.prototype.getRandState = function() { if (this.target && this.target.isValid && this.target.hp > 0) { var t = this.target.node.getPosition(), e = this.sprite.node.getPosition(); this.sprite.mButtleDis; if (c.default.getDistance(t, e) > 150) { var o = { x: 0, y: 0 }, i = t.x - e.x; Math.abs(i) < 50 ? o.x = 0 : o.x = i > 0 ? 1 : -1; var n = t.y - e.y; Math.abs(n) < 50 ? o.y = 0 : o.y = n > 0 ? 1 : -1; return o; } } var r = c.default.getRandom(1, 80); return r < 10 ? { x: 1, y: 0 } : r < 20 ? { x: 1, y: 1 } : r < 30 ? { x: 1, y: -1 } : r < 40 ? { x: 0, y: 1 } : r < 50 ? { x: 0, y: -1 } : r < 60 ? { x: -1, y: 0 } : { x: -1, y: 1 }; }; r([ u({ displayName: "灵敏度(毫秒)" }) ], e.prototype, "AI_CD", void 0); r([ u({ displayName: "攻击间隔(毫秒)" }) ], e.prototype, "atk_CD", void 0); r([ u({ displayName: "每次攻击子弹数量" }) ], e.prototype, "atk_count", void 0); r([ u({ displayName: "移动速度" }) ], e.prototype, "speed", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../../../util/CMath": "CMath", "../FSprite": "FSprite", "../skill/SkillBase": "SkillBase" } ], AIPet: [ function(t, e, o) { "use strict"; cc._RF.push(e, "57f41f69VZBJb5EdgxEpidd", "AIPet"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../FSprite"), a = t("./AIBase"), s = cc._decorator, p = s.ccclass, l = (s.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.atk_CD = 3e3; this.speed = 120; this.atk_count = 3; this.sprite.SPEED_WALK = this.speed; }; e.prototype.update = function() { if (this.sprite) { if (this.sprite.gamePause) return; this.AI(); } }; e.prototype.AI = function() { var t = this, e = this.checkTarget(); if (e) { var o = new Date().getTime(); this.sprite.stopFollow(); if (this.sprite.isActive) if (this.skills.length > 0) { var i = this.checkSkill(e); if (i) { this.canSkill = !1; i.exe(e, function() { t.canSkill = !0; }); } } else if (o - this.atk_Time > this.atk_CD) { this.atk_Time = o; this.fire(e); } } else this.sprite.startFollow(); }; e.prototype.fire = function(t) { var e = this, o = this.sprite.mButtleDis, i = t.node.getPosition(), n = this.sprite.node.getPosition(); if (cc.Vec2.distance(i, n) > o) { this.atk_Time = 0; var r = { x: 0, y: 0 }, a = i.x - n.x; Math.abs(a) < 50 ? r.x = 0 : r.x = a > 0 ? 1 : -1; var s = i.y - n.y; Math.abs(s) < 50 ? r.y = 0 : r.y = s > 0 ? 1 : -1; this.sprite.setDir(r); } else { this.sprite.setDir({ x: 0, y: 0 }); this.sprite.status = c.SpriteType.NONE; this.sprite.setShooting(!0); var p = 0; this.sprite.setFireCallback(function() { if (++p >= e.atk_count) { e.sprite.setShooting(!1); e.sprite.setFireCallback(null); cc.tween(e).delay(.7).call(function() { e.walk(e.sprite.mButtleDis); }).start(); } }); } }; return r([ p ], e); }(a.default)); o.default = l; cc._RF.pop(); }, { "../FSprite": "FSprite", "./AIBase": "AIBase" } ], Adapter: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7d960ysRr9KlbQ4MbYsl6fv", "Adapter"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { var t = this.node.getComponent(cc.Widget); t && (t.target = cc.Canvas.instance.node); }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], AdminLogin: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ffbd1CZBN9Kkrbc6LCUAeYw", "AdminLogin"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mId = null; e.mToken = null; return e; } o = e; e.prototype.onclick = function() { o.userData = { id: parseInt(this.mId.string), token: this.mToken.string, zone: null }; cc.director.loadScene("main"); }; var o; r([ s(cc.EditBox) ], e.prototype, "mId", void 0); r([ s(cc.EditBox) ], e.prototype, "mToken", void 0); return o = r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], AllArea: [ function(t, e, o) { "use strict"; cc._RF.push(e, "442ddMo2cxCKb66SaE8dNyI", "AllArea"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../main/ViewObject"), a = t("./item/ZoneItem"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mZoneItem = null; return e; } e.prototype.onLoad = function() { for (var t = this.area.zones, e = 0; e < t.length; e++) { var o = t[e]; this.addItem(o); } }; e.prototype.addItem = function(t) { var e = this, o = cc.instantiate(this.mZoneItem), i = o.getComponent(a.default); i.zone = t; o.parent = this.mContent; i.setCallback(function(t) { e.area.setOptZone(t.zone); e.__distroyAll(); }); }; r([ l(cc.Node) ], e.prototype, "mContent", void 0); r([ l(cc.Prefab) ], e.prototype, "mZoneItem", void 0); return r([ p ], e); }(c.default); o.default = u; cc._RF.pop(); }, { "../main/ViewObject": "ViewObject", "./item/ZoneItem": "ZoneItem" } ], Area: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7b829q5VnZH55FfO6H4cJ96", "Area"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../game/data/udata/Player"), a = t("../main/ViewManage"), s = t("../main/ViewObject"), p = t("../plot/PlotHome"), l = t("../util/CHttp"), u = t("../util/CMath"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mZoneName = null; e.zones = null; e.roles = null; e.gameServer = null; return e; } e.prototype.onLoad = function() { this.loadZone(); }; e.prototype.start = function() { this.opentap_set_Ann(); }; e.prototype.loadZone = function() { var t = this, e = this.main.loginHttp, o = { channel: this.main.profile.mChannel.toString(), userId: this.main.userData.id.toString() }; this.main.startLoad(); e.sendForm("/getZone", o, function(e, o) { t.main.stopLoad(); if (e == l.HttpStateType.SUCCESS) { t.zones = o.zones; t.roles = o.roles; t.gameServer = o.gameServer; t.init(); } else t.main.showTips("网络异常"); }); }; e.prototype.onclickBack = function() { this.exitDistroy(); }; e.prototype.init = function() { var t = this.getOptZone(); this.setOptZone(t); }; e.prototype.setOptZone = function(t) { this.main.userData.zone = t; this.mZoneName.string = t.name; }; e.prototype.getZoneById = function(t) { if (null == this.zones) return null; for (var e = 0; e < this.zones.length; e++) { var o = this.zones[e]; if (o.id == t) return o; } return null; }; e.prototype.getOptZone = function() { var t = null; return (t = this.getLatelyZone()) ? t : (t = this.getRecZone()) || this.zones[u.default.getRandom(0, this.zones.length - 1)]; }; e.prototype.getLatelyZone = function() { if (null == this.roles) return null; for (var t = null, e = 0; e < this.roles.length; e++) { var o = this.roles[e]; null == t ? t = o : o.time > t.time && (t = o); } return this.getZoneById(t.zoneId); }; e.prototype.getRecZone = function() { if (null == this.zones) return null; for (var t = [], e = 0; e < this.zones.length; e++) { var o = this.zones[e]; o.rec && t.push(o); } return t.length <= 0 ? null : t[u.default.getRandom(0, t.length - 1)]; }; e.prototype.openHistoryArea = function() { var t = this; this.main.startLoad(); this.main.viewManage.loadFunc(a.GameViewType.historyArea, function(e) { e.area = t; e.show(); t.main.stopLoad(); }); }; e.prototype.onclickOK = function() { var t = this, e = this.main.userData, o = this.main.userData.zone, i = new l.default(this.gameServer + "/H" + o.hardwareId + "/"), n = { channel: this.main.profile.mChannel, channelAttr: "测试", id: e.id, token: e.token, zoneId: o.id }; this.main.startLoad(); i.token = "08f0656590e33d39021d41714994383d"; i.sendJson("login", n, function(e, o) { t.main.stopLoad(); if (e == l.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.player = new c.default(o.data); i.token = t.main.player.role.token; i.id = t.main.player.role.id; i.userId = t.main.userData.id; t.main.gameHttp = i; t.main.gameHttp.unshiftEvent(t.main.player); o.data.isNew ? t.openPlot() : t.openHome(t.main); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.openHome = function(t) { var e = this; t.viewManage.loadFunc(a.GameViewType.home, function(t) { e.__distroyAll(); t.node.getComponent(p.default).openMenu(); t.show(); }); }; e.prototype.openPlot = function() { var t = this, e = this.main; this.main.viewManage.loadFunc(a.GameViewType.plot_view, function(o) { t.__distroyAll(); o.setCloseCallback(function() { e.viewManage.loadFunc(a.GameViewType.home, function(t) { t.node.getComponent(p.default).exDialog(); t.show(); }); }); o.show(); }); }; e.prototype.opentap_set_Ann = function() { this.main.viewManage.loadFunc(a.GameViewType.tap_set_Ann, function(t) { t.show(); }); }; r([ d(cc.Label) ], e.prototype, "mZoneName", void 0); return r([ h ], e); }(s.default); o.default = m; cc._RF.pop(); }, { "../game/data/udata/Player": "Player", "../main/ViewManage": "ViewManage", "../main/ViewObject": "ViewObject", "../plot/PlotHome": "PlotHome", "../util/CHttp": "CHttp", "../util/CMath": "CMath" } ], BBObject: [ function(t, e, o) { "use strict"; cc._RF.push(e, "bafd5c2oApEG68YzTvq5kF1", "BBObject"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FSprite"), a = t("./BObject"), s = cc._decorator, p = s.ccclass, l = (s.property, function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.isOver = !1; return e; } e.prototype.onBeginContact = function(t, e, o) { if (!this.isOver && e.node == this.node) if (0 != o.tag) ; else if ("map" == o.node.group) { this.isOver = !0; this.__destroy(); } else if (this.sprite && this.sprite.isValid && this.sprite.hp > 0 && this.sprite.node.group != o.node.group && e.isValid && o.node.isValid) { this.isOver = !0; this.__destroy(); } }; e.prototype.__destroy = function() { t.prototype.__destroy.call(this); this.roundHit(); }; e.prototype.roundHit = function() { for (var e = this.sprite.ff, o = this.sprite.getEnemyGroup(), i = e.mMap.getSprites(), n = 0; n < i.length; n++) { var r = i[n], a = r.getComponent(c.default); if (a && r.active && a.isActive && a.hp > 0 && a.node.group == o && cc.Vec2.distance(this.node.getPosition(), r.getPosition()) < 300 && a.hp > 0 && null != a && a.isActive) { this.sprite.atkjs(a, this._skillData); t.prototype.__destroy.call(this); } } }; return r([ p ], e); }(a.default)); o.default = l; cc._RF.pop(); }, { "../object/FSprite": "FSprite", "./BObject": "BObject" } ], BEffect: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b93aaZF26dGZ7IBfbQkVWx/", "BEffect"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.start = function() { var t = this, e = this.node.getComponent(dragonBones.ArmatureDisplay); e && e.addEventListener(dragonBones.EventObject.LOOP_COMPLETE, function() { t.node.destroy(); }, this); if (this.node.children.length > 0) { var o = this.node.children[0].getComponent(sp.Skeleton); o && o.setCompleteListener(function() { t.node.destroy(); }); } }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], BObject: [ function(t, e, o) { "use strict"; cc._RF.push(e, "9324c1xtApIDIl9G5nfP7h2", "BObject"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FSprite"), a = t("../../../util/CMath"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.speed = 2e3; e.distance = 500; e.mStartEffect = null; e.mHitEffect = null; return e; } e.prototype.onLoad = function() { this.mRigidBody = this.node.getComponent(cc.RigidBody); }; e.prototype.setSprite = function(t) { this.sprite = t; this.map = t.map; }; e.prototype.fire = function(t) { var e = this.node.getPosition(), o = t.getPosition().clone(); o.y += t.height / 2; this.fireAB(e, o); }; e.prototype.firePos = function(t) { var e = this.node.getPosition(); this.fireAB(e, t); }; e.prototype.fireDir = function(t) { this.fireAB(cc.Vec2.ZERO_R, t); }; e.prototype.fireAB = function(t, e) { this.origin = this.node.getPosition(); var o = a.default.getAngle(t, e); this.node.angle = 180 * o / Math.PI; var i = cc.v2(); i.x = Math.cos(o) * this.speed; i.y = Math.sin(o) * this.speed; this.mRigidBody.applyLinearImpulse(i, this.mRigidBody.getWorldCenter(), !0); }; e.prototype.fireAngle = function(t) { this.origin = this.node.getPosition(); this.node.angle = 180 * t / Math.PI; var e = cc.v2(); e.x = Math.cos(t) * this.speed; e.y = Math.sin(t) * this.speed; this.mRigidBody.applyLinearImpulse(e, this.mRigidBody.getWorldCenter(), !0); }; e.prototype.fireAngle2 = function(t) { this.origin = this.node.getPosition(); var e = cc.v2(); e.x = Math.cos(t) * this.speed; e.y = Math.sin(t) * this.speed; this.mRigidBody.applyLinearImpulse(e, this.mRigidBody.getWorldCenter(), !0); }; e.prototype.fireAngle1 = function(t) { this.origin = this.node.getPosition(); this.node.angle = t; var e = t * Math.PI / 180, o = cc.v2(); o.x = Math.cos(e) * this.speed; o.y = Math.sin(e) * this.speed; this.mRigidBody.applyLinearImpulse(o, this.mRigidBody.getWorldCenter(), !0); }; e.prototype.update = function() { this.sprite && this.sprite.isValid && this.sprite.hp > 0 ? cc.Vec2.distance(this.origin, this.node.getPosition()) >= this.distance && this.node.destroy() : this.node.destroy(); }; e.prototype.__destroy = function() { var t = cc.instantiate(this.mHitEffect); t.x = this.node.x; t.y = this.node.y; t.parent = this.map.node; this.node.destroy(); }; e.prototype.onBeginContact = function(t, e, o) { if (e.node == this.node) if (0 != o.tag) ; else if ("map" == o.node.group) this.node.destroy(); else if (this.sprite && this.sprite.isValid && this.sprite.hp > 0 && this.sprite.node.group != o.node.group && e.isValid && o.node.isValid) { var i = o.node.getComponent(c.default); if (i.hp > 0 && null != i && i.isActive) { this.sprite.atkjs(i, this._skillData); this.__destroy(); } } }; r([ l({ displayName: "子弹速度" }) ], e.prototype, "speed", void 0); r([ l({ displayName: "子弹射程" }) ], e.prototype, "distance", void 0); r([ l({ type: cc.Prefab, displayName: "施法特效" }) ], e.prototype, "mStartEffect", void 0); r([ l({ type: cc.Prefab, displayName: "击中目标特效" }) ], e.prototype, "mHitEffect", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../../util/CMath": "CMath", "../object/FSprite": "FSprite" } ], BaseEvent: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a7332a3bj9IO59A0zTEK5DE", "BaseEvent"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CHttp"), a = t("../../map/FMap"), s = t("../../object/FSprite"), p = t("../dialog/FMapDialog"), l = cc._decorator, u = l.ccclass, f = (l.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { this.ff = this.node.parent.parent.getComponent(a.default).ff; }; e.prototype.onBeginContact = function(t, e, o) { "A" == o.node.group && 1 == o.tag && o.node.getComponent(s.default) == this.ff.mainSprite && this.onBegin(e.tag); }; e.prototype.onEndContact = function(t, e, o) { "A" == o.node.group && 1 == o.tag && o.node.getComponent(s.default) == this.ff.mainSprite && this.onEnd(e.tag); }; e.prototype.onBegin = function() {}; e.prototype.onEnd = function() {}; e.prototype.moveCamera = function(t, e, o) { var i = this.ff.mMap.mCamera, n = cc.winSize; t.x -= n.width / 2; t.y -= n.height / 2; cc.tween(i.node).sequence(cc.moveTo(e, t).easing(cc.easeOut(e)), cc.callFunc(function() { o(); })).start(); }; e.prototype.showOpt = function(t, e) { this.ff.control.showEventBt(t, e); }; e.prototype.closeOpt = function() { this.ff.control.closeEventBt(); }; e.prototype.showBlockInput = function(t) { this.ff.mBlockInputEvents.active = !0; this.ff.setBlockInputCallback(t); }; e.prototype.closeBlockInput = function() { this.ff.mBlockInputEvents.active = !1; this.ff.setBlockInputCallback(null); }; e.prototype.pause = function() { this.ff.pauseSprite(!0); }; e.prototype.resume = function() { this.ff.pauseSprite(!1); }; e.prototype.findByName = function(t) { return cc.find(t, this.ff.mMap.mSprites); }; e.prototype.showDialog = function(t, e, o) { var i = new p.default(this.ff, this.ff.mMapDialog), n = cc.v2(); n.x = t.x; n.y = t.y + t.height; i.showDialog(e, n, null, function() { o(); }); }; e.prototype.showDialogPos = function(t, e, o) { new p.default(this.ff, this.ff.mMapDialog).showDialog(e, t, null, function() { o(); }); }; e.prototype.spineAction = function(t, e, o) { t.setCompleteListener(function() { t.setCompleteListener(null); o(); }); t.setAnimation(0, e, !1); }; e.prototype.getMapObject = function(t, e) { var o = this, i = { objectId: t }, n = this.ff.main; n.gameHttp.sendJson("stage/v1/stageObject", i, function(i, r) { n.stopLoad(); if (i == c.HttpStateType.SUCCESS) if (0 == r.retCode) { var a = n.player.stage; a.element.push(t); if (r.data._stage) { a.data[o.ff.mFFheader.stageData.id] = r.data._stage; o.ff.mFFheader.flush(); } n.showReward(r, function() { e && e(); }); } else n.showTips(r.message); else n.showTips("网络异常"); }); }; return r([ u ], e); }(cc.Component)); o.default = f; cc._RF.pop(); }, { "../../../../util/CHttp": "CHttp", "../../map/FMap": "FMap", "../../object/FSprite": "FSprite", "../dialog/FMapDialog": "FMapDialog" } ], CHttpEvent: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2b078NPJrZFgqEP1Xfxjcba", "CHttpEvent"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = function() { function t() {} t.prototype.httpEvent = function() { cc.log("viewObject reve : ", this); }; return t; }(); o.default = i; cc._RF.pop(); }, {} ], CHttp: [ function(t, e, o) { "use strict"; cc._RF.push(e, "6f7b79SsrZOPZLIkYSPgicG", "CHttp"); Object.defineProperty(o, "__esModule", { value: !0 }); o.HttpStateType = void 0; var i, n = t("../main/ViewTop"), r = t("./CUtil"); (function(t) { t[t.SUCCESS = 0] = "SUCCESS"; t[t.TIME_OUT = 1] = "TIME_OUT"; t[t.ERROR = 2] = "ERROR"; })(i = o.HttpStateType || (o.HttpStateType = {})); var c = function() { function t(t) { this.url = null; this.token = null; this.event = []; this.url = t; } t.prototype.unshiftEvent = function(t) { this.event.unshift(t); }; t.prototype.pushEvent = function(t) { this.event.push(t); }; t.prototype.popEvent = function(t) { for (var e = 0; e < this.event.length; e++) if (this.event[e] == t) { this.event.splice(e, 1); return; } }; t.prototype.sendForm = function(t, e, o) { this.id && (e.I = this.id); this.userId && (e.userId = this.userId); this.token && r.default.makeSign(e, this.token); var n = new XMLHttpRequest(); n.open("post", this.url + t, !0); n.setRequestHeader("Content-Type", "application/json"); n.onerror = function() { o(i.ERROR); }; n.ontimeout = function() { o(i.TIME_OUT); }; var c = this; n.onreadystatechange = function() { if (4 === n.readyState && n.status >= 200 && n.status < 300) { var t = JSON.parse(n.responseText); if (0 == t.retCode) for (var e = 0; e < c.event.length; e++) c.event[e].httpEvent(t); else 500106 == t.retCode && c.initViewTop(); o(i.SUCCESS, t); } }; n.send(JSON.stringify(e)); }; t.prototype.sendJson = function(t, e, o) { this.id && (e.I = this.id); this.userId && (e.userId = this.userId); this.token && r.default.makeSign(e, this.token); var n = new XMLHttpRequest(); n.open("post", this.url + t, !0); n.setRequestHeader("Content-Type", "text/plain"); n.onerror = function() { o(i.ERROR); }; n.ontimeout = function() { o(i.TIME_OUT); }; var c = this; n.onreadystatechange = function() { if (4 === n.readyState && n.status >= 200 && n.status < 300) { var t = JSON.parse(n.responseText); if (0 == t.retCode) for (var e = 0; e < c.event.length; e++) c.event[e].httpEvent(t); else 500106 == t.retCode && c.initViewTop(); o(i.SUCCESS, t); } }; n.send(JSON.stringify(e)); }; t.prototype.initViewTop = function() { cc.resources.load("prefab/common/common_hint", cc.Prefab, function(t, e) { t ? cc.error(t) : cc.instantiate(e).getComponent(n.default).show(); }); }; return t; }(); o.default = c; cc._RF.pop(); }, { "../main/ViewTop": "ViewTop", "./CUtil": "CUtil" } ], CMath: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2db27nnJW5OrZfq+s5xYuHV", "CMath"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = function() { function t() {} t.getDistance = function(t, e) { return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); }; t.getAngle = function(t, e) { return Math.atan2(e.y - t.y, e.x - t.x); }; t.getRandom = function(t, e) { return Math.floor(Math.random() * (e - t + 1) + t); }; return t; }(); o.default = i; cc._RF.pop(); }, {} ], CUtilTime: [ function(t, e, o) { "use strict"; cc._RF.push(e, "12f96wHt7lJ7rgMvhceetc9", "CUtilTime"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = function() { function t() {} t.getNowTime = function() { var t = new Date(); return Math.floor(t.getTime() / 1e3); }; t.getNowDateInt = function() { var t = new Date(), e = "" + t.getDate(), o = "" + (t.getMonth() + 1), i = "" + t.getFullYear(); o.length < 2 && (o = "0" + o); e.length < 2 && (e = "0" + e); return parseInt(i + o + e); }; t.getCountDays = function() { var t = new Date(), e = t.getMonth(); t.setMonth(e + 1); t.setDate(0); return t.getDate(); }; t.getTimeString = function(t) { var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = Math.floor(e / 24), r = e - 24 * n; return n > 0 ? n + "天" + r + "小时" + o + "分钟" + i + "秒" : r > 0 ? r + "小时" + o + "分钟" + i + "秒" : o > 0 ? o + "分钟" + i + "秒" : i + "秒"; }; t.getTimeString2 = function(t) { var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = o > 0 && o < 10 ? "0" + o : 0 == o ? "00" : o, r = i > 0 && i < 10 ? "0" + i : 0 == i ? "00" : i; return e > 0 ? e + ":" + n + ":" + r : o > 0 ? n + ":" + r : r; }; t._getTimeString = function(t) { var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = Math.floor(e / 24), r = e - 24 * n; return n > 0 ? n + "天" + r + "小时" : r > 0 ? r + "小时" + o + "分钟" : o > 0 ? o + "分" + i + "秒" : i + "秒"; }; t._getTimeOnlineString = function(t) { var e = Math.floor(t / 60 / 60), o = Math.floor(t / 60 % 60), i = Math.floor(t % 60), n = Math.floor(e / 24), r = e - 24 * n; return n > 0 ? n + "天" : r > 0 ? r + "小时" : o > 0 ? o + "分钟" : i + "秒"; }; return t; }(); o.default = i; cc._RF.pop(); }, {} ], CUtil: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e71b4LP1chEP62B5bwe3eJF", "CUtil"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = t("./MMD5"), n = function() { function t() {} t.makeSign = function(t, e) { var o = new Date(); t.timestamp = o.getTime(); var i = Object.keys(t).sort(), n = ""; for (var r in i) { var c = i[r], a = t[c]; null == a || a instanceof Object || (n += c + "=" + a + "&"); } n += e; t.sign = this.md5.hex_md5(n); return t; }; t.getNowTime = function() { var t = new Date(); return Math.floor(t.getTime() / 1e3); }; t.getNowDateInt = function() { var t = new Date(), e = "" + t.getDate(), o = "" + (t.getMonth() + 1), i = "" + t.getFullYear(); o.length < 2 && (o = "0" + o); e.length < 2 && (e = "0" + e); return parseInt(i + o + e); }; t.md5 = new i.default(); return t; }(); o.default = n; cc._RF.pop(); }, { "./MMD5": "MMD5" } ], CardAttrItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "72766E+bShFfbmzQEUaut5J", "CardAttrItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mValue1 = null; return e; } e.prototype.init = function(t, e, o) { this.mName.string = c.default.t(t); var i = "+" + e; o > 0 && (i += "(+" + o + ")"); this.mValue1.string = i; }; r([ p(cc.Label) ], e.prototype, "mName", void 0); r([ p(cc.Label) ], e.prototype, "mValue1", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n" } ], CardInfoView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "faea9+VsdhN4Lj78q3U8JPR", "CardInfoView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/RadarChart"), l = t("../../data/FFCalAttr"), u = t("./item/CardItem"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mCardItem = null; e.radarChart = null; e.mAttrLable = null; e.mAttrValue = []; return e; } e.prototype.onLoad = function() { this.flushRadarChart(); }; e.prototype.exitDistroy = function() { t.prototype.exitDistroy.call(this); this.cardItem.flushStar(); }; e.prototype.init = function(t) { this.cardItem = t; }; e.prototype.flushRadarChart = function() { this.mCardItem.init(this.main, this.cardItem.godCardAttr); var t = l.default.getGodCardAttr(this.main, this.cardItem.godCardAttr), e = t.thunder, o = t.earth, i = t.fire, n = t.water, r = t.wind; e > 100 && (e = 100); o > 100 && (o = 100); i > 100 && (i = 100); n > 100 && (n = 100); r > 100 && (r = 100); for (var a = [ e, o, i, n, r ], s = [ e / 100, o / 100, i / 100, n / 100, r / 100 ], p = 0; p < a.length; p++) { var u = a[p]; this.mAttrValue[p].string = "" + u; } var f = { values: s }; this.radarChart.draw(f); var h = this.cardItem._godCard, d = [ "", "射手", "法师", "战士" ][h.job], m = ""; t.atk > 0 && (m += c.default.t(d) + c.default.t("攻击") + "+" + t.atk + "\n"); t.def > 0 && (m += c.default.t(d) + c.default.t("防御") + "+" + t.def + "\n"); t.hp > 0 && (m += c.default.t(d) + c.default.t("气血") + "+" + t.hp + "\n"); t.sp > 0 && (m += c.default.t(d) + c.default.t("敏捷") + "+" + t.sp + "\n"); m += h.about; this.mAttrLable.string = m; }; e.prototype.openidol_sx = function() { var t = this; this.main.viewManage.loadFunc(a.GameViewType.god_card_star, function(e) { e.init(t); e.show(t); }); }; r([ d(u.default) ], e.prototype, "mCardItem", void 0); r([ d(p.default) ], e.prototype, "radarChart", void 0); r([ d(cc.Label) ], e.prototype, "mAttrLable", void 0); r([ d([ cc.Label ]) ], e.prototype, "mAttrValue", void 0); return r([ h ], e); }(s.default); o.default = m; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/RadarChart": "RadarChart", "../../data/FFCalAttr": "FFCalAttr", "./item/CardItem": "CardItem" } ], CardItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5b2ceOgcuRGMJHoMDMzln5F", "CardItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mIcon = null; e.mStarNode = null; e.mStarFrame = []; e.mNoNode = null; e.mCount = null; return e; } e.prototype.init = function(t, e) { this.mNoNode && (this.mNoNode.active = !1); this.node.zIndex = 1; this.main = t; this.godCardAttr = e; this._godCard = this.main.sManage.getGodCardById(e.id); this.initIcon(); return this.flushStar(); }; e.prototype.initNo = function(t, e) { this.main = t; this._godCard = e; this.mNoNode && (this.mNoNode.active = !0); this.initIcon(); var o = this.main.player.getGoodCount(this._godCard.goodId); this.mCount.string = o + "/" + this._godCard.goodCount; o >= this._godCard.goodCount ? this.node.zIndex = 0 : this.node.zIndex = 2; }; e.prototype.initIcon = function() { var t = this; this.mName && (this.mName.string = c.default.t(this._godCard.name)); cc.resources.load("icon/card/" + this._godCard.id, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mIcon.spriteFrame = o; }); }; e.prototype.flushStar = function() { var t = 5; this.godCardAttr.level < this._godCard.list.length && (t = this._godCard.list[this.godCardAttr.level].star); for (var e = this.mStarNode.children, o = 0; o < e.length; o++) { e[o].getComponent(cc.Sprite).spriteFrame = o < t ? this.mStarFrame[1] : this.mStarFrame[0]; } return t; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback && this.callback(this); }; r([ p(cc.Label) ], e.prototype, "mName", void 0); r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ p(cc.Node) ], e.prototype, "mStarNode", void 0); r([ p([ cc.SpriteFrame ]) ], e.prototype, "mStarFrame", void 0); r([ p(cc.Node) ], e.prototype, "mNoNode", void 0); r([ p(cc.Label) ], e.prototype, "mCount", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n" } ], CardStarSuccessView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "338b5cedzdI9o1CEe0eo4ZO", "CardStarSuccessView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("./item/CardItem"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mCardItem = null; return e; } e.prototype.init = function(t) { this.mCardItem.init(this.main, t.godCardAttr); }; r([ l(a.default) ], e.prototype, "mCardItem", void 0); return r([ p ], e); }(c.default); o.default = u; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "./item/CardItem": "CardItem" } ], CardStarView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "62f02LMljRER5ZoMPs481wo", "CardStarView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = t("../../data/FFCalAttr"), f = t("./item/CardAttrItem"), h = t("./item/CardItem"), d = t("./item/CardUplevelItem"), m = cc._decorator, y = m.ccclass, v = m.property, g = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mCardItem = null; e.mAttrContent = null; e.mAttrPrefab = null; e.mGoodContent = null; e.mGoodItemPrefab = null; e.mUpLevelItem = []; e.mFullStar = null; e.mFullContent = null; e.mFinish = null; e.mBtName = null; e.upStatus = 0; e.tempStar = 0; return e; } o = e; e.prototype.exitDistroy = function() { t.prototype.exitDistroy.call(this); this.cardInfoView.flushRadarChart(); }; e.prototype.init = function(t) { this.cardInfoView = t; var e = [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ], i = t.cardItem._godCard; if (i.godReborn) { var n = i.godReborn; n && (e = [ n.atk, n.def, n.hp, n.sp, n.water, n.fire, n.wind, n.thunder, n.earth ]); } for (var r = 0; r < e.length; r++) { var c = e[r]; if (c > 0) { var a = cc.instantiate(this.mAttrPrefab); a.parent = this.mFullContent; var s = a.getComponent(f.default), p = ""; r < 4 && (p = [ "", "射手", "法师", "战士" ][i.job]); s.init(p + o.attrName[r], c, 0); } } this.mFullStar.active = !1; this.flushView(); }; e.prototype.flushView = function() { var t = this, e = this.cardInfoView.cardItem, o = this.mCardItem.init(this.main, e.godCardAttr), i = !0; if (0 == this.tempStar) this.tempStar = o; else if (this.tempStar != o) { i = !1; this.tempStar = o; this.showSuccess(function() { t.updateView(); }); } i && this.updateView(); }; e.prototype.updateView = function() { var t = this.cardInfoView.cardItem, e = u.default.getGodCardAttr(this.main, t.godCardAttr), i = t._godCard.list[t.godCardAttr.level], n = null; t.godCardAttr.level > 0 && (n = t._godCard.list[t.godCardAttr.level - 1]); var r = [ e.atk, e.def, e.hp, e.sp, e.water, e.fire, e.wind, e.thunder, e.earth ], a = [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ], s = [ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; i && (a = [ i.atk, i.def, i.hp, i.sp, i.water, i.fire, i.wind, i.thunder, i.earth ]); n && (s = [ n.atk, n.def, n.hp, n.sp, n.water, n.fire, n.wind, n.thunder, n.earth ]); this.mAttrContent.destroyAllChildren(); for (var p = 0; p < r.length; p++) { var h = r[p], d = a[p] - s[p]; if (h > 0 || d > 0) { (_ = cc.instantiate(this.mAttrPrefab)).parent = this.mAttrContent; var m = _.getComponent(f.default), y = ""; p < 4 && (y = [ "", "射手", "法师", "战士" ][t._godCard.job]); m.init(y + o.attrName[p], h, d); } } var v = []; if (i) { i.goodId1 > 0 && v.push({ id: i.goodId1, count: i.goodCount1 }); i.goodId2 > 0 && v.push({ id: i.goodId2, count: i.goodCount2 }); i.goodId3 > 0 && v.push({ id: i.goodId3, count: i.goodCount3 }); this.mFullStar.active = !1; this.mBtName.string = c.default.t("升星"); this.upStatus = 0; } else { this.upStatus = 1; this.mBtName.string = c.default.t("重塑"); this.mFullStar.active = !0; var g = this.cardInfoView.cardItem._godCard.godReborn; g.goodId1 > 0 && v.push({ id: g.goodId1, count: g.goodCount1 }); g.goodId2 > 0 && v.push({ id: g.goodId2, count: g.goodCount2 }); this.cardInfoView.cardItem.godCardAttr.reborn > 0 && (this.mFinish.active = !1); } this.mGoodContent.destroyAllChildren(); for (p = 0; p < v.length; p++) { var _, b = v[p]; (_ = cc.instantiate(this.mGoodItemPrefab)).getComponent(l.default).initContrast(this.main, b); _.parent = this.mGoodContent; } this.flushTree(); }; e.prototype.flushTree = function() { for (var t = this.cardInfoView.cardItem._godCard, e = [], o = t.list, i = 0, n = [], r = 0; r < o.length; r++) { var c = o[r]; if (0 == i) { i = c.star; n.push(c); } else if (i != c.star) { i = c.star; var a = n.slice(); e.push(a); (n = []).push(c); } else n.push(c); } e.push(n); var s = this.cardInfoView.cardItem.godCardAttr, p = t.list[s.level]; if (p) { var l = e[p.star - 1], u = this.getTmpLevel(p, l); for (r = 0; r < 6; r++) { c = this.mUpLevelItem[r]; r > u.index ? c.setLock() : r == u.index ? c.setLabel(u.level, u.maxLevel) : c.setLabel(u.maxLevel, u.maxLevel); } } }; e.prototype.getTmpLevel = function(t, e) { var o = (e.length - 1) / 5; if (t == e[e.length - 1]) return { index: 5, level: 0, maxLevel: o }; for (var i = 0, n = 0; n < e.length - 1; n++) { var r = e[n]; if (t == r) return { index: r.attrType - 1, level: i, maxLevel: o }; ++i >= o && (i = 0); } }; e.prototype.onclickStar = function() { var t, e = this; t = 0 == this.upStatus ? "card/v1/uplevel" : "card/v1/reborn"; var o = this.cardInfoView.cardItem, i = { id: o.godCardAttr.id }; this.main.gameHttp.sendJson(t, i, function(t, i) { e.main.stopLoad(); if (t == p.HttpStateType.SUCCESS) if (0 == i.retCode) { 0 == e.upStatus ? o.godCardAttr.level += 1 : o.godCardAttr.reborn += 1; e.flushView(); } else e.main.showTips(i.message); else e.main.showTips("网络异常"); }); }; e.prototype.showSuccess = function(t) { var e = this, o = 0; this.schedule(function() { o += .1; e.mUpLevelItem[5].mProgessBar.progress = o; if (o > 1) { e.main.viewManage.loadFunc(a.GameViewType.god_card_star_success, function(t) { t.init(e.cardInfoView.cardItem); t.show(); }); t(); } }, .1, 10); }; var o; e.attrName = [ "攻击", "防御", "气血", "敏捷", "水", "火", "风", "雷", "土" ]; r([ v(h.default) ], e.prototype, "mCardItem", void 0); r([ v(cc.Node) ], e.prototype, "mAttrContent", void 0); r([ v(cc.Prefab) ], e.prototype, "mAttrPrefab", void 0); r([ v(cc.Node) ], e.prototype, "mGoodContent", void 0); r([ v(cc.Prefab) ], e.prototype, "mGoodItemPrefab", void 0); r([ v([ d.default ]) ], e.prototype, "mUpLevelItem", void 0); r([ v(cc.Node) ], e.prototype, "mFullStar", void 0); r([ v(cc.Node) ], e.prototype, "mFullContent", void 0); r([ v(cc.Node) ], e.prototype, "mFinish", void 0); r([ v(cc.Label) ], e.prototype, "mBtName", void 0); return o = r([ y ], e); }(s.default); o.default = g; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "../../common/GoodItem": "GoodItem", "../../data/FFCalAttr": "FFCalAttr", "./item/CardAttrItem": "CardAttrItem", "./item/CardItem": "CardItem", "./item/CardUplevelItem": "CardUplevelItem" } ], CardUplevelItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e4236AB5+FJ/53xutcgFy5a", "CardUplevelItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mLabel = null; e.mProgessBar = null; return e; } e.prototype.setLabel = function(t, e) { this.mProgessBar.node.active = !0; this.mLabel && (this.mLabel.string = t + "/" + e); this.mProgessBar.progress = t / e; }; e.prototype.setLock = function() { this.mProgessBar.node.active = !1; }; r([ s(cc.Label) ], e.prototype, "mLabel", void 0); r([ s(cc.ProgressBar) ], e.prototype, "mProgessBar", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], ChangeEquip: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c976eop71VC/5vMkFOT0p+4", "ChangeEquip"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewManage"), a = t("../../../main/ViewObject"), s = t("../../../util/CHttp"), p = t("./EquipInfo"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.p1 = null; e.p2 = null; e.leftQHNode = null; e.mQHNode = null; e.mUseNode = null; e.inGuide = !1; e.guideStep = 0; return e; } e.prototype.init = function(t, e, o) { this.petIcon = t; this.goodItem = e; this.goodItem1 = o; this.p2.init(this.main, this.goodItem1, null); this.p1.init(this.main, this.goodItem, this.goodItem1); this.mQHNode.active = o.equipData && o.equipData.type <= 4; this.leftQHNode.active = e.equipData.type <= 4; this.node.zIndex = 1; this.inGuide && 0 == this.guideStep && this.onGuide(); }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.onclickUse = function() { var t = this, e = { petId: this.petIcon.id, equipIndex: this.p1.equipItem.equip.__index }; this.main.gameHttp.sendJson("equip/v1/use", e, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.playerEffectByPath(c.AudioMgr.equip); t.equip.checkPet(t.petIcon); t.equip.mEquipPack.flushEquip(); t.exitDistroy(); t.inGuide && t.equip.onGuideExit(); t.main.showTips("装备成功"); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); this.guideCallback && this.guideCallback(); }; e.prototype.onclickLeftQH = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.IntensifyEquip, function(e) { e.init(t.goodItem.equip, t.petIcon, t.equip); e.show(); t.exitDistroy(); }); }; e.prototype.onclickQH = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.IntensifyEquip, function(e) { e.init(t.goodItem1.equip, t.petIcon, t.equip); e.show(); t.exitDistroy(); }); }; e.prototype.setGuideCallback = function(t) { this.guideCallback = t; }; e.prototype.onGuide = function() { var t = this.main.mGuideMask, e = this.mUseNode; t.setTargetNode(e); t.show(); this.setGuideCallback(function() { t.close(); }); }; r([ f(p.default) ], e.prototype, "p1", void 0); r([ f(p.default) ], e.prototype, "p2", void 0); r([ f(cc.Node) ], e.prototype, "leftQHNode", void 0); r([ f(cc.Node) ], e.prototype, "mQHNode", void 0); r([ f(cc.Node) ], e.prototype, "mUseNode", void 0); return r([ u ], e); }(a.default); o.default = h; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "./EquipInfo": "EquipInfo" } ], ChargeCollision: [ function(t, e, o) { "use strict"; cc._RF.push(e, "75756TwpLhMiYqit9Wvw+zW", "ChargeCollision"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../FSprite"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onBeginContact = function(t, e, o) { var i = this.skillBase.sprite; if (i && i.isValid && i.hp > 0 && i.node.group != o.node.group && e.isValid && o.node.isValid) { var n = o.node.getComponent(c.default); n && n.hp > 0 && null != n && n.isActive && i.atkjs(n); } }; return r([ s ], e); }(cc.Component)); o.default = p; cc._RF.pop(); }, { "../FSprite": "FSprite" } ], DialogButton: [ function(t, e, o) { "use strict"; cc._RF.push(e, "4ae85d2JzZB9KhM9SN22V0F", "DialogButton"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; return e; } e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(); }; r([ s(cc.Label) ], e.prototype, "label", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], DialogCage: [ function(t, e, o) { "use strict"; cc._RF.push(e, "00cf9LG3CZPqYB+urykchd9", "DialogCage"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; return e; } e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.close = function() { this.node.destroy(); }; e.prototype.onclickOK = function() { this.close(); this.callback(); }; e.prototype.onclickCancel = function() { this.node.destroy(); }; r([ s(cc.Label) ], e.prototype, "label", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], DialogSay: [ function(t, e, o) { "use strict"; cc._RF.push(e, "4b55feY1WxGQ69V431F5rHh", "DialogSay"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mDialog = null; e.index = 0; e.contents = null; return e; } e.prototype.setContents = function(t) { this.contents = t; this.mContent.string = c.default.t(this.contents[0]); this.index = 0; }; e.prototype.close = function() { this.node.destroy(); }; e.prototype.setEndCallback = function(t) { this.endCallback = t; }; e.prototype.onclick = function() { this.index++; if (this.index >= this.contents.length) { this.endCallback(); this.close(); } else this.mContent.string = c.default.t(this.contents[this.index]); }; r([ p(cc.Label) ], e.prototype, "mContent", void 0); r([ p(cc.Node) ], e.prototype, "mDialog", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n" } ], Dungeon: [ function(t, e, o) { "use strict"; cc._RF.push(e, "29ff7u5MSxAt6Q1xH/i7b2S", "Dungeon"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() {}; e.prototype.onclick = function() {}; return r([ s ], e); }(c.default)); o.default = p; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject" } ], EnemyTrigger: [ function(t, e, o) { "use strict"; cc._RF.push(e, "1ca884FM/xAb5Psj2B+wGHf", "EnemyTrigger"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../map/FMap"), a = t("../../../util/CUtilTime"), s = t("../../../util/CMath"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mId = 0; e.mMonster = null; e.mInitCount = 20; e.mMaxCount = 20; e.mFlushTime = 5; e.mFlushCount = 3; e.prevTime = 0; return e; } e.prototype.onLoad = function() { var t = this.node.parent.parent; this.mMap = t.getComponent(c.default); this.flush(this.mInitCount); this.prevTime = a.default.getNowTime(); this.mFlushTime > 0 && this.schedule(this.addMonster, this.mFlushTime); }; e.prototype.flush = function(t) { for (var e = 0; e < t; e++) ; }; e.prototype.getRandInit = function() { var t = cc.v2(); t.x = s.default.getRandom(this.node.x - this.node.width / 2, this.node.x + this.node.width / 2); t.y = s.default.getRandom(this.node.y - this.node.height / 2, this.node.y + this.node.height / 2); return t; }; e.prototype.addMonster = function() {}; r([ u({ displayName: "关联表格数据" }) ], e.prototype, "mId", void 0); r([ u({ type: cc.Prefab, displayName: "怪物原型" }) ], e.prototype, "mMonster", void 0); r([ u({ displayName: "初始怪物数量" }) ], e.prototype, "mInitCount", void 0); r([ u({ displayName: "最大存在值" }) ], e.prototype, "mMaxCount", void 0); r([ u({ displayName: "刷怪周期/秒(-1:不刷新)" }) ], e.prototype, "mFlushTime", void 0); r([ u({ displayName: "周期刷怪个数" }) ], e.prototype, "mFlushCount", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../../util/CMath": "CMath", "../../../util/CUtilTime": "CUtilTime", "../map/FMap": "FMap" } ], EquipAbout: [ function(t, e, o) { "use strict"; cc._RF.push(e, "9c0e5fOFu9IGKW0oT1ne6MO", "EquipAbout"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = t("../../main/ViewObject"), s = t("./GoodItem"), p = t("./EquipViewAttr"), l = t("../data/FFCalAttr"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mAbout = null; e.mGoodItem = null; e.mZdl = null; e.mAtk = null; e.mDef = null; e.mHp = null; e.mSp = null; e.mFAttrNode = null; e.mFAttrItem = null; e.mSkillNode = null; e.mSkillName = null; e.mSkillAbout = null; e.mSkillIcon = null; e.mMainNode = []; return e; } e.prototype.onLoad = function() {}; e.prototype.initEquip = function(t) { var e = this; this.goodItem = t; var o = this.goodItem.equip, i = this.goodItem.equipData; this.mName.string = c.default.t(i.name); this.mAbout.string = c.default.t(i.about); this.goodItem.equip = o; this.goodItem.equipData = i; this.goodItem.flushEquip(this.main); this.mZdl.string = "" + l.default.getZdl(i); if (i.atk > 0) { this.mAtk.string = c.default.t("攻击") + ":" + i.atk; this.mMainNode[0].active = !0; } else this.mMainNode[0].active = !1; if (i.def > 0) { this.mDef.string = c.default.t("防御") + ":" + i.def; this.mMainNode[1].active = !0; } else this.mMainNode[1].active = !1; if (i.hp > 0) { this.mHp.string = c.default.t("气血") + ":" + i.hp; this.mMainNode[2].active = !0; } else this.mMainNode[2].active = !1; if (i.sp > 0) { this.mSp.string = c.default.t("速度") + ":" + i.sp; this.mMainNode[3].active = !0; } else this.mMainNode[3].active = !1; if (o.attr.length <= 0) this.mFAttrNode.active = !1; else { this.mFAttrNode.children.forEach(function(t) { "fsx_name" != t.name && t.destroy(); }); this.mFAttrNode.active = !0; for (var n = 0; n < o.attr.length; n++) { var r = o.attr[n], a = cc.instantiate(this.mFAttrItem); a.getComponent(p.default).init(this.main, r); a.parent = this.mFAttrNode; } } if (i.skill > 0) { this.mSkillNode.active = !0; var s = this.main.sManage.getSkillById(i.skill); this.mSkillName.string = c.default.t(s.name); this.mSkillAbout.string = c.default.t(s.about, { VAL1: s.value1, VAL2: s.value2, VAL3: s.value3 }); cc.resources.load("icon/skill/" + s.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mSkillIcon.spriteFrame = o; }); } else this.mSkillNode.active = !1; }; r([ h(cc.Label) ], e.prototype, "mName", void 0); r([ h(cc.Label) ], e.prototype, "mAbout", void 0); r([ h(s.default) ], e.prototype, "mGoodItem", void 0); r([ h(cc.Label) ], e.prototype, "mZdl", void 0); r([ h(cc.Label) ], e.prototype, "mAtk", void 0); r([ h(cc.Label) ], e.prototype, "mDef", void 0); r([ h(cc.Label) ], e.prototype, "mHp", void 0); r([ h(cc.Label) ], e.prototype, "mSp", void 0); r([ h(cc.Node) ], e.prototype, "mFAttrNode", void 0); r([ h(cc.Prefab) ], e.prototype, "mFAttrItem", void 0); r([ h(cc.Node) ], e.prototype, "mSkillNode", void 0); r([ h(cc.Label) ], e.prototype, "mSkillName", void 0); r([ h(cc.Label) ], e.prototype, "mSkillAbout", void 0); r([ h(cc.Sprite) ], e.prototype, "mSkillIcon", void 0); r([ h([ cc.Node ]) ], e.prototype, "mMainNode", void 0); return r([ f ], e); }(a.default); o.default = d; cc._RF.pop(); }, { "../../i18n/i18n": "i18n", "../../main/ViewObject": "ViewObject", "../data/FFCalAttr": "FFCalAttr", "./EquipViewAttr": "EquipViewAttr", "./GoodItem": "GoodItem" } ], EquipInfo: [ function(t, e, o) { "use strict"; cc._RF.push(e, "1c244BPlI9IoqT85xrCEnAc", "EquipInfo"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../common/GoodItem"), s = t("../../common/EquipViewAttr"), p = t("./MainAtterItem"), l = t("../../data/FFCalAttr"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mEquipItem = null; e.mName = null; e.mMainNode = []; e.mFAttrNode = null; e.mFAttrItem = null; e.mSkillNode = null; e.mSkillName = null; e.mSkillAbout = null; e.mSkillIcon = null; return e; } e.prototype.init = function(t, e, o) { var i = this; if (e.equip) { this.node.active = !0; this.main = t; this.equipItem = e; this.mName.string = c.default.t(e.equipData.name); this.mEquipItem.equip = e.equip; this.mEquipItem.equipData = e.equipData; this.mEquipItem.flushEquip(t); var n = e.equipData, r = this.mMainNode[0], a = l.default.getEquipAttr(this.main, this.mEquipItem.equip, n), p = null; if (o && o.equipData) { p = l.default.getEquipAttr(this.main, o.equip, o.equipData); r.setContrase(a.zdl, p.zdl); } else r.setValue(a.zdl); r = this.mMainNode[1]; if (a.atk > 0) { r.node.active = !0; p ? r.setContrase(a.atk, p.atk) : r.setValue(a.atk); } else r.node.active = !1; r = this.mMainNode[2]; if (n.def > 0) { r.node.active = !0; p ? r.setContrase(a.def, p.def) : r.setValue(a.def); } else r.node.active = !1; r = this.mMainNode[3]; if (n.hp > 0) { r.node.active = !0; p ? r.setContrase(a.hp, p.hp) : r.setValue(a.hp); } else r.node.active = !1; r = this.mMainNode[4]; if (n.sp > 0) { r.node.active = !0; p ? r.setContrase(a.sp, p.sp) : r.setValue(a.sp); } else r.node.active = !1; var u = e.equip; if (u.attr.length <= 0) this.mFAttrNode.active = !1; else { this.mFAttrNode.destroyAllChildren(); this.mFAttrNode.active = !0; for (var f = 0; f < u.attr.length; f++) { var h = u.attr[f], d = cc.instantiate(this.mFAttrItem); d.getComponent(s.default).init(this.main, h); d.parent = this.mFAttrNode; } } if (n.skill > 0) { this.mSkillNode.active = !0; var m = this.main.sManage.getSkillById(n.skill); this.mSkillName.string = c.default.t(m.name); this.mSkillAbout.string = c.default.t(m.about, { VAL1: m.value1, VAL2: m.value2, VAL3: m.value3 }); cc.resources.load("icon/skill/" + m.icon, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : i.mSkillIcon.spriteFrame = e; }); } else this.mSkillNode.active = !1; } else this.node.active = !1; }; r([ h(a.default) ], e.prototype, "mEquipItem", void 0); r([ h(cc.Label) ], e.prototype, "mName", void 0); r([ h([ p.default ]) ], e.prototype, "mMainNode", void 0); r([ h(cc.Node) ], e.prototype, "mFAttrNode", void 0); r([ h(cc.Prefab) ], e.prototype, "mFAttrItem", void 0); r([ h(cc.Node) ], e.prototype, "mSkillNode", void 0); r([ h(cc.Label) ], e.prototype, "mSkillName", void 0); r([ h(cc.Label) ], e.prototype, "mSkillAbout", void 0); r([ h(cc.Sprite) ], e.prototype, "mSkillIcon", void 0); return r([ f ], e); }(cc.Component); o.default = d; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../common/EquipViewAttr": "EquipViewAttr", "../../common/GoodItem": "GoodItem", "../../data/FFCalAttr": "FFCalAttr", "./MainAtterItem": "MainAtterItem" } ], EquipItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "332d4ixum1II4V3hvcdGSr9", "EquipItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../common/GoodItem"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.initEquip = function(e, o) { t.prototype.initEquip.call(this, e, o); }; e.prototype.setLock = function() { this.equip = null; this.equipData = null; this.data = null; this.good = null; this.mBG.spriteFrame = this.mBGs[1]; this.mNullNode.active = !1; this.callback = null; }; return r([ s ], e); }(c.default)); o.default = p; cc._RF.pop(); }, { "../../common/GoodItem": "GoodItem" } ], EquipPack: [ function(t, e, o) { "use strict"; cc._RF.push(e, "65fffLyqAxJGoLZUBTYpcYn", "EquipPack"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../common/GoodItem"), a = t("../../data/FFCalAttr"), s = t("../../data/RedPoint"), p = t("./Equip"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mPagContent = null; e.mPagScrollView = null; e.mEquipItem = null; e.mButtonItem = []; e.mCheckIcon = null; e.mNoCheckIcon = null; e.mCheckX = -282; e.mNoCheckX = -267; e.equipType = 1; return e; } e.prototype.onLoad = function() { this.equip = this.node.getComponent(p.default); this.main = this.equip.main; }; e.prototype.init = function(t) { this.petIcon = t; for (var e = 0; e < this.mButtonItem.length; e++) { var o = this.mButtonItem[e]; s.default.removeRed(o); } this.setEquipType(this.equipType); this.flushRedPoint(); }; e.prototype.flushRedPoint = function() { for (var t = this.main.player.equip, e = 0; e < t.length; e++) { var o = t[e]; if (s.default.equipRedPoint(this.main, o, this.petIcon.data)) { var i = this.main.sManage.getEquipById(o.id); if (i.type < this.mButtonItem.length) { var n = this.mButtonItem[i.type - 1]; s.default.addRed(this.main, n, !0, !0); } } } }; e.prototype.setEquipType = function(t) { this.mPagScrollView.stopAutoScroll(); this.mPagScrollView.scrollToTop(); this.equipType = t; this.equip.curPage = t; this.flushPag(); for (var e = 0; e < this.mButtonItem.length; e++) { var o = this.mButtonItem[e], i = o.getComponent(cc.Sprite); if (e == this.equipType - 1) { i.spriteFrame = this.mCheckIcon; o.x = this.mCheckX; } else { i.spriteFrame = this.mNoCheckIcon; o.x = this.mNoCheckX; } } }; e.prototype.flushPag = function() { if (this.mPagContent.children.length <= 0) for (var t = 0; t < 30; t++) cc.instantiate(this.mEquipItem).parent = this.mPagContent; this.flushEquip(); }; e.prototype.flushEquip = function() { for (var t = this, e = this.main.sManage.getRoleById(this.petIcon.id), o = this.main.player.equip, i = 0, n = this.mPagContent, r = 0; r < o.length; r++) { var p = o[r], l = this.main.sManage.getEquipById(p.id); if (l.type == this.equipType && (0 == l.occ || e.post == l.occ)) { i >= n.children.length && this.addItem(n); var u = n.children[i]; s.default.removeRed(u); (d = u.getComponent(c.default)).initEquip(this.main, p); d.setCallback(function(e) { t.checkEquip(e); }); var f = a.default.getEquipAttr(this.main, d.equip, d.equipData), h = cc.macro.MAX_ZINDEX - f.zdl; h < cc.macro.MIN_ZINDEX && (h = cc.macro.MIN_ZINDEX); u.zIndex = h; i++; } } for (r = i; r < n.children.length; r++) { var d; u = n.children[r]; s.default.removeRed(u); (d = u.getComponent(c.default)).setNull(); u.zIndex = cc.macro.MAX_ZINDEX - 1; } }; e.prototype.addItem = function(t) { for (var e = 0; e < 5; e++) cc.instantiate(this.mEquipItem).parent = t; }; e.prototype.checkEquip = function(t) { this.equip.openChangeEquip(t); }; e.prototype.onclickType = function(t, e) { var o = parseInt(e); this.setEquipType(o); }; r([ f(cc.Node) ], e.prototype, "mPagContent", void 0); r([ f(cc.ScrollView) ], e.prototype, "mPagScrollView", void 0); r([ f(cc.Prefab) ], e.prototype, "mEquipItem", void 0); r([ f([ cc.Node ]) ], e.prototype, "mButtonItem", void 0); r([ f(cc.SpriteFrame) ], e.prototype, "mCheckIcon", void 0); r([ f(cc.SpriteFrame) ], e.prototype, "mNoCheckIcon", void 0); r([ f ], e.prototype, "mCheckX", void 0); r([ f ], e.prototype, "mNoCheckX", void 0); return r([ u ], e); }(cc.Component); o.default = h; cc._RF.pop(); }, { "../../common/GoodItem": "GoodItem", "../../data/FFCalAttr": "FFCalAttr", "../../data/RedPoint": "RedPoint", "./Equip": "Equip" } ], EquipQHAttrItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "bb2daxZtPhJ0rcMiruI1N75", "EquipQHAttrItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mAttrName = null; e.mAttrIcon = null; e.mAttrIcons = []; e.mAttrV1 = null; e.mAttrV2 = null; return e; } e.prototype.setAttr = function(t, e, o) { this.mAttrName.string = [ "攻击力", "防御", "气血", "敏捷" ][t]; this.mAttrIcon.spriteFrame = this.mAttrIcons[t]; this.mAttrV1.string = "" + e; this.mAttrV2.string = "" + o; }; r([ s(cc.Label) ], e.prototype, "mAttrName", void 0); r([ s(cc.Sprite) ], e.prototype, "mAttrIcon", void 0); r([ s([ cc.SpriteFrame ]) ], e.prototype, "mAttrIcons", void 0); r([ s(cc.Label) ], e.prototype, "mAttrV1", void 0); r([ s(cc.Label) ], e.prototype, "mAttrV2", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], EquipQHMax: [ function(t, e, o) { "use strict"; cc._RF.push(e, "21f52CJcZxCtqMj9jV+Ts6Z", "EquipQHMax"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../util/CHttp"), p = t("../../common/GoodItem"), l = t("../../data/FFCalAttr"), u = t("./EquipQH"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mEquipItem = null; e.mEquipName = null; e.mEquipName1 = null; e.mContent = null; e.mGoodItem = null; e.mQHLevel1 = null; e.mQHLevel2 = null; e.mQHLevel = null; e.mQHBfbLabel = null; e.mQHBfbBar = null; e.mQHMoney = null; e.mQHMaxLabel = null; e.mXHEquipItem = null; e.mOneKeyBt = null; e.mFullNode = null; e.spine1 = null; e.spine2 = null; e.equip = null; e.petIcon = null; e.curGoodItem = null; e.main = null; e.MAX_MONEY = [ 5e3, 1e4, 15e3, 2e4, 25e3, 0 ]; e.tpType = 0; e.equipAttr = null; e.equipData = null; return e; } e.prototype.onLoad = function() {}; e.prototype.init = function(t, e, o) { this.tpType = 0; this.main = this.node.getComponent(u.default).main; this.equip = t; this.petIcon = e; this.equipAttr = o; this.equipData = this.main.sManage.getEquipById(o.id); this.flushEquipPag(); }; e.prototype.checkToggle = function() { var t = this.mContent.parent.parent.getComponent(cc.ScrollView); t.stopAutoScroll(); t.scrollToTop(); this.curGoodItem = null; this.mXHEquipItem.setNull(); this.flushToggle(); }; e.prototype.flushToggle = function() { var t = this; this.flushEquipPag(); var e = this.node.getComponent(u.default); e.mQHFull.active = !1; this.mOneKeyBt.active = !1; this.mEquipItem.initEquip(this.main, this.equipAttr); this.mEquipName.string = c.default.t(this.equipData.name); this.mEquipName1.string = c.default.t(this.equipData.name); var o = this.equipAttr.qhMax; o >= this.equipData.qh_max ? this.mFullNode.active = !0 : this.mFullNode.active = !1; this.mQHLevel1.string = this.equipData.level + 5 * o + ""; this.mQHMoney.string = "" + this.MAX_MONEY[this.equipAttr.qhMax]; this.flushLevel2(); this.flushAttr(this.equipAttr.PI); e.setSortCallback(function(e) { 0 == e ? u.default.sortPag(0, t.mContent) : u.default.sortPag(1, t.mContent); }); }; e.prototype.flushLevel2 = function() { var t = this.equipAttr.qhMax; this.curGoodItem && (t += 1); t > 5 && (t = 5); this.mQHLevel2.string = this.equipData.level + 5 * t + ""; }; e.prototype.flushEquipPag = function() { for (var t = this, e = this.main.player.equip, o = 0, i = this.mContent, n = 0; n < e.length; n++) { var r = e[n]; if (20001 == r.id || r.id == this.equipAttr.id) if (this.equipAttr.__index == r.__index) this.tpType = 1; else { o >= i.children.length && this.addGoodItem(i); (c = i.children[o]).opacity = 255; (s = c.getComponent(p.default)).initEquip(this.main, r); 20001 == r.id ? c.zIndex = 0 : c.zIndex = s.equipData.pz; s.setCallback(function(e) { t.addEquip(e); t.main.playerEffectByPath(a.AudioMgr.qh2); }); o++; } } for (n = o; n < i.children.length; n++) { var c, s; (c = i.children[n]).opacity = 255; (s = c.getComponent(p.default)).setNull(); c.zIndex = cc.macro.MAX_ZINDEX - 1; } }; e.prototype.flushAttr = function(t) { var e, o = this.equipData, i = this.main.sManage.getEquipQHByType(o), n = l.default.getEquipQHLevel(this.main, t, o); n > 0 && i[n - 1]; e = n >= i.length ? i[n - 1] : i[n]; var r = o.level + 5 * this.equipAttr.qhMax; n > r && (n = r); this.mQHLevel.string = "Lv." + n + "/" + r; var a = (t - 0) / (e.exp - 0); a > 1 && (a = 1); this.mQHBfbBar.progress = a; this.mQHBfbLabel.string = Math.floor(100 * a) + "%"; this.mQHMaxLabel.string = c.default.t("上限突破次数") + this.equipAttr.qhMax + "/5"; }; e.prototype.addGoodItem = function(t) { for (var e = 0; e < 4; e++) cc.instantiate(this.mGoodItem).parent = t; }; e.prototype.addEquip = function(t) { this.curGoodItem && (this.curGoodItem.node.opacity = 255); this.curGoodItem = t; this.curGoodItem.node.opacity = 100; this.mXHEquipItem.initEquip(this.main, t.equip); this.flushLevel2(); }; e.prototype.onclickTP = function() { 0 == this.tpType ? this.tpFunc() : 1 == this.tpType && this.tpFunc1(); }; e.prototype.tpFunc = function() { var t = this; if (this.curGoodItem) { var e = { petId: this.petIcon.id, equipId: this.equipAttr.id, equipIndex: this.curGoodItem.equip.__index }; this.main.gameHttp.sendJson("equip/v1/qhMax", e, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.playerEffectByPath(a.AudioMgr.qh); t.playQHSpine(); t.equipAttr.qhMax += 1; t.curGoodItem = null; t.mXHEquipItem.setNull(); t.flushToggle(); t.equip.flushEquip(t.petIcon); t.equip.flushPagSize(); t.main.showTips("强化上限成功"); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); } else this.main.showTips("没有添加任何材料"); }; e.prototype.tpFunc1 = function() { var t = this; if (this.curGoodItem) { var e = { equipIndex1: this.equipAttr.__index, equipIndex2: this.curGoodItem.equip.__index }; this.main.gameHttp.sendJson("equip/v1/qhMax1", e, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.playerEffectByPath(a.AudioMgr.qh); t.playQHSpine(); t.equipAttr.qhMax += 1; t.curGoodItem = null; t.mXHEquipItem.setNull(); t.flushToggle(); t.equip.mEquipPack.setEquipType(t.equip.curPage); t.equip.flushEquip(t.petIcon); t.equip.flushPagSize(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); } else this.main.showTips("没有添加任何材料"); }; e.prototype.playQHSpine = function() { var t = this; this.spine1.setAnimation(0, "atk", !1); this.spine1.setCompleteListener(function() { t.spine1.setAnimation(0, "idle", !1); t.spine2.node.active = !0; t.spine2.setAnimation(0, "animation", !1); t.spine2.setCompleteListener(function() { t.spine2.node.active = !1; t.spine1.clearTrack(0); }); }); }; r([ d(p.default) ], e.prototype, "mEquipItem", void 0); r([ d(cc.Label) ], e.prototype, "mEquipName", void 0); r([ d(cc.Label) ], e.prototype, "mEquipName1", void 0); r([ d(cc.Node) ], e.prototype, "mContent", void 0); r([ d(cc.Prefab) ], e.prototype, "mGoodItem", void 0); r([ d(cc.Label) ], e.prototype, "mQHLevel1", void 0); r([ d(cc.Label) ], e.prototype, "mQHLevel2", void 0); r([ d(cc.Label) ], e.prototype, "mQHLevel", void 0); r([ d(cc.Label) ], e.prototype, "mQHBfbLabel", void 0); r([ d(cc.ProgressBar) ], e.prototype, "mQHBfbBar", void 0); r([ d(cc.Label) ], e.prototype, "mQHMoney", void 0); r([ d(cc.Label) ], e.prototype, "mQHMaxLabel", void 0); r([ d(p.default) ], e.prototype, "mXHEquipItem", void 0); r([ d(cc.Node) ], e.prototype, "mOneKeyBt", void 0); r([ d(cc.Node) ], e.prototype, "mFullNode", void 0); r([ d(sp.Skeleton) ], e.prototype, "spine1", void 0); r([ d(sp.Skeleton) ], e.prototype, "spine2", void 0); return r([ h ], e); }(cc.Component); o.default = m; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../util/CHttp": "CHttp", "../../common/GoodItem": "GoodItem", "../../data/FFCalAttr": "FFCalAttr", "./EquipQH": "EquipQH" } ], EquipQH: [ function(t, e, o) { "use strict"; cc._RF.push(e, "9c6c7LQQ2lJDIJ9hjiBfj/T", "EquipQH"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = t("../../data/FFCalAttr"), f = t("./EquipQHAttrItem"), h = t("./EquipQHMax"), d = t("./EquipStar"), m = cc._decorator, y = m.ccclass, v = m.property, g = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mEquipItem = null; e.mEquipName = null; e.mContent = null; e.mGoodItem = null; e.mQHLevel = null; e.mQHBfbLabel = null; e.mQHBfbBar = null; e.mQHMoney = null; e.mXhContent = null; e.mBtSort = null; e.mQHFull = null; e.mFullWord = null; e.mQHAttrs = []; e.mOneKeyBt = null; e.QHBtnNode = null; e.spine1 = null; e.spine2 = null; e.equip = null; e.petIcon = null; e.curGoodItem = []; e.inGuide = !1; e.guideStep = 0; e.qhType = 0; e.equipAttr = null; return e; } o = e; e.prototype.onLoad = function() { this.mBtSort.active = !1; }; e.prototype.init = function(t, e, o) { var i = this; this.qhType = 0; this.equip = o; this.petIcon = e; this.equipAttr = t; this.mEquipItem.initEquip(this.main, t); this.mEquipName.string = c.default.t(this.main.sManage.getEquipById(t.id).name); for (var n = 0; n < 20; n++) cc.instantiate(this.mGoodItem).parent = this.mContent; for (n = 0; n < 10; n++) cc.instantiate(this.mGoodItem).parent = this.mXhContent; this.checkToggle(); this.node.getComponent(h.default).init(this.equip, e, t); this.node.getComponent(d.default).init(this.equip, e, t); this.scheduleOnce(function() { i.inGuide && 1 == i.guideStep && i.onGuide_1(); }, .1); }; e.prototype.checkToggle = function() { var t = this, e = this.mContent.parent.parent.getComponent(cc.ScrollView); e.stopAutoScroll(); e.scrollToTop(); this.mEquipItem.flushEquip(this.main); this.curGoodItem = []; this.flushEquipPag(); this.flushXH(); this.setOneKeyCallback(function() { t.oneKeyPush(); }); this.setSortCallback(function(e) { 0 == e ? o.sortPag(0, t.mContent) : o.sortPag(1, t.mContent); }); }; e.prototype.flushAttr = function(t) { var e = this.main.sManage.getEquipById(this.equipAttr.id), o = this.main.sManage.getEquipQHByType(e), i = u.default.getEquipQHLevel(this.main, this.equipAttr.PI, e), n = u.default.getEquipQHLevel(this.main, t, e), r = e.level + 5 * this.equipAttr.qhMax; if (n >= r) { this.mQHFull.active = !0; n = r; } else this.mQHFull.active = !1; this.mOneKeyBt.active = !(i >= r); if (this.curGoodItem.length >= 10) { this.mQHFull.active = !0; this.mOneKeyBt.children[0].getComponent(cc.Label).string = "一键卸下"; } else this.mOneKeyBt.children[0].getComponent(cc.Label).string = "一键放入"; var c, a = 0; i > 0 && (a = o[i - 1].exp); n > 0 && (a = o[n - 1].exp); c = n >= o.length ? o[n - 1] : o[n]; var s = n - i; this.mQHLevel.string = s > 0 ? "Lv." + n + "/" + r + "(+" + s + ")" : "Lv." + n + "/" + r; var p = (t - a) / (c.exp - a); p > 1 && (p = 1); this.mQHBfbBar.progress = p; this.mQHBfbLabel.string = Math.floor(100 * p) + "%"; this.mFullWord.active = i >= r; var l = u.default.getEquipAttr(this.main, this.equipAttr, e), f = cc.instantiate(this.equipAttr); f.PI = t; for (var h = u.default.getEquipAttr(this.main, f, e), d = [ l.atk, l.def, l.hp, l.sp ], m = [ h.atk, h.def, h.hp, h.sp ], y = 0, v = 0; v < 4; v++) { var g = d[v], _ = m[v]; if (g > 0) { this.mQHAttrs[y].setAttr(v, g, _); y++; } } for (v = y; v < this.mQHAttrs.length; v++) this.mQHAttrs[v].node.active = !1; }; e.prototype.flushEquipPag = function() { for (var t = this, e = this.main.player.equip, o = 0, i = this.mContent, n = 0; n < e.length; n++) { var r = e[n], c = this.main.sManage.getEquipById(r.id); if (5 != c.type && 6 != c.type && 11 != c.type) if (this.mEquipItem.equip.__index != r.__index) { o >= i.children.length && this.addGoodItem(i); (p = i.children[o]).opacity = 255; (f = p.getComponent(l.default)).initEquip(this.main, r); if (r.id >= 1e4 && r.id < 2e4) p.zIndex = 0; else { var s = u.default.getZdl(f.equipData); s > cc.macro.MAX_ZINDEX - 2 && (s = cc.macro.MAX_ZINDEX - 2); p.zIndex = s; } f.setCallback(function(e) { t.main.playerEffectByPath(a.AudioMgr.qh2); t.addEquip(e); t.guideCallback && t.guideCallback(); }); o++; } else this.qhType = 1; } for (n = o; n < i.children.length; n++) { var p, f; (p = i.children[n]).opacity = 255; (f = p.getComponent(l.default)).setNull(); p.zIndex = cc.macro.MAX_ZINDEX - 1; } }; e.prototype.addGoodItem = function(t) { for (var e = 0; e < 4; e++) cc.instantiate(this.mGoodItem).parent = t; }; e.prototype.setOneKeyCallback = function(t) { this.oneKeyCallback = t; }; e.prototype.oneKeyPush = function() { if (this.curGoodItem.length >= 10) { for (var t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255; this.curGoodItem = []; } else { for (t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255; this.curGoodItem = []; var e = 0; for (t = 0; t < 10 && !(t >= this.mContent.children.length); t++) { var o = this.mContent.children[t].getComponent(l.default); if (o.equip) { o.node.opacity = 100; e += o.equipData.qh_exp; e += o.equip.PI; var i = this.equipAttr.PI + e; this.curGoodItem.push(o); if (u.default.getEquipQHLevel(this.main, i, this.main.sManage.getEquipById(this.equipAttr.id)) >= this.main.sManage.getEquipById(this.equipAttr.id).level + 5 * this.equipAttr.qhMax) break; } } } this.flushXH(); }; e.prototype.onclickOneKey = function() { this.oneKeyCallback && this.oneKeyCallback(); }; e.prototype.addEquip = function(t) { if (100 != t.node.opacity) if (this.curGoodItem.length >= 10) this.main.showTips(c.default.t("消耗材料以满")); else { t.node.opacity = 100; this.curGoodItem.push(t); this.flushXH(); } }; e.prototype.removeEquip = function(t) { for (var e = 0; e < this.curGoodItem.length; e++) { var o = this.curGoodItem[e]; if (o.equip.__index == t.equip.__index) { o.node.opacity = 255; this.curGoodItem.splice(e, 1); break; } } this.flushXH(); }; e.prototype.flushXH = function() { for (var t = this, e = 0, o = 0; o < this.mXhContent.children.length; o++) { var i = this.mXhContent.children[o].getComponent(l.default); if (o < this.curGoodItem.length) { var n = this.curGoodItem[o]; i.initEquip(this.main, n.equip); i.setCallback(function(e) { t.removeEquip(e); }); e += n.equipData.qh_exp; e += n.equip.PI; } else i.setNull(); } this.mQHMoney.string = "" + 5 * e; var r = this.equipAttr.PI + e; this.flushAttr(r); }; e.prototype.onclickSort = function() { this.mBtSort.active = !this.mBtSort.active; }; e.prototype.setSortCallback = function(t) { this.sortCallback = t; }; e.sortPag = function(t, e) { for (var o = 0; o < e.children.length; o++) { var i = e.children[o], n = i.getComponent(l.default); if (n.equip) if (20001 == n.equipData.id) i.zIndex = 0; else if (n.equipData.id >= 1e4 && n.equipData.id < 2e4) i.zIndex = 0; else if (0 == t) i.zIndex = n.equipData.pz; else { var r = u.default.getZdl(n.equipData); r > cc.macro.MAX_ZINDEX - 2 && (r = cc.macro.MAX_ZINDEX - 2); i.zIndex = r; } else i.zIndex = cc.macro.MAX_ZINDEX - 1; } }; e.prototype.onclickStarSort = function() { this.mBtSort.active = !1; this.sortCallback(0); }; e.prototype.onclickZdlSort = function() { this.mBtSort.active = !1; this.sortCallback(1); }; e.prototype.onclickQHSend = function() { 0 == this.qhType ? this.QHFcun() : 1 == this.qhType && this.QHFcun1(); }; e.prototype.QHFcun = function() { for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) { var i = this.curGoodItem[o]; e.push(i.equip.__index); } if (0 != e.length) { var n = { petId: this.petIcon.id, equipId: this.equipAttr.id, equips: e }; this.main.gameHttp.sendJson("equip/v1/qh", n, function(e, o) { t.main.stopLoad(); if (e == p.HttpStateType.SUCCESS) if (0 == o.retCode) { t.playQHSpine(); t.main.playerEffectByPath(a.AudioMgr.qh); t.equipAttr.PI = o.data.PI; t.curGoodItem = []; t.mEquipItem.flushEquip(t.main); t.flushEquipPag(); t.equip.flushEquip(t.petIcon); t.equip.flushPagSize(); t.flushXH(); t.inGuide && 1 == t.guideStep && t.onGuideExit(); t.main.showTips("强化成功"); } else { t.main.showTips(o.message); t.inGuide && 1 == t.guideStep && t.onGuideExit(); } else t.main.showTips("网络异常"); }); } else this.main.showTips("没有添加任何材料"); }; e.prototype.QHFcun1 = function() { for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) { var i = this.curGoodItem[o]; e.push(i.equip.__index); } if (0 != e.length) { var n = { equipIndex: this.mEquipItem.equip.__index, equips: e }; this.main.gameHttp.sendJson("equip/v1/qh1", n, function(e, o) { t.main.stopLoad(); if (e == p.HttpStateType.SUCCESS) if (0 == o.retCode) { t.playQHSpine(); t.main.playerEffectByPath(a.AudioMgr.qh); t.equipAttr.PI = o.data.PI; t.curGoodItem = []; t.mEquipItem.flushEquip(t.main); t.equip.mEquipPack.setEquipType(t.equip.curPage); t.flushEquipPag(); t.equip.flushEquip(t.petIcon); t.equip.flushPagSize(); t.flushXH(); t.main.showTips("强化成功"); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); } else this.main.showTips("没有添加任何材料"); }; e.prototype.playQHSpine = function() { var t = this; this.spine1.setAnimation(0, "atk", !1); this.spine1.setCompleteListener(function() { t.spine1.setAnimation(0, "idle", !1); t.spine2.node.active = !0; t.spine2.setAnimation(0, "animation", !1); t.spine2.setCompleteListener(function() { t.spine2.node.active = !1; t.spine1.clearTrack(0); }); }); }; e.prototype.setGuideCallback = function(t) { this.guideCallback = t; }; e.prototype.onGuide_1 = function() { var t = this, e = this.main.mGuideMask, o = this.mContent.children[0]; e.setTargetNode(o); e.show(); this.setGuideCallback(function() { o = t.QHBtnNode; e.setTargetNode(o); }); }; e.prototype.onGuideExit = function() { var t = this.main.mGuideMask, e = this.node.getChildByName("top_left").getChildByName("fh"); t.setTargetNode(e); t.show(); var o = this.closeCallback; this.setCloseCallback(function() { t.close(); o && o(); }); }; var o; r([ v(l.default) ], e.prototype, "mEquipItem", void 0); r([ v(cc.Label) ], e.prototype, "mEquipName", void 0); r([ v(cc.Node) ], e.prototype, "mContent", void 0); r([ v(cc.Prefab) ], e.prototype, "mGoodItem", void 0); r([ v(cc.Label) ], e.prototype, "mQHLevel", void 0); r([ v(cc.Label) ], e.prototype, "mQHBfbLabel", void 0); r([ v(cc.ProgressBar) ], e.prototype, "mQHBfbBar", void 0); r([ v(cc.Label) ], e.prototype, "mQHMoney", void 0); r([ v(cc.Node) ], e.prototype, "mXhContent", void 0); r([ v(cc.Node) ], e.prototype, "mBtSort", void 0); r([ v(cc.Node) ], e.prototype, "mQHFull", void 0); r([ v(cc.Node) ], e.prototype, "mFullWord", void 0); r([ v([ f.default ]) ], e.prototype, "mQHAttrs", void 0); r([ v(cc.Node) ], e.prototype, "mOneKeyBt", void 0); r([ v(cc.Node) ], e.prototype, "QHBtnNode", void 0); r([ v(sp.Skeleton) ], e.prototype, "spine1", void 0); r([ v(sp.Skeleton) ], e.prototype, "spine2", void 0); return o = r([ y ], e); }(s.default); o.default = g; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "../../common/GoodItem": "GoodItem", "../../data/FFCalAttr": "FFCalAttr", "./EquipQHAttrItem": "EquipQHAttrItem", "./EquipQHMax": "EquipQHMax", "./EquipStar": "EquipStar" } ], EquipStar: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a4bc0wz4CdLk7Bban26d6NF", "EquipStar"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../util/CHttp"), p = t("../../common/GoodItem"), l = t("./EquipQH"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mEquipItem = null; e.mContent = null; e.mGoodItem = null; e.mEquipName = null; e.mBfbLabel = null; e.mBfbBar = null; e.mQHMoney = null; e.mXhContent = null; e.mOneKeyBt = null; e.mAttrLabel = null; e.mFullNode = null; e.spine1 = null; e.spine2 = null; e.equip = null; e.petIcon = null; e.curGoodItem = []; e.STAR_GL = [ 50, 30, 20, 10 ]; e.STAR_MONEY = [ 5e3, 2e4, 5e4, 12e4, 2e5 ]; e.main = null; e.starType = 0; e.equipAttr = null; e.equipData = null; return e; } e.prototype.onLoad = function() { this.mFullNode.active = !1; this.mBfbLabel.string = "0%"; this.mBfbBar.progress = 0; }; e.prototype.init = function(t, e, o) { this.starType = 0; this.main = this.node.getComponent(l.default).main; this.equip = t; this.petIcon = e; this.equipAttr = o; this.equipData = this.main.sManage.getEquipById(o.id); for (var i = 0; i < 10; i++) cc.instantiate(this.mGoodItem).parent = this.mXhContent; this.mQHMoney.string = "" + this.STAR_MONEY[this.equipAttr.star]; this.flushEquipPag(); }; e.prototype.checkToggle = function() { var t = this, e = this.mContent.parent.parent.getComponent(cc.ScrollView); e.stopAutoScroll(); e.scrollToTop(); this.mOneKeyBt.active = !0; this.mEquipItem.initEquip(this.main, this.equipAttr); this.mEquipName.string = c.default.t(this.equipData.name); this.curGoodItem = []; this.flushEquipPag(); this.flushXH(); var o = this.node.getComponent(l.default); o.setOneKeyCallback(function() { t.oneKeyPush(); }); o.setSortCallback(function(e) { 0 == e ? l.default.sortPag(0, t.mContent) : l.default.sortPag(1, t.mContent); }); }; e.prototype.flushEquipPag = function() { for (var t = this, e = this.main.player.equip, o = 0, i = this.mContent, n = 0; n < e.length; n++) { var r = e[n]; if (r.star == this.equipAttr.star) if (this.equipAttr.__index == r.__index) this.starType = 1; else { var c = this.main.sManage.getEquipById(r.id); if (c.type == this.equipData.type && c.pz == this.equipData.pz) { o >= i.children.length && this.addGoodItem(i); (s = i.children[o]).opacity = 255; (l = s.getComponent(p.default)).initEquip(this.main, r); l.setCallback(function(e) { t.addEquip(e); t.main.playerEffectByPath(a.AudioMgr.qh2); }); o++; } } } for (n = o; n < i.children.length; n++) { var s, l; (s = i.children[n]).opacity = 255; (l = s.getComponent(p.default)).setNull(); } }; e.prototype.addGoodItem = function(t) { for (var e = 0; e < 4; e++) cc.instantiate(this.mGoodItem).parent = t; }; e.prototype.addEquip = function(t) { if (100 != t.node.opacity) if (this.curGoodItem.length >= 10) this.main.showTips(c.default.t("消耗材料以满")); else { t.node.opacity = 100; this.curGoodItem.push(t); this.flushXH(); } }; e.prototype.removeEquip = function(t) { for (var e = 0; e < this.curGoodItem.length; e++) { var o = this.curGoodItem[e]; if (o.equip.__index == t.equip.__index) { o.node.opacity = 255; this.curGoodItem.splice(e, 1); break; } } this.flushXH(); }; e.prototype.flushXH = function() { var t = this; if (this.equipAttr.star >= 5) this.mFullNode.active = !0; else { for (var e = 0, o = 0; o < this.mXhContent.children.length; o++) { var i = this.mXhContent.children[o].getComponent(p.default); if (o < this.curGoodItem.length) { var n = this.curGoodItem[o]; i.initEquip(this.main, n.equip); i.setCallback(function(e) { t.removeEquip(e); }); e += this.STAR_GL[this.equipAttr.star]; } else i.setNull(); } if (e >= 100) { e = 100; this.node.getComponent(l.default).mQHFull.active = !0; this.mAttrLabel.string = "基础属性提升+" + 10 * (this.equipAttr.star + 1) + "%"; } else { this.node.getComponent(l.default).mQHFull.active = !1; this.mAttrLabel.string = "基础属性提升+" + 10 * this.equipAttr.star + "%"; } this.mBfbLabel.string = e + "%"; this.mBfbBar.progress = e / 100; this.mQHMoney.string = "" + this.STAR_MONEY[this.equipAttr.star]; this.curGoodItem.length >= 10 ? this.mOneKeyBt.children[0].getComponent(cc.Label).string = c.default.t("一键卸下") : this.mOneKeyBt.children[0].getComponent(cc.Label).string = c.default.t("一键放入"); } }; e.prototype.oneKeyPush = function() { if (this.curGoodItem.length >= 10) { for (var t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255; this.curGoodItem = []; } else { for (t = 0; t < this.curGoodItem.length; t++) this.curGoodItem[t].node.opacity = 255; this.curGoodItem = []; var e = 0; for (t = 0; t < 10 && !(t >= this.mContent.children.length); t++) { var o = this.mContent.children[t].getComponent(p.default); if (o.equip) { o.node.opacity = 100; e += this.STAR_GL[this.equipAttr.star]; this.curGoodItem.push(o); if (e >= 100) break; } } } this.flushXH(); }; e.prototype.onclickStar = function() { 0 == this.starType ? this.starFunc() : 1 == this.starType && this.starFunc1(); }; e.prototype.starFunc = function() { for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) { var i = this.curGoodItem[o]; e.push(i.equip.__index); } if (0 != e.length) { var n = { petId: this.petIcon.id, equipId: this.equipAttr.id, equips: e }; this.main.gameHttp.sendJson("equip/v1/star", n, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { if (o.data.star > 0) { t.main.playerEffectByPath(a.AudioMgr.qh); t.playQHSpine(); t.equipAttr.star = o.data.star; t.main.showTips("升星成功"); } else t.main.showTips("升级失败"); t.curGoodItem = []; t.mEquipItem.flushEquip(t.main); t.flushEquipPag(); t.equip.flushEquip(t.petIcon); t.equip.flushPagSize(); t.flushXH(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); } else this.main.showTips("没有添加任何材料"); }; e.prototype.starFunc1 = function() { for (var t = this, e = [], o = 0; o < this.curGoodItem.length; o++) { var i = this.curGoodItem[o]; e.push(i.equip.__index); } if (0 != e.length) { var n = { equipIndex: this.equipAttr.__index, equips: e }; this.main.gameHttp.sendJson("equip/v1/star1", n, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { if (o.data.star > 0) { t.main.playerEffectByPath(a.AudioMgr.qh); t.playQHSpine(); t.equipAttr.star = o.data.star; } else t.main.showTips("升级失败"); t.curGoodItem = []; t.mEquipItem.flushEquip(t.main); t.flushEquipPag(); t.equip.flushEquip(t.petIcon); t.equip.flushPagSize(); t.flushXH(); t.equip.mEquipPack.setEquipType(t.equip.curPage); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); } else this.main.showTips("没有添加任何材料"); }; e.prototype.playQHSpine = function() { var t = this; this.spine1.setAnimation(0, "atk", !1); this.spine1.setCompleteListener(function() { t.spine1.setAnimation(0, "idle", !1); t.spine2.node.active = !0; t.spine2.setAnimation(0, "animation", !1); t.spine2.setCompleteListener(function() { t.spine2.node.active = !1; t.spine1.clearTrack(0); }); }); }; r([ h(p.default) ], e.prototype, "mEquipItem", void 0); r([ h(cc.Node) ], e.prototype, "mContent", void 0); r([ h(cc.Prefab) ], e.prototype, "mGoodItem", void 0); r([ h(cc.Label) ], e.prototype, "mEquipName", void 0); r([ h(cc.Label) ], e.prototype, "mBfbLabel", void 0); r([ h(cc.ProgressBar) ], e.prototype, "mBfbBar", void 0); r([ h(cc.Label) ], e.prototype, "mQHMoney", void 0); r([ h(cc.Node) ], e.prototype, "mXhContent", void 0); r([ h(cc.Node) ], e.prototype, "mOneKeyBt", void 0); r([ h(cc.Label) ], e.prototype, "mAttrLabel", void 0); r([ h(cc.Node) ], e.prototype, "mFullNode", void 0); r([ h(sp.Skeleton) ], e.prototype, "spine1", void 0); r([ h(sp.Skeleton) ], e.prototype, "spine2", void 0); return r([ f ], e); }(cc.Component); o.default = d; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../util/CHttp": "CHttp", "../../common/GoodItem": "GoodItem", "./EquipQH": "EquipQH" } ], EquipViewAttr: [ function(t, e, o) { "use strict"; cc._RF.push(e, "4746cRTiqZCk61R5ceSjtKL", "EquipViewAttr"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mName = null; e.mValue = null; return e; } e.prototype.init = function(t, e) { var o = this, i = t.sManage.getEquipAttrById(e.K); if (i) { this.mName.string = c.default.t(i.name); this.mValue.string = "+" + e.V + "%"; cc.resources.load("icon/attr/attribute_icon_" + e.K, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : o.mIcon.spriteFrame = e; }); } }; r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ p(cc.Label) ], e.prototype, "mName", void 0); r([ p(cc.Label) ], e.prototype, "mValue", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../i18n/i18n": "i18n" } ], Equip: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ccfcd2nMEBDgLLIA3mr1U1u", "Equip"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = t("../../common/PetIcon"), f = t("../../data/FFCalAttr"), h = t("../../data/RedPoint"), d = t("./EquipItem"), m = t("./EquipPack"), y = cc._decorator, v = y.ccclass, g = y.property, _ = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mPetList = null; e.mPetPrefab = null; e.mModel = null; e.mEquips = []; e.mEquipPrefab = null; e.mZdl = null; e.mAtk = null; e.mDef = null; e.mHp = null; e.mPagSize = null; e.mSp = null; e.mEquipPack = null; e.mBtExit = null; e.curPage = 1; e.inGuide = !1; e.guideStep = 0; e.openId = -1; return e; } o = e; e.prototype.httpEvent = function(t) { null != t.data._equip && this.mEquipPack.setEquipType(this.curPage); }; e.prototype.onLoad = function() { var t = this, e = this.main.player.pet, o = 0; for (var i in e) { var n = e[i], r = cc.instantiate(this.mPetPrefab), c = r.getComponent(u.default); c.id = parseInt(i); c.data = n; var a = f.default.getAttr(this.main, c.data); c.flushIcon(a); r.parent = this.mPetList; c.setCallback(function(e) { t.checkPet(e); }); o += a.zdl; } var s = { zdl: o }; this.main.gameHttp.sendJson("role/v1/zdl", s, function() {}); }; e.prototype.setCloseCallback = function(t) { this.closeCallback = t; }; e.prototype.start = function() { for (var t = this.mPetList.children, e = 0; e < t.length; e++) { var o = t[e], i = o.getComponent(u.default); -1 == this.openId && (this.openId = i.data.id); i.data.id == this.openId ? i.onclick() : h.default.petRedPoint(this.main, i.data) ? h.default.addRed(this.main, o) : h.default.removeRed(o); } this.inGuide && (0 == this.guideStep ? this.onGuide() : 1 == this.guideStep && this.onGuide_1()); }; e.prototype.flushPagSize = function() { var t = this.main.player.equip; this.mPagSize.string = c.default.t("背包容量") + ":" + t.length + "/500"; }; e.prototype.checkPet = function(t) { var e = this; this.flushPagSize(); this.curPi = t; var i = this.main.sManage.getRoleById(t.id); this.mModel.destroyAllChildren(); var n = f.default.getAttr(this.main, t.data); cc.resources.load("prefab/role/" + i.act, cc.Prefab, function(t, i) { if (t) cc.error(t); else { var r = cc.instantiate(i); r.parent = e.mModel; var c = r.getChildByName("juese01"), a = c.getChildByName("spineRight").getComponent(sp.Skeleton), s = a.findBone("control"); if (s) { s.data.rotation = 0; s.rotation = 0; } c.children[0].active = !1; a.setSkin(n.skin); o.chaneWeapon(a, n.weapon); } }); for (var r = function(t) { var o = c.mEquips[t]; o.setNull(); o.setCallback(function() { e.mEquipPack.setEquipType(t + 1); }); }, c = this, a = 0; a < this.mEquips.length; a++) r(a); this.flushEquip(t); this.flushAttr(n); t.flushIcon(n); }; e.chaneWeapon = function(t, e) { var o = e + "/1", i = e + "/2", n = t.skeletonData.getRuntimeData(), r = n.findSkin("default"), c = t.findSlot("1"), a = t.findSlot("2"), s = n.findSlotIndex("1"), p = r.getAttachment(s, o), l = n.findSlotIndex("2"), u = r.getAttachment(l, i); c && c.setAttachment(p); a && a.setAttachment(u); }; e.prototype.flushEquip = function(t) { for (var e = this, o = t.data.equips, i = 0; i < o.length; i++) { var n = o[i], r = this.main.sManage.getEquipById(n.id).type - 1, c = this.mEquips[r]; c.initEquip(this.main, n); c.setCallback(function(t) { e.openGoodAbout(t); }); } this.mEquipPack.init(t); }; e.prototype.flushAttr = function(t) { this.mZdl.string = "" + t.zdl; this.mAtk.string = "" + t.atk; this.mDef.string = "" + t.def; this.mHp.string = "" + t.hp; this.mSp.string = "" + t.sp; }; e.prototype.openInfo = function() { var t = this; this.main.viewManage.loadFunc(a.GameViewType.petInfo, function(e) { e.init(t.curPi); e.show(); }); }; e.prototype.openChangeEquip = function(t) { var e = this; this.main.viewManage.loadFunc(a.GameViewType.changeEquip, function(o) { var i = o; i.equip = e; var n = t.equipData.type; i.inGuide = e.inGuide; i.guideStep = e.guideStep; e.inGuide = !1; i.init(e.curPi, t, e.mEquips[n - 1]); o.show(); }); }; e.prototype.openGoodAbout = function(t) { var e = this; this.main.viewManage.loadFunc(a.GameViewType.goodAbout, function(o) { var i = o; i.inGuide = e.inGuide; i.guideStep = e.guideStep; i.init(t); o.show(); i.setQHCallback(function(t) { i.exitDistroy(); e.openIntensifyEquip(t); }); if (5 == t.equipData.type) { i.mUnInstallNode.active = !0; i.setUnCallback(function(t) { i.exitDistroy(); e.uninstallEquip(t); }); } }); }; e.prototype.openIntensifyEquip = function(t) { var e = this; this.main.viewManage.loadFunc(a.GameViewType.IntensifyEquip, function(o) { var i = o; i.inGuide = e.inGuide; i.guideStep = e.guideStep; i.init(t.equip, e.curPi, e); o.show(); e.inGuide && 1 == e.guideStep && i.setCloseCallback(function() { e.onGuideExit(); }); }); }; e.prototype.uninstallEquip = function(t) { var e = this, o = { petId: this.curPi.id, equipId: t.equip.id }; this.main.gameHttp.sendJson("equip/v1/uninstall", o, function(t, o) { e.main.stopLoad(); t == p.HttpStateType.SUCCESS ? 0 == o.retCode ? e.checkPet(e.curPi) : e.main.showTips(o.message) : e.main.showTips("网络异常"); }); }; e.prototype.onGuide = function() { var t = this.main.mGuideMask, e = this.mEquipPack.mPagContent.children[0]; t.setTargetNode(e); t.show(); var o = e.getComponent(l.default); o.inGuide = !0; o.setGuideCallback(function() { t.close(); }); }; e.prototype.onGuide_1 = function() { var t = this.main.mGuideMask, e = this.mEquips[0].node; t.setTargetNode(e); t.show(); var o = e.getComponent(l.default); o.inGuide = !0; o.setGuideCallback(function() { t.close(); }); }; e.prototype.onGuideExit = function() { var t = this.main.mGuideMask, e = this.mBtExit; t.setTargetNode(e); t.show(); var o = this.closeCallback; this.setCloseCallback(function() { t.close(); o && o(); }); }; var o; r([ g(cc.Node) ], e.prototype, "mPetList", void 0); r([ g(cc.Prefab) ], e.prototype, "mPetPrefab", void 0); r([ g(cc.Node) ], e.prototype, "mModel", void 0); r([ g([ d.default ]) ], e.prototype, "mEquips", void 0); r([ g(cc.Prefab) ], e.prototype, "mEquipPrefab", void 0); r([ g(cc.Label) ], e.prototype, "mZdl", void 0); r([ g(cc.Label) ], e.prototype, "mAtk", void 0); r([ g(cc.Label) ], e.prototype, "mDef", void 0); r([ g(cc.Label) ], e.prototype, "mHp", void 0); r([ g(cc.Label) ], e.prototype, "mPagSize", void 0); r([ g(cc.Label) ], e.prototype, "mSp", void 0); r([ g(m.default) ], e.prototype, "mEquipPack", void 0); r([ g(cc.Node) ], e.prototype, "mBtExit", void 0); return o = r([ v ], e); }(s.default); o.default = _; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "../../common/GoodItem": "GoodItem", "../../common/PetIcon": "PetIcon", "../../data/FFCalAttr": "FFCalAttr", "../../data/RedPoint": "RedPoint", "./EquipItem": "EquipItem", "./EquipPack": "EquipPack" } ], EventButton: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a980bpXF8BBJo/Z/bu/bD28", "EventButton"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; return e; } e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback && this.callback(); }; r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], ExchangeAmethystView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "d1d229OK41DPbGEQuC8r4aQ", "ExchangeAmethystView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../../util/CHttp"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.lbdrawcount = null; e.lbneed = null; e.lbhave = null; e.diamond_1 = null; e.diamond_2 = null; e.count = 0; e.callBack = null; return e; } e.prototype.init = function(t, e, o) { this.callBack = o; var i = this.main.player.getGoodCount(1009); this.count = e - i; this.lbdrawcount.string = "抽奖" + t + "次"; this.lbneed.string = "" + e; this.lbhave.string = "" + i; this.diamond_1.string = "(可消耗" + 10 * this.count + "钻石购买)"; this.diamond_2.string = "" + 10 * this.count; }; e.prototype.buy = function() { var t = this, e = { count: this.count }; this.main.gameHttp.sendJson("pandora/v1/buyZsj", e, function(e, o) { t.main.stopLoad(); if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) { console.log("==reve=exchangeamethyst===", o); t.callBack && t.callBack(); t.exitDistroy(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.onClick = function() { this.buy(); }; r([ l(cc.Label) ], e.prototype, "lbdrawcount", void 0); r([ l(cc.Label) ], e.prototype, "lbneed", void 0); r([ l(cc.Label) ], e.prototype, "lbhave", void 0); r([ l(cc.Label) ], e.prototype, "diamond_1", void 0); r([ l(cc.Label) ], e.prototype, "diamond_2", void 0); return r([ p ], e); }(c.default); o.default = u; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp" } ], FAltar1_3: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c471eJKJr5Cc7NeDuvBqDID", "FAltar1_3"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../../main/ViewManage"), a = t("../../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.spine = null; e.mTipsIcon = null; e.mHole = []; e.goodId = 2004; e.getGoodId = 2006; e.mFenceTrigger = []; e.isShow = !1; e.holdCount = 0; return e; } e.prototype.start = function() { this.node.active = !1; this.spine.node.active = !1; if (this.ff.main.player.stage.element.indexOf("3001") > -1) for (var t = 0; t < this.mFenceTrigger.length; t++) this.mFenceTrigger[t].active = !1; }; e.prototype.showAltar = function() { var t = this; this.pause(); this.moveCamera(this.node.getPosition(), 1, function() { t.spine.node.active = !0; t.spine.setCompleteListener(function() { t.isShow = !0; t.resume(); }); t.spine.setAnimation(0, "up", !1); }); }; e.prototype.onBegin = function(t) { var e = this; this.holdCount >= 3 || 1 == t && this.showOpt(this.mTipsIcon, function() { e.holdStore(); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.holdStore = function() { var t = this, e = this.ff.mFFheader; if (e.getTmpCount(this.goodId) > 0) { this.holdCount++; e.removeTmpGood(this.goodId, 1); if (this.holdCount >= 3) { this.closeOpt(); this.showKnife(); } else { this.spine.setAnimation(0, "0" + this.holdCount, !1); this.spine.setEndListener(function() { t.openmFenceTrigger(t.holdCount - 1); }); } } else this.ff.main.showTips("需要祭石"); }; e.prototype.openmFenceTrigger = function(t) { var e = this; if (!(this.mFenceTrigger.length <= 0 || t >= this.mFenceTrigger.length)) { this.pause(); this.moveCamera(this.mFenceTrigger[t].getPosition(), 1, function() { cc.tween(e.node).sequence(cc.callFunc(function() { e.showFence(e.mFenceTrigger[t], "close"); e.ff.main.playerEffectByPath(c.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { e.resume(); e.mFenceTrigger[t].active = !1; })).start(); }); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; e.prototype.showKnife = function() { var t = this; this.pause(); this.spine.setCompleteListener(function() { t.showKnife1(); }); this.spine.setAnimation(0, "down", !1); }; e.prototype.showKnife1 = function() { var t = this; this.spine.setCompleteListener(function() { t.ff.mFFheader.addTmpGood(t.getGoodId, 1); t.resume(); }); this.spine.setAnimation(0, "Pull", !1); }; r([ l({ displayName: "祭坛动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ l({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ l({ displayName: "祭坛3个孔", type: [ cc.Node ] }) ], e.prototype, "mHole", void 0); r([ l({ displayName: "需要的物品id" }) ], e.prototype, "goodId", void 0); r([ l({ displayName: "获得的物品id" }) ], e.prototype, "getGoodId", void 0); r([ l([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../../../main/ViewManage": "ViewManage", "../../base/BaseEvent": "BaseEvent" } ], FAltar1_5: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f650ft/fS9FBKR+6/z+burJ", "FAltar1_5"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../../login/FqLogin"), a = t("../../../../../main/ViewManage"), s = t("../../../object/FSpriteTmpGood"), p = t("../../base/BaseEvent"), l = t("../../box/FHitBox"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.spine = null; e.mTipsIcon = null; e.text = ""; e.mHole = []; e.goodId = 2004; e.saveId = ""; e.mFenceTrigger = []; e.monster = null; e.box = null; e.isShow = !1; e.holdCount = 0; return e; } e.prototype.start = function() { if (this.ff.main.player.stage.element.indexOf(this.saveId) > -1) { this.mFenceTrigger.forEach(function(t) { t.active = !1; }); this.mHole.forEach(function(t) { t.active = !1; }); this.monster && this.monster.removeComponent(s.default); this.box && this.box.getComponent(l.default).hide.destroy(); this.spineAction(this.spine, "over", function() {}); } }; e.prototype.onBegin = function(t) { var e = this; this.ff.main.player.stage.element.indexOf(this.saveId) > -1 || this.holdCount >= this.mFenceTrigger.length || 1 == t && this.showOpt(this.mTipsIcon, function() { e.holdStore(); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.holdStore = function() { var t = this, e = this.ff.mFFheader; if (e.getTmpCount(this.goodId) > 0) { this.holdCount++; this.spineAction(this.spine, "0" + this.holdCount, function() { e.removeTmpGood(t.goodId, 1); t.openmFenceTrigger(t.holdCount - 1); }); } else this.ff.main.showTips(this.text); }; e.prototype.openmFenceTrigger = function(t) { var e = this; if (!(this.mFenceTrigger.length <= 0 || t >= this.mFenceTrigger.length)) { this.pause(); this.moveCamera(this.mFenceTrigger[t].getPosition(), 1, function() { cc.tween(e.node).sequence(cc.callFunc(function() { e.showFence(e.mFenceTrigger[t], "close"); e.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { e.resume(); e.mFenceTrigger[t].active = !1; if (e.holdCount == e.mFenceTrigger.length) { c.default.commitEvent(e.node.name, "", ""); e.getMapObject(e.saveId, null); e.spineAction(e.spine, "over", function() {}); e.closeOpt(); } })).start(); }); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; r([ h({ displayName: "祭坛动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ h({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ h({ displayName: "提示文字" }) ], e.prototype, "text", void 0); r([ h({ displayName: "镜片", type: [ cc.Node ] }) ], e.prototype, "mHole", void 0); r([ h({ displayName: "需要的物品id" }) ], e.prototype, "goodId", void 0); r([ h({ displayName: "存储ID" }) ], e.prototype, "saveId", void 0); r([ h([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); r([ h(cc.Node) ], e.prototype, "monster", void 0); r([ h(cc.Node) ], e.prototype, "box", void 0); return r([ f ], e); }(p.default); o.default = d; cc._RF.pop(); }, { "../../../../../login/FqLogin": "FqLogin", "../../../../../main/ViewManage": "ViewManage", "../../../object/FSpriteTmpGood": "FSpriteTmpGood", "../../base/BaseEvent": "BaseEvent", "../../box/FHitBox": "FHitBox" } ], FAltarFire: [ function(t, e, o) { "use strict"; cc._RF.push(e, "6f35aMFsI1HQLIy/vu/Oc/Y", "FAltarFire"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../login/FqLogin"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mapGoodId = "27"; e.goodId = 2002; e.mGuideMark = null; e.isCheck = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.node.zIndex = 9999; }; e.prototype.onBegin = function() { var t = this; if (!this.isCheck) { this.isCheck = !0; if (this.mGuideMark) { this.mGuideMark.active = !1; this.ff.firstGetGoodsTips(); } this.node.removeComponent(cc.PhysicsBoxCollider); this.ff.mFFheader.addTmpGood(this.goodId, 1); cc.tween(this.node).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 200)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() { c.default.commitEvent(t.node.name, "", ""); t.node.removeFromParent(!0); t.node.destroy(); })).start(); } }; r([ l({ displayName: "对应的地图物件" }) ], e.prototype, "mapGoodId", void 0); r([ l({ displayName: "捡起的物品id" }) ], e.prototype, "goodId", void 0); r([ l({ type: cc.Node, displayName: "引导箭头标识" }) ], e.prototype, "mGuideMark", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../base/BaseEvent": "BaseEvent" } ], FAltarGear: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2170aeMQGlEe7HuV9Q0EDTX", "FAltarGear"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../map/FMap"), a = t("./FAltarLight"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mapGoodId = "27"; e.altarLight = []; e.map = null; return e; } e.prototype.onLoad = function() { this.map = this.node.parent.parent.getComponent(c.default); }; e.prototype.start = function() { this.map.ff.main.player.stage; this.node.active = !0; }; e.prototype.check = function() { for (var t = 0; t < this.altarLight.length; t++) if (!this.altarLight[t].getComponent(a.default).spine.active) return !1; this.openGear(); return !0; }; e.prototype.getMapObject = function() {}; e.prototype.playAction = function() { var t = this, e = this.map.ff; e.pauseSprite(!0); cc.tween(this).sequence(cc.callFunc(function() { t.moveCamera(); }), cc.delayTime(.7), cc.callFunc(function() { t.node.children.forEach(function(t) { var e = t.getComponent(sp.Skeleton); if (e) { e.setCompleteListener(function() { t.active = !1; }); e.setAnimation(0, "close", !1); } }); cc.tween(t.map.node).sequence(cc.delayTime(1), cc.callFunc(function() { t.node.active = !1; e.pauseSprite(!1); })).start(); })).start(); }; e.prototype.openGear = function() { var t = this, e = this.map.ff; e.pauseSprite(!0); this.node.children.forEach(function(t) { var e = t.getComponent(sp.Skeleton); if (e) { e.setCompleteListener(function() { t.active = !1; }); e.setAnimation(0, "close", !1); } }); cc.tween(this.map.node).sequence(cc.delayTime(1), cc.callFunc(function() { t.node.active = !1; e.pauseSprite(!1); })).start(); }; e.prototype.moveCamera = function() { var t = this.map.mCamera, e = cc.v3(), o = cc.winSize; e.x = this.node.x - o.width / 2; e.y = this.node.y - o.height / 2; cc.tween(t.node).to(.5, { position: e }).start(); }; r([ l({ displayName: "对应的地图物件" }) ], e.prototype, "mapGoodId", void 0); r([ l({ type: [ cc.Node ], displayName: "祭坛灯柱" }) ], e.prototype, "altarLight", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../map/FMap": "FMap", "./FAltarLight": "FAltarLight" } ], FAltarLight: [ function(t, e, o) { "use strict"; cc._RF.push(e, "fb4681y1xhPJb2O9Z8OSccq", "FAltarLight"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../login/FqLogin"), a = t("../../object/FObject"), s = t("../base/BaseEvent"), p = t("../dialog/FMapDialog"), l = t("./FAltar"), u = t("./FAltarGear"), f = cc._decorator, h = f.ccclass, d = f.property, m = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mapGoodId = "27"; e.goodId = 2002; e.spine = null; e.altar = null; e.mIcon = null; e.mIconFrame = []; e.mMapDialog = null; e.mTipsIcon = null; e.text = []; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mIcon && (this.mIcon.node.active = !1); }; e.prototype.start = function() { this.spine.active = !1; }; e.prototype.iconTips = function(t) { if (this.mIcon) if (t) { this.mIcon.node.active = !0; var e = this.ff.mFFheader.getTmpCount(this.goodId); this.mIcon.spriteFrame = e > 0 ? this.mIconFrame[0] : this.mIconFrame[1]; } else this.mIcon.node.active = !1; }; e.prototype.onBegin = function(t) { var e = this; if (!this.spine.active && 1 == t) { this.iconTips(!0); this.showOpt(this.mTipsIcon, function() { e.submit(); }); } }; e.prototype.onEnd = function(t) { 1 == t && this.closeButton(); }; e.prototype.closeButton = function() { this.iconTips(!1); this.closeOpt(); }; e.prototype.submit = function() { if (this.spine.active) this.ff.main.showTips("祭火已经点亮"); else { this.closeButton(); var t = this.ff.mFFheader; if (t.getTmpCount(this.goodId) > 0) { t.removeTmpGood(this.goodId, 1); this.spine.active = !0; var e = this.altar.getComponent(l.default), o = this.altar.getComponent(u.default); if (e) e.check(); else if (o) { var i = o.check(); this.text.length > 0 && !i && this.d0(); i && c.default.commitEvent(this.node.name, "", ""); } } else this.ff.main.showTips("需要祭火"); } }; e.prototype.d0 = function() { var t = this; this.ff.pauseSprite(!0); var e = this.text, o = new p.default(this.ff, this.mMapDialog), i = cc.v2(), n = this.ff.getGroupBy(a.GroupType.A)[0]; i.x = n.node.x; i.y = n.node.y + n.node.height; o.showDialog(e, i, n.spine, function() { t.ff.pauseSprite(!1); }); }; r([ d({ displayName: "对应的地图物件" }) ], e.prototype, "mapGoodId", void 0); r([ d({ displayName: "需要的物品id" }) ], e.prototype, "goodId", void 0); r([ d({ type: cc.Node, displayName: "点亮火焰动画" }) ], e.prototype, "spine", void 0); r([ d({ type: cc.Node, displayName: "完成后触发对象" }) ], e.prototype, "altar", void 0); r([ d({ displayName: "靠近的提示", type: cc.Sprite }) ], e.prototype, "mIcon", void 0); r([ d({ type: [ cc.SpriteFrame ], displayName: "不同状态的图标" }) ], e.prototype, "mIconFrame", void 0); r([ d(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ d({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ d({ displayName: "点亮后的对话", type: [ cc.String ] }) ], e.prototype, "text", void 0); return r([ h ], e); }(s.default); o.default = m; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../../object/FObject": "FObject", "../base/BaseEvent": "BaseEvent", "../dialog/FMapDialog": "FMapDialog", "./FAltar": "FAltar", "./FAltarGear": "FAltarGear" } ], FAltarStar: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2c5cauppg1J8psUsoMv6D+Q", "FAltarStar"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../../login/FqLogin"), a = t("../../base/BaseEvent"), s = t("./FAltar1_3"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mFaltar = null; e.mIcon = null; e.mLight = null; e.mOtherAltarStar = []; e.isCheck = !1; return e; } o = e; e.prototype.onBegin = function() { if (!this.isCheck) { this.isCheck = !0; this.mIcon.spriteFrame = this.mLight; this.checkOpen(); c.default.commitEvent(this.node.name, "", ""); } }; e.prototype.checkOpen = function() { for (var t = 0; t < this.mOtherAltarStar.length; t++) if (!this.mOtherAltarStar[t].getComponent(o).isCheck) return; this.mFaltar.node.active = !0; this.mFaltar.showAltar(); }; var o; r([ u({ displayName: "祭坛", type: s.default }) ], e.prototype, "mFaltar", void 0); r([ u({ displayName: "底部的图片", type: cc.Sprite }) ], e.prototype, "mIcon", void 0); r([ u({ displayName: "点亮的图片", type: cc.SpriteFrame }) ], e.prototype, "mLight", void 0); r([ u({ displayName: "其它的祭坛开启", tooltip: "剩下的祭坛开启", type: [ cc.Node ] }) ], e.prototype, "mOtherAltarStar", void 0); return o = r([ l ], e); }(a.default); o.default = f; cc._RF.pop(); }, { "../../../../../login/FqLogin": "FqLogin", "../../base/BaseEvent": "BaseEvent", "./FAltar1_3": "FAltar1_3" } ], FAltar: [ function(t, e, o) { "use strict"; cc._RF.push(e, "fd8d0hDKJNLI5sRWnoMKXjS", "FAltar"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CHttp"), a = t("../../map/FMap"), s = t("./FAltarLight"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mapGoodId = "27"; e.spine = null; e.altarLight = []; e.map = null; return e; } e.prototype.onLoad = function() { this.map = this.node.parent.parent.getComponent(a.default); }; e.prototype.start = function() { this.map.ff.main.player.stage.element.indexOf(this.mapGoodId) >= 0 ? this.spine.active = !0 : this.spine.active = !1; }; e.prototype.check = function() { for (var t = 0; t < this.altarLight.length; t++) if (!this.altarLight[t].spine.active) return !1; this.altarOK(); return !0; }; e.prototype.altarOK = function() { this.getMapObject(this.mapGoodId); }; e.prototype.getMapObject = function(t) { var e = this, o = { objectId: t }, i = this.map.ff; i.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, n) { if (o == c.HttpStateType.SUCCESS) if (0 == n.retCode) { i.main.player.stage.element.push(t); var r = i.main.sManage.getRewards(n); e.playAction(r); } else i.main.showTips(n.message); else i.main.showTips("网络异常"); }); }; e.prototype.playAction = function(t) { var e = this, o = this.map.ff; o.pauseSprite(!0); this.spine.opacity = 0; this.spine.active = !0; cc.tween(this.spine).sequence(cc.callFunc(function() { e.moveCamera(); }), cc.delayTime(.7), cc.fadeIn(.5), cc.callFunc(function() { o.pauseSprite(!1); o.addGoods(t, e.node.getPosition()); })).start(); }; e.prototype.moveCamera = function() { var t = this.map.mCamera, e = cc.v3(), o = cc.winSize; e.x = this.node.x - o.width / 2; e.y = this.node.y - o.height / 2; cc.tween(t.node).to(.5, { position: e }).start(); }; r([ u({ displayName: "对应的地图物件" }) ], e.prototype, "mapGoodId", void 0); r([ u({ type: cc.Node, displayName: "点亮火焰动画" }) ], e.prototype, "spine", void 0); r([ u({ type: [ s.default ], displayName: "祭坛灯柱" }) ], e.prototype, "altarLight", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../../../util/CHttp": "CHttp", "../../map/FMap": "FMap", "./FAltarLight": "FAltarLight" } ], FBigBomb: [ function(t, e, o) { "use strict"; cc._RF.push(e, "85cc9velhZIlLMT8MzznqjL", "FBigBomb"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c, a = t("../../../../login/FqLogin"), s = t("../../object/FSprite"), p = t("../base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property; (function(t) { t[t.safe = 0] = "safe"; t[t.warning = 1] = "warning"; t[t.boom = 2] = "boom"; t[t.end = 3] = "end"; })(c || (c = {})); var h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.monsterId = 0; e.mTipsIcon = null; e.text = ""; e.goodId = 0; e.spine = null; e.warningArea = new cc.Vec2(); e.boomArea = new cc.Vec2(); e.warningTime = 0; e.boomTime = 0; e.spriteList = []; e.isFire = !1; e.boomStatus = c.safe; e.tempTime = 0; e.isHit = !1; e.isWarning = !1; return e; } e.prototype.start = function() { var t = this.node.getComponents(cc.PhysicsBoxCollider); t[0].size = new cc.Size(this.warningArea.x, this.warningArea.y); t[1].size = new cc.Size(this.boomArea.x, this.boomArea.y); }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group && 1 == e.tag) { var i = o.node.getComponent(s.default); -1 == this.spriteList.indexOf(i) && this.spriteList.push(i); } if ("A" == o.node.group && 1 == o.tag) { i = o.node.getComponent(s.default); this.ff = i.ff; 0 == e.tag && (this.isFire || this.fire()); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group && 1 == e.tag) { var i = o.node.getComponent(s.default); this.removeSprite(i); } 0 == e.tag && this.closeOpt(); }; e.prototype.removeSprite = function(t) { for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e] == t) { this.spriteList.splice(e, 1); break; } }; e.prototype.fire = function() { var t = this, e = this.ff.mFFheader.getTmpCount(this.goodId); this.showOpt(this.mTipsIcon, function() { t.closeOpt(); if (e > 0) { t.isFire = !0; t.ff.mFFheader.removeTmpGood(t.goodId, 1); t.isWarning || t.warning(); } else t.ff.main.showTips(t.text); }); }; e.prototype.warning = function() { var t = this; this.isWarning = !0; this.spine.setAnimation(0, "boom1", !0); this.boomStatus = c.warning; var e = 0, o = function() { if ((e += .1) >= t.warningTime) { t.boom(); t.unschedule(o); } }; this.schedule(o, .1); }; e.prototype.boom = function() { var t = this; this.spine.setAnimation(0, "boom2", !1); this.boomStatus = c.boom; var e = 0, o = function() { if ((e += .1) >= t.boomTime) { a.default.commitEvent(t.node.name, "", ""); t.end(); t.unschedule(o); } else t.isHit || t.hit(); }; this.schedule(o, .1); }; e.prototype.hit = function() { var t = this; this.isHit = !0; this.spriteList.forEach(function(e) { var o = t.ff.main.sManage.getMonsterData(t.monsterId); e.bAtkjs(o); }); }; e.prototype.end = function() { this.boomStatus = c.end; this.node.active = !1; }; r([ f({ displayName: "怪物ID" }) ], e.prototype, "monsterId", void 0); r([ f({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ f({ displayName: "提示文字" }) ], e.prototype, "text", void 0); r([ f({ displayName: "需要的物品ID" }) ], e.prototype, "goodId", void 0); r([ f({ displayName: "爆炸动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ f({ displayName: "警告区域" }) ], e.prototype, "warningArea", void 0); r([ f({ displayName: "爆炸范围" }) ], e.prototype, "boomArea", void 0); r([ f({ displayName: "警告时间(秒)" }) ], e.prototype, "warningTime", void 0); r([ f({ displayName: "爆炸时间(秒)" }) ], e.prototype, "boomTime", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../../object/FSprite": "FSprite", "../base/BaseEvent": "BaseEvent" } ], FBomb: [ function(t, e, o) { "use strict"; cc._RF.push(e, "6161b3CRMVIoofH3gZlG35U", "FBomb"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c, a, s = t("../../object/FSprite"), p = cc._decorator, l = p.ccclass, u = p.property; (function(t) { t[t.safe = 0] = "safe"; t[t.warning = 1] = "warning"; t[t.boom = 2] = "boom"; t[t.end = 3] = "end"; })(c || (c = {})); (function(t) { t[t.safe = 0] = "safe"; t[t.hit = 1] = "hit"; })(a || (a = {})); var f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.monsterId = 0; e.spine = null; e.warningArea = new cc.Vec2(); e.boomArea = new cc.Vec2(); e.warningTime = 0; e.boomTime = 0; e.spriteList = []; e.boomStatus = c.safe; e.tempTime = 0; e.isHit = !1; e.isWarning = !1; return e; } e.prototype.start = function() { var t = this.node.getComponents(cc.PhysicsBoxCollider); t[0].size = new cc.Size(this.warningArea.x, this.warningArea.y); t[1].size = new cc.Size(this.boomArea.x, this.boomArea.y); }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group && 1 == e.tag) { var i = o.node.getComponent(s.default); -1 == this.spriteList.indexOf(i) && this.spriteList.push(i); } if ("A" == o.node.group && 1 == o.tag) { i = o.node.getComponent(s.default); this.ff = i.ff; 0 == e.tag && (this.isWarning || this.warning()); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group && 1 == e.tag) { var i = o.node.getComponent(s.default); this.removeSprite(i); } }; e.prototype.removeSprite = function(t) { for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e] == t) { this.spriteList.splice(e, 1); break; } }; e.prototype.warning = function() { var t = this; this.isWarning = !0; this.spine.setAnimation(0, "boom", !0); this.boomStatus = c.warning; var e = 0, o = function() { if ((e += .1) >= t.warningTime) { t.boom(); t.unschedule(o); } }; this.schedule(o, .1); }; e.prototype.boom = function() { var t = this; this.spine.setAnimation(0, "boom2", !1); this.boomStatus = c.boom; var e = 0, o = function() { if ((e += .1) >= t.boomTime) { t.end(); t.unschedule(o); } else t.isHit || t.hit(); }; this.schedule(o, .1); }; e.prototype.hit = function() { var t = this; this.isHit = !0; this.spriteList.forEach(function(e) { var o = t.ff.main.sManage.getMonsterData(t.monsterId); e.bAtkjs(o); }); }; e.prototype.end = function() { this.boomStatus = c.end; this.node.active = !1; }; r([ u({ displayName: "怪物ID" }) ], e.prototype, "monsterId", void 0); r([ u({ displayName: "爆炸动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ u({ displayName: "警告区域" }) ], e.prototype, "warningArea", void 0); r([ u({ displayName: "爆炸范围" }) ], e.prototype, "boomArea", void 0); r([ u({ displayName: "警告时间(秒)" }) ], e.prototype, "warningTime", void 0); r([ u({ displayName: "爆炸时间(秒)" }) ], e.prototype, "boomTime", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../object/FSprite": "FSprite" } ], FBothwayOpen: [ function(t, e, o) { "use strict"; cc._RF.push(e, "cf43acOMyBNL54ykGGE5PJY", "FBothwayOpen"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../main/ViewManage"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.leftFenceTrigger = null; e.rightFenceTrigger = null; e.mTipsIcon = null; e.spine = null; e.openType = ""; return e; } e.prototype.onBegin = function(t) { var e = this; 0 == t ? this.showOpt(this.mTipsIcon, function() { e.spineAction(e.spine, "left", function() { e.openmFenceTrigger(e.leftFenceTrigger, "left"); }); }) : 1 == t && this.showOpt(this.mTipsIcon, function() { e.spineAction(e.spine, "right", function() { e.openmFenceTrigger(e.rightFenceTrigger, "right"); }); }); }; e.prototype.onEnd = function() { this.closeOpt(); }; e.prototype.openmFenceTrigger = function(t, e) { var o = this; this.pause(); this.moveCamera(t.getPosition(), 1, function() { cc.tween(o.node).sequence(cc.callFunc(function() { if (o.openType != e) { o.showFence(t, "close"); if ("" != o.openType) { o[o.openType + "FenceTrigger"].active = !0; o.showFence(o[o.openType + "FenceTrigger"], "open"); } } o.ff.main.playerEffectByPath(c.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { o.openType = e; t.active = !1; o.resume(); o.closeOpt(); })).start(); }); }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; r([ l({ displayName: "left机关", type: cc.Node }) ], e.prototype, "leftFenceTrigger", void 0); r([ l({ displayName: "right机关", type: cc.Node }) ], e.prototype, "rightFenceTrigger", void 0); r([ l({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ l({ displayName: "动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../../main/ViewManage": "ViewManage", "../base/BaseEvent": "BaseEvent" } ], FBox: [ function(t, e, o) { "use strict"; cc._RF.push(e, "126f21naOJB5qNalsynaFFr", "FBox"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; return e; } e.prototype.close = function() { this.node.destroy(); }; r([ s(cc.Label) ], e.prototype, "label", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], FCageShooter: [ function(t, e, o) { "use strict"; cc._RF.push(e, "cd1d6jVjB5Jv6TZLEXmclun", "FCageShooter"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../login/FqLogin"), a = t("../../../../util/CHttp"), s = t("../../../data/FFCalAttr"), p = t("../../object/AI/AIPet"), l = t("../../object/FObject"), u = t("../../object/FSprite"), f = t("../../object/PSprite"), h = t(".././base/BaseEvent"), d = cc._decorator, m = d.ccclass, y = d.property, v = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mPetId = 1; e.spine = null; e.mPet = null; e.mPetPrefab = null; e.mIcon = null; e.mIconFrame = []; e.mTipsIcon = null; e.mDoor = []; e.text = []; e.isOver = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mIcon && (this.mIcon.node.active = !1); if (this.ff.main.player.getPet(this.mPetId)) { this.isOver = !0; this.spine.findAnimation("open3") ? this.spine.setAnimation(0, "open3", !1) : this.spine.setAnimation(0, "open", !1); this.mPet.destroy(); for (var e = 0; e < this.mDoor.length; e++) this.mDoor[e].destroy(); } }; e.prototype.onBegin = function(t) { var e = this; if (!this.isOver && 1 == t) { this.iconTips(!0); this.showOpt(this.mTipsIcon, function() { e.iconTips(!1); e.closeOpt(); e.openCage(); }); } }; e.prototype.onEnd = function(t) { if (1 == t) { this.iconTips(!1); this.closeOpt(); } }; e.prototype.iconTips = function(t) { if (this.mIcon) if (t) { this.mIcon.node.active = !0; var e = this.ff.mFFheader.getTmpCount(2001); this.mIcon.spriteFrame = e > 0 ? this.mIconFrame[0] : this.mIconFrame[1]; } else this.mIcon.node.active = !1; }; e.prototype.openCage = function() { var t = this; if (this.ff.mFFheader.getTmpCount(2001) > 0) { this.isOver = !0; this.spine.setCompleteListener(function() { t.spine.setCompleteListener(null); t.movePet(); }); this.spine.findAnimation("open3") ? this.spine.setAnimation(0, "open3", !1) : this.spine.setAnimation(0, "open", !1); c.default.commitEvent(this.node.name, "", ""); } else this.ff.main.showTips("需要一把牢笼钥匙"); }; e.prototype.movePet = function() { var t = this.mPet.getComponent(cc.Animation); this.mPet.getComponent(sp.Skeleton).setAnimation(0, u.SpriteActionType.run, !0); t.on("finished", this.onFinished, this); t.play("cage_pet_move"); }; e.prototype.onFinished = function() { var t = this.mPet.getComponent(cc.Animation), e = this.mPet.getComponent(sp.Skeleton); t.off("finished", this.onFinished, this); e.setAnimation(0, u.SpriteActionType.stand, !0); this.dialog(0); }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) this.getPet(); else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog(t); }); } else { i = this.mPet; var n = cc.v2(); n.x = this.node.x + i.x; n.y = this.node.y + i.y; n.y += i.height; this.showDialogPos(n, o, function() { t++; e.dialog(t); }); } } }; e.prototype.getPet = function() { var t = this; this.isOver = !0; this.ff.mFFheader.removeTmpGood(2001, 1); var e = { petId: this.mPetId }, o = this.ff.main; o.gameHttp.sendJson("stage/v1/getPet", e, function(e, i) { o.stopLoad(); if (e == a.HttpStateType.SUCCESS) if (0 == i.retCode) { var n = o.player, r = i.data.petObject; n.pet[t.mPetId] = r; r.id = t.mPetId; var c = cc.instantiate(t.mPetPrefab); c.group = l.GroupType.A; c.x = t.node.x + t.mPet.x; c.y = t.node.y + t.mPet.y; var u = c.addComponent(f.default), h = s.default.getAttr(t.ff.main, r); u.setAttrData(h); t.ff.addRole(u); u.hp = u.attrData.hp; u.addComponent(p.default); t.mPet.removeFromParent(); for (var d = 0; d < t.mDoor.length; d++) t.mDoor[d].destroy(); } else o.showTips(i.message); else o.showTips("网络异常"); }); }; r([ y({ displayName: "解救的伙伴id" }) ], e.prototype, "mPetId", void 0); r([ y({ displayName: "牢笼动画", tooltip: "显示牢笼的动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ y({ displayName: "牢笼中的伙伴", type: cc.Node }) ], e.prototype, "mPet", void 0); r([ y({ displayName: "伙伴预制体", type: cc.Prefab }) ], e.prototype, "mPetPrefab", void 0); r([ y({ displayName: "靠近的提示", type: cc.Sprite }) ], e.prototype, "mIcon", void 0); r([ y({ type: [ cc.SpriteFrame ], displayName: "不同状态的图标" }) ], e.prototype, "mIconFrame", void 0); r([ y({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ y({ type: [ cc.Node ], displayName: "需要打开的门" }) ], e.prototype, "mDoor", void 0); r([ y([ cc.String ]) ], e.prototype, "text", void 0); return r([ m ], e); }(h.default); o.default = v; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../../../../util/CHttp": "CHttp", "../../../data/FFCalAttr": "FFCalAttr", "../../object/AI/AIPet": "AIPet", "../../object/FObject": "FObject", "../../object/FSprite": "FSprite", "../../object/PSprite": "PSprite", ".././base/BaseEvent": "BaseEvent" } ], FCageSign: [ function(t, e, o) { "use strict"; cc._RF.push(e, "bfb95PrthlNYKbF7H3BKv6s", "FCageSign"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("./WOneByone"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.mD1 = null; e.mD2 = null; e.mCameraPos = null; e.ff = null; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); this.ff = i.ff; if (i == this.ff.mainSprite) { this.node.removeComponent(cc.PhysicsBoxCollider); this.run(); } } }; e.prototype.run = function() { var t = this; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; var e = this.ff.mMap, o = cc.winSize, i = e.mCamera, n = this.node.x + this.mCameraPos.x - o.width / 2, r = this.node.y + this.mCameraPos.y - o.height / 2; cc.tween(i.node).sequence(cc.moveTo(.7, cc.v2(n, r)), cc.callFunc(function() { t.d1(); })).start(); }; e.prototype.d1 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.mD1.x; e.y = this.mD1.y + this.mD1.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(a.default); o.dialogs = [ "救…救……,SOS" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.d2(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.d2 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.mD2.x; e.y = this.mD2.y + this.mD2.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(a.default); o.dialogs = [ "别喊了,你就是叫破喉咙也没用的" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; r([ l(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ l(cc.Node) ], e.prototype, "mD1", void 0); r([ l(cc.Node) ], e.prototype, "mD2", void 0); r([ l({ type: cc.Node, displayName: "摄像机移动的目标位置" }) ], e.prototype, "mCameraPos", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "./WOneByone": "WOneByone" } ], FCage: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0ef3fFJqeFGUr5VldUH8N2H", "FCage"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("../../object/PSprite"), s = t(".././map1/WOneByone"), p = t(".././base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.spine = null; e.mPet = null; e.mMonster = []; e.guides = []; e.mIcon = null; e.mIconFrame = []; e.mTipsIcon = null; e.isOver = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mIcon && (this.mIcon.node.active = !1); }; e.prototype.onBegin = function(t) { this.isOver || 1 == t && this.showButton(); }; e.prototype.onEnd = function(t) { 1 == t && this.closeButton(); }; e.prototype.showButton = function() { var t = this; this.iconTips(!0); this.showOpt(this.mTipsIcon, function() { t.openCage(); }); }; e.prototype.closeButton = function() { this.iconTips(!1); this.closeOpt(); }; e.prototype.iconTips = function(t) { if (this.mIcon) if (t) { this.mIcon.node.active = !0; var e = this.ff.mFFheader.getTmpCount(2001); this.mIcon.spriteFrame = e > 0 ? this.mIconFrame[0] : this.mIconFrame[1]; } else this.mIcon.node.active = !1; }; e.prototype.delEvent = function() { this.node.removeComponent(cc.PhysicsBoxCollider); }; e.prototype.openCage = function() { var t = this; this.closeButton(); if (this.ff.mFFheader.getTmpCount(2001) > 0) { this.isOver = !0; for (var e = 0; e < this.guides.length; e++) this.guides[e].destroy(); this.guides = []; this.spine.setCompleteListener(function() { t.spine.setCompleteListener(null); t.startStory(); }); this.spine.setAnimation(0, "open", !1); } else this.ff.main.showTips("我需要一把牢笼钥匙"); }; e.prototype.startStory = function() { this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; this.movePet(); }; e.prototype.movePet = function() { var t = this.mPet.getComponent(cc.Animation); this.mPet.getComponent(sp.Skeleton).setAnimation(0, c.SpriteActionType.run, !0); t.on("finished", this.onFinished, this); t.play("cage_pet_move"); }; e.prototype.onFinished = function() { var t = this.mPet.getComponent(cc.Animation), e = this.mPet.getComponent(sp.Skeleton); t.off("finished", this.onFinished, this); e.setAnimation(0, c.SpriteActionType.stand, !0); this.showDialog2(); }; e.prototype.showDialog2 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x + this.mPet.x; e.y = this.node.y + this.mPet.y + this.mPet.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(s.default); o.dialogs = [ "伟大的古尔薇格,谢谢你把小女巫送来", "我是琳达,这是鲍西", "敌人抓我们时,为了保护我,这个傻子冲到了最前面第一个被打晕了,我也被他们抓了", "还好你及时赶到,救了我们", "我们还有个同伴,露西,正在前面与敌人作战", "请你过去帮帮她" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; t.node.removeComponent(cc.PhysicsBoxCollider); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.getPet = function() { var t = this; this.delEvent(); var e = this.ff.mFFheader, o = this.ff.mainSprite.node.getPosition(); o.x -= this.node.x; o.y -= this.node.y; this.mPet.getComponent(sp.Skeleton).setAnimation(0, c.SpriteActionType.run, !0); cc.tween(this.mPet).sequence(cc.moveTo(1, o), cc.callFunc(function() { e.removeTmpGood(2001, 1); t.mPet.removeFromParent(); t.mMonster.forEach(function(e) { var o = cc.instantiate(e).getComponent(a.default); t.ff.addRole(o); }); })).start(); }; r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ f(sp.Skeleton) ], e.prototype, "spine", void 0); r([ f(cc.Node) ], e.prototype, "mPet", void 0); r([ f({ type: [ cc.Prefab ], displayName: "解救的对象" }) ], e.prototype, "mMonster", void 0); r([ f(cc.Node) ], e.prototype, "guides", void 0); r([ f({ displayName: "靠近的提示", type: cc.Sprite }) ], e.prototype, "mIcon", void 0); r([ f({ type: [ cc.SpriteFrame ], displayName: "不同状态的图标" }) ], e.prototype, "mIconFrame", void 0); r([ f({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "../../object/PSprite": "PSprite", ".././base/BaseEvent": "BaseEvent", ".././map1/WOneByone": "WOneByone" } ], FCloseDoor: [ function(t, e, o) { "use strict"; cc._RF.push(e, "973bfWv4bVOUJ0sl9FUGaVq", "FCloseDoor"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mCameraPos = null; e.mFenceTrigger = []; return e; } e.prototype.onBeginContact = function(t, e, o) { var i = this; if ("A" == o.node.group) { var n = o.node.getComponent(c.default); this.ff = n.ff; if (n == this.ff.mainSprite) { this.node.removeComponent(cc.PhysicsBoxCollider); this.ff.pauseSprite(!0); this.moveCamera(function() { cc.tween(i).sequence(cc.delayTime(1), cc.callFunc(function() { i.ff.pauseSprite(!1); })).start(); for (var t = 0; t < i.mFenceTrigger.length; t++) { var e = i.mFenceTrigger[t]; e.active = !0; e.children.forEach(function(t) { var e = t.getComponent(sp.Skeleton); e && e.setAnimation(0, "open", !1); }); } }); } } }; e.prototype.moveCamera = function(t) { if (this.mCameraPos) { var e = this.ff.mMap.mCamera, o = cc.v2(), i = cc.winSize; o.x = this.node.x + this.mCameraPos.x - i.width / 2; o.y = this.node.y + this.mCameraPos.y - i.height / 2; cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() { t(); })).start(); } else t(); }; r([ p({ type: cc.Node, displayName: "摄像机移动的目标位置" }) ], e.prototype, "mCameraPos", void 0); r([ p([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../object/FSprite": "FSprite" } ], FControl: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a6e5fhToxFHapHD8/Vndmqf", "FControl"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../util/CUtil"), a = t("./EventButton"), s = t("./FF"), p = t("./object/FSprite"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.ff = null; e.mEventButton = null; e.mShooting = null; e.mBtSkill1 = null; e.mBtLabel1 = null; e.mBtSkill2 = null; e.mBtLabel2 = null; e.mBtSkillEffect = null; e.mSkillIcon = null; e.skillOK1 = !0; e.lastTime1 = 0; e.skillOK2 = !0; e.lastTime2 = 0; return e; } e.prototype.onLoad = function() { this.mEventButton.node.active = !1; this.mShooting.on(cc.Node.EventType.TOUCH_START, this._touchShootStartEvent, this); this.mShooting.on(cc.Node.EventType.TOUCH_END, this._touchShootEndEvent, this); this.mShooting.on(cc.Node.EventType.TOUCH_CANCEL, this._touchShootEndEvent, this); }; e.prototype.updateSkill = function() { var t = this, e = this.ff.mainSprite.attrData; this._skillData1 = this.ff.main.sManage.getSkillById(e.weaponSkill); this._skillData1 && cc.resources.load("icon/skill/" + this._skillData1.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mSkillIcon.spriteFrame = o; }); this.mBtSkill1.node.active = !0; this.ff.main.player.role.openSkill, this.mBtSkill2.node.active = !1; }; e.prototype.showSkill2 = function() {}; e.prototype.showEventBt = function(t, e) { this.ff.mainSprite.setShooting(!1); this.ff.mainSprite.status, p.SpriteType.NONE; this.mEventButton.node.active = !0; this.mEventButton.mIcon.spriteFrame = t; this.mShooting.active = !1; this.mEventButton.setCallback(function() { e(); }); }; e.prototype.closeEventBt = function() { this.mEventButton.node.active = !1; this.mShooting.active = !0; this.mEventButton.setCallback(null); }; e.prototype._touchRunningStartEvent = function() { this.ff && this.ff.mainSprite && this.ff.mainSprite.setRuning(!0); }; e.prototype._touchRunningEndEvent = function() { this.ff && this.ff.mainSprite && this.ff.mainSprite.setRuning(!1); }; e.prototype._touchShootStartEvent = function() { this.ff && this.ff.mainSprite && this.ff.mainSprite.setShooting(!0); }; e.prototype._touchShootEndEvent = function() { this.ff && this.ff.mainSprite && this.ff.mainSprite.setShooting(!1); }; e.prototype.onclickSkill1 = function() { if (this.skillOK1) { this.skillOK1 = !1; this.lastTime1 = c.default.getNowTime(); this.mBtSkill1.interactable = !1; this.mBtLabel1.node.active = !0; var t = this.ff.mainSprite.findEnemy(3e3).sprite; this.ff.mainSprite.skill1.exe(t, function() {}); } }; e.prototype.onclickSkill2 = function() { if (this.skillOK2) { this.skillOK2 = !1; this.lastTime2 = c.default.getNowTime(); this.mBtSkill2.interactable = !1; this.mBtLabel2.node.active = !0; var t = this.ff.mainSprite.findEnemy(3e3).sprite; this.ff.mainSprite.skill1.exe(t, function() {}); } }; e.prototype.update = function() { if (this._skillData1 && !this.skillOK1) if ((t = c.default.getNowTime() - this.lastTime1) >= this._skillData1.time) { this.skillOK1 = !0; this.mBtSkill1.interactable = !0; this.mBtLabel1.node.active = !1; } else this.mBtLabel1.string = "" + (this._skillData1.time - t); if (this._skillData1 && !this.skillOK2) { var t; if ((t = c.default.getNowTime() - this.lastTime2) >= this._skillData1.time) { this.skillOK2 = !0; this.mBtSkill2.interactable = !0; this.mBtLabel2.node.active = !1; } else this.mBtLabel2.string = "" + (this._skillData1.time - t); } }; r([ f(s.default) ], e.prototype, "ff", void 0); r([ f(a.default) ], e.prototype, "mEventButton", void 0); r([ f(cc.Node) ], e.prototype, "mShooting", void 0); r([ f(cc.Button) ], e.prototype, "mBtSkill1", void 0); r([ f(cc.Label) ], e.prototype, "mBtLabel1", void 0); r([ f(cc.Button) ], e.prototype, "mBtSkill2", void 0); r([ f(cc.Label) ], e.prototype, "mBtLabel2", void 0); r([ f(cc.Node) ], e.prototype, "mBtSkillEffect", void 0); r([ f(cc.Sprite) ], e.prototype, "mSkillIcon", void 0); return r([ u ], e); }(cc.Component); o.default = h; cc._RF.pop(); }, { "../../util/CUtil": "CUtil", "./EventButton": "EventButton", "./FF": "FF", "./object/FSprite": "FSprite" } ], FCountDown: [ function(t, e, o) { "use strict"; cc._RF.push(e, "08985N2Al5P5qzOYUM+Vfgz", "FCountDown"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTime = null; e.isOver = !0; e.dtime = 0; e.totalTime = 0; return e; } e.prototype.onLoad = function() { this.node.active = !1; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.startCountDown = function(t) { this.node.active = !0; this.totalTime = t; this.dtime = new Date().getTime(); this.isOver = !1; }; e.prototype.stopCountDown = function() { this.node.active = !1; this.isOver = !0; }; e.prototype.pauseTime = function() {}; e.prototype.update = function() { if (!this.isOver) { var t = new Date().getTime(), e = this.totalTime - Math.floor((t - this.dtime) / 1e3); if (e < 0) { this.isOver = !0; this.callback(); } else this.mTime.string = "" + e; } }; r([ s(cc.Label) ], e.prototype, "mTime", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], FDialogAttr: [ function(t, e, o) { "use strict"; cc._RF.push(e, "303e7JZwAJJEJa1EfzchMRk", "FDialogAttr"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mAbout = null; e.mVaule = null; e.mIcon = null; return e; } e.prototype.onclick = function() { this.callback && this.callback(this); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.setVaule = function(t) { var e = this; this.attr = t; this.mName.string = c.default.t(t.name); this.mAbout.string = c.default.t(t.about); this.mVaule.string = t.vaule + "%"; cc.resources.load("icon/attr/" + t.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); }; r([ p(cc.Label) ], e.prototype, "mName", void 0); r([ p(cc.Label) ], e.prototype, "mAbout", void 0); r([ p(cc.Label) ], e.prototype, "mVaule", void 0); r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n" } ], FDialogBox: [ function(t, e, o) { "use strict"; cc._RF.push(e, "44dcc4KqCxO3bVKYJbV8d/q", "FDialogBox"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = t("./FDialogAttr"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mName1 = null; e.mContent = null; e.mIcon = null; e.mDialogNode = null; e.mAttrNode = null; e.mAttrContent = null; e.mAttrPerfab = null; e.tmpDialogIndex = 0; e.tmpDialogs = null; return e; } e.prototype.onclick = function() { this.tmpDialogIndex++; if (this.tmpDialogs && this.tmpDialogIndex < this.tmpDialogs.length) { var t = this.tmpDialogs[this.tmpDialogIndex]; this.setDialog(t); } else if (this.callback) { this.callback(); this.callback = null; } }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.setData = function(t) { this.mDialogNode.active = !0; this.mAttrNode.active = !1; this.tmpDialogIndex = 0; this.tmpDialogs = t; var e = this.tmpDialogs[0]; this.setDialog(e); }; e.prototype.setDialog = function(t) { var e = this; this.mName.string = c.default.t(t.name); this.mName1.string = c.default.t(t.name1); this.mContent.string = c.default.t(t.content); cc.resources.load("icon/npc/" + t.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); }; e.prototype.setAttrCallback = function(t) { this.attrCallback = t; }; e.prototype.setAttr = function(t) { var e = this; this.mDialogNode.active = !1; this.mAttrNode.active = !0; for (var o = 0; o < t.length; o++) { var i = t[o], n = cc.instantiate(this.mAttrPerfab); n.parent = this.mAttrContent; var r = n.getComponent(a.default); r.setVaule(i); r.setCallback(function(t) { e.attrCallback && e.attrCallback(t.attr); }); } }; r([ l(cc.Label) ], e.prototype, "mName", void 0); r([ l(cc.Label) ], e.prototype, "mName1", void 0); r([ l(cc.Label) ], e.prototype, "mContent", void 0); r([ l(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ l(cc.Node) ], e.prototype, "mDialogNode", void 0); r([ l(cc.Node) ], e.prototype, "mAttrNode", void 0); r([ l(cc.Node) ], e.prototype, "mAttrContent", void 0); r([ l(cc.Prefab) ], e.prototype, "mAttrPerfab", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n", "./FDialogAttr": "FDialogAttr" } ], FDialogMonster: [ function(t, e, o) { "use strict"; cc._RF.push(e, "79816oVS0hI/pcLRYCzfhfK", "FDialogMonster"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./map1/WOneByone"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.text = []; return e; } e.prototype.showDialog = function() { var t = this.text, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x; e.y = this.node.y + this.node.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(c.default); o.dialogs = t; o.setCallback(function() { e.destroy(); }); o._start(); }; r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ p([ cc.String ]) ], e.prototype, "text", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "./map1/WOneByone": "WOneByone" } ], FDialogNoneNPC: [ function(t, e, o) { "use strict"; cc._RF.push(e, "dc3c8smAHhMpK7U3xp/aisx", "FDialogNoneNPC"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("./base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.text = []; e.icon = null; e.mTipsIcon = null; e.spine = null; e.mFenceTrigger = []; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.icon && (this.icon.active = !1); }; e.prototype.onBegin = function(t) { var e = this; 1 == t ? this.showOpt(this.mTipsIcon, function() { e.startDialog(); }) : 2 == t && this.icon && (this.icon.active = !0); }; e.prototype.onEnd = function(t) { 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1); }; e.prototype.startDialog = function() { this.icon && (this.icon.active = !1); this.dialog1(); }; e.prototype.closeButton = function() { this.icon && (this.icon.active = !1); this.closeOpt(); }; e.prototype.dialog1 = function(t) { var e = this; void 0 === t && (t = 0); if (t >= this.text.length) { this.npcFly(function() { e.openmFenceTrigger(); e.spine.node.parent.active = !1; e.closeOpt(); }); this.closeButton(); this.resume(); } else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog1(t); }); } else this.showDialog(this.node, o, function() { t++; e.dialog1(t); }); } }; e.prototype.npcFly = function(t) { var e = this; this.spine.setAnimation(0, "escape", !1); this.spine.setCompleteListener(function() { e.spine.setCompleteListener(null); e.spine.setAnimation(0, "fly", !0); var o = cc.v2(-370, 460); cc.tween(e.spine.node).sequence(cc.moveTo(1, o), cc.callFunc(function() { t && t(); })).start(); }); }; e.prototype.openmFenceTrigger = function() { var t = this; if (!(this.mFenceTrigger.length <= 0)) { this.pause(); this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() { cc.tween(t.node).sequence(cc.callFunc(function() { for (var e = 0; e < t.mFenceTrigger.length; e++) { var o = t.mFenceTrigger[e]; t.showFence(o, "close"); } t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { t.resume(); for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1; c.default.commitEvent(t.node.name, "", ""); })).start(); }); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ u({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ u({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ u({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ u({ displayName: "NPC动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); return r([ l ], e); }(s.default); o.default = f; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "../../../main/ViewManage": "ViewManage", "./base/BaseEvent": "BaseEvent" } ], FDialogNoneXJ: [ function(t, e, o) { "use strict"; cc._RF.push(e, "fc13bnfBm9A0IvzP1FU6SOW", "FDialogNoneXJ"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("./base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mapGoodId = "23"; e.goodId = 2002; e.mMapDialog = null; e.text = []; e.finish = []; e.icon = null; e.goodList = []; e.mTipsIcon = null; e.spine = null; e.mFenceTrigger = []; e.showParticle = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.icon && (this.icon.active = !1); if (this.ff.main.player.stage.element.indexOf(this.mapGoodId) > -1) { for (var e = 0; e < this.mFenceTrigger.length; e++) this.mFenceTrigger[e].active = !1; for (e = 0; e < this.goodList.length; e++) this.goodList[e].active = !1; this.node.active = !1; } }; e.prototype.onBegin = function(t) { var e = this; 1 == t ? this.showOpt(this.mTipsIcon, function() { e.startDialog(); }) : 2 == t && this.icon && (this.icon.active = !0); }; e.prototype.onEnd = function(t) { 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1); }; e.prototype.startDialog = function() { this.icon && (this.icon.active = !1); var t = this.ff.mFFheader, e = t.getTmpCount(this.goodId); this.pause(); if (e >= this.goodList.length) { t.removeTmpGood(this.goodId, e); "" != this.mapGoodId && this.getMapObject(this.mapGoodId, null); this.dialog2(); } else this.dialog1(); }; e.prototype.closeButton = function() { this.icon && (this.icon.active = !1); this.closeOpt(); }; e.prototype.dialog1 = function(t) { var e = this; void 0 === t && (t = 0); if (t >= this.text.length) { this.closeButton(); this.resume(); this.activateGood(); } else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog1(t); }); } else this.showDialog(this.node, o, function() { t++; e.dialog1(t); }); } }; e.prototype.dialog2 = function(t) { var e = this; void 0 === t && (t = 0); if (t >= this.finish.length) { this.closeButton(); this.spine ? this.npcFly(function() { e.spine.node.parent.active = !1; e.openmFenceTrigger(); }) : this.openmFenceTrigger(); c.default.commitEvent(this.node.name, "", ""); } else { var o = this.finish[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog2(t); }); } else this.showDialog(this.node, o, function() { t++; e.dialog2(t); }); } }; e.prototype.npcFly = function(t) { var e = this; this.spine.setAnimation(0, "escape", !1); this.spine.setCompleteListener(function() { e.spine.setCompleteListener(null); e.spine.setAnimation(0, "fly", !0); var o = cc.v2(-370, 460); cc.tween(e.spine.node).sequence(cc.moveTo(1, o), cc.callFunc(function() { t && t(); })).start(); }); }; e.prototype.openmFenceTrigger = function() { var t = this; if (!(this.mFenceTrigger.length <= 0)) { this.pause(); this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() { cc.tween(t.node).sequence(cc.callFunc(function() { for (var e = 0; e < t.mFenceTrigger.length; e++) { var o = t.mFenceTrigger[e]; t.showFence(o, "close"); } t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { t.resume(); for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1; })).start(); }); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; e.prototype.activateGood = function() { if (!this.showParticle) { this.showParticle = !0; this.goodList.forEach(function(t) { t.name && (t.getChildByName("lizi_gs").active = !0); }); } }; r([ u({ displayName: "地图元素编号" }) ], e.prototype, "mapGoodId", void 0); r([ u({ displayName: "拾取物品ID" }) ], e.prototype, "goodId", void 0); r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ u({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ u({ displayName: "完成后的对话", type: [ cc.String ] }) ], e.prototype, "finish", void 0); r([ u({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ u({ displayName: "拾取列表", type: [ cc.Node ] }) ], e.prototype, "goodList", void 0); r([ u({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ u({ displayName: "NPC动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); return r([ l ], e); }(s.default); o.default = f; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "../../../main/ViewManage": "ViewManage", "./base/BaseEvent": "BaseEvent" } ], FDialogNone: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e7a0aVN5fBFy4H3bMkqWMEz", "FDialogNone"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../../../util/CHttp"), p = t("./base/BaseEvent"), l = t("./map1/WOneByone"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mapGoodId = "23"; e.mMapDialog = null; e.text = []; e.finish = []; e.icon = null; e.mTipsIcon = null; e.mFenceTrigger = []; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.icon && (this.icon.active = !1); }; e.prototype.onBegin = function(t) { var e = this; 1 == t ? this.showOpt(this.mTipsIcon, function() { e.startDialog(); }) : 2 == t && this.icon && (this.icon.active = !0); }; e.prototype.onEnd = function(t) { 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1); }; e.prototype.startDialog = function() { this.icon && (this.icon.active = !1); "" == this.mapGoodId ? this.showDialog1() : this.ff.main.player.stage.element.indexOf(this.mapGoodId) > 0 ? this.showDialog2() : this.showDialog1(); }; e.prototype.closeButton = function() { this.icon && (this.icon.active = !1); this.closeOpt(); }; e.prototype.showDialog2 = function() { var t = this; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; var e = this.finish, o = cc.instantiate(this.mMapDialog); o.group = "map"; o.zIndex = 9999; o.x = this.node.x; o.y = this.node.y + this.node.height; o.parent = this.ff.mMap.mSprites; var i = o.getComponent(l.default); i.dialogs = e; i.setCallback(function() { t.closeButton(); o.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; t.openmFenceTrigger(); }); this.ff.setBlockInputCallback(function() { i.jump(); }); i._start(); }; e.prototype.showDialog1 = function() { var t = this; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; var e = this.text, o = cc.instantiate(this.mMapDialog); o.group = "map"; o.zIndex = 9999; o.x = this.node.x; o.y = this.node.y + this.node.height; o.parent = this.ff.mMap.mSprites; var i = o.getComponent(l.default); i.dialogs = e; i.setCallback(function() { t.closeButton(); o.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; "" != t.mapGoodId && t.getMapObject(t.mapGoodId); t.finish.length || t.openmFenceTrigger(); }); this.ff.setBlockInputCallback(function() { i.jump(); }); i._start(); }; e.prototype.getMapObject = function(t) { var e = this, o = { objectId: t }, i = this.ff; i.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, n) { if (o == s.HttpStateType.SUCCESS) if (0 == n.retCode) { i.main.player.stage.element.push(t); i.main.showReward(n, function() { e.openmFenceTrigger(); }); } else i.main.showTips(n.message); else i.main.showTips("网络异常"); }); }; e.prototype.openmFenceTrigger = function() { var t = this; if (!(this.mFenceTrigger.length <= 0)) { this.pause(); this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() { cc.tween(t.node).sequence(cc.callFunc(function() { for (var e = 0; e < t.mFenceTrigger.length; e++) { var o = t.mFenceTrigger[e]; t.showFence(o, "close"); } t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { t.resume(); c.default.commitEvent(t.node.name, "", ""); for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1; })).start(); }); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; r([ h({ displayName: "地图元素编号" }) ], e.prototype, "mapGoodId", void 0); r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ h({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ h({ displayName: "完成后的对话", type: [ cc.String ] }) ], e.prototype, "finish", void 0); r([ h({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ h({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ h([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); return r([ f ], e); }(p.default); o.default = d; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "../../../main/ViewManage": "ViewManage", "../../../util/CHttp": "CHttp", "./base/BaseEvent": "BaseEvent", "./map1/WOneByone": "WOneByone" } ], FDialogPack26: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a90cdamK9tFbZLOiqjMGYeE", "FDialogPack26"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CHttp"), a = t("../../object/FSprite"), s = t("../map1/WOneByone"), p = t("./FFruit26"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.iconTouch = null; e.goodId = 3002; e.goodNodes = []; e.state = 0; return e; } e.prototype.onLoad = function() { for (var t = 0; t < this.goodNodes.length; t++) this.goodNodes[t].setPick26(this); }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(a.default); this.ff = i.ff; i == this.ff.mainSprite && this.showButton(); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(a.default); this.ff = i.ff; i == this.ff.mainSprite && this.closeButton(); } }; e.prototype.showButton = function() { var t = this; this.ff.control.mEventButton.node.active = !0; this.ff.control.mEventButton.setCallback(function() { t.startStory(); }); }; e.prototype.closeButton = function() { this.ff.control.mEventButton.node.active = !1; }; e.prototype.startStory = function() { this.iconTouch.active = !1; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; 0 == this.state ? this.showDialog1() : this.ff.mFFheader.getTmpCount(this.goodId) >= this.goodNodes.length ? this.showDialogEnd() : this.showDialog1_x(); }; e.prototype.showDialog1 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x; e.y = this.node.y + this.node.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(s.default); o.dialogs = [ "我是美神,我最近新学了一些秀法", "如果你能给我4块棉布,我就能给你变出漂亮的衣服" ]; o.setCallback(function() { t.iconTouch.active = !0; e.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; t.state = 1; }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.showDialog1_x = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x; e.y = this.node.y + this.node.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(s.default); o.dialogs = [ "还没找到吗?" ]; o.setCallback(function() { t.iconTouch.active = !0; e.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.showDialogEnd = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x; e.y = this.node.y + this.node.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(s.default); o.dialogs = [ "衣服做好了,快穿上看看吧" ]; o.setCallback(function() { t.iconTouch.active = !1; e.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; t.ff.mFFheader.removeTmpGood(t.goodId, t.goodNodes.length); t.getMapObject(t.node.name); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.getMapObject = function(t) { var e = this, o = { objectId: t }; this.ff.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, i) { e.ff.main.stopLoad(); if (o == c.HttpStateType.SUCCESS) if (0 == i.retCode) { e.ff.main.player.stage.element.push(t); var n = e.ff.main.sManage.getRewards(i); e.ff.addGoods(n, e.node.getPosition()); e.iconTouch.active = !1; e.ff.mFFheader.removeTmpGood(e.goodNodes, e.goodNodes.length); e.node.removeComponent(cc.PhysicsBoxCollider); } else e.ff.main.showTips(i.message); else e.ff.main.showTips("网络异常"); }); }; r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ f({ type: cc.Node, displayName: "任务提示" }) ], e.prototype, "iconTouch", void 0); r([ f({ displayName: "收集的道具id" }) ], e.prototype, "goodId", void 0); r([ f({ type: [ p.default ], displayName: "收集的地图上的果子" }) ], e.prototype, "goodNodes", void 0); return r([ u ], e); }(cc.Component); o.default = h; cc._RF.pop(); }, { "../../../../util/CHttp": "CHttp", "../../object/FSprite": "FSprite", "../map1/WOneByone": "WOneByone", "./FFruit26": "FFruit26" } ], FDialogPet: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5fa744AhD1EfpdkNrs/WU7w", "FDialogPet"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FObject"), a = t("../object/FSprite"), s = t("./map1/WOneByone"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.text = []; e.mRemoveId = []; e.isOver = !1; return e; } e.prototype.onBeginContact = function(t, e, o) { if (!this.isOver && "A" == o.node.group) { var i = o.node.getComponent(a.default); this.ff = i.ff; if (i == this.ff.mainSprite) { this.node.removeComponent(cc.PhysicsBoxCollider); this.ff = i.ff; this.isOver = !0; this.startFight(); } } }; e.prototype.startFight = function() { this.ff.pauseSprite(!0); this.dialog(0); }; e.prototype.removePet = function() { for (var t = 0; t < this.mRemoveId.length; t++) { var e = this.mRemoveId[t]; this.ff.removePet(e); } }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) { this.ff.mBlockInputEvents.active = !1; this.ff.pauseSprite(!1); this.node.destroy(); this.removePet(); } else { var o = this.ff.getGroupBy(c.GroupType.A), i = this.text[t].split("|"), n = i.shift(), r = o[parseInt(n)].node; this.showDialog(r, i, function() { t++; e.dialog(t); }); } }; e.prototype.showDialog = function(t, e, o) { var i = this, n = e[0]; if (0 == n.indexOf("#")) { var r = t.getComponent(a.default).spine; if (r) { r.setCompleteListener(function() { r.setAnimation(0, a.SpriteActionType.stand, !0); o(); }); var c = n.replace("#", ""); r.setAnimation(0, c, !1); } else o(); } else { this.ff.mBlockInputEvents.active = !0; var p = cc.instantiate(this.mMapDialog); p.group = "map"; p.zIndex = 9999; p.x = t.x; p.y = t.y + t.height; p.parent = this.ff.mMap.mSprites; var l = p.getComponent(s.default); l.dialogs = e; l.setCallback(function() { p.destroy(); i.ff.setBlockInputCallback(null); o(); }); this.ff.setBlockInputCallback(function() { l.jump(); }); l._start(); } }; r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ u([ cc.String ]) ], e.prototype, "text", void 0); r([ u({ displayName: "移除伙伴id", type: [ cc.Integer ] }) ], e.prototype, "mRemoveId", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../object/FObject": "FObject", "../object/FSprite": "FSprite", "./map1/WOneByone": "WOneByone" } ], FDialogTest_Zeus: [ function(t, e, o) { "use strict"; cc._RF.push(e, "406easz9z1KPoQwwBZsefTm", "FDialogTest_Zeus"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FObject"), a = t("../../object/FSprite"), s = t("../dialog/FDialogBox"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mDialog = null; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(a.default); this.ff = i.ff; i == this.ff.mainSprite && this.showButton(); } }; e.prototype.onEndContact = function(t, e, o) { "A" == o.node.group && o.node.getComponent(a.default) == this.ff.mainSprite && this.closeButton(); }; e.prototype.showButton = function() { var t = this; this.ff.control.mEventButton.node.active = !0; this.ff.control.mEventButton.setCallback(function() { t.showDialog(); }); }; e.prototype.closeButton = function() { this.ff.control.mEventButton.node.active = !1; }; e.prototype.exitDialog = function() { this.dialogBox.node.destroy(); }; e.prototype.showDialog = function() { var t = this, e = cc.instantiate(this.mDialog); this.ff.main.viewManage.popView(e); this.dialogBox = e.getComponent(s.default); this.dialogBox.setData([ { name: "宙斯", name1: "众神之王", icon: "3", content: "1111111" }, { name: "宙斯", name1: "众神之王", icon: "3", content: "222222" }, { name: "宙斯", name1: "众神之王", icon: "3", content: "3333333" } ]); this.dialogBox.setCallback(function() { t.showAttr(); }); }; e.prototype.showAttr = function() { var t = this; this.dialogBox.setAttr([ { name: "附加攻击力", about: "普通攻击增加", icon: "attribute_icon_1", vaule: 40, type: 1 }, { name: "附加攻击力", about: "普通攻击增加", icon: "attribute_icon_1", vaule: 40, type: 1 }, { name: "附加攻击力", about: "普通攻击增加", icon: "attribute_icon_1", vaule: 40, type: 1 } ]); this.dialogBox.setAttrCallback(function(e) { t.exitDialog(); t.node.destroy(); cc.log("选择增加属性类型:", e); t.ff.getGroupBy(c.GroupType.A).forEach(function(o) { t.addAttr(o, e); }); }); }; e.prototype.addAttr = function(t, e) { var o = t.attrData; 1 == e.type && (o.atk += Math.floor(o.atk * e.vaule / 100)); }; r([ u(cc.Prefab) ], e.prototype, "mDialog", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../object/FObject": "FObject", "../../object/FSprite": "FSprite", "../dialog/FDialogBox": "FDialogBox" } ], FDialogTest_athena: [ function(t, e, o) { "use strict"; cc._RF.push(e, "fdef2xCLfJGSbO1WaSa4AK8", "FDialogTest_athena"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("../dialog/FDialogBox"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mDialog = null; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); this.ff = i.ff; i == this.ff.mainSprite && this.showButton(); } }; e.prototype.onEndContact = function(t, e, o) { "A" == o.node.group && o.node.getComponent(c.default) == this.ff.mainSprite && this.closeButton(); }; e.prototype.showButton = function() { var t = this; this.ff.control.mEventButton.node.active = !0; this.ff.control.mEventButton.setCallback(function() { t.showDialog(); }); }; e.prototype.closeButton = function() { this.ff.control.mEventButton.node.active = !1; }; e.prototype.exitDialog = function() { this.dialogBox.node.destroy(); }; e.prototype.showDialog = function() { var t = this, e = cc.instantiate(this.mDialog); this.ff.main.viewManage.popView(e); this.dialogBox = e.getComponent(a.default); this.dialogBox.setData([ { name: "雅典娜", name1: "智慧女神", icon: "role_half_12006", content: "来自奥林匹斯王国灰眼公主的祝福,燃烧吧,小宇宙" } ]); this.dialogBox.setCallback(function() { t.showAttr(); }); }; e.prototype.showAttr = function() { var t = this; this.dialogBox.setAttr([ { name: "附加攻击力", about: "普通攻击增加", icon: "attribute_icon_1", vaule: 40, type: 1 }, { name: "附加攻击力", about: "普通攻击增加", icon: "attribute_icon_1", vaule: 40, type: 1 }, { name: "附加攻击力", about: "普通攻击增加", icon: "attribute_icon_1", vaule: 40, type: 1 } ]); this.dialogBox.setAttrCallback(function(e) { t.exitDialog(); t.node.destroy(); var o = t.ff.mainSprite; t.addAttr(o, e); }); }; e.prototype.addAttr = function(t, e) { var o = t.attrData; 1 == e.type && (o.atk += Math.floor(o.atk * e.vaule / 100)); }; r([ l(cc.Prefab) ], e.prototype, "mDialog", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "../dialog/FDialogBox": "FDialogBox" } ], FDialogTest: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a3b379XRWFPVqIUFfUIx9as", "FDialogTest"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mDialog = null; e.count = 0; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { this.count++; var i = o.node.getComponent(c.default); this.ff = i.ff; this.showButton(); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group) { this.count--; this.count <= 0 && this.closeButton(); } }; e.prototype.showButton = function() { var t = this; this.ff.control.mEventButton.node.active = !0; this.ff.control.mEventButton.setCallback(function() { t.showDialog(); }); }; e.prototype.closeButton = function() { this.ff.control.mEventButton.node.active = !1; }; e.prototype.exitDialog = function() {}; e.prototype.showDialog = function() { var t = cc.instantiate(this.mDialog); this.ff.main.viewManage.popView(t); }; r([ p(cc.Prefab) ], e.prototype, "mDialog", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../object/FSprite": "FSprite" } ], FDoorTips: [ function(t, e, o) { "use strict"; cc._RF.push(e, "717b87oBiRDWq7vNDlVkHwP", "FDoorTips"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.text = []; e.mTipsIcon = null; e.mGearNode = null; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mGearNode && (this.mGearNode.active = !1); }; e.prototype.onBegin = function(t) { var e = this; 1 == t && this.showOpt(this.mTipsIcon, function() { e.dialog(0); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) { this.mGearNode && (this.mGearNode.active = !0); this.closeOpt(); } else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog(t); }); } } }; r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ p([ cc.String ]) ], e.prototype, "text", void 0); r([ p({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ p({ displayName: "出现的机关", type: cc.Node }) ], e.prototype, "mGearNode", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../base/BaseEvent": "BaseEvent" } ], FEndSign: [ function(t, e, o) { "use strict"; cc._RF.push(e, "304a4VKFIRMXqIoQoyvvUTv", "FEndSign"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("./WOneByone"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.mD1 = null; e.ff = null; e.isOver = !1; return e; } e.prototype.onBeginContact = function(t, e, o) { if (!this.isOver && "A" == o.node.group) { var i = o.node.getComponent(c.default); this.ff = i.ff; if (i == this.ff.mainSprite) { this.isOver = !0; this.node.removeComponent(cc.PhysicsBoxCollider); this.run(); } } }; e.prototype.run = function() { var t = this; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; var e = this.ff.mMap, o = cc.winSize, i = e.mCamera, n = this.node.x - o.width / 2, r = this.node.y - o.height / 2; cc.tween(i.node).sequence(cc.moveTo(.7, cc.v2(n, r)), cc.callFunc(function() { t.run1(); })).start(); }; e.prototype.run1 = function() { var t = this; this.mD1.active = !0; this.mD1.getChildByName("chuansongmen1").active = !0; var e = this.mD1.getChildByName("monster56"); e.active = !0; e.opacity = 0; cc.tween(e).sequence(cc.fadeIn(1), cc.callFunc(function() { t.d1(); })).start(); }; e.prototype.d1 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.mD1.x; e.y = this.mD1.y + this.mD1.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(a.default); o.dialogs = [ "看来你已经学会了基本的冒险方法,去吧,到了那边会有东西接应你的。", "加油,我的孩子,拯救众神的任务就交给你了" ]; o.setCallback(function() { t.mD1.active = !1; e.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; r([ l(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ l(cc.Node) ], e.prototype, "mD1", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "./WOneByone": "WOneByone" } ], FExitBox: [ function(t, e, o) { "use strict"; cc._RF.push(e, "21009R12i1D1aQl2tdRByB+", "FExitBox"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mAbout = null; e.mGoodIcon1 = null; e.mGood1 = null; e.mGoodIcon2 = null; e.mGood2 = null; e.mStar = null; e.mStarx = []; e.endType = 0; return e; } e.prototype.setOKCallback = function(t) { this.callbackOK = t; }; e.prototype.setCloseCallback = function(t) { this.callbackClose = t; }; e.prototype.onclickOK = function() { this.__distroyAll(); this.callbackOK(); cc.director.getPhysicsManager().enabled = !0; }; e.prototype.onclickCancel = function() { this.__distroyAll(); this.callbackClose && this.callbackClose(); }; e.prototype.init = function(t) { var e = this; this.stageData = t; var o = this.main.sManage, i = o.getGoodById1(this.stageData.goodId1); cc.resources.load("icon/good/" + i.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mGoodIcon1.spriteFrame = o; }); var n = o.getGoodById1(this.stageData.goodId2); cc.resources.load("icon/good/" + n.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mGoodIcon2.spriteFrame = o; }); this.flush(); for (var r = this.getStarCount(), a = this.mStar.children, s = 0; s < a.length; s++) { a[s].getComponent(cc.Sprite).spriteFrame = s < r ? this.mStarx[1] : this.mStarx[0]; } var p = 0; if (null != this.main.player.stage.data[this.stageData.id]) { this.getCount(this.stageData.goodId1) >= this.stageData.goodCount1 && p++; this.getCount(this.stageData.goodId2) >= this.stageData.goodCount2 && p++; } this.mAbout.string = p >= 2 ? c.default.t("关卡内任务已完成") : c.default.t("关卡内还有未完成的任务,是否确定退出?"); }; e.prototype.getStarCount = function() { var t = this.main.player.stage, e = t.data[this.stageData.id], o = 0; 0 == this.endType ? o++ : t.stageIndex > this.stageData.id && o++; if (null != e) { this.getCount(this.stageData.goodId1) >= this.stageData.goodCount1 && o++; this.getCount(this.stageData.goodId2) >= this.stageData.goodCount2 && o++; } return o; }; e.prototype.flush = function() { var t = this.getCount(this.stageData.goodId1); this.mGood1.string = t + "/" + this.stageData.goodCount1; var e = this.getCount(this.stageData.goodId2); this.mGood2.string = e + "/" + this.stageData.goodCount2; }; e.prototype.getCount = function(t) { var e = this.main.player.stage.data[this.stageData.id]; if (e && e.good) { var o = e.good["" + t]; return null == o ? 0 : o; } return 0; }; r([ l(cc.Label) ], e.prototype, "mAbout", void 0); r([ l(cc.Sprite) ], e.prototype, "mGoodIcon1", void 0); r([ l(cc.Label) ], e.prototype, "mGood1", void 0); r([ l(cc.Sprite) ], e.prototype, "mGoodIcon2", void 0); r([ l(cc.Label) ], e.prototype, "mGood2", void 0); r([ l(cc.Node) ], e.prototype, "mStar", void 0); r([ l([ cc.SpriteFrame ]) ], e.prototype, "mStarx", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewObject": "ViewObject" } ], FExit: [ function(t, e, o) { "use strict"; cc._RF.push(e, "72dd2Av1ktEx5SAo//c4wLp", "FExit"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../box/FExitBox"), p = t("./base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTipsIcon = null; e.isEnd = !1; return e; } e.prototype.onBegin = function(t) { var e = this; this.isEnd || 1 == t && this.showOpt(this.mTipsIcon, function() { e.exitFF(e.ff); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.exitFF = function(t) { var e = this; this.ff = t; t.stopRuning(); t.pauseSprite(!0); var o = cc.instantiate(this.ff.mExitBox).getComponent(s.default); o.main = this.ff.main; o.init(this.ff.mFFheader.stageData); o.show(); o.setCloseCallback(function() { t.pauseSprite(!1); }); o.setOKCallback(function() { e.isEnd = !0; e.ff.exitCallback(); e.ff.main.topNode.active = !0; e.ff.main.playMusicByPath(a.AudioMgr.homeMusic); }); c.default.commitEvent(this.node.name, "", ""); }; r([ f({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "../../../main/ViewManage": "ViewManage", "../box/FExitBox": "FExitBox", "./base/BaseEvent": "BaseEvent" } ], FExtra: [ function(t, e, o) { "use strict"; cc._RF.push(e, "cd238R9TE1M/K6VilUaIM0e", "FExtra"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CHttp"), a = t("../../map/FMap"), s = t("../../object/FSprite"), p = t("../map1/WOneByone"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.extraId = 1001; e.spine = null; e.iconTouch = null; e.mFenceTrigger = []; e.mMapDialog = null; return e; } e.prototype.onLoad = function() { this.spine.active = !1; this.map = this.node.parent.parent.getComponent(a.default); }; e.prototype.start = function() { if (this.map.ff.main.player.stage.extraStage.indexOf(this.extraId) >= 0) { this.node.active = !1; this.mFenceTrigger.forEach(function(t) { t.active = !1; }); } else this.node.active = !0; }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(s.default); this.ff = i.ff; i == this.ff.mainSprite && this.showButton(); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(s.default); this.ff = i.ff; i == this.ff.mainSprite && this.closeButton(); } }; e.prototype.showButton = function() { var t = this; this.ff.control.mEventButton.node.active = !0; this.ff.control.mEventButton.setCallback(function() { t.startStory(); }); }; e.prototype.closeButton = function() { this.ff.control.mEventButton.node.active = !1; }; e.prototype.startStory = function() { this.ff.pauseSprite(!0); this.iconTouch.active = !1; this.ff.mBlockInputEvents.active = !0; this.showDialog1(); }; e.prototype.showDialog1 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x; e.y = this.node.y + this.node.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(p.default); o.dialogs = [ "城堡里有个美丽的公主", "刚收到消息,说她后妈嫉妒她的美貌,用毒苹果把她毒死了", "现在去夺取解药,应该还能救活她" ]; o.setCallback(function() { e.destroy(); t.playAction(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.exitExtra = function() { this.ff.pauseSprite(!1); this.ff.mBlockInputEvents.active = !1; this.node.removeComponent(cc.PhysicsBoxCollider); }; e.prototype.playAction = function() { var t = this; this.spine.active = !0; var e = this.spine.getComponent(sp.Skeleton); e.setCompleteListener(function() { e.setCompleteListener(null); t.spine.active = !1; t.openExtraStage(); }); e.setAnimation(0, "vs_direct", !1); }; e.prototype.moveCarmea = function() { var t = this, e = this.ff.mMap.mCamera, o = this.mFenceTrigger[0], i = cc.v2(), n = cc.winSize; i.x = o.x - n.width / 2; i.y = o.y - n.height / 2; cc.tween(e.node).sequence(cc.moveTo(1.5, i), cc.callFunc(function() { t.mFenceTrigger.forEach(function(e) { t.showFence(e, "close"); }); }), cc.delayTime(1), cc.callFunc(function() { t.mFenceTrigger.forEach(function(t) { t.active = !1; }); t.exitExtra(); })).start(); }; e.prototype.showFence = function() {}; e.prototype.openExtraStage = function() { var t = this, e = { id: this.extraId }, o = this.ff; o.main.gameHttp.sendJson("stage/v1/openExtraStage", e, function(e, i) { if (e == c.HttpStateType.SUCCESS) if (0 == i.retCode) { o.main.player.stage.extraStage.push(t.extraId); t.moveCarmea(); } else { t.exitExtra(); o.main.showTips(i.message); } else { t.exitExtra(); o.main.showTips("网络异常"); } }); }; r([ f({ type: cc.Integer, displayName: "附加关卡id" }) ], e.prototype, "extraId", void 0); r([ f({ type: cc.Node, displayName: "开启特效" }) ], e.prototype, "spine", void 0); r([ f({ type: cc.Node, displayName: "任务提示" }) ], e.prototype, "iconTouch", void 0); r([ f([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0); return r([ u ], e); }(cc.Component); o.default = h; cc._RF.pop(); }, { "../../../../util/CHttp": "CHttp", "../../map/FMap": "FMap", "../../object/FSprite": "FSprite", "../map1/WOneByone": "WOneByone" } ], FFAutoEquip: [ function(t, e, o) { "use strict"; cc._RF.push(e, "8ec87tSAlFC1Z00/HgSn7bj", "FFAutoEquip"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../common/GoodItem"), s = t("../../data/FFCalAttr"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mGoodItem = null; e.mAtk = null; e.mDef = null; e.mHp = null; e.mMj = null; e.mAutoTime = null; return e; } e.prototype.setEquip = function(t) { this.mGoodItem.initEquip(this.main, t); var e = s.default.getEquipAttr(this.main, t, this.mGoodItem.equipData); e.atk > 0 ? this.mAtk.node.active = !0 : this.mAtk.node.active = !1; e.def > 0 ? this.mDef.node.active = !0 : this.mDef.node.active = !1; e.hp > 0 ? this.mHp.node.active = !0 : this.mHp.node.active = !1; e.sp > 0 ? this.mMj.node.active = !0 : this.mMj.node.active = !1; 1 == this.mGoodItem.equipData.type ? 1 == this.mGoodItem.equipData.occ || 2 == this.mGoodItem.equipData.occ || this.mGoodItem.equipData.occ : 2 == this.mGoodItem.equipData.type || 3 == this.mGoodItem.equipData.type || 4 == this.mGoodItem.equipData.type || this.mGoodItem.equipData.type; return !1; }; e.prototype.onclick = function() {}; r([ u(a.default) ], e.prototype, "mGoodItem", void 0); r([ u(cc.Label) ], e.prototype, "mAtk", void 0); r([ u(cc.Label) ], e.prototype, "mDef", void 0); r([ u(cc.Label) ], e.prototype, "mHp", void 0); r([ u(cc.Label) ], e.prototype, "mMj", void 0); r([ u(cc.Label) ], e.prototype, "mAutoTime", void 0); return r([ l ], e); }(c.default); o.default = f; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../common/GoodItem": "GoodItem", "../../data/FFCalAttr": "FFCalAttr" } ], FFCalAttr: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e0992XLok9P95q8eD11IzbR", "FFCalAttr"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = function() { function t() {} t.getAttr = function(e, o) { for (var i = e.sManage.getRoleById(o.id), n = { id: o.id, type: 3, post: i.post, path: "prefab/role/" + i.act, atk: i.atk, def: i.def, hp: i.hp, sp: i.sp, water: 0, fire: 0, wind: 0, thunder: 0, earth: 0, sd: 0, weaponSkill: 0, suitId: 0, suitCount: 0, attrs: [], zdl: 0, skin: "30000", weapon: "", bullet: null }, r = 0; r < o.equips.length; r++) { var c = o.equips[r], a = e.sManage.getEquipById(c.id); if (1 == a.type) { n.weapon = "" + a.id; n.bullet = a.bulletEffect; } else 5 == a.type && (n.skin = "" + a.id); n.atk += a.atk; n.def += a.def; n.hp += a.hp; n.sp += a.sp; n.sd += a.sd; a.skill > 0 && (n.weaponSkill = a.skill); if (c.attr) for (var s = 0; s < c.attr.length; s++) { for (var p = c.attr[s], l = !0, u = 0; u < n.attrs.length; u++) if ((g = n.attrs[u]).K == p.K) { g.V += p.V; l = !1; break; } l && n.attrs.push({ K: p.K, V: p.V }); } var f = t.getEquipQH(e, c, a); if (f > 0) { var h = e.sManage.getEquipQHByType(a)[f - 1]; n.atk += h.atk; n.def += h.def; n.hp += h.hp; n.sp += h.sp; } if (c.star > 0) { n.atk += Math.floor(n.atk * c.star / 10); n.def += Math.floor(n.def * c.star / 10); n.hp += Math.floor(n.hp * c.star / 10); n.sp += Math.floor(n.sp * c.star / 10); } } for (r = 0; r < n.attrs.length; r++) 1 == (c = n.attrs[r]).K ? n.atk += Math.floor(n.atk * c.V / 100) : 2 == c.K ? n.def += Math.floor(n.def * c.V / 100) : 3 == c.K ? n.hp += Math.floor(n.hp * c.V / 100) : 4 == c.K ? n.sp += Math.floor(n.sp * c.V / 100) : 5 == c.K ? n.atk += Math.floor(n.atk * c.V / 100) : 6 == c.K ? n.def += Math.floor(n.def * c.V / 100) : 7 == c.K ? n.hp += Math.floor(n.hp * c.V / 100) : 8 == c.K && (n.sp += Math.floor(n.sp * c.V / 100)); var d = e.player.godCard; for (var m in d) { var y = d[m], v = e.sManage.getGodCardById(y.id); t.addCardAttr(n, v); if (y.level > 0) { var g = v.list[y.level - 1]; t.addCardAttr(n, g); } y.reborn > 0 && t.addCardAttr(n, v.godReborn); } var _ = e.player.roleIcon.open; for (r = 0; r < _.length; r++) { c = _[r]; var b = e.sManage.getRoleIconById(c); n.atk += b.atk; n.def += b.def; n.hp += b.hp; n.sp += b.sp; } n.zdl = t.getZdl(n); n.bullet || (1 == i.post ? n.bullet = e.sManage.getEquipById(1001).bulletEffect : 2 == i.post ? n.bullet = e.sManage.getEquipById(1102).bulletEffect : 3 == i.post && (n.bullet = e.sManage.getEquipById(1202).bulletEffect)); return n; }; t.addCardAttr = function(t, e) { t.atk += e.atk; t.def += e.def; t.hp += e.hp; t.sp += e.sp; t.atk += e.water; t.def += e.fire; t.hp += e.wind; t.sp += e.thunder; t.sp += e.earth; }; t.getEquipAttr = function(e, o, i) { var n = { id: 0, type: 3, post: 0, path: null, atk: i.atk, def: i.def, hp: i.hp, sp: i.sp, water: 0, fire: 0, wind: 0, thunder: 0, earth: 0, sd: 0, weaponSkill: 0, suitId: 0, suitCount: 0, attrs: [], zdl: 0, skin: "30000", weapon: "", bullet: null }, r = t.getEquipQH(e, o, i); if (r > 0) { var c = e.sManage.getEquipQHByType(i)[r - 1]; n.atk += c.atk; n.def += c.def; n.hp += c.hp; n.sp += c.sp; } if (o.star > 0) { n.atk += Math.floor(n.atk * o.star / 10); n.def += Math.floor(n.def * o.star / 10); n.hp += Math.floor(n.hp * o.star / 10); n.sp += Math.floor(n.sp * o.star / 10); } n.zdl = t.getZdl(n); return n; }; t.getZdl = function(t) { return t.atk + t.def + Math.floor(t.hp / 10) + t.sp; }; t.getEquipQH = function(t, e, o) { if (o.type > 4) return 0; for (var i = t.sManage.getEquipQHByType(o), n = -1, r = 0; r < i.length; r++) if (i[r].exp > e.PI) { n = r; break; } -1 == n && (n = i.length); var c = o.level + 5 * e.qhMax; n > c && (n = c); return n; }; t.getEquipQHLevel = function(t, e, o) { if (o.type > 4) return 0; for (var i = t.sManage.getEquipQHByType(o), n = 0; n < i.length; n++) if (i[n].exp > e) return n; return i.length; }; t.getGodCardAttr = function(t, e) { var o = t.sManage.getGodCardById(e.id), i = { id: 0, type: 3, post: 0, path: null, atk: o.atk, def: o.def, hp: o.hp, sp: o.sp, bjgl: 0, water: o.water, fire: o.fire, wind: o.wind, thunder: o.thunder, earth: o.earth, sd: 0, weaponSkill: 0, suitId: 0, suitCount: 0, attrs: [], zdl: 0, skin: "30000", weapon: "", bullet: null }; if (e.level > 0) { var n = o.list[e.level - 1]; i.atk += n.atk; i.def += n.def; i.hp += n.hp; i.sp += n.sp; i.water += n.water; i.fire += n.fire; i.wind += n.wind; i.thunder += n.thunder; i.earth += n.earth; } if (e.reborn > 0) { var r = o.godReborn; i.atk += r.atk; i.def += r.def; i.hp += r.hp; i.sp += r.sp; i.water += r.water; i.fire += r.fire; i.wind += r.wind; i.thunder += r.thunder; i.earth += r.earth; } return i; }; return t; }(); o.default = i; cc._RF.pop(); }, {} ], FFDialogBox: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e09cbpagkFJc60GZktKld+d", "FFDialogBox"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTitle = null; e.mContent = null; e.mBtLabelOK = null; e.mBtLabelCancel = null; return e; } e.prototype.onclickOK = function() { this.okCallback && this.okCallback(); }; e.prototype.onclickCancel = function() { this.cancelCallback && this.cancelCallback(); }; e.prototype.setOKCallback = function(t) { this.okCallback = t; }; e.prototype.setCancelCallback = function(t) { this.cancelCallback = t; }; r([ p(cc.Label) ], e.prototype, "mTitle", void 0); r([ p(cc.Label) ], e.prototype, "mContent", void 0); r([ p(cc.Label) ], e.prototype, "mBtLabelOK", void 0); r([ p(cc.Label) ], e.prototype, "mBtLabelCancel", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject" } ], FFHeader: [ function(t, e, o) { "use strict"; cc._RF.push(e, "bc7c7PfxuxKK40QteAq7pnm", "FFHeader"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = t("./FTmpTaskGood"), s = t("./FTmpTaskPanel"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mGoodIcon1 = null; e.mGood1 = null; e.mGoodIcon2 = null; e.mGood2 = null; e.mGoodIcon3 = null; e.mGood3 = null; e.mTmpGoods = null; e.mTmpContent = null; e.mTmpGoodItem = null; e.mTmpPanel = null; e.tmpGoods = new Map(); return e; } e.prototype.onLoad = function() { this.mTmpPanel.node.active = !1; }; e.prototype.init = function(t, e) { var o = this; this.ff = t; this.main = this.ff.main; this.stageData = e; var i = this.main.sManage, n = i.getGoodById1(this.stageData.goodId1); cc.resources.load("icon/good/" + n.icon, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : o.mGoodIcon1.spriteFrame = e; }); var r = i.getGoodById1(this.stageData.goodId2); cc.resources.load("icon/good/" + r.icon, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : o.mGoodIcon2.spriteFrame = e; }); var c = i.getGoodById1(this.stageData.goodId3); cc.resources.load("icon/good/" + c.icon, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : o.mGoodIcon3.spriteFrame = e; }); this.flush(); }; e.prototype.flush = function() { this.main.player.stage; var t = this.getCount(this.stageData.goodId1); this.mGood1.string = t + "/" + this.stageData.goodCount1; var e = this.getCount(this.stageData.goodId2); this.mGood2.string = e + "/" + this.stageData.goodCount2; var o = this.getCount(this.stageData.goodId3); this.mGood3.string = o + "/" + this.stageData.goodCount3; }; e.prototype.getCount = function(t) { var e = this.main.player.stage.data["" + this.stageData.id]; if (e && e.good) { var o = e.good["" + t]; return null == o ? 0 : o; } return 0; }; e.prototype.addTmpGood = function(t, e) { var o = this.tmpGoods.get(t); if (this.tmpGoods.has(t)) { o += e; this.tmpGoods.set(t, o); } else this.tmpGoods.set(t, e); this.flushTmpGood(); var i = this.main.sManage.getGoodById(t), n = "" + c.default.t("获得道具") + ":" + c.default.t(i.name) + "x" + e + ""; this.main.showTips(n); }; e.prototype.removeTmpGood = function(t, e) { if (this.tmpGoods.has(t)) { var o = this.tmpGoods.get(t); (o -= e) > 0 ? this.tmpGoods.set(t, o) : this.tmpGoods.delete(t); this.flushTmpGood(); } }; e.prototype.getTmpCount = function(t) { return this.tmpGoods.has(t) ? this.tmpGoods.get(t) : 0; }; e.prototype.flushTmpGood = function() { var t = this; this.mTmpGoods.active = this.tmpGoods.size > 0; var e = this.ff.main.sManage; this.mTmpContent.destroyAllChildren(); this.tmpGoods.forEach(function(o, i) { var n = e.getGoodById1(i), r = cc.instantiate(t.mTmpGoodItem); r.parent = t.mTmpContent; var c = r.getComponent(a.default); c.init(n, o); c.setCallback(function(e, o) { o ? t.mTmpPanel.show(e) : t.mTmpPanel.node.active = !1; }); }); }; r([ u(cc.Sprite) ], e.prototype, "mGoodIcon1", void 0); r([ u(cc.Label) ], e.prototype, "mGood1", void 0); r([ u(cc.Sprite) ], e.prototype, "mGoodIcon2", void 0); r([ u(cc.Label) ], e.prototype, "mGood2", void 0); r([ u(cc.Sprite) ], e.prototype, "mGoodIcon3", void 0); r([ u(cc.Label) ], e.prototype, "mGood3", void 0); r([ u(cc.Node) ], e.prototype, "mTmpGoods", void 0); r([ u(cc.Node) ], e.prototype, "mTmpContent", void 0); r([ u(cc.Prefab) ], e.prototype, "mTmpGoodItem", void 0); r([ u(s.default) ], e.prototype, "mTmpPanel", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../i18n/i18n": "i18n", "./FTmpTaskGood": "FTmpTaskGood", "./FTmpTaskPanel": "FTmpTaskPanel" } ], FFRes: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7224fNSOZhBJo2xQ3XxASP2", "FFRes"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.grayMaterial = null; e.normalMaterial = null; e.mHudNode = null; e.mHudPrefab = null; return e; } r([ s(cc.Material) ], e.prototype, "grayMaterial", void 0); r([ s(cc.Material) ], e.prototype, "normalMaterial", void 0); r([ s(cc.Node) ], e.prototype, "mHudNode", void 0); r([ s(cc.Prefab) ], e.prototype, "mHudPrefab", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], FFZsjTips: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3f40a/g7gxMV6dqGBfl+GHv", "FFZsjTips"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.start = function() { cc.tween(this.node).sequence(cc.delayTime(5), cc.destroySelf()).start(); }; return r([ s ], e); }(c.default)); o.default = p; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject" } ], FFenceTrigger: [ function(t, e, o) { "use strict"; cc._RF.push(e, "aa67cinkn1NAahhotVQTywj", "FFenceTrigger"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("../../../util/CMath"), s = t("../object/FObject"), p = t("../object/FSprite"), l = t("./map1/WOneByone"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mInitA = null; e.mInitB = null; e.mCameraPos = null; e.mAppear = null; e.mFenceTrigger = []; e.mMonster1 = []; e.mMonster2 = []; e.mMonster3 = []; e.mMonster4 = []; e.mMonster5 = []; e.mMapDialog = null; e.text = []; e.isBoss = !1; e.countDown = -1; e.isOver = !1; e.mIndex = 0; e.groupMonster = []; e.mMonster = null; return e; } e.prototype.onLoad = function() { this.groupMonster.push(this.mMonster1); this.mMonster2.length > 0 && this.groupMonster.push(this.mMonster2); this.mMonster3.length > 0 && this.groupMonster.push(this.mMonster3); this.mMonster4.length > 0 && this.groupMonster.push(this.mMonster4); this.mMonster5.length > 0 && this.groupMonster.push(this.mMonster5); }; e.prototype.start = function() { for (var t = 0; t < this.groupMonster.length; t++) for (var e = this.groupMonster[t], o = 0; o < e.length; o++) { var i = e[o]; i.isActive = !1; t > 0 && (i.node.active = !1); } this.mMonster = this.groupMonster[0]; }; e.prototype.onBeginContact = function(t, e, o) { var i = this; if (!this.isOver && "A" == o.node.group) { var n = o.node.getComponent(p.default); this.ff = n.ff; if (n == this.ff.mainSprite) { this.node.removeComponent(cc.PhysicsBoxCollider); this.ff = n.ff; this.ff.regRemoveCallback(function(t) { i.removeCallback(t); }); this.isOver = !0; this.startFight(); c.default.commitEvent(this.node.name, "", ""); } } }; e.prototype.startFight = function() { var t = this; this.ff.pauseSprite(!0); this.moveCamera(function() { t.dialog(0); }); }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) this.startFight1(); else { var o = this.text[t].split("|"), i = parseInt(o.shift()); if (-1 == i) { var n = this.ff.mainSprite.node; this.showDialog(n, o, function() { t++; e.dialog(t); }); } else { n = this.mMonster[i].node; this.showDialog(n, o, function() { t++; e.dialog(t); }); } } }; e.prototype.showDialog = function(t, e, o) { var i = this; this.ff.mBlockInputEvents.active = !0; var n = cc.instantiate(this.mMapDialog); n.group = "map"; n.zIndex = 9999; n.x = t.x; n.y = t.y + t.height; n.parent = this.ff.mMap.mSprites; var r = n.getComponent(l.default); r.dialogs = e; r.setCallback(function() { n.destroy(); i.ff.setBlockInputCallback(null); o(); }); this.ff.setBlockInputCallback(function() { r.jump(); }); r._start(); }; e.prototype.startFight1 = function() { var t = this; this.addMark(); this.moveTo(); this.isBoss && this.ff.flushHP(this.mMonster[0]); -1 != this.countDown && this.ff.mCountDown.startCountDown(this.countDown); cc.tween(this).sequence(cc.delayTime(.6), cc.callFunc(function() { t.playSkill(1); t.playSkill(2); t.playSkill(3); }), cc.delayTime(1.5), cc.callFunc(function() { t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; for (var e = 0; e < t.mFenceTrigger.length; e++) { (o = t.mFenceTrigger[e]).active = !0; o.children.forEach(function(t) { var e = t.getComponent(sp.Skeleton); e && e.setAnimation(0, "open", !1); }); } for (e = 0; e < t.mMonster.length; e++) { var o; (o = t.mMonster[e]).isActive = !0; } })).start(); }; e.prototype.addMark = function() { for (var t = 0; t < this.mMonster.length; t++) { var e = this.mMonster[t].addActiveIcon(); this.actionMark(e); } }; e.prototype.actionMark = function(t) { t.scale = 0; cc.tween(t).sequence(cc.delayTime(1), cc.scaleTo(.2, 1.2, 1.2), cc.scaleTo(.2, .9, .9), cc.scaleTo(.2, 1.1, 1.1), cc.scaleTo(.2, .9, .9), cc.scaleTo(.2, 1.1, 1.1), cc.scaleTo(.2, 1, 1), cc.blink(1, 3), cc.fadeOut(1.5), cc.destroySelf()).start(); }; e.prototype.moveCamera = function(t) { if (this.mCameraPos) { var e = this.ff.mMap.mCamera, o = cc.v2(), i = cc.winSize; o.x = this.node.x + this.mCameraPos.x - i.width / 2; o.y = this.node.y + this.mCameraPos.y - i.height / 2; cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() { t(); })).start(); } else t(); }; e.prototype.moveTo = function() { for (var t = this.ff.getGroupBy(s.GroupType.A), e = function(e) { var i = t[e]; if (i) { i.setRuning(!1); i.setDir({ x: 0, y: 0 }); i.playAction(p.SpriteActionType.run, !0); var n = i.attrData, r = cc.v2(); if (3 == n.post) { r.x = o.node.x + o.mInitB.x + a.default.getRandom(-o.mInitB.width, o.mInitB.width); r.y = o.node.y + o.mInitB.y + a.default.getRandom(-o.mInitB.height, o.mInitB.height); } else { r.x = o.node.x + o.mInitA.x + a.default.getRandom(-o.mInitA.width, o.mInitA.width); r.y = o.node.y + o.mInitA.y + a.default.getRandom(-o.mInitA.height, o.mInitA.height); } cc.tween(i.node).sequence(cc.moveTo(.5, r), cc.callFunc(function() { i.playAction(p.SpriteActionType.stand, !0); })).start(); } }, o = this, i = 0; i < t.length; i++) e(i); }; e.prototype.removeCallback = function(t) { for (var e = this, o = 0; o < this.mMonster.length; o++) if ((i = this.mMonster[o]) == t) { this.mMonster.splice(o, 1); break; } if (this.mMonster.length <= 0) { this.mIndex++; if (this.mIndex < this.groupMonster.length) { this.mMonster = this.groupMonster[this.mIndex]; this.playAppear(); } else { for (o = 0; o < this.mFenceTrigger.length; o++) { var i = this.mFenceTrigger[o]; this.playCancelFence(i); } this.ff.regRemoveCallback(null); this.ff.mainSprite.setPause(!0); cc.tween(this.node).sequence(cc.delayTime(.5), cc.callFunc(function() { e.ff.mainSprite.setPause(!1); })).start(); } } }; e.prototype.playAppear = function() { for (var t = function(t) { var o = e.mMonster[t]; o.node.active = !0; if (e.mAppear) { var i = cc.instantiate(e.mAppear); i.parent = o.node; i.group = o.node.group; var n = i.getComponent(sp.Skeleton); n.setCompleteListener(function() { i.destroy(); o.isActive = !0; }); n.setAnimation(0, "animation", !1); } else o.isActive = !0; }, e = this, o = 0; o < this.mMonster.length; o++) t(o); }; e.prototype.playCancelFence = function(t) { -1 != this.countDown && this.ff.mCountDown.stopCountDown(); var e = t.children, o = 0; e.forEach(function(i) { var n = i.getComponent(sp.Skeleton); if (n) { n.setCompleteListener(function() { i.active = !1; ++o >= e.length && (t.active = !1); }); n.setAnimation(0, "close", !1); } }); }; e.prototype.playSkill = function(t) { var e = this; cc.resources.load("prefab/role/skills/skills_" + t, cc.Prefab, function(o, i) { if (o) cc.error(o); else for (var n = e.ff.getGroupBy(s.GroupType.A), r = function(e) { var o = n[e]; if (o) { var r = cc.instantiate(i); r.parent = o.node; r.zIndex = 9999; var c = r.getComponent(sp.Skeleton); if (3 != t) c.setCompleteListener(function() { r.destroy(); }); else { o.hasDun = !0; cc.tween(r).sequence(cc.delayTime(10), cc.callFunc(function() { o.hasDun = !1; }), cc.destroySelf()).start(); } } }, c = 0; c < n.length; c++) r(c); }); }; r([ h({ type: cc.Node, displayName: "远程初始位置" }) ], e.prototype, "mInitA", void 0); r([ h({ type: cc.Node, displayName: "近战初始位置" }) ], e.prototype, "mInitB", void 0); r([ h({ type: cc.Node, displayName: "摄像机移动的目标位置" }) ], e.prototype, "mCameraPos", void 0); r([ h({ type: cc.Prefab, displayName: "怪物出现动画" }) ], e.prototype, "mAppear", void 0); r([ h([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); r([ h([ p.default ]) ], e.prototype, "mMonster1", void 0); r([ h([ p.default ]) ], e.prototype, "mMonster2", void 0); r([ h([ p.default ]) ], e.prototype, "mMonster3", void 0); r([ h([ p.default ]) ], e.prototype, "mMonster4", void 0); r([ h([ p.default ]) ], e.prototype, "mMonster5", void 0); r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ h([ cc.String ]) ], e.prototype, "text", void 0); r([ h({ displayName: "是否开始就显示boss" }) ], e.prototype, "isBoss", void 0); r([ h({ displayName: "倒计时时间" }) ], e.prototype, "countDown", void 0); return r([ f ], e); }(cc.Component); o.default = d; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "../../../util/CMath": "CMath", "../object/FObject": "FObject", "../object/FSprite": "FSprite", "./map1/WOneByone": "WOneByone" } ], FFire1_4: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a82ccWM1AdPVK1Kr3GjlyCo", "FFire1_4"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.spine = null; e.mMapDialog = null; e.icon = null; e.mTipsIcon = null; e.text = []; e.fireList = []; e.goodId = 2004; e.saveId = ""; e.count = 0; e.state = !1; return e; } e.prototype.start = function() {}; e.prototype.onBegin = function(t) { var e = this; this.ff.mFFheader.getTmpCount(this.goodId) ? 1 == t && this.showOpt(this.mTipsIcon, function() { e.state || e.playAnima(); }) : this.showOpt(this.icon, function() { var t = e.ff.mainSprite.node; e.showDialog(t, e.text, function() { e.closeOpt(); }); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.playAnima = function() { var t = this; this.state = !0; this.spineAction(this.spine, "zuan", function() { t.state = !1; t.spineAction(t.spine, "idle", function() {}); t.count++; t.fireList[t.count - 1].active = !0; t.getFire(); }); }; e.prototype.getFire = function() { var t = this.ff.mFFheader; if (this.count == this.fireList.length) { t.removeTmpGood(this.goodId, 1); this.node.active = !1; this.closeOpt(); } }; r([ p({ displayName: "动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ p({ displayName: "靠近的提示", type: cc.SpriteFrame }) ], e.prototype, "icon", void 0); r([ p({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ p({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ p({ displayName: "火把列表", type: [ cc.Node ] }) ], e.prototype, "fireList", void 0); r([ p({ displayName: "需要的物品id" }) ], e.prototype, "goodId", void 0); r([ p({ displayName: "存储ID" }) ], e.prototype, "saveId", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../../base/BaseEvent": "BaseEvent" } ], FFruit1_3: [ function(t, e, o) { "use strict"; cc._RF.push(e, "6e9b9Se3mlB+buguf9S+mET", "FFruit1_3"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mProgressBar = null; e.mTipsIcon = null; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mProgressBar.node.active = !1; }; e.prototype.setPick26 = function(t) { this.pick26 = t; }; e.prototype.onBegin = function() { var t = this; this.pick26 && 1 == this.pick26.state && this.showOpt(this.mTipsIcon, function() { t.pick(); }); }; e.prototype.onEnd = function() { this.closeOpt(); }; e.prototype.pick = function() { this.closeOpt(); this.mProgressBar.node.active = !0; this.mProgressBar.progress = 0; this.ff.mBlockInputEvents.active = !0; this.schedule(this.pupdate, .1); }; e.prototype.pupdate = function() { var t = this.mProgressBar.progress; t += .1; this.mProgressBar.progress = t; if (t >= 1) { this.ff.mBlockInputEvents.active = !1; this.unschedule(this.pupdate); this.ff.mFFheader.addTmpGood(this.pick26.goodId, 1); this.node.removeComponent(cc.PhysicsBoxCollider); cc.tween(this.node).sequence(cc.fadeOut(.5), cc.destroySelf()).start(); } }; r([ p({ type: cc.ProgressBar, displayName: "进度条" }) ], e.prototype, "mProgressBar", void 0); r([ p({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../../base/BaseEvent": "BaseEvent" } ], FFruit26: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e5ccaGTZAZMuq25wTmRt3hj", "FFruit26"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mProgressBar = null; return e; } e.prototype.onLoad = function() { this.mProgressBar.node.active = !1; }; e.prototype.setPick26 = function(t) { this.pick26 = t; }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group && this.pick26 && 1 == this.pick26.state) { var i = o.node.getComponent(c.default); this.ff = i.ff; i == this.ff.mainSprite && this.showButton(); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); this.ff = i.ff; i == this.ff.mainSprite && this.closeButton(); } }; e.prototype.showButton = function() { var t = this; this.ff.control.mEventButton.node.active = !0; this.ff.control.mEventButton.setCallback(function() { t.pick(); }); }; e.prototype.closeButton = function() { this.ff.control.mEventButton.node.active = !1; }; e.prototype.pick = function() { this.mProgressBar.node.active = !0; this.mProgressBar.progress = 0; this.ff.mBlockInputEvents.active = !0; this.schedule(this.pupdate, .1); }; e.prototype.pupdate = function() { var t = this.mProgressBar.progress; t += .1; this.mProgressBar.progress = t; if (t >= 1) { this.ff.mBlockInputEvents.active = !1; this.unschedule(this.pupdate); this.ff.mFFheader.addTmpGood(this.pick26.goodId, 1); this.node.removeComponent(cc.PhysicsBoxCollider); cc.tween(this.node).sequence(cc.fadeOut(.5), cc.destroySelf()).start(); } }; r([ p({ type: cc.ProgressBar, displayName: "进度条" }) ], e.prototype, "mProgressBar", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../object/FSprite": "FSprite" } ], FF: [ function(t, e, o) { "use strict"; cc._RF.push(e, "aa4c8D8nhNNdrcjq53dlte3", "FF"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); o.FF_Result_Type = void 0; var c = t("../../main/ViewObject"), a = t("./object/FSprite"), s = t("./map/FLiteMap"), p = t("../../util/CMath"), l = t("./box/FExitBox"), u = t("./object/FObject"), f = t("./object/AI/AIPet"), h = t("./FControl"), d = t("../../util/CHttp"), m = t("./FFHeader"), y = t("./object/FPanel"), v = t("./FObjectFly"), g = t("./object/MSprite"), _ = t("./object/PSprite"), b = t("./FCountDown"), O = t("../../util/Joystick"), w = t("./FFRes"), C = t("./object/FPanelIcon"), F = t("../data/FFCalAttr"), P = t("../../main/ViewManage"), j = t("./evnet/FTmpGood"), I = t("../data/RedPoint"), S = cc._decorator, k = S.ccclass, M = S.property; o.FF_Result_Type = cc.Enum({ none: 0, fail: 1, win: 2 }); var R = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mBlockInputEvents = null; e.mMapLayer = null; e.mJoystick = null; e.mLietMap = null; e.mControl = null; e.mRed = null; e.mBjFont = null; e.mSkillFont = null; e.mMu = null; e.mExitBox = null; e.mMapDialog = null; e.mActiveIcon = null; e.mDeadIcon = null; e.mFFheader = null; e.mSmailHP = null; e.mBossHP = null; e.mTop = null; e.mCountDown = null; e.mWalk = null; e.mRun = null; e.control = null; e.fres = null; e.mainSprite = null; e.mMap = null; e.ffResultType = 0; e.lockCamera = !0; e.isBack = !1; return e; } e.prototype.onLoad = function() { var t = this; cc.director.getPhysicsManager().enabled = !0; this.control = this.mControl.getComponent(h.default); this.fres = this.node.getComponent(w.default); this.mCountDown.setCallback(function() { t.clearCallback(t.mainSprite); }); }; e.prototype.onDestroy = function() {}; e.prototype.stopRuning = function() { this.mJoystick.stop(); }; e.prototype.startRuning = function() {}; e.prototype.regClearCallback = function(t) { this.clearCallback = t; }; e.prototype.regRemoveCallback = function(t) { this.removeCallback = t; }; e.prototype.regExitCallback = function(t) { this.exitCallback = t; }; e.prototype.loadMap = function(t) { var e = this; this.mMap = t; this.mMap.mCamera = this.main.mMapCamera; this.mMap.mCamera.zoomRatio = 1; this.mMap.setFF(this); this.mMap.node.parent = this.mMapLayer; t.node.zIndex = 0; this.mMapLayer.x = -cc.winSize.width / 2; this.mMapLayer.y = -cc.winSize.height / 2; this.mMu.zIndex = 9999; this.mMu.width = 2 * cc.winSize.width; this.mMu.height = 2 * cc.winSize.height; this.mMu.active = !0; this.mLietMap.initMap(this); this.mMap.getSprites().forEach(function(t) { var o = t.getComponent(u.default); if (o) { o.ff = e; o.map = e.mMap; } }); }; e.prototype.update = function() { if (this.lockCamera && this.mainSprite) { var t = this.mainSprite.node; this.mMap.updateShoot(t.x, t.y); this.mLietMap.clearMask(t.getPosition()); } }; e.prototype.loadRole = function(t) { for (var e = 0; e < t.length; e++) if ((i = t[e]) instanceof g.default) { this.mainSprite = i; i.setPosition(this.mMap.mInit.getPosition()); } this.mainSprite.setJoystick(this.mJoystick); var o = this.mainSprite; for (e = 0; e < t.length; e++) { var i; if ((i = t[e]) instanceof _.default) { i.setLeader(o); o.setNext(i); o = i; i.addComponent(f.default); } i.node.group = u.GroupType.A; this.mMap.addSprite(i); i.addPanelHUD(); } var n = this.mainSprite.node; this.mMap.updateShoot(n.x, n.y); this.mLietMap.clearMask(n.getPosition()); this.mMap.initCamera(); this.control.updateSkill(); }; e.prototype.addRole = function(t) { for (var e = this.mainSprite; e.nextSprite; ) e = e.nextSprite; t.setLeader(e); e.setNext(t); t.node.group = u.GroupType.A; this.mMap.addSprite(t); t.addPanelHUD(); }; e.prototype.updateRole = function() { for (var t = this.fres.mHudNode.children, e = 0; e < t.length; e++) { var o = t[e].getComponent(C.default), i = o.sprite, n = i.attrData, r = this.main.player.pet[n.id], c = F.default.getAttr(this.main, r); i.flushAttrData(c); o.setIcon(); } if (this.mainSprite && this.mainSprite.isValid) { this.mainSprite.setAttrData(this.mainSprite.attrData); this.control.updateSkill(); } }; e.prototype.getRandInit = function() { var t = cc.v2(); t.x = p.default.getRandom(this.mMap.mInit.x - 100, this.mMap.mInit.x + 100); t.y = p.default.getRandom(this.mMap.mInit.y - 100, this.mMap.mInit.y + 100); return t; }; e.prototype.activeCount = function() { for (var t = this.mMap.getSprites(), e = 0, o = 0; o < t.length; o++) t[o].group == u.GroupType.A && e++; return e; }; e.prototype.getGroupBy = function(t) { for (var e = [], o = this.mMap.getSprites(), i = 0; i < o.length; i++) { var n = o[i]; n.group == t && e.push(n.getComponent(a.default)); } return e; }; e.prototype.onclickExit = function() { var t = this, e = cc.instantiate(this.mExitBox).getComponent(l.default); e.main = this.main; e.endType = 1; e.init(this.mFFheader.stageData); e.show(); e.setOKCallback(function() { t.exitDistroy(); t.main.topNode.active = !0; t.main.playMusicByPath(P.AudioMgr.homeMusic); }); this.pauseSprite(!0); e.setCloseCallback(function() { t.pauseSprite(!1); }); }; e.prototype.getMapObject = function(t) { var e = this, o = { objectId: t }; this.main.gameHttp.sendJson("stage/v1/stageObject", o, function(o, i) { e.main.stopLoad(); if (o == d.HttpStateType.SUCCESS) if (0 == i.retCode) { var n = e.main.player.stage; n.element.push(t); n.data[e.mFFheader.stageData.id] = i.data._stage; e.mFFheader.flush(); e.main.showTips1(i); } else e.main.showTips(i.message); else e.main.showTips("网络异常"); }); }; e.prototype.pauseSprite = function(t) { this.lockCamera = !t; this.mMap.getSprites().forEach(function(e) { var o = e.getComponent(a.default); o && o.setPause(t); }); if (t) { this.mJoystick.stop(); this.mainSprite && this.mainSprite.setShooting(!1); this.uiOutAction(); cc.director.getPhysicsManager().enabled = !1; } else { this.uiInAction(); cc.director.getPhysicsManager().enabled = !0; } }; e.prototype.uiOutAction = function() { this.mJoystick.node.active = !1; this.mControl.active = !1; this.mTop.active = !1; }; e.prototype.uiInAction = function() { this.mJoystick.node.active = !0; this.mControl.active = !0; this.mTop.active = !0; }; e.prototype.flushHP = function(t) { this.mBossHP.node.active = !1; this.mSmailHP.node.active = !1; if (!(t.hp <= 0)) { var e = null; (e = 2 == t.attrData.type ? this.mBossHP : this.mSmailHP).node.active = !0; e.sprite = t; e.updatePanel(); e.setCancel(); } }; e.prototype.updateHP = function(t) { var e = null; this.mBossHP.node.active ? e = this.mBossHP : this.mSmailHP.node.active && (e = this.mSmailHP); e && t == e.sprite && e.updatePanel(); }; e.prototype.addGoods = function(t, e) { var o = this; t.forEach(function(t) { cc.resources.load(t.icon, cc.SpriteFrame, function(t, i) { if (t) cc.error(t); else { var n = new cc.Node(); n.group = "map"; n.addComponent(cc.Sprite).spriteFrame = i; n.x = e.x; n.y = e.y; n.parent = o.mMap.mSprites; var r = n.addComponent(v.default); r.ff = o; n.setScale(1.5); var c = p.default.getRandom(-100, 100), a = cc.jumpBy(.5, cc.v2(c, 0), 100, 1); cc.tween(n).sequence(a, cc.delayTime(.5), cc.callFunc(function() { o.main.playerEffectByPath(P.AudioMgr.getCoin); r.move = !0; cc.tween(n).repeatForever(cc.rotateBy(1, 360)).start(); })).start(); } }); }); }; e.prototype.addGoodToMap = function(t, e) { var o = this, i = this.main.sManage.getGoodById1(t); cc.resources.load("icon/good/" + i.icon, cc.SpriteFrame, function(i, n) { if (i) cc.error(i); else { var r = new cc.Node(); r.group = "map"; r.addComponent(cc.Sprite).spriteFrame = n; r.addComponent(j.default).goodId = t; var c = r.addComponent(cc.RigidBody); c.enabledContactListener = !0; c.type = cc.RigidBodyType.Static; var a = r.addComponent(cc.PhysicsBoxCollider); a.sensor = !0; a.size.width = n.getRect().width; a.size.height = n.getRect().height; r.x = e.x; r.y = e.y; r.parent = o.mMap.mSprites; r.setScale(1.5); var s = p.default.getRandom(-100, 100), l = cc.jumpBy(.5, cc.v2(s, 0), 100, 1); cc.tween(r).sequence(l, cc.delayTime(.5), cc.callFunc(function() { cc.tween(r).repeatForever(cc.rotateBy(1, 360)).start(); })).start(); } }); }; e.prototype.setBlockInputCallback = function(t) { this.blockInputCallback = t; }; e.prototype.blockInputEvents = function() { this.blockInputCallback && this.blockInputCallback(); }; e.prototype.shockMap = function() { cc.tween(this.mMapLayer).sequence(cc.moveBy(.05, 0, 15).easing(cc.easeBackOut()), cc.moveBy(.05, 0, -15).easing(cc.easeBackOut())).start(); }; e.prototype.removePet = function(t) { for (var e = this.mainSprite.nextSprite; ;) { if (!e) return; if (e.attrData.id == t) { e.nextSprite && e.nextSprite.setLeader(e.inFront); e.node.destroy(); return; } e = e.nextSprite; } }; e.prototype.openSet = function() { var t = this; this.pauseSprite(!0); this.main.viewManage.loadFunc(P.GameViewType.tap_set, function(e) { e.setCloseCallback(function() { t.pauseSprite(!1); }); e.show(); }); }; e.prototype.fuhuo = function() { this.ffResultType = o.FF_Result_Type.none; for (var t = this.getGroupBy("A"), e = 0; e < t.length; e++) { var i = t[e]; if (i.hp <= 0) { i.isActive = !0; i.wudi(2); i.hp = i.attrData.hp; var n = i.node.getChildByName("juese01").getChildByName("spineRight").getComponent(sp.Skeleton); if (!n.node.active) { i.spine.destroy(); i.spine = n; n.node.active = !0; } } else i.hp = i.attrData.hp; i.updatePanel(); } }; e.prototype.firstGetSkillTips = function() { var t = this, e = this.mControl.getChildByName("1"); e.active = !0; this.mBlockInputEvents.active = !0; this.setBlockInputCallback(function() { e.active = !1; t.mBlockInputEvents.active = !1; }); }; e.prototype.firstGetGoodsTips = function() { var t = this, e = this.mControl.parent.getChildByName("goodAbout"); console.log("======", e); e.active = !0; this.mBlockInputEvents.active = !0; this.setBlockInputCallback(function() { e.active = !1; t.mBlockInputEvents.active = !1; }); }; e.prototype.httpEvent = function(t) { var e = t.data; if (null != e._equip && e._equip.length > 0) for (var o = this.fres.mHudNode.children, i = 0; i < o.length; i++) { var n = o[i], r = n.getComponent(C.default).sprite.attrData.id, c = this.main.player.getPet(r); I.default.petRedPoint(this.main, c) && I.default.addRed(this.main, n, !0); } }; r([ M(cc.Node) ], e.prototype, "mBlockInputEvents", void 0); r([ M(cc.Node) ], e.prototype, "mMapLayer", void 0); r([ M(O.default) ], e.prototype, "mJoystick", void 0); r([ M(s.default) ], e.prototype, "mLietMap", void 0); r([ M(cc.Node) ], e.prototype, "mControl", void 0); r([ M(cc.Font) ], e.prototype, "mRed", void 0); r([ M(cc.Font) ], e.prototype, "mBjFont", void 0); r([ M(cc.Font) ], e.prototype, "mSkillFont", void 0); r([ M(cc.Node) ], e.prototype, "mMu", void 0); r([ M(cc.Prefab) ], e.prototype, "mExitBox", void 0); r([ M(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ M(cc.SpriteFrame) ], e.prototype, "mActiveIcon", void 0); r([ M(cc.SpriteFrame) ], e.prototype, "mDeadIcon", void 0); r([ M(m.default) ], e.prototype, "mFFheader", void 0); r([ M(y.default) ], e.prototype, "mSmailHP", void 0); r([ M(y.default) ], e.prototype, "mBossHP", void 0); r([ M(cc.Node) ], e.prototype, "mTop", void 0); r([ M(b.default) ], e.prototype, "mCountDown", void 0); r([ M(cc.AudioClip) ], e.prototype, "mWalk", void 0); r([ M(cc.AudioClip) ], e.prototype, "mRun", void 0); return r([ k ], e); }(c.default); o.default = R; cc._RF.pop(); }, { "../../main/ViewManage": "ViewManage", "../../main/ViewObject": "ViewObject", "../../util/CHttp": "CHttp", "../../util/CMath": "CMath", "../../util/Joystick": "Joystick", "../data/FFCalAttr": "FFCalAttr", "../data/RedPoint": "RedPoint", "./FControl": "FControl", "./FCountDown": "FCountDown", "./FFHeader": "FFHeader", "./FFRes": "FFRes", "./FObjectFly": "FObjectFly", "./box/FExitBox": "FExitBox", "./evnet/FTmpGood": "FTmpGood", "./map/FLiteMap": "FLiteMap", "./object/AI/AIPet": "AIPet", "./object/FObject": "FObject", "./object/FPanel": "FPanel", "./object/FPanelIcon": "FPanelIcon", "./object/FSprite": "FSprite", "./object/MSprite": "MSprite", "./object/PSprite": "PSprite" } ], FGass: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f0361ZSAAhCdqmi7wMO0No1", "FGass"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FObject"), a = t("../box/DialogSay"), s = t("../../../util/CMath"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mDialog = null; e.mContents = []; e.mMonster = []; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); if (i) { this.node.removeComponent(cc.PhysicsBoxCollider); var n = i.ff; n.stopRuning(); this.showDialog(n); } } }; e.prototype.showDialog = function(t) { var e = this, o = cc.instantiate(this.mDialog); t.main.viewManage.popView(o); var i = o.getComponent(a.default); i.setContents(this.mContents); i.setEndCallback(function() { t.startRuning(); e.flushMonster(t); }); }; e.prototype.flushMonster = function() { for (var t = 0; t < this.mMonster.length; t++) ; }; e.prototype.getRandInit = function() { var t = cc.v2(); t.x = s.default.getRandom(this.node.x - this.node.width / 2, this.node.x + this.node.width / 2); t.y = s.default.getRandom(this.node.y - this.node.height / 2, this.node.y + this.node.height / 2); return t; }; r([ u({ type: cc.Prefab, displayName: "对话框" }) ], e.prototype, "mDialog", void 0); r([ u({ type: [ cc.String ], displayName: "对话内容" }) ], e.prototype, "mContents", void 0); r([ u({ type: [ cc.Prefab ], displayName: "对话完成刷怪" }) ], e.prototype, "mMonster", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../../util/CMath": "CMath", "../box/DialogSay": "DialogSay", "../object/FObject": "FObject" } ], FGetSkill: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3dd6afgSGFD4Kziq/eX7jID", "FGetSkill"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../base/BaseEvent"), a = t("../../../../../main/ViewManage"), s = t("../../../../../login/FqLogin"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.text = []; e.finish = []; e.icon = null; e.mTipsIcon = null; e.goodId = 2006; e.saveId = ""; e.mOpenDoor = null; e.isEnd = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.ff.main.player.stage.element.indexOf(this.saveId) > -1 && (this.mOpenDoor.active = !1); }; e.prototype.onBegin = function(t) { var e = this; this.isEnd || 1 == t && this.showOpt(this.mTipsIcon, function() { e.startDialog(); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.startDialog = function() { var t = this; this.closeOpt(); var e = this.ff.mFFheader; if (e.getTmpCount(this.goodId) > 0) { e.removeTmpGood(this.goodId, 1); if (this.ff.main.player.role.openSkill) { this.pause(); this.moveCamera(this.mOpenDoor.getPosition(), 1, function() { t.openGear(); }); } else this.showDialog(this.node, this.finish, function() { t.pause(); t.moveCamera(t.mOpenDoor.getPosition(), 1, function() { t.openGear(); }); t.getMapObject(t.saveId, null); s.default.commitEvent(t.node.name, "", ""); }); } else this.showDialog1(0); }; e.prototype.showDialog1 = function(t) { var e = this; if (!(t >= this.text.length)) { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.showDialog1(t); }); } else { i = this.node; this.showDialog(i, o, function() { t++; e.showDialog1(t); }); } } }; e.prototype.openGear = function() { var t = this; this.isEnd = !0; this.icon && (this.icon.active = !1); this.mOpenDoor.children.forEach(function(e) { var o = e.getComponent(sp.Skeleton); if (o) { o.setCompleteListener(function() { e.active = !1; }); o.setAnimation(0, "close", !1); t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); } }); cc.tween(this.ff.mMap.node).sequence(cc.delayTime(1), cc.callFunc(function() { t.mOpenDoor.active = !1; t.resume(); })).start(); }; r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ u({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ u({ displayName: "完成后的对话", type: [ cc.String ] }) ], e.prototype, "finish", void 0); r([ u({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ u({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ u({ displayName: "需要的物品id" }) ], e.prototype, "goodId", void 0); r([ u({ displayName: "需要存储的ID" }) ], e.prototype, "saveId", void 0); r([ u({ displayName: "需要打开的门", type: cc.Node }) ], e.prototype, "mOpenDoor", void 0); return r([ l ], e); }(c.default); o.default = f; cc._RF.pop(); }, { "../../../../../login/FqLogin": "FqLogin", "../../../../../main/ViewManage": "ViewManage", "../../base/BaseEvent": "BaseEvent" } ], FGold: [ function(t, e, o) { "use strict"; cc._RF.push(e, "fd8edE1vIlHdqMZCk4gY4Q4", "FGold"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewManage"), a = t("./base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mGuideMark = null; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.node.zIndex = 9999; }; e.prototype.onBegin = function() { var t = this; this.mGuideMark && (this.mGuideMark.active = !1); this.node.getChildByName("ani_zuanshi") && this.ff.main.playerEffectByPath(c.AudioMgr.amethyst); this.node.removeComponent(cc.PhysicsBoxCollider); var e, o = cc.moveBy(1, cc.v2(0, 200)).easing(cc.easeSineOut()), i = cc.fadeOut(1), n = cc.sequence(cc.scaleTo(.1, 1.8), cc.scaleTo(.2, 2)); e = cc.spawn(o, i, n); var r = cc.sequence(cc.delayTime(.1), e, cc.callFunc(function() { t.node.removeFromParent(!0); t.node.destroy(); "109" == t.node.name && t.ff.main.viewManage.loadFunc(c.GameViewType.fight_zsj_tips, function(t) { t.show(); }); })); this.node.runAction(r); this.ff.getMapObject(this.node.name); }; e.prototype.onEnd = function() {}; r([ l({ type: cc.Node, displayName: "引导箭头标识" }) ], e.prototype, "mGuideMark", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "./base/BaseEvent": "BaseEvent" } ], FGrassShard: [ function(t, e, o) { "use strict"; cc._RF.push(e, "be338iNKm9MtqRPOklFulPW", "FGrassShard"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FObject"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.count = 0; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group && o.node.getComponent(c.default)) { this.count++; this.node.opacity = 100; } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group && o.node.getComponent(c.default)) { this.count--; this.count <= 0 && (this.node.opacity = 255); } }; return r([ s ], e); }(cc.Component)); o.default = p; cc._RF.pop(); }, { "../object/FObject": "FObject" } ], FHD_ZB: [ function(t, e, o) { "use strict"; cc._RF.push(e, "4fc4ekH5jZBCoQjG8YnmpDC", "FHD_ZB"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() {}; e.prototype.onclick = function() {}; return r([ s ], e); }(c.default)); o.default = p; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject" } ], FHitBoxOpenDoor: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3e601I+7b9PMpLA7ubv5SKL", "FHitBoxOpenDoor"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("./FHitBox"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mOtherBox = []; e.isClose = !1; return e; } o = e; e.prototype.hitBox = function() { var t = this; this.onEnd(1); this.ff.pauseSprite(!0); this.node.removeComponent(cc.PhysicsBoxCollider); this.node.removeComponent(cc.PhysicsBoxCollider); var e = this.ff.mainSprite; e.useHammer(); e.playAction2(c.SpriteActionType.chuizi, !1, function() { t.ff.pauseSprite(!1); e.playAction2(c.SpriteActionType.stand, !0); e.updateSkin(); }); this.isClose = !0; cc.tween(e.node).sequence(cc.delayTime(.2), cc.callFunc(function() { t.spine.setCompleteListener(function() { t.node.destroy(); }); t.openDoor(); t.spine.setAnimation(0, "boom", !1); })).start(); }; e.prototype.openDoor = function() { for (var t = this, e = 0; e < this.mOtherBox.length; e++) { var i = this.mOtherBox[e]; if (i.isValid && !i.getComponent(o).isClose) return; } this.pause(); this.moveCamera(this.hide.getPosition(), 1, function() { t.resume(); t.hide && t.hide.isValid && (t.hide.active = !0); }); }; var o; r([ l({ displayName: "需要打碎的其它箱子", type: [ cc.Node ] }) ], e.prototype, "mOtherBox", void 0); return o = r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "./FHitBox": "FHitBox" } ], FHitBox: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3768f8jiWJDQ427kxDEoPa6", "FHitBox"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../main/ViewManage"), a = t("../../object/FSprite"), s = t(".././base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.spine = null; e.icon = null; e.hide = null; e.mTipsIcon = null; e.isOver = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.icon && (this.icon.active = !1); this.hide && this.hide.isValid && (this.hide.active = !1); }; e.prototype.start = function() { this.hide && this.ff.mMap.checkIn(this.hide.name) && this.node.destroy(); }; e.prototype.onBegin = function(t) { var e = this; this.isOver || (1 == t ? this.showOpt(this.mTipsIcon, function() { e.isOver = !0; e.hitBox(); }) : 2 == t && this.icon && (this.icon.active = !0)); }; e.prototype.onEnd = function(t) { 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1); }; e.prototype.hitBox = function() { var t = this; this.onEnd(1); this.ff.pauseSprite(!0); this.node.removeComponent(cc.PhysicsBoxCollider); this.node.removeComponent(cc.PhysicsBoxCollider); var e = this.ff.mainSprite; e.useHammer(); e.playAction2(a.SpriteActionType.chuizi, !1, function() { t.ff.pauseSprite(!1); e.playAction2(a.SpriteActionType.stand, !0); e.updateSkin(); }); cc.tween(e.node).sequence(cc.delayTime(.2), cc.callFunc(function() { if (t.spine) { t.spine.setCompleteListener(function() { t.node.destroy(); }); t.hide && t.hide.isValid && (t.hide.active = !0); t.spine.setAnimation(0, "boom", !1); } t.ff.main.playerEffectByPath(c.AudioMgr.wooden); })).start(); }; r([ u(sp.Skeleton) ], e.prototype, "spine", void 0); r([ u({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ u({ displayName: "打碎后显示", type: cc.Node }) ], e.prototype, "hide", void 0); r([ u({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); return r([ l ], e); }(s.default); o.default = f; cc._RF.pop(); }, { "../../../../main/ViewManage": "ViewManage", "../../object/FSprite": "FSprite", ".././base/BaseEvent": "BaseEvent" } ], FHitMound: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0358cMYT01PApfo2fh1hODK", "FHitMound"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FSprite"), a = t("./base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.spine = null; e.icon = null; e.hide = null; e.mTipsIcon = null; e.mHitCount = 1; e.hitCount = 0; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.icon && (this.icon.active = !1); this.hide && this.hide.isValid && (this.hide.active = !1); }; e.prototype.onBegin = function(t) { var e = this; 1 == t ? this.showOpt(this.mTipsIcon, function() { e.hitCount++; var t = e.ff.mainSprite; t.useHammer(); t.playAction2(c.SpriteActionType.chuizi, !1, function() { e.ff.pauseSprite(!1); t.playAction2(c.SpriteActionType.stand, !0); t.updateSkin(); }); e.hitCount >= e.mHitCount ? e.hitBox() : e.spine.setAnimation(0, "hit", !1); }) : 2 == t && this.icon && (this.icon.active = !0); }; e.prototype.onEnd = function(t) { 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1); }; e.prototype.hitBox = function() { var t = this; this.onEnd(1); this.ff.pauseSprite(!0); this.node.removeComponent(cc.PhysicsBoxCollider); this.node.removeComponent(cc.PhysicsBoxCollider); var e = this.ff.mainSprite; e.useHammer(); e.playAction2(c.SpriteActionType.chuizi, !1, function() { t.ff.pauseSprite(!1); e.playAction2(c.SpriteActionType.stand, !0); e.updateSkin(); }); cc.tween(e.node).sequence(cc.delayTime(.2), cc.callFunc(function() { t.spine.setCompleteListener(function() { t.node.destroy(); }); t.hide && t.hide.isValid && (t.hide.active = !0); t.spine.setAnimation(0, "dead", !1); })).start(); }; r([ l(sp.Skeleton) ], e.prototype, "spine", void 0); r([ l({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ l({ displayName: "打碎后显示", type: cc.Node }) ], e.prototype, "hide", void 0); r([ l({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ l({ displayName: "敲击次数" }) ], e.prototype, "mHitCount", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../object/FSprite": "FSprite", "./base/BaseEvent": "BaseEvent" } ], FIconBlink: [ function(t, e, o) { "use strict"; cc._RF.push(e, "07ac2M4oy1N3qsSirba0WQ9", "FIconBlink"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { cc.tween(this.node).repeatForever(cc.blink(.5, 1)).start(); }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], FLiteMap: [ function(t, e, o) { "use strict"; cc._RF.push(e, "764c5KNICBGAaGFeY6yI3HS", "FLiteMap"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.maskNode = null; e.mIcon = null; e.mMapSprite = null; e.grid = new Array(); e.tempDrawPoint = null; return e; } e.prototype.onLoad = function() { var t = this.maskNode.getComponent(cc.Mask); this.stencil = t._graphics; this.stencil.lineWidth = 20; this.stencil.lineCap = cc.Graphics.LineCap.ROUND; this.stencil.lineJoin = cc.Graphics.LineJoin.ROUND; this.stencil.strokeColor = cc.color(255, 255, 255, 255); for (var e = 0; e < this.node.height; e++) { this.grid.push([]); for (var o = 0; o < this.node.width; o++) this.grid[e].push(0); } }; e.prototype.loadMap = function(t) { var e = this; cc.resources.load("icon/map/" + t, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mMapSprite.spriteFrame = o; }); }; e.prototype.initMap = function(t) { this.ff = t; this.node.getComponent(cc.Widget).target = this.ff.main.node; }; e.prototype.transform = function(t) { var e = Math.floor(t.x * this.node.width / this.ff.mMap.node.width), o = Math.floor(t.y * this.node.height / this.ff.mMap.node.height); return cc.v2(e, o); }; e.prototype.clearMask = function(t) { var e = this.transform(t); if (1 != this.grid[e.y][e.x]) if (null == this.tempDrawPoint) { this.stencil.circle(e.x, e.y, 5); this.stencil.fill(); this.tempDrawPoint = e; this.mIcon.setPosition(e); this.grid[e.y][e.x] = 1; } else if (this.tempDrawPoint.x == e.x && this.tempDrawPoint.y == e.y) ; else { var o = this.tempDrawPoint, i = e; this.stencil.moveTo(o.x, o.y); this.stencil.lineTo(i.x, i.y); this.stencil.stroke(); this.tempDrawPoint = e; this.mIcon.setPosition(e); this.grid[e.y][e.x] = 1; } }; e.prototype.reset = function() { this.maskNode.getComponent(cc.Mask)._graphics.clear(); }; r([ s(cc.Node) ], e.prototype, "maskNode", void 0); r([ s(cc.Node) ], e.prototype, "mIcon", void 0); r([ s(cc.Sprite) ], e.prototype, "mMapSprite", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], FLoad: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5c721RZVZJBP6b3dOFrZdBH", "FLoad"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = t("./map/FMap"), n = t("./object/MSprite"), r = t("./object/PSprite"), c = function() { function t() {} t.loadMap = function(t, e, o) { cc.resources.load("prefab/map/" + e.mapId, cc.Prefab, function(n, r) { if (n) cc.error(n); else { var c = cc.instantiate(r).getComponent(i.default); t.mLietMap.loadMap(e.mapId); o(c); } }); }; t.loadRole = function(t, e, o) { if (e.length <= 0) o([]); else { for (var i = [], c = 0; c < e.length; c++) { var a = e[c]; i.push(a.path); } cc.resources.load(i, cc.Prefab, function(i, c) { if (i) cc.error(i); else { for (var a = t.main.player, s = [], p = 0; p < e.length; p++) { var l = c[p], u = cc.instantiate(l), f = null; (f = e[p].id == a.role.leader ? u.addComponent(n.default) : u.addComponent(r.default)).ff = t; f.setAttrData(e[p]); f.hp = f.attrData.hp; s.push(f); } o(s); } }); } }; return t; }(); o.default = c; cc._RF.pop(); }, { "./map/FMap": "FMap", "./object/MSprite": "MSprite", "./object/PSprite": "PSprite" } ], FMapDialog: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f3dedfoaPtE1IiyWQ1qcdVi", "FMapDialog"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = t("../map1/WOneByone"), n = function() { function t(t, e) { this.ff = t; this.mMapDialog = e; } t.prototype.showDialog = function(t, e, o, n) { var r = this, c = cc.instantiate(this.mMapDialog); c.group = "map"; c.zIndex = 9999; c.x = e.x; c.y = e.y; c.parent = this.ff.mMap.mSprites; var a = c.getComponent(i.default); this.ff.mBlockInputEvents.active = !0; a.dialogs = t; a.spine = o; a.setCallback(function() { c.destroy(); r.ff.setBlockInputCallback(null); r.ff.mBlockInputEvents.active = !1; n(); }); this.ff.setBlockInputCallback(function() { a.jump(); }); a._start(); }; return t; }(); o.default = n; cc._RF.pop(); }, { "../map1/WOneByone": "WOneByone" } ], FMap: [ function(t, e, o) { "use strict"; cc._RF.push(e, "8b035ikh5dA9pFG8DzzDakl", "FMap"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../evnet/guide/GuideBase"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mSprites = null; e.mInit = null; e.mRooms = null; e.mBgm = null; e.mGuide = null; e.shoot = cc.v2(); e.mCamera = null; e.rooms = null; e.midWidth = 360; e.midHeidht = 640; e.curRoom = null; e.cellSize = 64; return e; } e.prototype.onLoad = function() { this.midWidth = cc.winSize.width / 2; this.midHeidht = cc.winSize.height / 2; this.rooms = this.mRooms.children; }; e.prototype.getRoom = function() { for (var t = 0; t < this.rooms.length; t++) { var e = this.rooms[t]; if (this.inRoom(e)) return e; } return null; }; e.prototype.inRoom = function(t) { return !(this.shoot.x <= t.x || this.shoot.y <= t.y || this.shoot.x >= t.x + t.width || this.shoot.y >= t.y + t.height); }; e.prototype.setFF = function(t) { var e = this; this.ff = t; this.mSprites.children.forEach(function(t) { e.checkIn(t.name) && t.destroy(); }); this.mBgm && t.main.playMusicByClip(this.mBgm); }; e.prototype.checkIn = function(t) { return this.ff.main.player.stage.element.indexOf(t) >= 0; }; e.prototype.initCamera = function() { var t = cc.winSize, e = this.shoot, o = e.x - this.midWidth; if (o != this.mCamera.node.x) { this.mCamera.node.x = o; this.mCamera.node.x < 0 && (this.mCamera.node.x = 0); this.mCamera.node.x > this.node.width - t.width && (this.mCamera.node.x = this.node.width - t.width); } var i = e.y - this.midHeidht; if (i != this.mCamera.node.y) { this.mCamera.node.y = i; this.mCamera.node.y < 0 && (this.mCamera.node.y = 0); this.mCamera.node.y > this.node.height - t.height && (this.mCamera.node.y = this.node.height - t.height); } if (this.mGuide) { this.mGuide.ff = this.ff; this.mGuide.run(); } }; e.prototype.pauseFF = function() { var t = this; this.ff.mainSprite.setPause(!0); cc.tween(this).sequence(cc.delayTime(.6), cc.callFunc(function() { t.ff.mainSprite.setPause(!1); })).start(); }; e.prototype.lateUpdate = function(t) { this.spriteOrder(); this.ff.mMu.x = this.mCamera.node.x + this.midWidth; this.ff.mMu.y = this.mCamera.node.y + this.midHeidht; if (this.ff.lockCamera) { var e = this.getRoom(); if (e) { if (this.curRoom != e) { null != this.curRoom && this.pauseFF(); this.curRoom = e; } var o = cc.winSize, i = this.shoot, n = i.x - this.midWidth, r = e.x + e.width - o.width; n < e.x ? n = e.x : n > r && (n = r); if (n != this.mCamera.node.x) { var c = n - this.mCamera.node.x; if (c >= -5 && c <= 5) this.mCamera.node.x = n; else { var a = c / 10; Math.abs(a) < 5 && (a = a > 0 ? 5 : -5); a *= 1 + t; this.mCamera.node.x += a; } } var s = i.y - this.midHeidht, p = e.y + e.height - o.height; s < e.y ? s = e.y : s > p && (s = p); if (s != this.mCamera.node.y) { var l = s - this.mCamera.node.y; if (l >= -5 && l <= 5) this.mCamera.node.y = s; else { var u = l / 10; Math.abs(u) < 5 && (u = u > 0 ? 5 : -5); u *= 1 + t; this.mCamera.node.y += u; } } } } }; e.prototype.spriteOrder = function() { for (var t = this.mSprites.children, e = 0; e < t.length; e++) { var o = t[e]; if (9999 == o.zIndex || -9999 == o.zIndex) ; else { var i = (cc.macro.MAX_ZINDEX - o.y) / 10; o.zIndex = i; } } }; e.prototype.addSprite = function(t) { t.ff = this.ff; t.map = this; this.mSprites.addChild(t.node); }; e.prototype.setCamera = function(t) { this.mCamera = t; }; e.prototype.updateShoot = function(t, e) { if (this.shoot.x == t && this.shoot.y == e) return !1; this.shoot.x = t; this.shoot.y = e; return !0; }; e.prototype.getSprites = function() { return this.mSprites.children; }; e.prototype.cameraStop = function() { return !1; }; r([ p(cc.Node) ], e.prototype, "mSprites", void 0); r([ p(cc.Node) ], e.prototype, "mInit", void 0); r([ p(cc.Node) ], e.prototype, "mRooms", void 0); r([ p(cc.AudioClip) ], e.prototype, "mBgm", void 0); r([ p(c.default) ], e.prototype, "mGuide", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../evnet/guide/GuideBase": "GuideBase" } ], FMqs: [ function(t, e, o) { "use strict"; cc._RF.push(e, "98fadAv5PxInJHDR7dxXugX", "FMqs"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FObject"), a = t("../box/DialogButton"), s = t("../../../i18n/i18n"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mDialog = null; e.mDialog1 = null; e.temp = null; e.ff = null; e.count = 0; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); if (i) { var n = i.ff; this.ff = n; this.count++; this.showButton(n); } } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); if (i) { i.ff; this.count--; this.count <= 0 && this.closeButton(); } } }; e.prototype.showButton = function(t) { var e = this; if (!this.temp) { var o = cc.instantiate(this.mDialog); t.main.viewManage.popView(o); this.temp = o; var i = o.getComponent(a.default); i.label.string = s.default.t("饮用"); i.setCallback(function() { e.closeButton(); e.openDialog(); }); } }; e.prototype.closeButton = function() { this.count = 0; if (this.temp) { this.temp.destroy(); this.temp = null; } }; e.prototype.openDialog = function() { var t = cc.instantiate(this.mDialog1); this.ff.main.viewManage.popView(t); }; r([ u({ type: cc.Prefab, displayName: "事件按钮" }) ], e.prototype, "mDialog", void 0); r([ u({ type: cc.Prefab, displayName: "对话框" }) ], e.prototype, "mDialog1", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../box/DialogButton": "DialogButton", "../object/FObject": "FObject" } ], FObjectFly: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3f6aeRiO29NnL3Cd2e8HaG0", "FObjectFly"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.move = !1; return e; } e.prototype.update = function(t) { if (this.move && this.ff.mainSprite && this.ff.mainSprite.node) { var e = this.ff.mainSprite.node, o = e.getPosition(); o.y = o.y + e.height / 2; this.Genzong(o, t) && this.node.destroy(); } }; e.prototype.Genzong = function(t, e) { var o = t, i = cc.v2(this.node.x, this.node.y), n = o.sub(i), r = i.sub(o).mag(); if (r <= 10) return !0; var c = i.x + 700 * e * n.x / r, a = i.y + 700 * e * n.y / r, s = cc.v2(c, a); this.node.setPosition(s); }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], FObject: [ function(t, e, o) { "use strict"; cc._RF.push(e, "dfe94ft1kpNYKENASSkfOPn", "FObject"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); o.GroupType = void 0; var c = cc._decorator, a = c.ccclass, s = c.property; o.GroupType = cc.Enum({ N: "map", A: "A", B: "B" }); var p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.id = 0; return e; } r([ s ], e.prototype, "id", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], FOpenDoorButton: [ function(t, e, o) { "use strict"; cc._RF.push(e, "156feYqwT9Jjpg9j66KaLhO", "FOpenDoorButton"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mIcon0 = null; e.mIcon1 = null; e.mButtons = []; e.mFenceTrigger = []; e.isHang = !1; e.isOver = !1; e.count = 0; return e; } o = e; e.prototype.onBeginContact = function(t, e) { this.count++; this.onBegin(e.tag); }; e.prototype.onEndContact = function(t, e) { this.count--; if (this.count <= 0) { this.count = 0; this.onEnd(e.tag); } }; e.prototype.onBegin = function() { this.isHang = !0; this.mIcon.spriteFrame = this.mIcon1; this.checkOpen(); }; e.prototype.onEnd = function() { this.isHang = !1; this.mIcon.spriteFrame = this.mIcon0; }; e.prototype.checkOpen = function() { var t = this; if (!this.isOver) { for (var e = 0; e < this.mButtons.length; e++) if (!this.mButtons[e].getComponent(o).isHang) { for (var i = 0; i < this.mFenceTrigger.length; i++) { var n = this.mFenceTrigger[i]; this.showFence(n, "shake"); } return; } this.isOver = !0; this.pause(); this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() { cc.tween(t.node).sequence(cc.callFunc(function() { for (var e = 0; e < t.mFenceTrigger.length; e++) { var o = t.mFenceTrigger[e]; t.showFence(o, "close"); } t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { t.resume(); c.default.commitEvent(t.node.name, "", ""); for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1; })).start(); }); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; var o; r([ u({ displayName: "替换的图片", type: cc.Sprite }) ], e.prototype, "mIcon", void 0); r([ u({ displayName: "未踩上图片", type: cc.SpriteFrame }) ], e.prototype, "mIcon0", void 0); r([ u({ displayName: "踩上后的图片", type: cc.SpriteFrame }) ], e.prototype, "mIcon1", void 0); r([ u({ displayName: "其它开关", type: [ cc.Node ] }) ], e.prototype, "mButtons", void 0); r([ u({ displayName: "控制的机关", type: [ cc.Node ] }) ], e.prototype, "mFenceTrigger", void 0); return o = r([ l ], e); }(s.default); o.default = f; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../../../../main/ViewManage": "ViewManage", "../base/BaseEvent": "BaseEvent" } ], FOpenDoorChat: [ function(t, e, o) { "use strict"; cc._RF.push(e, "1b3efRc681Pf7Kaut2SPRjA", "FOpenDoorChat"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../base/BaseEvent"), p = t("./FOpenDoorCheck"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.text = []; e.finish = []; e.icon = null; e.mTipsIcon = null; e.mCheck = null; e.mOpenDoor = null; e.spine = null; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); }; e.prototype.onBegin = function(t) { var e = this; this.mOpenDoor.active && 1 == t && this.showOpt(this.mTipsIcon, function() { e.closeOpt(); e.pause(); e.startDialog(); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.startDialog = function() { this.mCheck.mDriveNode.active ? this.dialog1(0) : this.dialog2(0); }; e.prototype.dialog1 = function(t) { var e = this; if (t >= this.text.length) this.resume(); else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog1(t); }); } else this.showDialog(this.node, o, function() { t++; e.dialog1(t); }); } }; e.prototype.dialog2 = function(t) { var e = this; if (t >= this.finish.length) { this.spine.setCompleteListener(function() { e.spine.setCompleteListener(null); e.spine.destroy(); e.moveCamera(e.mOpenDoor.getPosition(), 1, function() { e.openGear(); }); }); this.spine.setAnimation(0, "escape2", !1); } else { var o = this.finish[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog2(t); }); } else this.showDialog(this.node, o, function() { t++; e.dialog2(t); }); } }; e.prototype.openGear = function() { var t = this; this.icon && (this.icon.active = !1); this.mOpenDoor.children.forEach(function(t) { var e = t.getComponent(sp.Skeleton); if (e) { e.setCompleteListener(function() { t.active = !1; }); e.setAnimation(0, "close", !1); } }); this.ff.main.playerEffectByPath(a.AudioMgr.openDoor); cc.tween(this.ff.mMap.node).sequence(cc.delayTime(1), cc.callFunc(function() { t.mOpenDoor.active = !1; t.resume(); t.node.destroy(); c.default.commitEvent(t.node.name, "", ""); })).start(); }; r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ f({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ f({ displayName: "完成后的对话", type: [ cc.String ] }) ], e.prototype, "finish", void 0); r([ f({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ f({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ f({ displayName: "驱赶条件对象", type: p.default }) ], e.prototype, "mCheck", void 0); r([ f({ displayName: "需要打开的门", type: cc.Node }) ], e.prototype, "mOpenDoor", void 0); r([ f({ displayName: "精灵动画", type: sp.Skeleton }) ], e.prototype, "spine", void 0); return r([ u ], e); }(s.default); o.default = h; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../../../../main/ViewManage": "ViewManage", "../base/BaseEvent": "BaseEvent", "./FOpenDoorCheck": "FOpenDoorCheck" } ], FOpenDoorCheck: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a82a9WCp+9GB4Myc0HlJIAq", "FOpenDoorCheck"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.goodId = 2002; e.mMapDialog = null; e.text = []; e.mTipsIcon = null; e.mDriveNode = null; e.mGunNode = null; e.mSpine = null; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mGunNode.active = !1; }; e.prototype.onBegin = function(t) { var e = this; if (1 == t) { if (!this.mDriveNode.active) return; this.showOpt(this.mTipsIcon, function() { e.closeOpt(); var t = e.ff.mFFheader; if (t.getTmpCount(e.goodId) > 0) { e.ff.pauseSprite(!0); e.ff.mBlockInputEvents.active = !0; t.removeTmpGood(e.goodId, 1); e.mGunNode.active = !0; e.mSpine.setAnimation(0, "hurt", !1); cc.tween(e.mGunNode).sequence(cc.moveBy(.2, cc.v2(0, 40)), cc.moveBy(.2, cc.v2(0, -40)), cc.moveBy(.2, cc.v2(0, 40)), cc.moveBy(.2, cc.v2(0, -40)), cc.moveBy(.2, cc.v2(0, 40)), cc.moveBy(.2, cc.v2(0, -40)), cc.callFunc(function() { e.flyGo(); }), cc.moveBy(.2, cc.v2(0, 20)), cc.moveBy(.2, cc.v2(0, -20)), cc.fadeOut(1)).start(); } else e.dialog(0); }); } }; e.prototype.flyGo = function() { var t = this; this.ff.pauseSprite(!1); this.ff.mBlockInputEvents.active = !1; this.mSpine.setCompleteListener(function() { t.mDriveNode.active = !1; t.pause(); t.showDialog(t.ff.mainSprite.node, [ "乌鸦被赶走了,去告诉神秘人吧" ], function() { t.resume(); }); }); this.mSpine.setAnimation(0, "fly", !1); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) { this.closeOpt(); this.ff.pauseSprite(!1); this.ff.mBlockInputEvents.active = !1; } else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog(t); }); } } }; r([ p({ displayName: "需要的物品id" }) ], e.prototype, "goodId", void 0); r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ p({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ p({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ p({ displayName: "驱赶的对象", type: cc.Node }) ], e.prototype, "mDriveNode", void 0); r([ p({ displayName: "棍子", type: cc.Node }) ], e.prototype, "mGunNode", void 0); r([ p({ displayName: "乌鸦", type: sp.Skeleton }) ], e.prototype, "mSpine", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../base/BaseEvent": "BaseEvent" } ], FOpenDoorFW: [ function(t, e, o) { "use strict"; cc._RF.push(e, "29ac9u82z1PwZ3tHEB7op8D", "FOpenDoorFW"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mNodes = []; e.pos = []; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); for (var e = 0; e < this.mNodes.length; e++) { var o = this.mNodes[e]; this.pos.push(o.getPosition()); } }; e.prototype.onBegin = function() { for (var t = function(t) { var o = e.mNodes[t], i = e.pos[t]; cc.tween(o).sequence(cc.delayTime(.1), cc.callFunc(function() { o.x = i.x; o.y = i.y; })).start(); }, e = this, o = 0; o < this.mNodes.length; o++) t(o); }; e.prototype.onEnd = function() {}; r([ p({ type: [ cc.Node ], displayName: "需要复位的节点" }) ], e.prototype, "mNodes", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../base/BaseEvent": "BaseEvent" } ], FOpenDoorVineEx: [ function(t, e, o) { "use strict"; cc._RF.push(e, "fcab2JcNb9BHrerHTb0YPlo", "FOpenDoorVineEx"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../base/BaseEvent"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTipsIcon = null; e.mFenceTrigger = []; e.guides = []; e.isOver = !1; return e; } e.prototype.onBegin = function() { var t = this; this.isOver || this.showOpt(this.mTipsIcon, function() { t.closeOpt(); t.pause(); var e = t.node.children[0].children[0]; cc.tween(e).sequence(cc.moveBy(.2, cc.v2(0, -20)), cc.moveBy(.2, cc.v2(0, 20)), cc.moveBy(.2, cc.v2(0, -20)), cc.moveBy(.2, cc.v2(0, 20)), cc.moveBy(.5, cc.v2(0, 200)), cc.callFunc(function() { t.moveCamera(t.mFenceTrigger[0].getPosition(), 1, function() { cc.tween(t.node).sequence(cc.callFunc(function() { for (var e = 0; e < t.mFenceTrigger.length; e++) { var o = t.mFenceTrigger[e]; t.showFence(o, "close"); } t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { t.resume(); c.default.commitEvent(t.node.name, "", ""); for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].destroy(); t.node.destroy(); })).start(); }); })).start(); }); }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; r([ u({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); r([ u([ cc.Node ]) ], e.prototype, "guides", void 0); return r([ l ], e); }(s.default); o.default = f; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../../../../main/ViewManage": "ViewManage", "../base/BaseEvent": "BaseEvent" } ], FOpenDoorVine: [ function(t, e, o) { "use strict"; cc._RF.push(e, "35630MZ0aJLi7qAZdzd5r0g", "FOpenDoorVine"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.text = []; e.mNearTips = null; e.mFindTips = null; e.mTipsIcon = null; e.mGearNode = null; e.isOver = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mGearNode && (this.mGearNode.active = !1); this.mNearTips && (this.mNearTips.active = !1); this.mFindTips && (this.mFindTips.active = !1); }; e.prototype.onBegin = function(t) { var e = this; if (!this.isOver) if (1 == t) { this.mNearTips && (this.mNearTips.active = !1); this.showOpt(this.mTipsIcon, function() { e.closeOpt(); e.pause(); e.dialog(0); }); } else 2 == t && this.mNearTips && (this.mNearTips.active = !0); }; e.prototype.onEnd = function(t) { 1 == t ? this.closeOpt() : 2 == t && this.mNearTips && (this.mNearTips.active = !1); }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) this.mGearNode && this.vine(); else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog(t); }); } } }; e.prototype.vine = function() { var t = this, e = this.mGearNode.getPosition(), o = this.mGearNode.children[0].children[0]; this.mGearNode.active = !0; o.y += 100; this.moveCamera(e, 1, function() { cc.tween(o).sequence(cc.moveBy(1, cc.v2(0, -100)), cc.callFunc(function() { t.isOver = !0; t.resume(); t.mFindTips && (t.mFindTips.active = !0); })).start(); }); }; r([ p(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ p([ cc.String ]) ], e.prototype, "text", void 0); r([ p({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "mNearTips", void 0); r([ p({ displayName: "藤蔓出现的提示", type: cc.Node }) ], e.prototype, "mFindTips", void 0); r([ p({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ p({ displayName: "出现的藤蔓", type: cc.Node }) ], e.prototype, "mGearNode", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../base/BaseEvent": "BaseEvent" } ], FOpenTrigger: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2afa8bLm7ZAaa8AhbyItyy+", "FOpenTrigger"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../map/FMap"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mFenceTrigger = []; e.guides = []; e.closeFrame = null; e.isOver = !1; return e; } e.prototype.onLoad = function() { this.fMap = this.node.parent.parent.getComponent(s.default); }; e.prototype.onBeginContact = function(t, e, o) { var i = this; if (!this.isOver && "bullet" != o.node.group) { this.isOver = !0; this.node.removeComponent(cc.PhysicsBoxCollider); var n = this.fMap.ff; n.pauseSprite(!0); var r = this.fMap.mCamera, s = this.mFenceTrigger[0], p = cc.v2(), l = cc.winSize; p.x = s.x - l.width / 2; p.y = s.y - l.height / 2; for (var u = 0; u < this.guides.length; u++) this.guides[u].destroy(); this.guides = []; this.node.getComponent(cc.Sprite).spriteFrame = this.closeFrame; cc.tween(r.node).sequence(cc.moveTo(1.5, p), cc.callFunc(function() { for (var t = 0; t < i.mFenceTrigger.length; t++) { var e = i.mFenceTrigger[t]; i.showFence(e, "close"); } n.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { n.pauseSprite(!1); for (var t = 0; t < i.mFenceTrigger.length; t++) i.mFenceTrigger[t].active = !1; c.default.commitEvent(i.node.name, "", ""); })).start(); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; r([ u([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); r([ u([ cc.Node ]) ], e.prototype, "guides", void 0); r([ u(cc.SpriteFrame) ], e.prototype, "closeFrame", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "../../../main/ViewManage": "ViewManage", "../map/FMap": "FMap" } ], FPanelIcon: [ function(t, e, o) { "use strict"; cc._RF.push(e, "43691pmQ2lJVZUhZUEo8LnQ", "FPanelIcon"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewManage"), a = t("../../data/RedPoint"), s = t("../../home/equip/SetLeader"), p = t("./FPanel"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mIconX = null; e.mLeader = null; e.inGuide = !1; e.guideStep = 0; return e; } e.prototype.onLoad = function() { this.mIconX.active = !1; }; e.prototype.setGuideCallback = function(t) { this.guideCallback = t; }; e.prototype.updatePanel = function() { if (this.sprite) { this.mHPBar.progress = this.sprite.hp / this.sprite.attrData.hp; this.mLabel && (this.mLabel.string = this.sprite.hp + "/" + this.sprite.attrData.hp); this.sprite.hp <= 0 ? this.mIconX.active = !0 : this.mIconX.active = !1; } }; e.prototype.setCancel = function() {}; e.prototype.setClose = function() {}; e.prototype.setIcon = function() { var t = this, e = this.sprite.attrData, o = e.skin; "30000" == o && (o = "" + e.id); cc.resources.load("icon/role_head/" + o, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mIcon.spriteFrame = o; }); var i = this.sprite.ff.main.player; this.sprite.attrData.id == i.role.leader ? this.mLeader.active = !0 : this.mLeader.active = !1; }; e.prototype.onclick = function() { for (var t = this, e = this.sprite.map.ff.fres.mHudNode.children, o = 0; o < e.length; o++) { var i = e[o]; a.default.removeRed(i); } var n = this.sprite.map.ff.main; this.sprite.ff.pauseSprite(!0); n.viewManage.loadFunc(c.GameViewType.equip, function(e) { e.show(); var o = t.sprite.ff.main.topNode; o.active = !0; var i = e; i.inGuide = t.inGuide; i.guideStep = t.guideStep; t.inGuide = !1; i.openId = t.sprite.attrData.id; i.node.getComponent(s.default).mSetButton.active = !1; i.setCloseCallback(function() { if (t.sprite.isValid && t.sprite.ff.isValid) { t.sprite.ff.pauseSprite(!1); t.sprite.map.ff.updateRole(); } o.active = !1; }); }); this.guideCallback && this.guideCallback(); }; r([ f(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ f(cc.Node) ], e.prototype, "mIconX", void 0); r([ f(cc.Node) ], e.prototype, "mLeader", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "../../data/RedPoint": "RedPoint", "../../home/equip/SetLeader": "SetLeader", "./FPanel": "FPanel" } ], FPanel: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0d350gXK3RDrKnYjpJgJHI+", "FPanel"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mHPBar = null; e.mLabel = null; return e; } e.prototype.onLoad = function() { this.sprite = this.node.parent.getComponent(c.default); this.mLabel && (this.mLabel.string = ""); }; e.prototype.updatePanel = function() { if (this.sprite) { this.mHPBar.progress = this.sprite.hp / this.sprite.attrData.hp; this.mLabel && (this.mLabel.string = this.sprite.hp + "/" + this.sprite.attrData.hp); this.sprite.hp <= 0 ? this.node.active = !1 : this.node.active = !0; } }; e.prototype.setCancel = function() { var t = this; if (this.sprite && this.sprite.isValid && 2 != this.sprite.attrData.type) { this.node.stopAllActions(); cc.tween(this.node).sequence(cc.delayTime(2), cc.callFunc(function() { t.node.active = !1; })).start(); } }; e.prototype.setClose = function() { this.node.active = !1; }; r([ p(cc.ProgressBar) ], e.prototype, "mHPBar", void 0); r([ p(cc.Label) ], e.prototype, "mLabel", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "./FSprite": "FSprite" } ], FPatrolWarn: [ function(t, e, o) { "use strict"; cc._RF.push(e, "75ed5BfwqFNlJPg0sTzFlVd", "FPatrolWarn"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FObject"), a = t("../../object/FSprite"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mInitPos = null; e.isOver = !1; return e; } e.prototype.onBeginContact = function(t, e, o) { var i = this; if (!this.isOver && "A" == o.node.group) { var n = o.node.getComponent(a.default); this.ff = n.ff; this.isOver = !0; this.ff.pauseSprite(!0); cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() { for (var t = i.mInitPos.getPosition(), e = i.ff.getGroupBy(c.GroupType.A), o = 0; o < e.length; o++) { var n = e[o]; n && n.setPosition(t); } }), cc.delayTime(.01), cc.callFunc(function() { i.isOver = !1; i.ff.pauseSprite(!1); })).start(); } }; r([ l(cc.Node) ], e.prototype, "mInitPos", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../object/FObject": "FObject", "../../object/FSprite": "FSprite" } ], FPatrol: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f92a4YXnSFBj5Cp4o0bmf4I", "FPatrol"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CMath"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.time = 2; e.interval = .5; e.target = null; e.warn = null; e.spine = null; return e; } e.prototype.onLoad = function() { this.initPos = this.node.getPosition(); this.targetPos = this.target.getPosition(); this.moveToB(); }; e.prototype.moveToB = function() { var t = this; cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.callFunc(function() {}), cc.moveBy(this.time, this.targetPos), cc.callFunc(function() { t.moveToA(); })).start(); cc.tween(this.warn).sequence(cc.delayTime(this.interval), cc.callFunc(function() { var e = 180 * c.default.getAngle(cc.Vec2.ZERO_R, t.targetPos) / Math.PI; t.warn.angle = e; }), cc.moveBy(this.time, this.targetPos), cc.callFunc(function() {})).start(); }; e.prototype.moveToA = function() { var t = this, e = this.targetPos.clone(); e.x = -e.x; e.y = -e.y; cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.callFunc(function() {}), cc.moveBy(this.time, e), cc.callFunc(function() { t.moveToB(); })).start(); cc.tween(this.warn).sequence(cc.delayTime(this.interval), cc.callFunc(function() { var o = 180 * c.default.getAngle(cc.Vec2.ZERO_R, e) / Math.PI; t.warn.angle = o; }), cc.moveBy(this.time, e), cc.callFunc(function() {})).start(); }; r([ p({ displayName: "起点到终点时间(秒)" }) ], e.prototype, "time", void 0); r([ p({ displayName: "每次巡逻停留时间(秒)" }) ], e.prototype, "interval", void 0); r([ p({ type: cc.Node, displayName: "巡逻目的地" }) ], e.prototype, "target", void 0); r([ p({ type: cc.Node, displayName: "警示区域" }) ], e.prototype, "warn", void 0); r([ p({ type: sp.Skeleton, displayName: "精灵动画" }) ], e.prototype, "spine", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../../../util/CMath": "CMath" } ], FPick1_3: [ function(t, e, o) { "use strict"; cc._RF.push(e, "96504f55QRPN4ibNjTH99nl", "FPick1_3"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../../login/FqLogin"), a = t("../../../../../main/ViewManage"), s = t("../../base/BaseEvent"), p = t("./FFruit1_3"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.iconTouch = null; e.goodId = 2005; e.giveGoodId = 2004; e.goodNodes = []; e.text = []; e.text_1 = ""; e.finish = []; e.mTipsIcon = null; e.mFenceTrigger = []; e.state = 0; e.isOver = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); for (var e = 0; e < this.goodNodes.length; e++) this.goodNodes[e].setPick26(this); }; e.prototype.onBegin = function(t) { var e = this; this.isOver || 1 == t && this.showOpt(this.mTipsIcon, function() { e.ff.mFFheader.getTmpCount(e.goodId) < 3 ? 0 == e.state ? e.dialog1() : e.dialog1_1() : e.dialog2(); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.dialog1 = function() { var t = this; this.closeOpt(); this.showDialog(this.node, this.text, function() { t.state = 1; t.activateGood(); }); }; e.prototype.dialog1_1 = function() { this.closeOpt(); this.showDialog(this.node, [ this.text_1 ], function() {}); }; e.prototype.dialog2 = function() { var t = this; this.closeOpt(); this.showDialog(this.node, this.finish, function() { var e = t.ff.mFFheader; e.removeTmpGood(t.goodId, 3); t.giveGoodId && e.addTmpGood(t.giveGoodId, 1); c.default.commitEvent(t.node.name, "", ""); t.node.active = !1; t.isOver = !0; t.iconTouch.active = !1; t.openmFenceTrigger(); }); }; e.prototype.openmFenceTrigger = function() { var t = this; if (!(this.mFenceTrigger.length <= 0)) { this.pause(); this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() { cc.tween(t.node).sequence(cc.callFunc(function() { for (var e = 0; e < t.mFenceTrigger.length; e++) { var o = t.mFenceTrigger[e]; t.showFence(o, "close"); } t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { t.resume(); for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1; })).start(); }); } }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; e.prototype.activateGood = function() { for (var t = 0; t < this.goodNodes.length; t++) this.goodNodes[t].node.getChildByName("lizi_gs").active = !0; }; r([ f(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ f({ type: cc.Node, displayName: "任务提示" }) ], e.prototype, "iconTouch", void 0); r([ f({ displayName: "收集的道具id" }) ], e.prototype, "goodId", void 0); r([ f({ displayName: "给以的道具id" }) ], e.prototype, "giveGoodId", void 0); r([ f({ type: [ p.default ], displayName: "收集的地图上的果子" }) ], e.prototype, "goodNodes", void 0); r([ f({ displayName: "对话内容", type: [ cc.String ] }) ], e.prototype, "text", void 0); r([ f({ displayName: "对话过一次之后的提示", type: "" }) ], e.prototype, "text_1", void 0); r([ f({ displayName: "完成后的对话", type: [ cc.String ] }) ], e.prototype, "finish", void 0); r([ f({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ f([ cc.Node ]) ], e.prototype, "mFenceTrigger", void 0); return r([ u ], e); }(s.default); o.default = h; cc._RF.pop(); }, { "../../../../../login/FqLogin": "FqLogin", "../../../../../main/ViewManage": "ViewManage", "../../base/BaseEvent": "BaseEvent", "./FFruit1_3": "FFruit1_3" } ], FPickGood: [ function(t, e, o) { "use strict"; cc._RF.push(e, "74a79l3QJRK95oSKmdMEke+", "FPickGood"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("./base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.goodId = 2002; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.node.zIndex = 9999; }; e.prototype.onBegin = function() { var t = this; this.node.removeComponent(cc.PhysicsBoxCollider); this.ff.mFFheader.addTmpGood(this.goodId, 1); cc.tween(this.node).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 200)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() { c.default.commitEvent(t.node.name, "", ""); t.node.removeFromParent(!0); t.node.destroy(); })).start(); }; r([ l({ displayName: "捡起的物品id" }) ], e.prototype, "goodId", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "./base/BaseEvent": "BaseEvent" } ], FPlantTrre: [ function(t, e, o) { "use strict"; cc._RF.push(e, "866efFkMXpGOaZyWLfUzERj", "FPlantTrre"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mSpine = null; e.text = []; e.mTipsIcon = null; e.mGearNode = null; e.mKeyNode = null; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mSpine && (this.mSpine.node.active = !1); this.mGearNode && (this.mGearNode.active = !1); this.mKeyNode && (this.mKeyNode.active = !1); }; e.prototype.onBegin = function(t) { var e = this; 1 == t && this.showOpt(this.mTipsIcon, function() { var t = e.ff.mFFheader; if (t.getTmpCount(2007) > 0) { t.removeTmpGood(2007, 1); e.showKey(); } else { e.pause(); e.dialog(0); } }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) this.resume(); else { var o = this.text[t].split("|"); if (-1 == parseInt(o.shift())) { var i = this.ff.mainSprite.node; this.showDialog(i, o, function() { t++; e.dialog(t); }); } } }; e.prototype.showKey = function() { var t = this; this.pause(); this.mSpine.node.active = !0; this.mSpine.setCompleteListener(function() { t.mSpine.setCompleteListener(null); var e = t.mGearNode.getPosition(); t.moveCamera(e, 1, function() { t.showKey1(); }); }); this.mSpine.setAnimation(0, "grow", !1); }; e.prototype.showKey1 = function() { var t = this; this.mGearNode.active = !0; this.mKeyNode.active = !0; this.mGearNode.y += 200; this.mKeyNode.y += 200; cc.tween(this.mGearNode).sequence(cc.moveBy(1, cc.v2(0, -200)), cc.callFunc(function() { t.resume(); })).start(); cc.tween(this.mKeyNode).sequence(cc.moveBy(1, cc.v2(0, -200)), cc.callFunc(function() {})).start(); }; r([ p({ displayName: "魔树动画", type: sp.Skeleton }) ], e.prototype, "mSpine", void 0); r([ p([ cc.String ]) ], e.prototype, "text", void 0); r([ p({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ p({ displayName: "出现的机关", type: cc.Node }) ], e.prototype, "mGearNode", void 0); r([ p({ displayName: "钥匙", type: cc.Node }) ], e.prototype, "mKeyNode", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../base/BaseEvent": "BaseEvent" } ], FSjpPanel: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0886cVuxUJNFKBE47fC4OSP", "FSjpPanel"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../../main/ViewObject"), a = t("../../../../../util/CHttp"), s = cc._decorator, p = s.ccclass, l = (s.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.openSkill(); }; e.prototype.openSkill = function() { var t = this; this.main.startLoad(); this.main.gameHttp.sendJson("stage/v1/openSkill", {}, function(e, o) { t.main.stopLoad(); if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.player.role.openSkill = 1; t.callback(); t.exitDistroy(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; return r([ p ], e); }(c.default)); o.default = l; cc._RF.pop(); }, { "../../../../../main/ViewObject": "ViewObject", "../../../../../util/CHttp": "CHttp" } ], FSpring: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2b575VOH5BBCbFqsbVQ/0RW", "FSpring"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../main/ViewManage"), a = t("../../object/FObject"), s = t("../../object/FSprite"), p = t("../base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.effect = null; e.effectNumber = null; e.spine = null; e.icon = null; e.mTipsIcon = null; e.mProgressBar = null; e.guides = []; e.isOpen = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mProgressBar.node.active = !1; this.icon && (this.icon.active = !1); }; e.prototype.onBegin = function(t) { this.isOpen || (1 == t ? this.showButton() : 2 == t && this.icon && (this.icon.active = !0)); }; e.prototype.onEnd = function(t) { 1 == t ? this.closeOpt() : 2 == t && this.icon && (this.icon.active = !1); }; e.prototype.showButton = function() { var t = this; this.showOpt(this.mTipsIcon, function() { t.isOpen = !0; t.huifu(); }); }; e.prototype.huifu = function() { this.spine && this.spine.setAnimation(0, "hit", !0); for (var t = 0; t < this.guides.length; t++) this.guides[t].destroy(); this.guides = []; this.closeOpt(); this.ff.pauseSprite(!0); this.ff.mainSprite.playAction(s.SpriteActionType.shiqu, !0); this.playProgressBar(); }; e.prototype.playProgressBar = function() { this.mProgressBar.progress = 0; this.mProgressBar.node.active = !0; this.schedule(this.progressBarUpdate, .1, 11); }; e.prototype.progressBarUpdate = function() { this.mProgressBar.progress += .1; if (this.mProgressBar.progress >= 1) { this.ff.main.playerEffectByPath(c.AudioMgr.blood); this.unschedule(this.progressBarUpdate); this.mProgressBar.node.active = !1; this.ff.mainSprite.playAction(s.SpriteActionType.stand, !0); this.addHP(); } }; e.prototype.addHP = function() { var t = this; this.ff.pauseSprite(!1); if (this.spine) { this.spine.setAnimation(0, "dead", !1); this.spine.setCompleteListener(function() { t.spine.setCompleteListener(null); }); } cc.tween(this.node).sequence(cc.callFunc(function() { t.playEffect(); }), cc.delayTime(.5), cc.callFunc(function() { t.playEffect(); }), cc.delayTime(.5), cc.callFunc(function() { t.playEffect(); })).start(); }; e.prototype.playEffect = function() { for (var t = this.ff.getGroupBy(a.GroupType.A), e = 0; e < t.length; e++) { var o = t[e]; if (o && o.hp > 0) { var i = o.getComponent(s.default), n = Math.floor(i.attrData.hp / 5); i.hp += n; i.hp > i.attrData.hp && (i.hp = i.attrData.hp); i.updatePanel(); this.playNumber(i, n); } } }; e.prototype.playNumber = function(t, e) { var o = cc.instantiate(this.effect); o.parent = t.node; o.group = t.node.group; var i = new cc.Node("hp"); i.group = "map"; var n = i.addComponent(cc.Label); n.fontSize = 26; n.font = this.effectNumber; n.string = "." + e; i.x = t.node.x; i.y = t.node.y + 40; this.ff.mMap.node.addChild(i); cc.tween(i).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 60)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() { i.destroy(); o.destroy(); })).start(); }; r([ f({ type: cc.Prefab, displayName: "恢复的动画效果" }) ], e.prototype, "effect", void 0); r([ f({ type: cc.Font, displayName: "恢复的数字" }) ], e.prototype, "effectNumber", void 0); r([ f({ type: sp.Skeleton, displayName: "泉水动画" }) ], e.prototype, "spine", void 0); r([ f({ displayName: "靠近的提示", type: cc.Node }) ], e.prototype, "icon", void 0); r([ f({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ f({ displayName: "采摘进度条", type: cc.ProgressBar }) ], e.prototype, "mProgressBar", void 0); r([ f(cc.Node) ], e.prototype, "guides", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../../main/ViewManage": "ViewManage", "../../object/FObject": "FObject", "../../object/FSprite": "FSprite", "../base/BaseEvent": "BaseEvent" } ], FSpriteTmpGood: [ function(t, e, o) { "use strict"; cc._RF.push(e, "176c6cmZItNoZYxZXna6Abz", "FSpriteTmpGood"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.goodId = 2004; e.goodCount = 1; return e; } r([ s ], e.prototype, "goodId", void 0); r([ s ], e.prototype, "goodCount", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], FSprite: [ function(t, e, o) { "use strict"; cc._RF.push(e, "cc65bYPVW5My7ctVKJuPNMm", "FSprite"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); o.SpriteActionType = o.SpriteType = void 0; var c = t("./FObject"), a = t("../../../util/CMath"), s = t("../../fight/bullet/BObject"), p = t("./FPanel"), l = t("./AI/AIBase"), u = t("./FPanelIcon"), f = t("../../home/equip/Equip"), h = cc._decorator, d = h.ccclass, m = h.property; o.SpriteType = cc.Enum({ NONE: 0, MOVE: 1, ATK: 2 }); o.SpriteActionType = cc.Enum({ stand: "idle", move: "move", run: "run", atk: "atk", atk1: "atk1", dead: "dead", yun: "yun", yun2: "yun2", dang: "dang", chuizi: "chuizi", shiqu: "shiqu" }); var y = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.spine = null; e.mBullet = null; e.mAtkSite = null; e.mWeapon1 = null; e.mButtleDis = 10; e.mPanels = []; e.status = o.SpriteType.NONE; e.hp = -1; e.attrData = null; e.isActive = !0; e.SPEED_WALK = 300; e.SPEED_SHOOT = 100; e.dir = { x: 0, y: 0 }; e.isWalk = !1; e.isRuning = !1; e.isShooting = !1; e.wAngle = 0; e.gamePause = !1; e.hitCount = 0; e.yanwu = null; e.hasDun = !1; e.hasWudi = !1; e.tmpDir = { x: 0, y: 0 }; e.tmpActionType = null; return e; } i = e; e.prototype.onLoad = function() { var t = this.node.getChildByName("juese01"), e = t.getChildByName("spineRight"); "s1" == this.node.name && (this.yanwu = t.getChildByName("yanwu_gs")); this.mRigidBody = this.node.getComponent(cc.RigidBody); this.mRigidBody.allowSleep = !1; this.spine = e.getComponent(sp.Skeleton); this.mAtkSite = this.spine.findBone("zidan"); this.mWeapon1 = this.spine.findBone("control"); }; e.prototype.start = function() { if (this.id > 0) { var t = this.map.ff.main.sManage.getMonsterData(this.id); this.setAttrData(t); this.hp = this.attrData.hp; for (var e = 0; e < this.mPanels.length; e++) this.mPanels[e].updatePanel(); } this.setYanwu(!1); this.updateSkin(); }; e.prototype.useHammer = function() { f.default.chaneWeapon(this.spine, "1000"); }; e.prototype.updateSkin = function() { if (!(this.hp <= 0)) { this.attrData.skin && this.spine.setSkin(this.attrData.skin); this.attrData.weapon && f.default.chaneWeapon(this.spine, this.attrData.weapon); } }; e.prototype.update = function(t) { this.gamePause || this.updateMove(t); }; e.prototype.setMaterial = function() { var t = this; this.spine.setMaterial(0, this.ff.fres.grayMaterial); var e = .8; this.schedule(function() { (e -= .1) <= 0 ? t.spine.setMaterial(0, t.ff.fres.normalMaterial) : t.spine.getMaterial(0).setProperty("addColor", [ e, e, e, e ]); }, .01, 10); }; e.prototype.setPause = function(t) { this.gamePause = t; if (this.gamePause) { this.setDir({ x: 0, y: 0 }); this.setWalk(!1); } }; e.prototype.setPosition = function(t) { this.node.setPosition(t); }; e.prototype.setBullet = function(t) { this.mBullet = t; }; e.prototype.setAttrData = function(t) { var e = this; this.attrData = t; if (this.mBullet) { var o = cc.instantiate(this.mBullet); this.mButtleDis = o.getComponent(s.default).distance; o.destroy(); } else { t.bullet || (t.bullet = "1001"); cc.resources.load("prefab/bullet/" + t.bullet, cc.Prefab, function(t, o) { if (t) cc.error(t); else { e.mBullet = o; var i = cc.instantiate(e.mBullet); e.mButtleDis = i.getComponent(s.default).distance; i.destroy(); } }); } var i = "prefab/common/hp_monter"; "B" == this.node.group && (i = "prefab/common/hp_monter_red"); cc.resources.load(i, cc.Prefab, function(t, o) { if (t) cc.error(t); else { var i = cc.instantiate(o), n = i.getComponent(p.default); n.sprite = e; e.mPanels.push(n); i.y = -10; i.parent = e.node; n.updatePanel(); } }); }; e.prototype.flushAttrData = function(t) { var e = this; this.attrData = t; this.updateSkin(); t.bullet || (t.bullet = "1001"); cc.resources.load("prefab/bullet/" + t.bullet, cc.Prefab, function(t, o) { if (t) cc.error(t); else { e.mBullet = o; var i = cc.instantiate(e.mBullet); e.mButtleDis = i.getComponent(s.default).distance; i.destroy(); } }); }; e.prototype.addPanelHUD = function() { var t = this.ff.fres, e = cc.instantiate(t.mHudPrefab); e.parent = t.mHudNode; var o = e.getComponent(u.default); o.sprite = this; o.setIcon(); this.mPanels.push(o); }; e.prototype.setWeaponAngle = function(t) { this.wAngle = 180 * t / Math.PI; }; e.prototype.updateWeaponAngle = function(t) { if (this.mWeapon1) { this.mWeapon1.data.rotation = (t - 90) * this.spine.node.scaleX + 90; this.mWeapon1.rotation = (t - 90) * this.spine.node.scaleX + 90; } }; e.prototype.updateAction = function() { var t = this; if (this.status == o.SpriteType.ATK) ; else if (this.isShooting) { if (this.status == o.SpriteType.NONE) { this.spineEventListener(); this.playAction(o.SpriteActionType.atk, !1, function() { t.status = o.SpriteType.NONE; t.updateSpine(); t.tmpDir.x = t.dir.x; t.tmpDir.y = t.dir.y; t.updateAction(); }) && (this.status = o.SpriteType.ATK); } } else this.isWalk ? this.playAction(o.SpriteActionType.run, !0) : this.playAction(o.SpriteActionType.stand, !0); }; e.prototype.updateSpine = function() { var t = this.findEnemy(1300).sprite, e = this.node.getPosition(); if (t && t.isValid) { var o = t.node.getPosition(); e.x == o.x || (e.x - o.x > 3 ? this.setLR(-1) : this.setLR(1)); var i = Math.floor(a.default.getAngle(e, o) * (180 / Math.PI)); this.updateWeaponAngle(i); } else { this.updateSpineByDir(); this.updateWeaponAngle(this.wAngle); } return !1; }; e.prototype.updateSpineByDir = function() { this.dir.x >= 0 ? this.setLR(1) : this.setLR(-1); }; e.prototype.setDir = function(t) { if (!this.gamePause) { if (0 == t.x && 0 == t.y) { this.setWalk(!1); return !1; } if (this.isWalk && this.dir.x == t.x && this.dir.y == t.y) return !0; this.dir.x = t.x; this.dir.y = t.y; this.setWalk(!0); return !0; } }; e.prototype.setWalk = function(t) { this.isWalk = t; this.updateSpine(); this.updateAction(); }; e.prototype.setRuning = function(t) { this.isRuning = t; this.updateAction(); }; e.prototype.setShooting = function(t) { this.isShooting = t; if (t && this.status == o.SpriteType.NONE) { this.tmpDir.x = this.dir.x; this.tmpDir.y = this.dir.y; this.updateAction(); } }; e.prototype.updateMove = function(t) { if (this.isWalk) { var e; e = this.isShooting ? this.SPEED_SHOOT : this.SPEED_WALK; this.node.x += this.dir.x * t * e; this.node.y += this.dir.y * t * e; this.setYanwu(!0); } else this.setYanwu(!1); }; e.prototype.moveTo = function(t, e) { var o = this.node.x > t.x ? -1200 : 1200, i = this.node.y > t.y ? -1200 : 1200; this.node.x += e * o; this.node.y += e * i; o > 0 ? this.node.x > t.x && (this.node.x = t.x) : this.node.x < t.x && (this.node.x = t.x); i > 0 ? this.node.y > t.y && (this.node.y = t.y) : this.node.y < t.y && (this.node.y = t.y); return !1; }; e.prototype.setLR = function(t) { var e = Math.abs(this.spine.node.scaleX); this.spine.node.scaleX = -1 == t ? -e : e; }; e.prototype.getLR = function() { return this.spine.node.scaleX > 0 ? 1 : -1; }; e.prototype.setFireCallback = function(t) { this.fireCallback = t; }; e.prototype.addSendEffect = function(t, e) { if (t) { var o = cc.instantiate(t), i = this.mAtkSite.worldX * this.spine.node.scaleX, n = this.mAtkSite.worldY, r = cc.v2(i, n); o.setPosition(r); o.parent = this.node; if (e) { var c = this.node.getPosition(), s = e.getPosition(), p = Math.floor(a.default.getAngle(c, s) * (180 / Math.PI)); o.angle = p; } else o.angle = this.wAngle; var l = o.getComponent(sp.Skeleton); l.setCompleteListener(function() { o.destroy(); }); l.setAnimation(0, "atk", !1); } }; e.prototype.spineEventListener = function() { var t = this; this.spine.setEventListener(function(e, o) { if (t.isValid && !t.gamePause && t.node.isValid && "hit" == o.data.name) { var i = cc.instantiate(t.mBullet); i.group = "bullet"; var n = t.node.x + t.mAtkSite.worldX * t.spine.node.scaleX, r = t.node.y + t.mAtkSite.worldY, c = cc.v2(n, r); i.setPosition(c); var a = i.getComponent(s.default); a.setSprite(t); var p = t.findEnemy(2e3).sprite; i.parent = t.map.mSprites; if (p && p.isValid) { a.fire(p.node); t.addSendEffect(a.mStartEffect, p.node); } else { a.fireAngle1(t.wAngle); t.addSendEffect(a.mStartEffect, null); } t.fireCallback && t.fireCallback(); if (t.node == t.ff.mainSprite.node) if (t.hitCount > 4) { t.ff.shockMap(); t.hitCount = 0; } else t.hitCount++; t.ff.main.playerEffectByPath("music/magic_1001_fs"); } }); }; e.prototype.playAction = function(t, e, o) { var i = this; if (!this.isActive) return !1; if (!this.spine) return !1; if (t == this.tmpActionType) return !1; o && this.spine.setCompleteListener(function() { i.spine.setCompleteListener(null); i.tmpActionType = null; o(); }); this.tmpActionType = t; this.spine.setAnimation(0, t, e); return !0; }; e.prototype.playAction2 = function(t, e, i) { var n = this; this.status = o.SpriteType.NONE; i && this.spine.setCompleteListener(function() { n.spine.setCompleteListener(null); n.tmpActionType = null; i(); }); this.spine.setEventListener(null); this.spine.setAnimation(0, t, e); }; e.prototype.atkjs = function(t, e) { var o = this.calculate(this.attrData, t.attrData, e); t.reduce(o); this == this.ff.mainSprite ? this.ff.flushHP(t) : this.ff.updateHP(t); if (t.hp > 0) { var i = t.node.getComponent(l.default); i && i.setTarget(this); } }; e.prototype.bAtkjs = function(t) { var e = this.calculate(t, this.attrData); this.reduce(e); }; e.prototype.calculate = function(t, e, o) { var i = t.atk - e.def; o && (1 == o.value4 ? i += t.water : 2 == o.value4 ? i += t.fire : 3 == o.value4 ? i += t.earth : 4 == o.value4 ? i += t.wind : 5 == o.value4 && (i += t.thunder)); i <= 0 && (i = 1); var n = 500 * i / (e.def + 300); n < 1 && (n = 1); var r = !1, c = !1; if (a.default.getRandom(1, 100) < 30) { r = !0; n += 3 * n / 10; } if (o) { n = n * o.value1 / 100; c = !0; } var s = n / 10; (n += a.default.getRandom(-s, s)) < 10 && (n = a.default.getRandom(1, 10)); n = Math.floor(n); return { hp: Math.floor(n), bj: r, sk: c }; }; e.prototype.getEnemyGroup = function() { return "A" == this.node.group ? "B" : "A"; }; e.prototype.findEnemy = function(t) { var e = this.getEnemyGroup(), o = 0, n = null; if (this.map) for (var r = this.map.getSprites(), c = 0; c < r.length; c++) { var a = r[c], s = a.getComponent(i); if (s && a.active && s.isActive && s.hp > 0 && s.node.group == e) { var p = cc.Vec2.distance(this.node.getPosition(), a.getPosition()); if (p < t) if (null == n) { n = s; o = p; } else if (p < o) { n = s; o = p; } } } return { sprite: n, dis: o }; }; e.prototype.wudi = function(t) { var e = this; this.hasWudi = !0; cc.tween(this.node).sequence(cc.delayTime(t), cc.callFunc(function() { e.hasWudi = !1; })).start(); }; e.prototype.reduce = function(t) { var e = t.hp; if (!(e <= 0) && !this.hasWudi && !(this.hp <= 0) && this.ff.lockCamera) { var o = t.bj, i = t.sk; this.playHit(); this.hasDun && (e = Math.floor(e / 2)); i ? this.showNumber("/" + e, this.ff.mSkillFont) : o ? this.showNumber("/" + e, this.ff.mBjFont, null, !0) : this.showNumber("/" + e, this.ff.mRed); this.hp -= e; if (this.hp <= 0) { this.hp = 0; this.isActive = !1; this.ff.clearCallback && this.ff.clearCallback(this); this.ff.removeCallback && this.ff.removeCallback(this); this == this.ff.mainSprite || this.removeSelf(); } this.updatePanel(); } }; e.prototype.updatePanel = function() { for (var t = 0; t < this.mPanels.length; t++) this.mPanels[t].updatePanel(); }; e.prototype.removeSelf = function() { var t = this; this.gamePause = !0; this.playAction2(o.SpriteActionType.dead, !1, function() { t.node.destroy(); }); }; e.prototype.showNumber = function(t, e, o, i) { var n = new cc.Node("hp"); n.group = "map"; var r = n.addComponent(cc.Label); r.fontSize = 30; e && (r.font = e); o && (n.color = o); r.string = t; n.x = this.node.x; n.y = this.node.y + 3 * this.node.height / 4; this.map.node.addChild(n); var c = cc.moveBy(2, cc.v2(0, 150)).easing(cc.easeSineOut()), a = cc.fadeOut(2), s = null; if (i) { var p = cc.sequence(cc.scaleTo(.05, 1.5), cc.scaleTo(.2, 1.2)); s = cc.spawn(c, a, p); } else s = cc.spawn(c, a); var l = cc.sequence(cc.delayTime(.1), s, cc.callFunc(function() { n.removeFromParent(!0); n.destroy(); })); n.runAction(l); }; e.prototype.playHit = function() { var t = this.node.getChildByName("juese01"); t && cc.tween(t).sequence(cc.scaleTo(.06, 1.1, .95), cc.scaleTo(.06, 1, 1.1), cc.scaleTo(.06, 1, 1)).start(); }; e.prototype.addActiveIcon = function() { var t = new cc.Node("activeIcon"); t.addComponent(cc.Sprite).spriteFrame = this.ff.mActiveIcon; t.parent = this.node; t.y = this.node.height + 20; return t; }; e.prototype.removeActiveIcon = function() { var t = this.node.getChildByName("activeIcon"); t && t.destroy(); }; e.prototype.setNext = function(t) { this.nextSprite = t; }; e.prototype.tangentMove = function() {}; e.prototype.setYanwu = function(t) { if (this.yanwu) { if (this.yanwu.active == t) return; this.yanwu.active = t; } }; var i; r([ m(cc.Prefab) ], e.prototype, "mBullet", void 0); return i = r([ d ], e); }(c.default); o.default = y; cc._RF.pop(); }, { "../../../util/CMath": "CMath", "../../fight/bullet/BObject": "BObject", "../../home/equip/Equip": "Equip", "./AI/AIBase": "AIBase", "./FObject": "FObject", "./FPanel": "FPanel", "./FPanelIcon": "FPanelIcon" } ], FStoenRoll: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2d187U3W8RPV65wVEErqYXV", "FStoenRoll"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.monsterId = 1001; e.time = 2; e.interval = 2; e.target = null; e.spine = null; e.warnNode = null; e.isRoll = !1; return e; } e.prototype.onLoad = function() { var t = this; this.initPos = this.node.getPosition(); this.targetPos = this.target.getPosition(); cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.callFunc(function() { t.node.getComponent(cc.RigidBody).enabledContactListener = !0; t.node.getComponent(cc.RigidBody).allowSleep = !1; t.node.opacity = 255; t.node.setPosition(t.initPos); t.isRoll = !0; t.warnAction(); }), cc.moveBy(this.time, this.targetPos), cc.callFunc(function() { t.node.getComponent(cc.RigidBody).allowSleep = !0; t.isRoll = !1; if (t.warnNode) { t.warnNode.stopAllActions(); t.warnNode.opacity = 0; } }), cc.fadeOut(.5), cc.callFunc(function() { t.node.getComponent(cc.RigidBody).enabledContactListener = !1; })).repeatForever().start(); }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group && 1 == o.tag) { var i = o.node.getComponent(c.default); if (i.hp > 0) { this.ff = i.ff; var n = this.ff.main.sManage.getMonsterData(this.monsterId); i.bAtkjs(n); } } }; e.prototype.warnAction = function() { if (this.warnNode) { this.warnNode.opacity = 0; cc.tween(this.warnNode).sequence(cc.fadeTo(.2, 120), cc.fadeTo(.2, 0)).repeatForever().start(); } }; r([ p({ displayName: "数值(怪物id)" }) ], e.prototype, "monsterId", void 0); r([ p({ displayName: "起点到终点时间(秒)" }) ], e.prototype, "time", void 0); r([ p({ displayName: "每次滚动停留时间(秒)" }) ], e.prototype, "interval", void 0); r([ p({ type: cc.Node, displayName: "滚动目的地" }) ], e.prototype, "target", void 0); r([ p({ type: sp.Skeleton, displayName: "滚动动画" }) ], e.prototype, "spine", void 0); r([ p({ displayName: "警告", type: cc.Node }) ], e.prototype, "warnNode", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../object/FSprite": "FSprite" } ], FStoneDrop: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ae49bisQD9GL47J/Gpqh3tx", "FStoneDrop"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.monsterId = 1001; e.interval = 2; e.spine = null; e.warnNode = null; e.isRoll = !1; e.isHit = !1; e.isWarn = !1; e.tempTime = 0; e.spriteList = []; e.callFunc = null; return e; } e.prototype.onLoad = function() { var t = this; cc.tween(this.node).sequence(cc.delayTime(this.interval), cc.fadeIn(0), cc.callFunc(function() { t.isRoll = !0; t.spine.setAnimation(0, "atk", !1); }), cc.delayTime(1), cc.fadeOut(.2), cc.callFunc(function() { t.isRoll = !1; t.isHit = !1; t.tempTime = 0; t.isWarn = !1; })).repeatForever().start(); }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group && 1 == o.tag) { var i = o.node.getComponent(c.default); this.ff = i.ff; -1 == this.spriteList.indexOf(i) && this.spriteList.push(i); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group && 1 == o.tag) { var i = o.node.getComponent(c.default); this.removeSprite(i); this.isHit = !1; } }; e.prototype.removeSprite = function(t) { for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e] == t) { this.spriteList.splice(e, 1); break; } }; e.prototype.hit = function() { var t = this; this.isHit = !0; this.spriteList.forEach(function(e) { var o = t.ff.main.sManage.getMonsterData(t.monsterId); e.bAtkjs(o); }); }; e.prototype.warnAction = function() { if (!this.isWarn) { this.warnNode.stopActionByTag(1); this.isWarn = !0; this.warnNode.opacity = 0; cc.tween(this.warnNode).sequence(cc.fadeIn(.1), cc.fadeOut(.1)).repeat(6).start().tag(1); } }; e.prototype.update = function(t) { this.isRoll && !this.isHit && this.hit(); this.tempTime += t; this.interval - this.tempTime <= 1 && this.warnAction(); }; r([ p({ displayName: "数值(怪物id)" }) ], e.prototype, "monsterId", void 0); r([ p({ displayName: "每次滚动停留时间(秒)" }) ], e.prototype, "interval", void 0); r([ p({ type: sp.Skeleton, displayName: "滚动动画" }) ], e.prototype, "spine", void 0); r([ p({ displayName: "警告", type: cc.Node }) ], e.prototype, "warnNode", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../object/FSprite": "FSprite" } ], FStoreTS: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7cfebyQsTxLOq2sZptWB0Jc", "FStoreTS"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTipsIcon = null; e.mRigidBody = null; e.isPull = !1; e.moveVt = cc.v2(); return e; } e.prototype.start = function() { this.mRigidBody = this.node.getComponent(cc.RigidBody); }; e.prototype.onBegin = function(t) { this.startEvent(); if (1 == t) { this.moveVt.y = 0; this.ff.mainSprite.node.x < this.node.x ? this.moveVt.x = 7 : this.moveVt.x = -7; } else if (2 == t) { this.moveVt.x = 0; this.ff.mainSprite.node.y < this.node.y ? this.moveVt.y = 7 : this.moveVt.y = -7; } }; e.prototype.onEnd = function() { this.endEvent(); }; e.prototype.startEvent = function() { var t = this.ff.control; t.mEventButton.node.on(cc.Node.EventType.TOUCH_START, this._touchRunningStartEvent, this); t.mEventButton.node.on(cc.Node.EventType.TOUCH_MOVE, this._touchRunningMoveEvent, this); t.mEventButton.node.on(cc.Node.EventType.TOUCH_END, this._touchRunningEndEvent, this); t.mEventButton.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchRunningEndEvent, this); this.showOpt(this.mTipsIcon, function() {}); }; e.prototype.endEvent = function() { this.closeOpt(); var t = this.ff.control; t.mEventButton.node.off(cc.Node.EventType.TOUCH_START); t.mEventButton.node.off(cc.Node.EventType.TOUCH_MOVE); t.mEventButton.node.off(cc.Node.EventType.TOUCH_END); t.mEventButton.node.off(cc.Node.EventType.TOUCH_CANCEL); this.isPull = !1; }; e.prototype._touchRunningMoveEvent = function() { cc.log("_touchRunningMoveEvent"); }; e.prototype._touchRunningStartEvent = function() { var t = this; cc.log("_touchRunningStartEvent"); this.isPull = !0; cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() { t.mRigidBody.type = cc.RigidBodyType.Dynamic; })).start(); this.ff.mainSprite; }; e.prototype._touchRunningEndEvent = function() { var t = this; cc.log("_touchRunningEndEvent"); this.isPull = !1; cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() { t.mRigidBody.type = cc.RigidBodyType.Static; })).start(); }; e.prototype.update = function() { if (this.isPull) { var t = this.ff.mainSprite; t.node.x += this.moveVt.x; t.node.y += this.moveVt.y; } }; r([ p({ displayName: "提示按钮图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "./base/BaseEvent": "BaseEvent" } ], FStory_rescue: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b01b9n7jutC5aeT0jX/mBgn", "FStory_rescue"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("./WOneByone"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.mMonster = null; e.iconTouch = null; return e; } e.prototype.onLoad = function() {}; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); this.ff = i.ff; i == this.ff.mainSprite && this.showButton(); } }; e.prototype.onEndContact = function(t, e, o) { "A" == o.node.group && o.node.getComponent(c.default) == this.ff.mainSprite && this.closeButton(); }; e.prototype.showButton = function() { var t = this; this.ff.control.mEventButton.node.active = !0; this.ff.control.mEventButton.setCallback(function() { t.startStory(); }); }; e.prototype.closeButton = function() { this.ff.control.mEventButton.node.active = !1; }; e.prototype.startStory = function() { this.iconTouch.active = !1; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; this.showDialog1(); }; e.prototype.showDialog1 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x; e.y = this.node.y + this.node.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(a.default); o.dialogs = [ "别打我,我就是个零时工", "钥匙给你" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; t.closeButton(); t.node.removeComponent(cc.PhysicsBoxCollider); t.addKey(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.addKey = function() { var t = this.mMonster.node.parent.getPosition(); this.ff.addGoods([ { type: 2, icon: "icon/good/2001", count: 1, id: 2001, pz: 0, star: 0, PR: 0 } ], t); this.ff.mFFheader.addTmpGood(2001, 1); }; r([ l(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ l(dragonBones.ArmatureDisplay) ], e.prototype, "mMonster", void 0); r([ l({ type: cc.Node, displayName: "任务提示" }) ], e.prototype, "iconTouch", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "./WOneByone": "WOneByone" } ], FTipsEvent: [ function(t, e, o) { "use strict"; cc._RF.push(e, "571c8ZitSZPmrqxdU8dBL8k", "FTipsEvent"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mLabel = null; e.mBtName = null; return e; } e.prototype.init = function(t, e) { this.mBtName.string = c.default.t(t); this.mLabel.string = c.default.t(e); }; e.prototype.setCallback = function(t) { this.onclickCallback = t; }; e.prototype.onclick = function() { this.onclickCallback(); }; r([ l(cc.Label) ], e.prototype, "mLabel", void 0); r([ l(cc.Label) ], e.prototype, "mBtName", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n", "../../../../main/ViewObject": "ViewObject" } ], FTmpGood: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2991eOR3OpH5oN5xKI1Ogf8", "FTmpGood"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.goodId = 2001; e.isCheck = !1; return e; } e.prototype.onBegin = function() { var t = this; if (!this.isCheck) { this.isCheck = !0; this.ff.mFFheader.addTmpGood(this.goodId, 1); cc.tween(this.node).sequence(cc.spawn(cc.moveBy(1, cc.v2(0, 60)).easing(cc.easeSineOut()), cc.fadeOut(1)), cc.callFunc(function() { t.node.removeFromParent(!0); t.node.destroy(); })).start(); } }; e.prototype.onEnd = function() {}; r([ p({ displayName: "临时道具id" }) ], e.prototype, "goodId", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "./base/BaseEvent": "BaseEvent" } ], FTmpTaskGood: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c1999D8f3RNn5PN/Un/hL/C", "FTmpTaskGood"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mCount = null; e.mIcon = null; return e; } e.prototype.onLoad = function() { this.node.on(cc.Node.EventType.TOUCH_START, this._touchStartEvent, this); this.node.on(cc.Node.EventType.TOUCH_END, this._touchEndEvent, this); this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchEndEvent, this); }; e.prototype.init = function(t, e) { var o = this; this._good = t; this.count = e; this.mCount.string = "x" + e; cc.resources.load("icon/good/" + t.icon, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : o.mIcon.spriteFrame = e; }); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype._touchStartEvent = function() { this.callback(this, !0); }; e.prototype._touchEndEvent = function() { this.callback(this, !1); }; r([ s(cc.Label) ], e.prototype, "mCount", void 0); r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], FTmpTaskPanel: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e6a5evPr99GRpmip/JS09tv", "FTmpTaskPanel"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = t("../../util/CUtil"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mAbout = null; e.time = 0; return e; } e.prototype.show = function(t) { this.node.active = !0; this.mName.string = c.default.t(t._good.name) + "X" + t.count; this.mAbout.string = c.default.t(t._good.about); this.time = a.default.getNowTime(); }; e.prototype.update = function() { a.default.getNowTime() - this.time > 2 && (this.node.active = !1); }; r([ l(cc.Label) ], e.prototype, "mName", void 0); r([ l(cc.Label) ], e.prototype, "mAbout", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../i18n/i18n": "i18n", "../../util/CUtil": "CUtil" } ], FTransportDoor: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0f7434GxodPRoxu9K2DLteD", "FTransportDoor"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.posList = cc.v2(0, 0); e.defaultIcon = null; e.mIcon = null; return e; } e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group && 1 == o.tag) { var i = o.node.getComponent(c.default); this.ff = i.ff; this.node.getComponent(cc.Sprite).spriteFrame = this.mIcon; this.setPos(); } }; e.prototype.setPos = function() { var t = this; this.pause(); var e = this.ff.mainSprite; e.node.stopActionByTag(1); cc.tween(e).sequence(cc.delayTime(.2), cc.callFunc(function() { var e = t.ff.getGroupBy("A"); e && e.forEach(function(e) { e.setPosition(t.posList); }); t.node.getComponent(cc.Sprite).spriteFrame = t.defaultIcon; t.resume(); })).start().tag(1); }; e.prototype.pause = function() { this.ff.pauseSprite(!0); }; e.prototype.resume = function() { this.ff.pauseSprite(!1); }; r([ l({ displayName: "传送位置" }) ], e.prototype, "posList", void 0); r([ l({ displayName: "默认图片", type: cc.SpriteFrame }) ], e.prototype, "defaultIcon", void 0); r([ l({ displayName: "踩的图片", type: cc.SpriteFrame }) ], e.prototype, "mIcon", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "../base/BaseEvent": "BaseEvent" } ], FTreasureBox: [ function(t, e, o) { "use strict"; cc._RF.push(e, "1113b7zL+NLVLsgpkD0uOUY", "FTreasureBox"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../login/FqLogin"), a = t("../../../main/ViewManage"), s = t("../object/FPanelIcon"), p = t("./base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.boxId = "28"; e.text = []; e.spine = null; e.mTipsIcon = null; e.guides = []; e.isGuide = !1; e.guideStep = 0; e.mFenceTrigger = []; e.mCancelNode = null; e.isOpen = !1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); if (this.ff.main.player.stage.element.indexOf(this.boxId) >= 0) { this.node.destroy(); for (var e = 0; e < this.mFenceTrigger.length; e++) this.mFenceTrigger[e].destroy(); } }; e.prototype.onBegin = function(t) { var e = this; this.isOpen || 1 == t && this.showOpt(this.mTipsIcon, function() { e.mCancelNode && e.mCancelNode.destroy(); e.openBox(); }); }; e.prototype.onEnd = function(t) { 1 == t && this.closeOpt(); }; e.prototype.openBox = function() { var t = this; this.closeOpt(); this.isOpen = !0; this.pause(); for (var e = 0; e < this.guides.length; e++) this.guides[e].destroy(); this.guides = []; this.spine.setCompleteListener(function() { c.default.commitEvent(t.node.name, "", ""); t.spine.setCompleteListener(null); t.getMapObject(t.boxId, function() { t.showDialog1(); }); }); this.spine.setAnimation(0, "open", !1); this.ff.main.playerEffectByPath(a.AudioMgr.box); }; e.prototype.showDialog1 = function() { var t = this; this.text.length <= 0 ? this.resume() : this.showDialog(this.ff.mainSprite.node, this.text, function() { t.resume(); t.isGuide && (0 == t.guideStep ? t.guide() : 1 == t.guideStep && t.guide_1()); }); }; e.prototype.guide = function() { for (var t = this, e = 0; e < this.mFenceTrigger.length; e++) this.mFenceTrigger[e].destroy(); var o = this.ff.main.mGuideMask, i = this.ff.fres.mHudNode.children[0]; o.setTargetNode(i); o.show(); var n = i.getComponent(s.default); n.inGuide = !0; n.setGuideCallback(function() { n.setGuideCallback(null); o.close(); t.ff.firstGetSkillTips(); }); }; e.prototype.guide_1 = function() { for (var t = 0; t < this.mFenceTrigger.length; t++) this.mFenceTrigger[t].destroy(); var e = this.ff.main.mGuideMask, o = this.ff.fres.mHudNode.children[0]; e.setTargetNode(o); e.show(); var i = o.getComponent(s.default); i.inGuide = !0; i.guideStep = this.guideStep; i.setGuideCallback(function() { e.close(); }); }; r([ f({ displayName: "地图元素id" }) ], e.prototype, "boxId", void 0); r([ f([ cc.String ]) ], e.prototype, "text", void 0); r([ f(sp.Skeleton) ], e.prototype, "spine", void 0); r([ f({ displayName: "提示图标", type: cc.SpriteFrame }) ], e.prototype, "mTipsIcon", void 0); r([ f(cc.Node) ], e.prototype, "guides", void 0); r([ f({ displayName: "是否需要引导穿装备" }) ], e.prototype, "isGuide", void 0); r([ f({ displayName: "指引步骤" }) ], e.prototype, "guideStep", void 0); r([ f({ displayName: "控制的机关", type: [ cc.Node ] }) ], e.prototype, "mFenceTrigger", void 0); r([ f({ displayName: "消失的提示", type: cc.Node }) ], e.prototype, "mCancelNode", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../login/FqLogin": "FqLogin", "../../../main/ViewManage": "ViewManage", "../object/FPanelIcon": "FPanelIcon", "./base/BaseEvent": "BaseEvent" } ], FirstPay: [ function(t, e, o) { "use strict"; cc._RF.push(e, "fe66d2As8pFk4CYtgbTpeDV", "FirstPay"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c, a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = cc._decorator, u = l.ccclass, f = l.property; (function(t) { t.data = "data"; t.get = "get"; })(c || (c = {})); var h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.itemList = []; e.goodItem = null; e.firstPayData = null; e.canGet = !0; e.target = null; return e; } e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.getFirstPayData = function(t) { var e = this; this.main.gameHttp.sendJson("firstPay/v1/" + t, {}, function(o, i) { e.main.stopLoad(); if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) { console.log("==reve=getFirstPayData===", i); if (t == c.data) { e.firstPayData = i.data; e.initItem(); e.show(); } else if (t == c.get) { e.refresh(e.target); e.main.showReward(i); } } else e.main.showTips(i.message); else e.main.showTips("网络异常"); }); }; e.prototype.initItem = function() { var t = this; this.canGet = this.firstPayData.firstPay.canGet; this.firstPayData.data.forEach(function(e, o) { var i = t.itemList[o].getChildByName("goodList"); JSON.parse(e.reward).forEach(function(e) { t.addGood(i, e); }); }); this.initBtn(); }; e.prototype.initBtn = function() { var t = this; this.firstPayData.firstPay.open ? this.itemList.forEach(function(e, o) { var i = e.getChildByName("btn_pay"), n = e.getChildByName("btn_get"), r = n.getChildByName("lbget"), c = n.getChildByName("lbgeted"); n.active = !0; i.active = !1; if (o > t.firstPayData.firstPay.count) { n.getComponent(cc.Button).interactable = !1; r.active = !0; c.active = !1; } else if (o < t.firstPayData.firstPay.count) { n.getComponent(cc.Button).interactable = !1; r.active = !1; c.active = !0; } else if (o == t.firstPayData.firstPay.count) { r.active = !0; c.active = !1; } t.firstPayData.firstPay.canGet || (n.getComponent(cc.Button).interactable = !1); }) : this.itemList.forEach(function(t) { t.getChildByName("btn_pay").active = !0; t.getChildByName("btn_get").active = !1; }); }; e.prototype.addGood = function(t, e) { var o = cc.instantiate(this.goodItem); t.addChild(o); this.initGoodItem(o, e); }; e.prototype.initGoodItem = function(t, e) { var o = t.getChildByName("infoNode"), i = o.getChildByName("icon").getComponent(cc.Sprite), n = t.getChildByName("frame").getComponent(cc.Sprite); this.initIcon(i, e.icon); this.initFrameIcon(n, e.frame); o.getChildByName("countNode").getChildByName("count").getComponent(cc.Label).string = e.count + ""; }; e.prototype.initIcon = function(t, e) { cc.resources.load("icon/" + e, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.spriteFrame = o; }); }; e.prototype.initFrameIcon = function(t, e) { cc.resources.load("icon/frame/" + e, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.spriteFrame = o; }); }; e.prototype.onClickPay = function() { this.exitDistroy(); this.main.viewManage.loadFunc(a.GameViewType.tap_shop, function(t) { var e = t; e.init(Number(101)); e.show(); }); }; e.prototype.onClickGet = function(t) { if (this.canGet) { this.target = t.target; this.getFirstPayData(c.get); } }; e.prototype.refresh = function(t) { this.canGet = !1; t.getComponent(cc.Button).interactable = !1; t.getChildByName("lbgeted").active = !0; t.getChildByName("lbget").active = !1; }; r([ f([ cc.Node ]) ], e.prototype, "itemList", void 0); r([ f(cc.Prefab) ], e.prototype, "goodItem", void 0); return r([ u ], e); }(s.default); o.default = h; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp" } ], FlowLightEffect: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0051eoAJ3hFZrjk0dCEh5+9", "FlowLightEffect"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.sprite = null; e.t1 = 0; return e; } e.prototype.onLoad = function() {}; e.prototype.update = function() {}; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], FoodView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "baa03NinnRKwIGB+PyNvRoj", "FoodView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewObject"), s = t("../../../util/CHttp"), p = t("../../../util/CUtil"), l = t("../../common/GoodItem"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mAbout = null; e.mGoodItem = null; e.mCount = null; e.mUserLabel = null; return e; } e.prototype.initGood = function(t, e) { this.pack = t; this.goodItem = e; this.mGoodItem.initGood(this.main, this.goodItem.data); this.mName.string = c.default.t(e.good.name); this.mAbout.string = c.default.t(e.good.about); 3 == e.good.type ? this.mUserLabel.string = c.default.t("使用") : 5 == e.good.type && (this.mUserLabel.string = c.default.t("食用")); this.flush(); }; e.prototype.flush = function() { if (5 == this.goodItem.good.type) { var t = this.main.player.foodAttr, e = p.default.getNowDateInt(); if (e > t.date) { t.date = e; t.count = 0; } this.mCount.string = c.default.t("今日食用食物上限") + ":" + t.count + "/10"; } }; e.prototype.onclickEat = function() { 3 == this.goodItem.good.type ? this.eatGift() : 5 == this.goodItem.good.type && this.eatFood(); }; e.prototype.eatFood = function() { var t = this, e = { id: this.goodItem.good.id }; this.main.startLoad(); this.main.gameHttp.sendJson("eatFood/v1/eat", e, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.player.foodAttr = o.data._foodAttr; t.pack.flushGood(); t.flush(); t.mGoodItem.data.count -= 1; t.mGoodItem.data.count <= 0 ? t.exitDistroy() : t.mGoodItem.flushGood(); t.main.showTips("成功食用"); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.eatGift = function() { var t = this, e = { id: this.goodItem.good.id }; this.main.gameHttp.sendJson("eatFood/v1/gift", e, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { t.pack.flushGood(); t.flush(); t.mGoodItem.data.count -= 1; t.mGoodItem.data.count <= 0 ? t.exitDistroy() : t.mGoodItem.flushGood(); t.main.showReward(o); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; r([ h(cc.Label) ], e.prototype, "mName", void 0); r([ h(cc.Label) ], e.prototype, "mAbout", void 0); r([ h(l.default) ], e.prototype, "mGoodItem", void 0); r([ h(cc.Label) ], e.prototype, "mCount", void 0); r([ h(cc.Label) ], e.prototype, "mUserLabel", void 0); return r([ f ], e); }(a.default); o.default = d; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "../../../util/CUtil": "CUtil", "../../common/GoodItem": "GoodItem" } ], FopenDoorOrder: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a99beCncGxD+5t/D78gnzY9", "FopenDoorOrder"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../login/FqLogin"), a = t("../../../../main/ViewManage"), s = t("../../../../pay/FqPay"), p = t("../base/BaseEvent"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mNumber = 1; e.mIcon = null; e.mIcon0 = null; e.mIcon1 = null; e.mFireNode = null; e.mSiteNode = null; e.mButtons = []; e.mFenceTrigger = []; e.mTipsWord = ""; e.checkOrder = []; e.isHand = !1; e.errorCount = 0; return e; } o = e; e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mFireNode.active = !1; }; e.prototype.onBegin = function() { if (!this.isHand) { this.isHand = !0; this.mIcon.spriteFrame = this.mIcon1; this.mFireNode.active = !0; this.checkOpen(); } }; e.prototype.checkOpen = function() { var t = this.mButtons[0].getComponent(o); t.checkOrder.push(this.mNumber); if (t.checkOrder.length >= this.mButtons.length) if (this.check(t.checkOrder)) this.openDoor(); else { this.resumeButton(); t.errorCount++; if (t.errorCount >= 3) { t.errorCount = 0; this.openEventTips(); } } }; e.prototype.openEventTips = function() { var t = this; this.ff.main.viewManage.loadFunc(a.GameViewType.fight_map_event_tips, function(e) { var o = e; o.init("查看提示", "点击查看提示,可偷窥答案"); o.setCallback(function() { e.exitDistroy(); var o = new s.default(t.ff.main); "event12" == t.node.name ? o.adVideo(function(e) { 1 == e ? t.openTips() : -1 == e && t.ff.main.showTips("广告还未加载好,请稍后在试"); }, s.UM_EVENT_ID.ad_color_2_0, s.UM_EVENT_ID.ad_color_2_1) : o.adVideo(function(e) { 1 == e ? t.openTips() : -1 == e && t.ff.main.showTips("广告还未加载好,请稍后在试"); }, s.UM_EVENT_ID.ad_color_5_0, s.UM_EVENT_ID.ad_color_5_1); }); e.show(); }); }; e.prototype.openTips = function() { var t = this.mButtons[0].getComponent(o); this.ff.main.viewManage.loadFunc(a.GameViewType.fight_map_event_tips, function(e) { var o = e; o.init("确定", t.mTipsWord); o.setCallback(function() { e.exitDistroy(); }); e.show(); }); }; e.prototype.check = function(t) { for (var e = 0; e < t.length; e++) if (t[e] != e + 1) return !1; return !0; }; e.prototype.resumeButton = function() { for (var t = this, e = 0; e < this.mButtons.length; e++) { var i = this.mButtons[e].getComponent(o); i.mIcon.spriteFrame = i.mIcon0; i.mFireNode.active = !1; i.isHand = !1; i.checkOrder = []; } var n = this.mButtons[0].getComponent(o); cc.tween(this).sequence(cc.delayTime(.1), cc.callFunc(function() { t.ff.mainSprite.node.setPosition(n.mSiteNode.getPosition()); })).start(); }; e.prototype.openDoor = function() { var t = this; this.pause(); this.moveCamera(this.mFenceTrigger[0].getPosition(), 1, function() { cc.tween(t.node).sequence(cc.callFunc(function() { for (var e = 0; e < t.mFenceTrigger.length; e++) { var o = t.mFenceTrigger[e]; t.showFence(o, "close"); } t.ff.main.playerEffectByPath(a.AudioMgr.openDoor); }), cc.delayTime(1), cc.callFunc(function() { t.resume(); c.default.commitEvent(t.node.name, "", ""); for (var e = 0; e < t.mFenceTrigger.length; e++) t.mFenceTrigger[e].active = !1; })).start(); }); }; e.prototype.showFence = function(t, e) { for (var o = t.children, i = 0; i < o.length; i++) { var n = o[i].getComponent(sp.Skeleton); n && n.setAnimation(0, e, !1); } }; var o; r([ f({ displayName: "顺序编号", type: cc.Integer }) ], e.prototype, "mNumber", void 0); r([ f({ displayName: "替换的图片", type: cc.Sprite }) ], e.prototype, "mIcon", void 0); r([ f({ displayName: "未踩上图片", type: cc.SpriteFrame }) ], e.prototype, "mIcon0", void 0); r([ f({ displayName: "踩上后的图片", type: cc.SpriteFrame }) ], e.prototype, "mIcon1", void 0); r([ f({ displayName: "踩上后点亮的火把", type: cc.Node }) ], e.prototype, "mFireNode", void 0); r([ f({ displayName: "失败后传送的位置", type: cc.Node }) ], e.prototype, "mSiteNode", void 0); r([ f({ displayName: "其它开关", type: [ cc.Node ] }) ], e.prototype, "mButtons", void 0); r([ f({ displayName: "控制的机关", type: [ cc.Node ] }) ], e.prototype, "mFenceTrigger", void 0); r([ f({ displayName: "提示文字" }) ], e.prototype, "mTipsWord", void 0); return o = r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../../login/FqLogin": "FqLogin", "../../../../main/ViewManage": "ViewManage", "../../../../pay/FqPay": "FqPay", "../base/BaseEvent": "BaseEvent" } ], FqLogin: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5a3d94heT1D+prQcoaVlu1n", "FqLogin"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../main/ViewObject"), a = t("../util/CHttp"), s = t("../main/ViewManage"), p = cc._decorator, l = p.ccclass, u = (p.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.start = function() { if (cc.sys.isNative) { if (cc.sys.os === cc.sys.OS_ANDROID) { jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "login", "(Ljava/lang/String;)V", '"this is a message from js"'); var t = this; window._fqAndroidLoginCallback = function(e) { console.log("window._fqAndroidLoginCallback", e); t.loginAndroid(JSON.parse(e)); return "1"; }; } else if (cc.sys.os === cc.sys.OS_IOS) { jsb.reflection.callStaticMethod("AppController", "showLogin"); var e = this; window._fqIosLoginCallback = function(t) { console.log("window._fqIosLoginCallback", t); e.loginIos(JSON.parse(t)); return "1"; }; } window._switchAccountCallback = function() { console.log("window._fqIosLoginCallback"); cc.director.loadScene("hotUpdate"); return "1"; }; } }; e.prototype.loginAndroid = function(t) { var e = this, o = this.main.loginHttp, i = { uid: t.uid, token: t.token }; this.main.startLoad(); o.sendForm("/fqLogin_android", i, function(t, o) { e.main.stopLoad(); if (t == a.HttpStateType.SUCCESS) if (0 == o.retCode) { e.main.userData = o.data; e.openArea(); } else e.main.showTips(o.message); else e.main.showTips("网络异常"); }); }; e.prototype.loginIos = function(t) { var e = this, o = this.main.loginHttp, i = { uid: t.uid, token: t.token }; this.main.startLoad(); o.sendForm("/fqLogin_ios", i, function(t, o) { e.main.stopLoad(); if (t == a.HttpStateType.SUCCESS) if (0 == o.retCode) { e.main.userData = o.data; e.openArea(); } else e.main.showTips(o.message); else e.main.showTips("网络异常"); }); }; e.prototype.openArea = function() { var t = this.main; t.startLoad(); t.viewManage.loadFunc(s.GameViewType.area, function(e) { t.stopLoad(); e.show(); }); this.node.destroy(); }; e.commitEvent = function(t, e, o) { var i = { id: t, key: e, value: o }, n = JSON.stringify(i); console.log("====打点统计=====", n); cc.sys.os === cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "commitEvent", "(Ljava/lang/String;)V", JSON.stringify(i)) : cc.sys.os === cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "commitEvent:", JSON.stringify(i)); }; return r([ l ], e); }(c.default)); o.default = u; cc._RF.pop(); }, { "../main/ViewManage": "ViewManage", "../main/ViewObject": "ViewObject", "../util/CHttp": "CHttp" } ], FqPay: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ffb80tLvTJCdYi0CLKTY9El", "FqPay"); Object.defineProperty(o, "__esModule", { value: !0 }); o.UM_EVENT_ID = void 0; var i = t("../login/FqLogin"), n = t("../util/CHttp"); o.UM_EVENT_ID = cc.Enum({ ad_pdl_t_0: "ad_pdl_t_0", ad_pdl_t_1: "ad_pdl_t_1", ad_pdl_m_0: "ad_pdl_m_0", ad_pdl_m_1: "ad_pdl_m_1", ad_power_0: "ad_power_0", ad_power_1: "ad_power_1", ad_money_0: "ad_money_0", ad_money_1: "ad_money_1", ad_fuhuo_0: "ad_fuhuo_0", ad_fuhuo_1: "ad_fuhuo_1", ad_color_2_0: "ad_color_2_0", ad_color_2_1: "ad_color_2_1", ad_color_5_0: "ad_color_5_0", ad_color_5_1: "ad_color_5_1", ad_wish_0: "ad_wish_0", ad_wish_1: "ad_wish_1" }); var r = function() { function t(t) { this.main = t; } t.prototype.pay = function(t, e) { var o = this; this.callback = e; this._payData = t; this.createOrder(function(t) { o.orderId = t; o.openFqPay("" + t); }); }; t.prototype.createOrder = function(t) { var e = this, o = { payId: this._payData.id }; this.main.gameHttp.sendJson("pay/v1/createOrder", o, function(o, i) { e.main.stopLoad(); o == n.HttpStateType.SUCCESS ? 0 == i.retCode ? t(i.data.orderId) : e.main.showTips(i.message) : e.main.showTips("网络异常"); }); }; t.prototype.openFqPay = function(t) { var e = this.main.player, o = this.main.userData, i = { productCode: "" + this._payData.id, productCodeAndroid: this._payData.googleId, productCodeIos: this._payData.iosId, orderAmount: "" + this._payData.usd, subject: "" + this._payData.name, roleName: e.role.name, cpBillNo: "" + t, serverId: "" + o.zone.id, extraInfo: "" + t }; if (cc.sys.isNative) if (cc.sys.os === cc.sys.OS_ANDROID) { var n = this; window._fqAndroidPayCallback = function(t) { console.log("window._fqAndroidPayCallback", t); n.getPay(); return "1"; }; jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "pay", "(Ljava/lang/String;)V", JSON.stringify(i)); } else if (cc.sys.os === cc.sys.OS_IOS || cc.sys.os === cc.sys.OS_OSX) { var r = this; window._fqIosPayCallback = function(t) { console.log("window._fqIosPayCallback", t); r.getPay(); return "1"; }; jsb.reflection.callStaticMethod("AppController", "pay:", JSON.stringify(i)); } }; t.prototype.getPay = function() { var t = this, e = { orderId: this.orderId }; this.main.gameHttp.sendJson("pay/v1/checkPay", e, function(e, o) { t.main.stopLoad(); if (e == n.HttpStateType.SUCCESS) if (0 == o.retCode) { t.callback(0); t.main.showReward(o); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; t.prototype.adVideo = function(t, e, o) { cc.log("用户观看视频 adVideo"); this.callback = t; if (cc.sys.isNative) if (cc.sys.os === cc.sys.OS_ANDROID) { i.default.commitEvent(e, "", ""); var n = this; window._fqAndroidAdCallback = function(t) { console.log("window._fqAndroidAdCallback", t); if ("1" == t) { n.callback(1); i.default.commitEvent(o, "", ""); } else "-1" == t ? n.callback(-1) : n.callback(0); return "1"; }; jsb.reflection.callStaticMethod("com/funqueue/android/xsdmx/MainActivity", "showRewardedVideo", "(Ljava/lang/String;)V", " jlsp1"); } else if (cc.sys.os === cc.sys.OS_IOS) { i.default.commitEvent(e, "", ""); var r = this; window._fqIosAdCallback = function(t) { console.log("window._fqIosAdCallback", t); if ("1" == t) { i.default.commitEvent(o, "", ""); r.callback(1); } else "-1" == t ? r.callback(-1) : r.callback(0); return "1"; }; jsb.reflection.callStaticMethod("AppController", "showRewardedVideo:", "jlsp1"); } else this.callback(1); else this.callback(1); }; return t; }(); o.default = r; cc._RF.pop(); }, { "../login/FqLogin": "FqLogin", "../util/CHttp": "CHttp" } ], FullScene: [ function(t, e, o) { "use strict"; cc._RF.push(e, "50926/BsyZKHYMN6tib9fNS", "FullScene"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { var t = cc.winSize.height / cc.winSize.width, e = this.node.height / this.node.width; this.node.scale = t > e ? cc.winSize.height / this.node.height : cc.winSize.width / this.node.width; }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], GEffect: [ function(t, e, o) { "use strict"; cc._RF.push(e, "99e099qUQdAPYqR0kOQ973+", "GEffect"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FSprite"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.maxCount = 1; e.hitCount = 0; return e; } e.prototype.start = function() { var t = this; this.hitCount = 0; this.node.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.LOOP_COMPLETE, function() { t.node.destroy(); }, this); }; e.prototype.onBeginContact = function(t, e, o) { if (!(this.hitCount >= this.maxCount) && this.sprite.node.group != o.node.group) { var i = o.node.getComponent(c.default); if (i) { this.hitCount++; this.sprite.atkjs(i); } } }; r([ p({ displayName: "最大攻击人数" }) ], e.prototype, "maxCount", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../object/FSprite": "FSprite" } ], GodCardView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2b7e5/sr4RBI705C8jMa7vm", "GodCardView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewManage"), a = t("../../../main/ViewObject"), s = t("../../../util/CHttp"), p = t("./item/CardItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mCardItem = null; return e; } e.prototype.onLoad = function() { this.init(1); }; e.prototype.init = function(t) { var e = this; this.mContent.destroyAllChildren(); for (var o = this.main.player.godCard, i = this.main.sManage.godCards, n = 0; n < i.length; n++) { var r = i[n]; if (r.type == t) { var c = o[r.id], a = cc.instantiate(this.mCardItem); a.parent = this.mContent; var s = a.getComponent(p.default); if (c) { s.init(this.main, c); s.setCallback(function(t) { e.openGodCard(t); }); } else { s.initNo(this.main, r); s.setCallback(function(t) { e.getGodCard(t); }); } } } for (var l in o) { c = o[l]; this.main.sManage.getGodCardById(c.id).type; } }; e.prototype.onclickType = function(t, e) { var o = parseInt(e); this.init(o); }; e.prototype.openGodCard = function(t) { this.main.viewManage.loadFunc(c.GameViewType.god_card_info, function(e) { e.init(t); e.show(); }); }; e.prototype.getGodCard = function(t) { var e = this, o = { id: t._godCard.id }; this.main.gameHttp.sendJson("card/v1/exchange", o, function(o, i) { e.main.stopLoad(); if (o == s.HttpStateType.SUCCESS) if (0 == i.retCode) { var n = i.data._godCard[0]; t.init(e.main, n); e.main.showReward(i); t.setCallback(function(t) { e.openGodCard(t); }); } else e.main.showTips(i.message); else e.main.showTips("网络异常"); }); }; r([ f(cc.Node) ], e.prototype, "mContent", void 0); r([ f(cc.Prefab) ], e.prototype, "mCardItem", void 0); return r([ u ], e); }(a.default); o.default = h; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "./item/CardItem": "CardItem" } ], GoodAbout: [ function(t, e, o) { "use strict"; cc._RF.push(e, "53742kmpmROJIwt92PlbKBG", "GoodAbout"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = t("../../main/ViewObject"), s = t("./GoodItem"), p = t("./EquipViewAttr"), l = t("../data/FFCalAttr"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mAbout = null; e.mGoodItem = null; e.mZdl = null; e.mAtk = null; e.mDef = null; e.mHp = null; e.mSp = null; e.mFAttrNode = null; e.mFAttrItem = null; e.baseAttNode = null; e.addAttNode = null; e.mSkillNode = null; e.descNode = null; e.lbdesc = null; e.mSkillName = null; e.mSkillAbout = null; e.mSkillIcon = null; e.mMainNode = []; e.mEquipNode = null; e.mGoodNode = null; e.mUseNode = null; e.mQHNode = null; e.mUnInstallNode = null; e.inGuide = !1; e.guideStep = 0; e.showQH = !0; return e; } e.prototype.onLoad = function() { this.node.zIndex = 1; }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.init = function(t, e) { void 0 === e && (e = !0); this.showQH = e; if (t.equip) { this.mEquipNode.active = !0; this.mGoodNode.active = !1; this.initEquip(t); } else { this.mEquipNode.active = !1; this.mGoodNode.active = !0; this.initGood(t); } this.inGuide && 1 == this.guideStep && this.onGuide_1(); }; e.prototype.initGood = function(t) { this.mGoodItem.initGood(this.main, t.data); this.mName.string = c.default.t(t.good.name); this.mAbout.string = c.default.t(t.good.about); this.mUseNode.active = 3 == t.good.type; }; e.prototype.initEquip = function(t) { var e = this; this.goodItem = t; var o = this.goodItem.equip; this.mGoodItem.initEquip(this.main, o); var i = this.goodItem.equipData; this.mName.string = c.default.t(i.name); this.mAbout.string = c.default.t(i.about); this.goodItem.equip = o; this.goodItem.equipData = i; this.goodItem.flushEquip(this.main); this.mQHNode.active = i.type <= 4 && this.showQH; var n = l.default.getEquipAttr(this.main, o, i); this.mZdl.string = "" + n.zdl; if (i.atk > 0) { this.mAtk.string = "" + n.atk; this.mMainNode[0].active = !0; } else this.mMainNode[0].active = !1; if (i.def > 0) { this.mDef.string = "" + n.def; this.mMainNode[1].active = !0; } else this.mMainNode[1].active = !1; if (i.hp > 0) { this.mHp.string = "" + n.hp; this.mMainNode[2].active = !0; } else this.mMainNode[2].active = !1; if (i.sp > 0) { this.mSp.string = "" + n.sp; this.mMainNode[3].active = !0; } else this.mMainNode[3].active = !1; i.atk <= 0 && i.def <= 0 && i.hp <= 0 && i.sp <= 0 && (this.baseAttNode.active = !1); if (o.attr.length <= 0) { this.mFAttrNode.active = !1; this.addAttNode.active = !1; } else { this.mFAttrNode.children.forEach(function(t) { "fsx_name" != t.name && t.destroy(); }); this.mFAttrNode.active = !0; for (var r = 0; r < o.attr.length; r++) { var a = o.attr[r], s = cc.instantiate(this.mFAttrItem); s.getComponent(p.default).init(this.main, a); s.parent = this.mFAttrNode; } } if (i.skill > 0) { this.mSkillNode.active = !0; var u = this.main.sManage.getSkillById(i.skill); this.mSkillName.string = c.default.t(u.name); this.mSkillAbout.string = c.default.t(u.about, { VAL1: u.value1, VAL2: u.value2, VAL3: u.value3 }); cc.resources.load("icon/skill/" + u.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mSkillIcon.spriteFrame = o; }); } else this.mSkillNode.active = !1; "" != i.about ? this.lbdesc.string = c.default.t(i.about) : this.descNode.active = !1; }; e.prototype.setQHCallback = function(t) { this.qhCallback = t; }; e.prototype.onclickQH = function() { this.qhCallback && this.qhCallback(this.goodItem); this.guideCallback && this.guideCallback(); }; e.prototype.setUnCallback = function(t) { this.unCallback = t; }; e.prototype.onclickUn = function() { this.unCallback && this.unCallback(this.goodItem); }; e.prototype.setGuideCallback = function(t) { this.guideCallback = t; }; e.prototype.onGuide_1 = function() { var t = this.main.mGuideMask, e = this.mQHNode; t.setTargetNode(e); t.show(); this.setGuideCallback(function() { t.close(); }); }; r([ h(cc.Label) ], e.prototype, "mName", void 0); r([ h(cc.Label) ], e.prototype, "mAbout", void 0); r([ h(s.default) ], e.prototype, "mGoodItem", void 0); r([ h(cc.Label) ], e.prototype, "mZdl", void 0); r([ h(cc.Label) ], e.prototype, "mAtk", void 0); r([ h(cc.Label) ], e.prototype, "mDef", void 0); r([ h(cc.Label) ], e.prototype, "mHp", void 0); r([ h(cc.Label) ], e.prototype, "mSp", void 0); r([ h(cc.Node) ], e.prototype, "mFAttrNode", void 0); r([ h(cc.Prefab) ], e.prototype, "mFAttrItem", void 0); r([ h(cc.Node) ], e.prototype, "baseAttNode", void 0); r([ h(cc.Node) ], e.prototype, "addAttNode", void 0); r([ h(cc.Node) ], e.prototype, "mSkillNode", void 0); r([ h(cc.Node) ], e.prototype, "descNode", void 0); r([ h(cc.Label) ], e.prototype, "lbdesc", void 0); r([ h(cc.Label) ], e.prototype, "mSkillName", void 0); r([ h(cc.Label) ], e.prototype, "mSkillAbout", void 0); r([ h(cc.Sprite) ], e.prototype, "mSkillIcon", void 0); r([ h([ cc.Node ]) ], e.prototype, "mMainNode", void 0); r([ h(cc.Node) ], e.prototype, "mEquipNode", void 0); r([ h(cc.Node) ], e.prototype, "mGoodNode", void 0); r([ h(cc.Node) ], e.prototype, "mUseNode", void 0); r([ h(cc.Node) ], e.prototype, "mQHNode", void 0); r([ h(cc.Node) ], e.prototype, "mUnInstallNode", void 0); return r([ f ], e); }(a.default); o.default = d; cc._RF.pop(); }, { "../../i18n/i18n": "i18n", "../../main/ViewObject": "ViewObject", "../data/FFCalAttr": "FFCalAttr", "./EquipViewAttr": "EquipViewAttr", "./GoodItem": "GoodItem" } ], GoodItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "151bdPsfBdMXbh/WAVcXBV2", "GoodItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../data/FFCalAttr"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mBG = null; e.mIcon = null; e.mNullIcon = null; e.mBGs = []; e.mNullNode = null; e.mStarNode = null; e.mStar = null; e.mLevel = null; e.mContrast = null; e.inGuide = !1; return e; } e.prototype.initReward = function(t, e) { var o = this; this.mNullNode.active = !0; cc.resources.load(e.icon, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : o.mIcon.spriteFrame = e; }); this.mBG.spriteFrame = this.mBGs[e.pz - 1]; if (e.type < 3) this.mLevel.string = "x" + e.count; else { var i = c.default.getEquipQHLevel(t, e.PI, e._data); this.mLevel.string = i > 0 ? "Lv." + i : ""; this.mStarNode.destroyAllChildren(); for (var n = 0; n < e.star; n++) { var r = new cc.Node(); r.addComponent(cc.Sprite).spriteFrame = this.mStar; r.parent = this.mStarNode; } } }; e.prototype.initRewardInfo = function(t) { var e = this; this.mNullNode.active = !0; cc.resources.load(t.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); this.mBG.spriteFrame = this.mBGs[t.pz - 1]; t.count ? this.mLevel.string = "x" + t.count : this.mLevel.string = ""; }; e.prototype.initEquip = function(t, e) { this.mNullNode.active = !0; this.main = t; this.equip = e; var o = t.sManage; this.equipData = o.getEquipById(e.id); this.flushEquip(t); }; e.prototype.initGood = function(t, e) { this.mNullNode.active = !0; this.main = t; this.data = e; if (null == this.data.icon) { var o = this.main.sManage; this.good = o.getGoodById(this.data.id); this.data.icon = "good/" + this.good.icon; } this.flushGood(); }; e.prototype.init = function(t, e) { this.mNullNode.active = !0; this.main = t; this.data = e; this.flushGood(); }; e.prototype.flushEquip = function(t) { var e = this, o = this.equipData, i = c.default.getEquipQH(t, this.equip, o); this.mLevel.string = i > 0 ? "Lv." + i : ""; this.mNullNode.active = !0; this.mBG.spriteFrame = this.mBGs[this.equipData.pz - 1]; cc.resources.load("icon/equip/" + this.equipData.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); this.mStarNode.destroyAllChildren(); for (var n = 0; n < this.equip.star; n++) { var r = new cc.Node(); r.addComponent(cc.Sprite).spriteFrame = this.mStar; r.parent = this.mStarNode; } }; e.prototype.flushGood = function() { var t = this; cc.resources.load("icon/" + this.data.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mIcon.spriteFrame = o; }); this.mLevel.string = "x" + this.data.count; this.good ? this.mBG.spriteFrame = this.mBGs[this.good.pz - 1] : this.data.pz && (this.mBG.spriteFrame = this.mBGs[this.data.pz - 1]); }; e.prototype.setNull = function() { this.equip = null; this.equipData = null; this.data = null; this.good = null; this.mBG.spriteFrame = this.mNullIcon; this.mNullNode.active = !1; this.callback = null; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.setGuideCallback = function(t) { this.guideCallback = t; }; e.prototype.onclick = function() { this.callback && this.callback(this); if (this.guideCallback) { this.guideCallback(); this.guideCallback = null; } }; e.prototype.initContrast = function(t, e) { this.main = t; this.data = e; if (this.data.id) { var o = this.main.sManage; this.good = o.getGoodById(this.data.id); this.data.icon = "good/" + this.good.icon; } this.flushGood(); this.mLevel.node.active = !1; this.mContrast.node.active = !0; var i = this.main.player.getGoodCount(this.data.id); this.mContrast.string = i + "/" + e.count; i >= e.count ? this.mContrast.node.color = cc.color(75, 43, 0) : this.mContrast.node.color = cc.color(255, 0, 0); }; r([ p(cc.Sprite) ], e.prototype, "mBG", void 0); r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ p(cc.SpriteFrame) ], e.prototype, "mNullIcon", void 0); r([ p([ cc.SpriteFrame ]) ], e.prototype, "mBGs", void 0); r([ p(cc.Node) ], e.prototype, "mNullNode", void 0); r([ p(cc.Node) ], e.prototype, "mStarNode", void 0); r([ p(cc.SpriteFrame) ], e.prototype, "mStar", void 0); r([ p(cc.Label) ], e.prototype, "mLevel", void 0); r([ p(cc.Label) ], e.prototype, "mContrast", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../data/FFCalAttr": "FFCalAttr" } ], Guide1: [ function(t, e, o) { "use strict"; cc._RF.push(e, "496fcj9XbtNKZgF0/1JAD1N", "Guide1"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = t("../../box/DialogButton"), s = t("../../object/FSprite"), p = t("../map1/WOneByone"), l = t("./GuideBase"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapDialog = null; e.spine = null; e.speak1 = null; e.speak2 = []; e.speak3 = null; e.speak3Move = null; e.speak4 = null; e.speak5 = null; e.speak6 = null; e.speak7 = null; e.mChoiseDialog = null; return e; } e.prototype.onLoad = function() { this.node.zIndex = -9999; }; e.prototype.run = function() { var t = this.ff.mMap, e = cc.winSize, o = t.mCamera; o.node.x = this.node.x - e.width / 2; o.node.y = this.node.y - e.height / 2; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; this.showDialog1(); }; e.prototype.showDialog1 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x + this.speak1.x; e.y = this.node.y + this.speak1.y + this.speak1.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(p.default); o.dialogs = [ "干的不错", "身为阿萨神族的守护者,保卫阿斯加德不受邪恶的侵扰是我们的职责", "你叫什么名字?", "真不错,听名字就知道有前途", "有朝一日,希望你能成为阿斯加德新的守护神……", "来,一起祝众神之王与王后,仙福永享寿与天齐" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.showDialog2(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.showDialog2 = function() { for (var t = this, e = [ "干杯" ], o = [], i = 0; i < this.speak2.length; i++) { var n = this.speak2[i], r = cc.instantiate(this.mMapDialog); r.group = "map"; r.zIndex = 9999; r.x = this.node.x + n.x; r.y = this.node.y + n.y + n.height; r.parent = this.ff.mMap.mSprites; var c = r.getComponent(p.default); c.dialogs = e; o.push(r); c._start(); } this.ff.setBlockInputCallback(null); cc.tween(this.node).sequence(cc.delayTime(1), cc.callFunc(function() { o.forEach(function(t) { t.destroy(); }); t.showDialog3(); })).start(); }; e.prototype.showDialog3 = function() { var t = this; cc.tween(this.speak3).sequence(cc.moveTo(1, this.speak3Move.getPosition()), cc.callFunc(function() { t.showDialog3_1(); })).start(); }; e.prototype.showDialog3_1 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x + this.speak3.x; e.y = this.node.y + this.speak3.y + this.speak3.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(p.default); o.dialogs = [ "报…报告……", "报告各位大神,邪恶四巨兽军团正在接近…", "从彩虹桥正面攻入…", "请…请…请……" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.showDialog4(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.showDialog4 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x + this.speak4.x; e.y = this.node.y + this.speak4.y + this.speak4.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(p.default); o.dialogs = [ "这是什么鬼东西" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.showDialog5(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.showDialog5 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x + this.speak5.x; e.y = this.node.y + this.speak5.y + this.speak5.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(p.default); o.dialogs = [ "伟大的圣母玛利亚呀" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.showDialog6(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.showDialog6 = function() { var t = this, e = cc.instantiate(this.mMapDialog); e.group = "map"; e.zIndex = 9999; e.x = this.node.x + this.speak6.x; e.y = this.node.y + this.speak6.y + this.speak6.height; e.parent = this.ff.mMap.mSprites; var o = e.getComponent(p.default); o.dialogs = [ "……" ]; o.setCallback(function() { e.destroy(); t.ff.setBlockInputCallback(null); t.showDialog7(); }); this.ff.setBlockInputCallback(function() { o.jump(); }); o._start(); }; e.prototype.showDialog7 = function() { var t = this; this.spine.setCompleteListener(function() { t.spine.setCompleteListener(null); t.spine.setAnimation(0, "idle", !0); t.dead(); t.mainMove(); }); this.spine.setAnimation(0, "in", !1); }; e.prototype.dead = function() { for (var t = this.getAllSpine(), e = function(e) { var o = t[e]; o.setCompleteListener(function() { o.setCompleteListener(null); o.setAnimation(0, s.SpriteActionType.yun2, !0); }); o.setAnimation(0, s.SpriteActionType.yun, !1); }, o = 0; o < t.length; o++) e(o); }; e.prototype.getAllSpine = function() { for (var t = this.node.children, e = [], o = 0; o < t.length; o++) { var i = t[o].getChildByName("juese01"); if (i) { i.zIndex = 2; var n = i.getChildByName("spineRight"); if (n) { var r = n.getComponent(sp.Skeleton); e.push(r); } } } return e; }; e.prototype.mainMove = function() { var t = this, e = this.ff.mainSprite, o = cc.v2(); o.x = this.node.x + this.speak3Move.x; o.y = this.node.y + this.speak3Move.y; e.playAction2(s.SpriteActionType.run); cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() { e.playAction2(s.SpriteActionType.stand); t.showDialog8(); })).start(); }; e.prototype.showDialog8 = function() { var t = this, e = this.ff.mainSprite, o = cc.instantiate(this.mMapDialog); o.group = "map"; o.zIndex = 9999; o.x = e.node.x; o.y = e.node.y + e.node.height; o.parent = this.ff.mMap.mSprites; var i = o.getComponent(p.default); i.dialogs = [ "危险,保护众神之王,保护众神之母", "保护,保护……" ]; i.setCallback(function() { o.destroy(); t.ff.setBlockInputCallback(null); t.showDialog9(); }); this.ff.setBlockInputCallback(function() { i.jump(); }); i._start(); }; e.prototype.showDialog9 = function() { var t = this; this.speak7.active = !0; this.speak7.getChildByName("chuansongmen1").active = !0; var e = this.speak7.getChildByName("monster56"); e.active = !0; e.opacity = 0; cc.tween(e).sequence(cc.fadeIn(1), cc.callFunc(function() { t.showDialog9_1(); })).start(); }; e.prototype.showDialog9_1 = function() { var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog); o.group = "map"; o.zIndex = 9999; o.x = this.node.x + e.x; o.y = this.node.y + e.y + e.height; o.parent = this.ff.mMap.mSprites; var i = o.getComponent(p.default); i.dialogs = [ "亲爱的孩子,谁来保护你呢?" ]; i.setCallback(function() { o.destroy(); t.ff.setBlockInputCallback(null); t.showDialog9_1_1(); }); this.ff.setBlockInputCallback(function() { i.jump(); }); i._start(); }; e.prototype.showDialog9_1_1 = function() { var t = this, e = cc.instantiate(this.mChoiseDialog); e.parent = this.ff.node; e.getComponent(a.default).setCallback(function() { e.destroy(); t.showDialog9_1_2(); }); }; e.prototype.showDialog9_1_2 = function() { var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog); o.group = "map"; o.zIndex = 9999; o.x = this.node.x + e.x; o.y = this.node.y + e.y + e.height; o.parent = this.ff.mMap.mSprites; var i = o.getComponent(p.default); i.dialogs = [ "剧情要改……" ]; i.setCallback(function() { o.destroy(); t.ff.setBlockInputCallback(null); t.showDialog9_2_1(); }); this.ff.setBlockInputCallback(function() { i.jump(); }); i._start(); }; e.prototype.showDialog9_2_1 = function() { var t = this, e = this.speak7.getChildByName("1"); e.active = !0; var o = this.speak7.getChildByName("chuansongmen2"); o.active = !0; this.ff.setBlockInputCallback(function() { e.active = !1; o.active = !1; t.showDialog9_2_2(); }); }; e.prototype.showDialog9_2_2 = function() { var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog); o.group = "map"; o.zIndex = 9999; o.x = this.node.x + e.x; o.y = this.node.y + e.y + e.height; o.parent = this.ff.mMap.mSprites; var i = o.getComponent(p.default); i.dialogs = [ "哎呀,搞错了", "再来" ]; i.setCallback(function() { o.destroy(); t.ff.setBlockInputCallback(null); t.showDialog9_2_3(); }); this.ff.setBlockInputCallback(function() { i.jump(); }); i._start(); }; e.prototype.showDialog9_2_3 = function() { for (var t = this, e = [], o = 2; o <= 5; o++) { var i = this.speak7.getChildByName("" + o); e.push(i); } var n = 0, r = this.speak7.getChildByName("chuansongmen2"); r.active = !0; e[0].active = !0; var a = [ "巨狼芬尼尔", "黑龙尼德霍格", "尘世巨蟒耶梦加德", "死境之主海拉" ], s = this.speak7, l = cc.instantiate(this.mMapDialog); l.group = "map"; l.zIndex = 9999; l.x = this.node.x + s.x; l.y = this.node.y + s.y + s.height; l.parent = this.ff.mMap.mSprites; var u = l.getComponent(p.default); u.isOver = !0; u.label.string = c.default.t(a[0]); this.ff.setBlockInputCallback(function() { if (++n >= e.length) { l.destroy(); e[n - 1].active = !1; r.active = !1; t.showDialog9_3(); } else { e[n - 1].active = !1; e[n].active = !0; u.label.string = c.default.t(a[n]); } }); }; e.prototype.showDialog9_3 = function() { var t = this, e = this.speak7, o = cc.instantiate(this.mMapDialog); o.group = "map"; o.zIndex = 9999; o.x = this.node.x + e.x; o.y = this.node.y + e.y + e.height; o.parent = this.ff.mMap.mSprites; var i = o.getComponent(p.default); i.dialogs = [ "剧情要改" ]; i.setCallback(function() { o.destroy(); t.ff.setBlockInputCallback(null); t.ff.pauseSprite(!1); t.ff.mBlockInputEvents.active = !1; t.speak7.active = !1; }); this.ff.setBlockInputCallback(function() { i.jump(); }); i._start(); }; r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ h(sp.Skeleton) ], e.prototype, "spine", void 0); r([ h(cc.Node) ], e.prototype, "speak1", void 0); r([ h([ cc.Node ]) ], e.prototype, "speak2", void 0); r([ h(cc.Node) ], e.prototype, "speak3", void 0); r([ h(cc.Node) ], e.prototype, "speak3Move", void 0); r([ h(cc.Node) ], e.prototype, "speak4", void 0); r([ h(cc.Node) ], e.prototype, "speak5", void 0); r([ h(cc.Node) ], e.prototype, "speak6", void 0); r([ h(cc.Node) ], e.prototype, "speak7", void 0); r([ h(cc.Prefab) ], e.prototype, "mChoiseDialog", void 0); return r([ f ], e); }(l.default); o.default = d; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n", "../../box/DialogButton": "DialogButton", "../../object/FSprite": "FSprite", "../map1/WOneByone": "WOneByone", "./GuideBase": "GuideBase" } ], GuideBase: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e5c4fht4dBDh70bXU1a+Zap", "GuideBase"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.run = function() {}; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], GuideMask: [ function(t, e, o) { "use strict"; cc._RF.push(e, "1406cpHqdNFWah+/ezPk5P5", "GuideMask"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mLayout0 = null; e.mMask = null; e.mShadow = null; e.guideMark = null; e.pTargetNode = null; return e; } e.prototype.onLoad = function() { this.node.active = !1; }; e.prototype.show = function() { var t = this; this.node.active = !0; this.mLayout0.on(cc.Node.EventType.TOUCH_START, function(e) { e.target == t.pTargetNode || e.stopPropagation(); }, !0); this.mLayout0.on(cc.Node.EventType.TOUCH_MOVE, function(e) { e.target == t.pTargetNode || e.stopPropagation(); }, !0); this.mLayout0.on(cc.Node.EventType.TOUCH_END, function(e) { e.target == t.pTargetNode || e.stopPropagation(); }, !0); }; e.prototype.close = function() { this.node.active = !1; this.mLayout0.off(cc.Node.EventType.TOUCH_START); this.mLayout0.off(cc.Node.EventType.TOUCH_MOVE); this.mLayout0.off(cc.Node.EventType.TOUCH_END); }; e.prototype.setTargetNode = function(t) { var e = this; this.pTargetNode = t; cc.tween(this).sequence(cc.delayTime(.01), cc.callFunc(function() { var t = e.pTargetNode.convertToWorldSpaceAR(cc.v2(0, 0)), o = cc.winSize.width, i = cc.winSize.height; t.x -= o / 2; t.y -= i / 2; e.guideMark.x = t.x; e.guideMark.y = t.y; e.mMask.node.x = t.x; e.mMask.node.y = t.y; e.mMask.node.width = e.pTargetNode.width; e.mMask.node.height = e.pTargetNode.height; e.mShadow.x = -t.x; e.mShadow.y = -t.y; })).start(); }; r([ s(cc.Node) ], e.prototype, "mLayout0", void 0); r([ s(cc.Mask) ], e.prototype, "mMask", void 0); r([ s(cc.Node) ], e.prototype, "mShadow", void 0); r([ s(cc.Node) ], e.prototype, "guideMark", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], GuideTips1: [ function(t, e, o) { "use strict"; cc._RF.push(e, "4dfe3kQzsBJgIS+w+VN4VWo", "GuideTips1"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mNode = null; return e; } e.prototype.onLoad = function() { cc.log(this); t.prototype.onLoad.call(this); }; e.prototype.onBegin = function() { this.node.destroy(); }; r([ p(cc.Node) ], e.prototype, "mNode", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../base/BaseEvent": "BaseEvent" } ], GuideTips: [ function(t, e, o) { "use strict"; cc._RF.push(e, "51f5bJLoeZOg6VBMv4cxOie", "GuideTips"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../base/BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mNode = null; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); 0 != this.ff.main.player.stage.stageIndex && this.node.destroy(); }; e.prototype.onBegin = function() { this.node.destroy(); }; r([ p(cc.Node) ], e.prototype, "mNode", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../base/BaseEvent": "BaseEvent" } ], HistoryArea: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3d563i2a3FBU7US5rqQukFJ", "HistoryArea"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./item/MyZoneItem"), a = t("../main/ViewObject"), s = t("../main/ViewManage"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mZoneItem = null; return e; } e.prototype.onLoad = function() { for (var t = this.area.zones, e = 0; e < t.length; e++) (o = t[e]).rec && !this.inRoles(o) && this.addItem(o, null); if (this.area.roles) for (e = 0; e < this.area.roles.length; e++) { var o = this.area.roles[e]; this.addItem(null, o); } }; e.prototype.addItem = function(t, e) { var o = this, i = cc.instantiate(this.mZoneItem), n = i.getComponent(c.default); n.zone = t; n.role = e; i.parent = this.mContent; n.setCallback(function(t) { o.area.setOptZone(t.zone); o.exitDistroy(); }); }; e.prototype.inRoles = function(t) { if (null == this.area.roles) return !1; for (var e = 0; e < this.area.roles.length; e++) if (this.area.roles[e].zoneId == t.id) return !0; return !1; }; e.prototype.openAllArea = function() { var t = this; this.main.startLoad(); this.main.viewManage.loadFunc(s.GameViewType.allArea, function(e) { e.area = t.area; e.show(t); t.main.stopLoad(); }); }; r([ u(cc.Node) ], e.prototype, "mContent", void 0); r([ u(cc.Prefab) ], e.prototype, "mZoneItem", void 0); return r([ l ], e); }(a.default); o.default = f; cc._RF.pop(); }, { "../main/ViewManage": "ViewManage", "../main/ViewObject": "ViewObject", "./item/MyZoneItem": "MyZoneItem" } ], Home: [ function(t, e, o) { "use strict"; cc._RF.push(e, "1d882/rn6pP7aeqIRSxKjDB", "Home"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewObject"), a = t("../../util/CHttp"), s = t("../../main/ViewManage"), p = t("./equip/Equip"), l = t("../data/FFCalAttr"), u = t("../data/RedPoint"), f = t("./TopMenu"), h = t("../../util/CUtilTime"), d = cc._decorator, m = d.ccclass, y = d.property, v = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mZdl = null; e.mPower = null; e.mMoney = null; e.mGold = null; e.mIcon = null; e.mFrame = null; e.activityNode = null; e.mEmailNode = null; e.mRole1 = null; e.mRole2 = null; e.mRole3 = null; e.mEquipNode = null; e.revengeBtn = null; e.revengeTime = 0; e.topMenu = null; e.revengeView = null; e.tempTime = 0; return e; } e.prototype.onLoad = function() { this.hit(); this.schedule(this.hit, 15); this.flushActivity(); this.topMenu = this.main.topNode.getComponent(f.default); this.topMenu.main = this.main; this.topMenu.home = this; this.main.topNode.active = !0; this.main.playMusicByPath(s.AudioMgr.homeMusic); this.node.getChildByName("activity").getChildByName("1002").active = !this.main.player.isNew; this.getPay(); }; e.prototype.hit = function() { this.main.gameHttp.sendJson("role/v1/resumePower", {}, function() {}); }; e.prototype.onEnable = function() { this.flush(); this.flushZdl(); this.flushRole(); this.flushEquipRedPoint(); 1 == cc.sys.localStorage.getItem("showRevenge" + this.main.player.role.id) ? this.activiteRevenge() : this.getRevengeData(); }; e.prototype.getPay = function() { var t = this; this.main.gameHttp.sendJson("pay/v1/checkPay1", {}, function(e, o) { e == a.HttpStateType.SUCCESS && 0 == o.retCode && t.main.showReward(o); }); }; e.prototype.flushZdl = function() { this.main.player.flushZdl(this.main); var t = this.main.player.role; this.mZdl.string = "" + t.zdl; }; e.prototype.flush = function() { var t = this, e = this.main.player.role, o = this.main.sManage.getRoleIconById(e.icon); o && cc.resources.load("icon/role_head/" + o.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mIcon.spriteFrame = o; }); var i = this.main.sManage.getRoleIconById(e.frame); i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mFrame.spriteFrame = o; }); }; e.prototype.flushRole = function() { var t = this.main.player.getPet(1); this.updateRole(t, this.mRole1); var e = this.main.player.getPet(2); this.updateRole(e, this.mRole2); var o = this.main.player.getPet(3); this.updateRole(o, this.mRole3); }; e.prototype.flushActivity = function() { var t = this; this.main.gameHttp.sendJson("firstPay/v1/data", {}, function(e, o) { e == a.HttpStateType.SUCCESS ? 0 == o.retCode ? 3 == o.data.firstPay.count && (t.activityNode.getChildByName("1001").active = !1) : t.main.showTips(o.message) : t.main.showTips("网络异常"); }); }; e.prototype.updateRole = function(t, e) { if (null == t) e.node.active = !1; else { e.node.active = !0; var o = e.findBone("control"); if (o) { o.data.rotation = 0; o.rotation = 0; } var i = l.default.getAttr(this.main, t); i.skin && e.setSkin(i.skin); i.weapon && p.default.chaneWeapon(e, i.weapon); } }; e.prototype.httpEvent = function(t) { var e = t.data; null != e._role && this.topMenu.refresh(); this.flushZdl(); null != e._equip && this.flushEquipRedPoint(!0); null != e._msgPush && e._msgPush.indexOf("email") >= 0 && u.default.addRed(this.main, this.topMenu.mEmailNode, !0); }; e.prototype.flushEquipRedPoint = function(t) { u.default.petsRedPoint(this.main) ? u.default.addRed(this.main, this.mEquipNode, t) : u.default.removeRed(this.mEquipNode); }; e.prototype.onclickRoleIcon = function() { this.main.playerEffectByPath(s.AudioMgr.click); this.main.viewManage.loadFunc(s.GameViewType.tap_role, function(t) { t.show(); }); }; e.prototype.setMxCallback = function(t) { this.mxCallback = t; }; e.prototype.onclickMap = function() { var t = this; this.main.playerEffectByPath(s.AudioMgr.click); var e = !1; if (this.mxCallback) { this.mxCallback(); e = !0; } this.main.viewManage.loadFunc(s.GameViewType.stageView, function(o) { var i = o; i.load(function(n) { if (0 == n) { e && (i.inGuide = 1); o.show(t); } else t.main.showTips("载入地图失败"); }); }); }; e.prototype.onclickPack = function() { var t = this; this.main.playerEffectByPath(s.AudioMgr.click); this.main.startLoad(); this.main.viewManage.loadFunc(s.GameViewType.pack, function(e) { e.show(t); }); }; e.prototype.onclickJitan = function() { var t = this; this.main.playerEffectByPath(s.AudioMgr.click); this.main.viewManage.loadFunc(s.GameViewType.god_card, function(e) { e.show(t); }); }; e.prototype.onclickEquip = function() { var t = this; this.main.playerEffectByPath(s.AudioMgr.click); this.main.startLoad(); u.default.removeRed(this.mEquipNode); this.main.viewManage.loadFunc(s.GameViewType.equip, function(e) { e.show(t); }); }; e.prototype.onclickMohe = function() { var t = this; this.main.playerEffectByPath(s.AudioMgr.click); this.main.viewManage.loadFunc(s.GameViewType.mohe, function(e) { e.show(t); }); }; e.prototype.openShop = function(t, e) { this.main.playerEffectByPath(s.AudioMgr.click); this.main.startLoad(); this.main.viewManage.loadFunc(s.GameViewType.tap_shop, function(t) { var o = t; o.init(Number(e)); o.show(); }); }; e.prototype.openFirstPay = function() { this.main.playerEffectByPath(s.AudioMgr.click); this.main.startLoad(); this.main.viewManage.loadFunc(s.GameViewType.firstPay, function(t) { t.getFirstPayData("data"); }); }; e.prototype.openWish = function() { this.main.playerEffectByPath(s.AudioMgr.click); this.main.startLoad(); this.main.viewManage.loadFunc(s.GameViewType.wish, function(t) { t.getWishData(); }); }; e.prototype.openRevenge = function() { var t = this; this.main.playerEffectByPath(s.AudioMgr.click); this.main.startLoad(); this.main.viewManage.loadFunc(s.GameViewType.revenge, function(e) { var o = e; t.revengeView = o; o.getRevengeData(); o.refreshTime(t.revengeTime); o.setBuyClickFunc(function() { t.showRevengeBtn(!1); }); }); }; e.prototype.activiteRevenge = function() { var t = this; this.main.gameHttp.sendJson("revenge/v1/open", { id: 1001 }, function(e, o) { t.main.stopLoad(); if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) { console.log("====复仇礼包激活成功==="); t.getRevengeData(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.getRevengeData = function() { var t = this, e = h.default.getNowTime(); this.main.gameHttp.sendJson("revenge/v1/data", {}, function(o, i) { var n = h.default.getNowTime() - e; t.main.stopLoad(); if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) { console.log("=home=reve=revengeData===", i); var r = i.data.data[i.data.list[0].id]; if (r) { if (2 == r.value) { t.showRevengeBtn(!1); return; } var c = r.time; if (c > 0) { t.showRevengeBtn(!0); t.revengeTime = c - n; t.revengeBtn.getChildByName("time").getComponent(cc.Label).string = "剩余 " + h.default.getTimeString2(c - n); } else t.showRevengeBtn(!1); } if (1 == cc.sys.localStorage.getItem("showRevenge" + t.main.player.role.id)) { cc.sys.localStorage.setItem("showRevenge" + t.main.player.role.id, 2); t.main.viewManage.loadFunc(s.GameViewType.revenge, function(e) { var o = e; t.revengeView = o; o.revengeData = i.data.list[0]; o.show(); o.initItem(); o.refreshTime(t.revengeTime); o.setBuyClickFunc(function() { t.showRevengeBtn(!1); }); }); } } else t.main.showTips(i.message); else t.main.showTips("网络异常"); }); }; e.prototype.showRevengeBtn = function(t) { void 0 === t && (t = !1); this.revengeBtn.active = t; }; e.prototype.update = function(t) { if (this.revengeTime <= 0) { this.showRevengeBtn(!1); this.revengeView && this.revengeView.exitDistroy(); } else { this.tempTime += t; if (this.tempTime >= 1) { this.revengeTime -= 1; this.revengeBtn.getChildByName("time").getComponent(cc.Label).string = "剩余 " + h.default.getTimeString2(Math.floor(this.revengeTime)); this.tempTime = 0; this.revengeView && this.revengeView.refreshTime(this.revengeTime); } } }; r([ y(cc.Label) ], e.prototype, "mZdl", void 0); r([ y(cc.Label) ], e.prototype, "mPower", void 0); r([ y(cc.Label) ], e.prototype, "mMoney", void 0); r([ y(cc.Label) ], e.prototype, "mGold", void 0); r([ y(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ y(cc.Sprite) ], e.prototype, "mFrame", void 0); r([ y(cc.Node) ], e.prototype, "activityNode", void 0); r([ y(cc.Node) ], e.prototype, "mEmailNode", void 0); r([ y(sp.Skeleton) ], e.prototype, "mRole1", void 0); r([ y(sp.Skeleton) ], e.prototype, "mRole2", void 0); r([ y(sp.Skeleton) ], e.prototype, "mRole3", void 0); r([ y(cc.Node) ], e.prototype, "mEquipNode", void 0); r([ y(cc.Node) ], e.prototype, "revengeBtn", void 0); return r([ m ], e); }(c.default); o.default = v; cc._RF.pop(); }, { "../../main/ViewManage": "ViewManage", "../../main/ViewObject": "ViewObject", "../../util/CHttp": "CHttp", "../../util/CUtilTime": "CUtilTime", "../data/FFCalAttr": "FFCalAttr", "../data/RedPoint": "RedPoint", "./TopMenu": "TopMenu", "./equip/Equip": "Equip" } ], HotUpdate: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ca731a+AcJKPrahGd1vQwcG", "HotUpdate"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.manifestUrl = null; e.gxNode = null; e.mMyNode = null; e.mV1 = null; e.mV2 = null; e.mLoadBfb = null; e.fileCount = null; e.byteProgress = null; e._updating = !1; e._am = null; e._canRetry = !1; e.versionCompareHandle = null; return e; } e.prototype.login = function() { cc.sys.isNative, cc.director.loadScene("main"); }; e.prototype.exitGame = function() { cc.game.end(); }; e.prototype.onLoad = function() { var t = cc.ProgressBar.prototype, e = t._updateBarStatus; t._updateBarStatus = function() { 0 == this.progress && (this.progress = .001); e.bind(this)(); }; this.mV1.node.active = !1; this.mV2.node.active = !1; cc.game.setFrameRate(35); this.gxNode.active = !1; if (cc.sys.isNative) { this._storagePath = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : "/") + "mmtg-remote-asset"; cc.log("Storage path for remote asset : " + this._storagePath); var o = this; this.versionCompareHandle = function(t, e) { console.log("JS Custom Version Compare: version A is " + t + ", version B is " + e); o.mV1.node.active = !0; o.mV2.node.active = !0; o.mV1.string = "客户端版本:" + t; o.mV2.string = "服务器版本:" + e; for (var i = t.split("."), n = e.split("."), r = 0; r < i.length; ++r) { var c = parseInt(i[r]), a = parseInt(n[r] || "0"); if (c !== a) return c - a; } return n.length > i.length ? -1 : 0; }; this._am = new jsb.AssetsManager("", this._storagePath, this.versionCompareHandle); this._am.setVerifyCallback(function(t, e) { var o = e.compressed; e.md5, e.path, e.size; return !!o || !!jsb.fileUtils.isFileExist(t) && jsb.fileUtils.getFileSize(t) == e.size; }); cc.sys.os === cc.sys.OS_ANDROID ? this._am.setMaxConcurrentTask(10) : this._am.setMaxConcurrentTask(15); this.fileCount.string = ""; this.mLoadBfb.string = ""; this.byteProgress.progress = 0; this.checkUpdate(); } else this.login(); }; e.prototype.checkUpdate = function() { if (this._updating) this.pushLog("Checking or updating ..."); else { if (this._am.getState() === jsb.AssetsManager.State.UNINITED) { var t = this.manifestUrl.nativeUrl; this._am.loadLocalManifest(t); } if (this._am.getLocalManifest() && this._am.getLocalManifest().isLoaded()) { this._am.setEventCallback(this.checkCb.bind(this)); this._am.checkUpdate(); this._updating = !0; } else this.pushLog("Failed to load local manifest ..."); } }; e.prototype.hotUpdate = function() { this.gxNode.active = !0; this.fileCount.string = "loading..."; if (this._am && !this._updating) { this._am.setEventCallback(this.updateCb.bind(this)); if (this._am.getState() === jsb.AssetsManager.State.UNINITED) { var t = this.manifestUrl; cc.loader.md5Pipe && (t = cc.loader.md5Pipe.transformURL(t)); this._am.loadLocalManifest(t); } this._am.update(); this._updating = !0; } }; e.prototype.checkCb = function(t) { cc.log("Code: " + t.getEventCode()); switch (t.getEventCode()) { case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST: cc.log("No local manifest file found, hot update skipped."); this.login(); break; case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST: case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST: cc.log("Fail to download manifest file, hot update skipped."); this.login(); break; case jsb.EventAssetsManager.ALREADY_UP_TO_DATE: cc.log("Already up to date with the latest remote version."); this.login(); break; case jsb.EventAssetsManager.NEW_VERSION_FOUND: cc.log("New version found, please try to update."); this._am.setEventCallback(null); this._updating = !1; this.hotUpdate(); break; default: return; } }; e.prototype.updateCb = function(t) { var e = !1, o = !1; switch (t.getEventCode()) { case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST: cc.log("No local manifest file found, hot update skipped."); o = !0; break; case jsb.EventAssetsManager.UPDATE_PROGRESSION: var i = t.getPercentByFile(); i ? t.getDownloadedFiles() < t.getTotalFiles() - 1 ? this.fileCount.string = t.getDownloadedFiles() + " / " + t.getTotalFiles() : this.fileCount.string = "文件解压中..." : i = 0; this.byteProgress.progress = i; this.mMyNode.x = 915 * i; break; case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST: case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST: cc.log("Fail to download manifest file, hot update skipped."); o = !0; break; case jsb.EventAssetsManager.ALREADY_UP_TO_DATE: cc.log("Already up to date with the latest remote version."); o = !0; break; case jsb.EventAssetsManager.UPDATE_FINISHED: this.pushLog("Update finished. " + t.getMessage()); e = !0; break; case jsb.EventAssetsManager.UPDATE_FAILED: this.pushLog("Update failed. " + t.getMessage()); this._updating = !1; this._canRetry = !0; this.retry(); break; case jsb.EventAssetsManager.ERROR_UPDATING: this.pushLog("Asset update error: " + t.getAssetId() + ", " + t.getMessage()); break; case jsb.EventAssetsManager.ERROR_DECOMPRESS: cc.log(t.getMessage()); e = !0; } if (o) { this._am.setEventCallback(null); this._updating = !1; this.login(); } if (e) { this._am.setEventCallback(null); var n = jsb.fileUtils.getSearchPaths(), r = this._am.getLocalManifest().getSearchPaths(); cc.log(JSON.stringify(r)); Array.prototype.unshift.apply(n, r); cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(n)); jsb.fileUtils.setSearchPaths(n); cc.audioEngine.stopAll(); setTimeout(function() { cc.game.restart(); }, 1e3); } }; e.prototype.retry = function() { if (!this._updating && this._canRetry) { this._canRetry = !1; this.pushLog("Retry failed Assets..."); this._am.downloadFailedAssets(); } }; e.prototype.onDestroy = function() { this._am && this._am.setEventCallback(null); }; e.prototype.pushLog = function() {}; e.prototype.onclickCancel = function() { this.checkUpdate(); }; r([ s(cc.Asset) ], e.prototype, "manifestUrl", void 0); r([ s(cc.Node) ], e.prototype, "gxNode", void 0); r([ s(cc.Node) ], e.prototype, "mMyNode", void 0); r([ s(cc.Label) ], e.prototype, "mV1", void 0); r([ s(cc.Label) ], e.prototype, "mV2", void 0); r([ s(cc.Label) ], e.prototype, "mLoadBfb", void 0); r([ s(cc.Label) ], e.prototype, "fileCount", void 0); r([ s(cc.ProgressBar) ], e.prototype, "byteProgress", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], IconInfoView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ce2b04wXG9JabdbmZTDvNdP", "IconInfoView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../util/CHttp"), s = t("../../data/FFCalAttr"), p = t("./RoleIconItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mRoleIcon = null; e.mZdl = null; e.mAtk = null; e.mDef = null; e.mHp = null; e.mSp = null; e.mButtonIcon = null; e.mButtonLabel = null; e.mButtonIconFrame = []; e.roleIconView = null; e.roleFrameView = null; e.fip = null; e.openType = 0; return e; } e.prototype.init = function(t, e) { this.main = t; this.fip = e; var o = e.roleIcon; this.mRoleIcon.roleIcon = o; this.mAtk.string = "" + o.atk; this.mDef.string = "" + o.def; this.mHp.string = "" + o.hp; this.mSp.string = "" + o.sp; var i = s.default.getZdl(o); this.mZdl.string = "" + i; this.mRoleIcon.loadIcon(this.main); this.flushButton(); }; e.prototype.initFrame = function(t, e) { this.main = t; this.fip = e; var o = e.roleIcon; this.mRoleIcon.roleIcon = o; this.mAtk.string = "" + o.atk; this.mDef.string = "" + o.def; this.mHp.string = "" + o.hp; this.mSp.string = "" + o.sp; var i = s.default.getZdl(o); this.mZdl.string = "" + i; this.mRoleIcon.loadFrame(this.main); this.flushButton(); }; e.prototype.flushButton = function() { var t = this.getStatus(); if (0 == t) { this.mButtonIcon.spriteFrame = this.mButtonIconFrame[2]; this.mButtonLabel.string = c.default.t("未获得"); } else if (1 == t) { this.mButtonIcon.spriteFrame = this.mButtonIconFrame[0]; this.mButtonLabel.string = c.default.t("使用"); } else if (2 == t) { this.mButtonIcon.spriteFrame = this.mButtonIconFrame[1]; this.mButtonLabel.string = c.default.t("激活"); } }; e.prototype.getStatus = function() { var t = this.fip.roleIcon, e = this.main.player.roleIcon; return e.open.indexOf(t.id) >= 0 ? 1 : e.data.indexOf(t.id) >= 0 ? 2 : 0; }; e.prototype.onclick = function() { var t = this.getStatus(); 1 == t ? this.roleIconUser() : 2 == t && this.roleIconActive(); }; e.prototype.roleIconActive = function() { var t = this, e = this.fip.roleIcon, o = { id: e.id }; this.main.gameHttp.sendJson("set/v1/activeIcon", o, function(o, i) { t.main.stopLoad(); if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) { t.main.player.roleIcon.open.push(e.id); t.flushButton(); t.fip.flush(t.main); t.roleIconView && t.roleIconView.flush(t.fip); t.roleFrameView && t.roleFrameView.flush(t.fip); t.main.showTips("激活成功"); } else t.main.showTips(i.message); else t.main.showTips("网络异常"); }); }; e.prototype.roleIconUser = function() { var t = this, e = this.fip.roleIcon, o = { type: this.openType, id: e.id }; this.main.gameHttp.sendJson("set/v1/useIcon", o, function(o, i) { t.main.stopLoad(); if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) { 1 == t.openType ? t.main.player.role.icon = e.id : t.main.player.role.frame = e.id; t.flushButton(); t.fip.flush(t.main); t.roleIconView && t.roleIconView.flush(t.fip); t.roleFrameView && t.roleFrameView.flush(t.fip); t.main.showTips("使用成功"); t.main.home.flush(); } else t.main.showTips(i.message); else t.main.showTips("网络异常"); }); }; r([ f(p.default) ], e.prototype, "mRoleIcon", void 0); r([ f(cc.Label) ], e.prototype, "mZdl", void 0); r([ f(cc.Label) ], e.prototype, "mAtk", void 0); r([ f(cc.Label) ], e.prototype, "mDef", void 0); r([ f(cc.Label) ], e.prototype, "mHp", void 0); r([ f(cc.Label) ], e.prototype, "mSp", void 0); r([ f(cc.Sprite) ], e.prototype, "mButtonIcon", void 0); r([ f(cc.Label) ], e.prototype, "mButtonLabel", void 0); r([ f([ cc.SpriteFrame ]) ], e.prototype, "mButtonIconFrame", void 0); return r([ u ], e); }(cc.Component); o.default = h; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../util/CHttp": "CHttp", "../../data/FFCalAttr": "FFCalAttr", "./RoleIconItem": "RoleIconItem" } ], JoystickTest: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a46c5id+19HWL+jnpHgrBHp", "JoystickTest"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./Joystick_8d"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.joystick = null; e.mMoveNode = null; return e; } e.prototype.onLoad = function() { var t = this; this.joystick.setCallback(function(e, o) { t.runing = e; t.dir = o; }); }; e.prototype.update = function() { if (this.runing) { this.mMoveNode.x += 5 * this.dir.x; this.mMoveNode.y += 5 * this.dir.y; } }; r([ p(c.default) ], e.prototype, "joystick", void 0); r([ p(cc.Node) ], e.prototype, "mMoveNode", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "./Joystick_8d": "Joystick_8d" } ], Joystick_8d: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e5edbNtToxGSrmf7gwyJcdY", "Joystick_8d"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTouchView = null; e.mCneter = null; e.mUp = null; e.mDown = null; e.mLeft = null; e.mRight = null; e.mTouchOn = null; e.mTouchOff = null; e.tmpDir = { x: 0, y: 0 }; return e; } e.prototype.onLoad = function() { this.mTouchView.active = !1; this._initTouchEvent(); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype._initTouchEvent = function() { this.node.on(cc.Node.EventType.TOUCH_START, this._touchStartEvent, this); this.node.on(cc.Node.EventType.TOUCH_MOVE, this._touchMoveEvent, this); this.node.on(cc.Node.EventType.TOUCH_END, this._touchEndEvent, this); this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchEndEvent, this); cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyPressed, this); cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, this.onKeyReleased, this); }; e.prototype._touchStartEvent = function(t) { var e = this.node.convertToNodeSpaceAR(t.getLocation()), o = this.mCneter.getPosition(), i = this._getDistance(e, o); if (i > 10 && i < 175) { this.mTouchView.active = !0; this.mTouchView.x = e.x; this.mTouchView.y = e.y; var n = this._getAngle(e, o), r = this.getDir(n); this.updateIcon(r); this.callback && this.callback(r); } }; e.prototype._touchMoveEvent = function(t) { if (this.mTouchView.active) { var e = this.node.convertToNodeSpaceAR(t.getLocation()), o = this.mCneter.getPosition(); this.mTouchView.x = e.x; this.mTouchView.y = e.y; var i = this._getAngle(e, o), n = this.getDir(i); this.updateIcon(n); this.callback && this.callback(n); } }; e.prototype._touchEndEvent = function() { this.stop(); }; e.prototype.onKeyPressed = function(t) { switch (t.keyCode) { case cc.macro.KEY.w: case cc.macro.KEY.up: this.tmpDir.y = 1; break; case cc.macro.KEY.s: case cc.macro.KEY.down: this.tmpDir.y = -1; break; case cc.macro.KEY.a: case cc.macro.KEY.left: this.tmpDir.x = -1; break; case cc.macro.KEY.d: case cc.macro.KEY.right: this.tmpDir.x = 1; } this.updateIcon(this.tmpDir); this.callback && this.callback(this.reviseValue()); }; e.prototype.onKeyReleased = function(t) { switch (t.keyCode) { case cc.macro.KEY.w: case cc.macro.KEY.up: this.tmpDir.y = 0; break; case cc.macro.KEY.s: case cc.macro.KEY.down: this.tmpDir.y = 0; break; case cc.macro.KEY.a: case cc.macro.KEY.left: this.tmpDir.x = 0; break; case cc.macro.KEY.d: case cc.macro.KEY.right: this.tmpDir.x = 0; } this.updateIcon(this.tmpDir); this.callback && this.callback(this.reviseValue()); }; e.prototype.reviseValue = function() { var t = { x: this.tmpDir.x, y: this.tmpDir.y }, e = Math.abs(t.x), o = Math.abs(t.y); e != o && (1 == e ? t.x = 1.4 * t.x : 1 == o && (t.y = 1.4 * t.y)); return t; }; e.prototype.stop = function() { this.mTouchView.active = !1; this.updateIcon(null); this.callback && this.callback({ x: 0, y: 0 }); }; e.prototype._getAngle = function(t, e) { return Math.atan2(t.y - e.y, t.x - e.x) * (180 / Math.PI); }; e.prototype._getDistance = function(t, e) { return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); }; e.prototype.getDir = function(t) { return t >= -30 && t < 30 ? { x: 1.4, y: 0 } : t >= 30 && t < 60 ? { x: 1, y: 1 } : t >= 60 && t < 120 ? { x: 0, y: 1.4 } : t >= 120 && t < 150 ? { x: -1, y: 1 } : t >= 150 && t < 180 ? { x: -1.4, y: 0 } : t >= -180 && t < -150 ? { x: -1.4, y: 0 } : t >= -150 && t < -120 ? { x: -1, y: -1 } : t >= -120 && t < -60 ? { x: 0, y: -1.4 } : t >= -60 && t < -30 ? { x: 1, y: -1 } : void 0; }; e.prototype.updateIcon = function(t) { if (t) { if (0 == t.x) { this.mLeft.spriteFrame = this.mTouchOff; this.mRight.spriteFrame = this.mTouchOff; } else if (t.x > 0) { this.mLeft.spriteFrame = this.mTouchOff; this.mRight.spriteFrame = this.mTouchOn; } else { this.mLeft.spriteFrame = this.mTouchOn; this.mRight.spriteFrame = this.mTouchOff; } if (0 == t.y) { this.mUp.spriteFrame = this.mTouchOff; this.mDown.spriteFrame = this.mTouchOff; } else if (t.y > 0) { this.mUp.spriteFrame = this.mTouchOn; this.mDown.spriteFrame = this.mTouchOff; } else { this.mUp.spriteFrame = this.mTouchOff; this.mDown.spriteFrame = this.mTouchOn; } } else { this.mLeft.spriteFrame = this.mTouchOff; this.mRight.spriteFrame = this.mTouchOff; this.mUp.spriteFrame = this.mTouchOff; this.mDown.spriteFrame = this.mTouchOff; } }; r([ s({ type: cc.Node, displayName: "按下显示效果" }) ], e.prototype, "mTouchView", void 0); r([ s({ type: cc.Node, displayName: "摇杆中心" }) ], e.prototype, "mCneter", void 0); r([ s({ type: cc.Sprite, displayName: "上" }) ], e.prototype, "mUp", void 0); r([ s({ type: cc.Sprite, displayName: "下" }) ], e.prototype, "mDown", void 0); r([ s({ type: cc.Sprite, displayName: "左" }) ], e.prototype, "mLeft", void 0); r([ s({ type: cc.Sprite, displayName: "右" }) ], e.prototype, "mRight", void 0); r([ s({ type: cc.SpriteFrame, displayName: "点击高亮" }) ], e.prototype, "mTouchOn", void 0); r([ s({ type: cc.SpriteFrame, displayName: "灰色" }) ], e.prototype, "mTouchOff", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], Joystick: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b82ddIB7qRLwIvRxyG7he4y", "Joystick"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./CMath"), a = cc._decorator, s = a.ccclass, p = a.property, l = cc.Enum({ DEFAULT: 0, FOLLOW: 1 }), u = cc.Enum({ FOUR: 4, EIGHT: 8, ALL: 0 }), f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTouchType = l.DEFAULT; e.mDirectionType = l.DEFAULT; e.mDot = null; e.mRing = null; e.mDir = null; e.isDisable = !1; e._distance = 0; e.tmpDir = { x: 0, y: 0 }; return e; } e.prototype.onLoad = function() { this._radius = (this.mRing.width - this.mDot.width) / 2; this.mDir.opacity = 0; this.mDot.opacity = 100; this._initTouchEvent(); }; e.prototype.stop = function() { this._touchEndEvent(); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype._initTouchEvent = function() { this.node.on(cc.Node.EventType.TOUCH_START, this._touchStartEvent, this); this.node.on(cc.Node.EventType.TOUCH_MOVE, this._touchMoveEvent, this); this.node.on(cc.Node.EventType.TOUCH_END, this._touchEndEvent, this); this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._touchEndEvent, this); cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyPressed, this); cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, this.onKeyReleased, this); }; e.prototype._touchStartEvent = function(t) { if (!this.isDisable) { var e = this.node.convertToNodeSpaceAR(t.getLocation()); this.mDir.opacity = 255; this.mDot.opacity = 255; if (this.mTouchType == l.FOLLOW) { this.mRing.setPosition(e); this.mDot.setPosition(e); this.mDir.setPosition(e); return !0; } return !1; } }; e.prototype._touchMoveEvent = function(t) { if (!this.isDisable) { var e = this.node.convertToNodeSpaceAR(t.getLocation()), o = this.mRing.getPosition(), i = this._getDistance(e, o); this._distance = i; if (this._radius > i) this.mDot.setPosition(e); else { var n = c.default.getAngle(o, e), r = o.x + Math.cos(n) * this._radius, a = o.y + Math.sin(n) * this._radius; this.mDot.setPosition(cc.v2(r, a)); } this.updateAngle(); } }; e.prototype.getDisTance = function() { return this._distance > this._radius ? 1 : this._distance / this._radius; }; e.prototype._touchEndEvent = function() { this.mDot.setPosition(this.mRing.getPosition()); this._angle = 0; this.callback && this.callback(!1, { x: 0, y: 0 }, 0); this.mDir.opacity = 0; this.mDot.opacity = 100; }; e.prototype.onKeyPressed = function(t) { switch (t.keyCode) { case cc.macro.KEY.w: case cc.macro.KEY.up: this.tmpDir.y = 1; break; case cc.macro.KEY.s: case cc.macro.KEY.down: this.tmpDir.y = -1; break; case cc.macro.KEY.a: case cc.macro.KEY.left: this.tmpDir.x = -1; break; case cc.macro.KEY.d: case cc.macro.KEY.right: this.tmpDir.x = 1; } this.reviseValue(); }; e.prototype.onKeyReleased = function(t) { switch (t.keyCode) { case cc.macro.KEY.w: case cc.macro.KEY.up: this.tmpDir.y = 0; break; case cc.macro.KEY.s: case cc.macro.KEY.down: this.tmpDir.y = 0; break; case cc.macro.KEY.a: case cc.macro.KEY.left: this.tmpDir.x = 0; break; case cc.macro.KEY.d: case cc.macro.KEY.right: this.tmpDir.x = 0; } this.reviseValue(); }; e.prototype.reviseValue = function() { if (this.callback) if (0 == this.tmpDir.x && 0 == this.tmpDir.y) this.callback(!1, { x: 0, y: 0 }, 0); else { var t = Math.atan2(this.tmpDir.y, this.tmpDir.x); this.callback(!0, { x: this.tmpDir.x, y: this.tmpDir.y }, t); } }; e.prototype.updateAngle = function() { var t = this.mRing.getPosition(), e = this.mDot.getPosition(), o = Math.atan2(e.y - t.y, e.x - t.x); this.mDir.angle = 180 * o / Math.PI; this._angle = o; var i = this.getDir(this.mDir.angle); this.callback && this.callback(!0, i, o); return this._angle; }; e.prototype._getDistance = function(t, e) { return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); }; e.prototype.getDir = function(t) { return t >= -30 && t < 30 ? { x: 1.4, y: 0 } : t >= 30 && t < 60 ? { x: 1, y: 1 } : t >= 60 && t < 120 ? { x: 0, y: 1.4 } : t >= 120 && t < 150 ? { x: -1, y: 1 } : t >= 150 && t < 180 ? { x: -1.4, y: 0 } : t >= -180 && t < -150 ? { x: -1.4, y: 0 } : t >= -150 && t < -120 ? { x: -1, y: -1 } : t >= -120 && t < -60 ? { x: 0, y: -1.4 } : t >= -60 && t < -30 ? { x: 1, y: -1 } : { x: 0, y: 0 }; }; r([ p({ type: l, displayName: "触摸类型" }) ], e.prototype, "mTouchType", void 0); r([ p({ type: u, displayName: "方向类型" }) ], e.prototype, "mDirectionType", void 0); r([ p(cc.Node) ], e.prototype, "mDot", void 0); r([ p(cc.Node) ], e.prototype, "mRing", void 0); r([ p(cc.Node) ], e.prototype, "mDir", void 0); return r([ s ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "./CMath": "CMath" } ], LBObject: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0051eqBNKZNt4BJZXNrMlAR", "LBObject"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../object/FSprite"), a = t("./BObject"), s = cc._decorator, p = s.ccclass, l = (s.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onBeginContact = function(t, e, o) { if (e.node == this.node) if (0 != o.tag) ; else if ("map" == o.node.group) ; else if (this.sprite && this.sprite.isValid && this.sprite.hp > 0 && this.sprite.node.group != o.node.group && e.isValid && o.node.isValid) { var i = o.node.getComponent(c.default); i.hp > 0 && null != i && i.isActive && this.sprite.atkjs(i, this._skillData); } }; return r([ p ], e); }(a.default)); o.default = l; cc._RF.pop(); }, { "../object/FSprite": "FSprite", "./BObject": "BObject" } ], LeftBottom: [ function(t, e, o) { "use strict"; cc._RF.push(e, "6d2df8dRUBNkZFgmhHkxhgI", "LeftBottom"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { this.node.x = -cc.winSize.width / 2; this.node.y = -cc.winSize.height / 2; }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], Loading: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5707dIKCrdND7TgP73NAZfV", "Loading"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.rotateNode = null; return e; } e.prototype.onLoad = function() {}; e.prototype.onEnable = function() { cc.tween(this.rotateNode).repeatForever(cc.rotateBy(.3, 60)).start(); }; r([ s(cc.Node) ], e.prototype, "rotateNode", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], Login: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b29e3zlLTxFKamXRvfn8Xjn", "Login"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../main/ViewManage"), a = t("../main/ViewObject"), s = t("../util/CHttp"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mUserName = null; e.mPassWord = null; return e; } e.prototype.onclickLogin = function() { var t = this, e = this.main.loginHttp, o = { userName: this.mUserName.string, passWord: this.mPassWord.string }; this.main.startLoad(); e.sendForm("/login", o, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.userData = o.data; t.openArea(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.openArea = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.area, function(e) { e.show(t); }); }; e.prototype.onclickTest = function() { this.main.userData = { id: 2, token: "edbeb6d9b01bfd41eff12efb7def330f", zone: null }; this.openArea(); }; r([ u(cc.EditBox) ], e.prototype, "mUserName", void 0); r([ u(cc.EditBox) ], e.prototype, "mPassWord", void 0); return r([ l ], e); }(a.default); o.default = f; cc._RF.pop(); }, { "../main/ViewManage": "ViewManage", "../main/ViewObject": "ViewObject", "../util/CHttp": "CHttp" } ], MBomb: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e4639ZSL91FErdB6tPFL8E5", "MBomb"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../../util/CMath"), a = t("../../../bullet/BBObject"), s = t("../../../bullet/BObject"), p = t("../../FSprite"), l = t("../SkillBase"), u = cc._decorator, f = u.ccclass, h = (u.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { this.sprite = this.node.getComponent(p.default); }; e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); var i = cc.instantiate(this.mBullet).getComponent(s.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), a = cc.instantiate(i); a.angle = this.sprite.wAngle; a.setPosition(c); a.parent = this.sprite.node; var l = a.getComponent(sp.Skeleton); l.setCompleteListener(function() { l.setCompleteListener(null); a.destroy(); e && e(); }); l.setAnimation(0, "atk", !1); this.sprite.playAction(p.SpriteActionType.atk, !1, function() { o.sprite.isWalk ? o.sprite.playAction(p.SpriteActionType.run, !0) : o.sprite.playAction(p.SpriteActionType.stand, !0); }); var u = void 0; if (t) u = t.node.getPosition(); else { var f = this.sprite.wAngle * Math.PI / 180, h = 300 * Math.sin(f) + this.node.y, d = 300 * Math.cos(f) + this.node.x; u = cc.v2(d, h); } if (t) u = t.node.getPosition(); else { f = this.sprite.wAngle * Math.PI / 180; var m = 300 * Math.sin(f) + this.node.y; m += this.sprite.mAtkSite.worldY; var y = 300 * Math.cos(f) + this.node.x; u = cc.v2(y, m); } this.fireBulletByTime(u); }; e.prototype.fireBulletByTime = function(t) { var e = cc.instantiate(this.mBullet); e.group = "bullet"; var o = this.sprite, i = o.node.x + o.mAtkSite.worldX * this.sprite.spine.node.scaleX, n = o.node.y + o.mAtkSite.worldY, r = cc.v2(i, n); e.setPosition(r); var s = e.getComponent(a.default); s.setSprite(this.sprite); s.speed = this.speed; e.parent = this.sprite.map.mSprites; var p = e.getPosition(), l = c.default.getAngle(p, t); s._skillData = this._skillData; s.fireAngle(l); }; return r([ f ], e); }(l.default)); o.default = h; cc._RF.pop(); }, { "../../../../../util/CMath": "CMath", "../../../bullet/BBObject": "BBObject", "../../../bullet/BObject": "BObject", "../../FSprite": "FSprite", "../SkillBase": "SkillBase" } ], MFWind: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c5312AV9DxH0KJgjgB25Ffe", "MFWind"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../../util/CMath"), a = t("../../../bullet/BObject"), s = t("../../../bullet/LBObject"), p = t("../../FSprite"), l = t("../SkillBase"), u = cc._decorator, f = u.ccclass, h = (u.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { this.sprite = this.node.getComponent(p.default); }; e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), s = cc.instantiate(i); s.angle = this.sprite.wAngle; s.setPosition(c); s.parent = this.sprite.node; var l = s.getComponent(sp.Skeleton); l.setCompleteListener(function() { l.setCompleteListener(null); s.destroy(); e && e(); }); l.setAnimation(0, "atk", !1); this.sprite.playAction(p.SpriteActionType.atk, !1, function() { o.sprite.isWalk ? o.sprite.playAction(p.SpriteActionType.run, !0) : o.sprite.playAction(p.SpriteActionType.stand, !0); }); var u = void 0; if (t) u = t.node.getPosition(); else { var f = this.sprite.wAngle * Math.PI / 180, h = 300 * Math.sin(f) + this.node.y, d = 300 * Math.cos(f) + this.node.x; u = cc.v2(d, h); } if (t) u = t.node.getPosition(); else { f = this.sprite.wAngle * Math.PI / 180; var m = 300 * Math.sin(f) + this.node.y; m += this.sprite.mAtkSite.worldY; var y = 300 * Math.cos(f) + this.node.x; u = cc.v2(y, m); } this.fireBulletByTime(u); }; e.prototype.fireBulletByTime = function(t) { var e = cc.instantiate(this.mBullet); e.group = "bullet"; var o = this.sprite, i = o.node.x + o.mAtkSite.worldX * this.sprite.spine.node.scaleX, n = o.node.y + o.mAtkSite.worldY, r = cc.v2(i, n); e.setPosition(r); var a = e.getComponent(s.default); a.setSprite(this.sprite); a.speed = this.speed; e.parent = this.sprite.map.mSprites; var p = e.getPosition(), l = c.default.getAngle(p, t); a._skillData = this._skillData; a.fireAngle2(l); }; return r([ f ], e); }(l.default)); o.default = h; cc._RF.pop(); }, { "../../../../../util/CMath": "CMath", "../../../bullet/BObject": "BObject", "../../../bullet/LBObject": "LBObject", "../../FSprite": "FSprite", "../SkillBase": "SkillBase" } ], MMD5: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3edc4sRJ2tISImf6znDJM3c", "MMD5"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = function() { function t() { this.hexcase = 0; this.b64pad = ""; } t.prototype.hex_md5 = function(t) { return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(t))); }; t.prototype.b64_md5 = function(t) { return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(t))); }; t.prototype.any_md5 = function(t, e) { return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(t)), e); }; t.prototype.hex_hmac_md5 = function(t, e) { return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e))); }; t.prototype.b64_hmac_md5 = function(t, e) { return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e))); }; t.prototype.any_hmac_md5 = function(t, e, o) { return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e)), o); }; t.prototype.md5_vm_test = function() { return "900150983cd24fb0d6963f7d28e17f72" == this.hex_md5("abc").toLowerCase(); }; t.prototype.rstr_md5 = function(t) { return this.binl2rstr(this.binl_md5(this.rstr2binl(t), 8 * t.length)); }; t.prototype.rstr_hmac_md5 = function(t, e) { var o = this.rstr2binl(t); o.length > 16 && (o = this.binl_md5(o, 8 * t.length)); for (var i = Array(16), n = Array(16), r = 0; r < 16; r++) { i[r] = 909522486 ^ o[r]; n[r] = 1549556828 ^ o[r]; } var c = this.binl_md5(i.concat(this.rstr2binl(e)), 512 + 8 * e.length); return this.binl2rstr(this.binl_md5(n.concat(c), 640)); }; t.prototype.rstr2hex = function(t) { try { this.hexcase; } catch (t) { this.hexcase = 0; } for (var e, o = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", i = "", n = 0; n < t.length; n++) { e = t.charCodeAt(n); i += o.charAt(e >>> 4 & 15) + o.charAt(15 & e); } return i; }; t.prototype.rstr2b64 = function(t) { try { this.b64pad; } catch (t) { this.b64pad = ""; } for (var e = "", o = t.length, i = 0; i < o; i += 3) for (var n = t.charCodeAt(i) << 16 | (i + 1 < o ? t.charCodeAt(i + 1) << 8 : 0) | (i + 2 < o ? t.charCodeAt(i + 2) : 0), r = 0; r < 4; r++) 8 * i + 6 * r > 8 * t.length ? e += this.b64pad : e += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n >>> 6 * (3 - r) & 63); return e; }; t.prototype.rstr2any = function(t, e) { var o, i, n, r, c, a = e.length, s = Array(Math.ceil(t.length / 2)); for (o = 0; o < s.length; o++) s[o] = t.charCodeAt(2 * o) << 8 | t.charCodeAt(2 * o + 1); var p = Math.ceil(8 * t.length / (Math.log(e.length) / Math.log(2))), l = Array(p); for (i = 0; i < p; i++) { c = Array(); r = 0; for (o = 0; o < s.length; o++) { r = (r << 16) + s[o]; r -= (n = Math.floor(r / a)) * a; (c.length > 0 || n > 0) && (c[c.length] = n); } l[i] = r; s = c; } var u = ""; for (o = l.length - 1; o >= 0; o--) u += e.charAt(l[o]); return u; }; t.prototype.str2rstr_utf8 = function(t) { for (var e, o, i = "", n = -1; ++n < t.length; ) { e = t.charCodeAt(n); o = n + 1 < t.length ? t.charCodeAt(n + 1) : 0; if (55296 <= e && e <= 56319 && 56320 <= o && o <= 57343) { e = 65536 + ((1023 & e) << 10) + (1023 & o); n++; } e <= 127 ? i += String.fromCharCode(e) : e <= 2047 ? i += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : e <= 65535 ? i += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : e <= 2097151 && (i += String.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e)); } return i; }; t.prototype.str2rstr_utf16le = function(t) { for (var e = "", o = 0; o < t.length; o++) e += String.fromCharCode(255 & t.charCodeAt(o), t.charCodeAt(o) >>> 8 & 255); return e; }; t.prototype.str2rstr_utf16be = function(t) { for (var e = "", o = 0; o < t.length; o++) e += String.fromCharCode(t.charCodeAt(o) >>> 8 & 255, 255 & t.charCodeAt(o)); return e; }; t.prototype.rstr2binl = function(t) { for (var e = Array(t.length >> 2), o = 0; o < e.length; o++) e[o] = 0; for (o = 0; o < 8 * t.length; o += 8) e[o >> 5] |= (255 & t.charCodeAt(o / 8)) << o % 32; return e; }; t.prototype.binl2rstr = function(t) { for (var e = "", o = 0; o < 32 * t.length; o += 8) e += String.fromCharCode(t[o >> 5] >>> o % 32 & 255); return e; }; t.prototype.binl_md5 = function(t, e) { t[e >> 5] |= 128 << e % 32; t[14 + (e + 64 >>> 9 << 4)] = e; for (var o = 1732584193, i = -271733879, n = -1732584194, r = 271733878, c = 0; c < t.length; c += 16) { var a = o, s = i, p = n, l = r; o = this.md5_ff(o, i, n, r, t[c + 0], 7, -680876936); r = this.md5_ff(r, o, i, n, t[c + 1], 12, -389564586); n = this.md5_ff(n, r, o, i, t[c + 2], 17, 606105819); i = this.md5_ff(i, n, r, o, t[c + 3], 22, -1044525330); o = this.md5_ff(o, i, n, r, t[c + 4], 7, -176418897); r = this.md5_ff(r, o, i, n, t[c + 5], 12, 1200080426); n = this.md5_ff(n, r, o, i, t[c + 6], 17, -1473231341); i = this.md5_ff(i, n, r, o, t[c + 7], 22, -45705983); o = this.md5_ff(o, i, n, r, t[c + 8], 7, 1770035416); r = this.md5_ff(r, o, i, n, t[c + 9], 12, -1958414417); n = this.md5_ff(n, r, o, i, t[c + 10], 17, -42063); i = this.md5_ff(i, n, r, o, t[c + 11], 22, -1990404162); o = this.md5_ff(o, i, n, r, t[c + 12], 7, 1804603682); r = this.md5_ff(r, o, i, n, t[c + 13], 12, -40341101); n = this.md5_ff(n, r, o, i, t[c + 14], 17, -1502002290); i = this.md5_ff(i, n, r, o, t[c + 15], 22, 1236535329); o = this.md5_gg(o, i, n, r, t[c + 1], 5, -165796510); r = this.md5_gg(r, o, i, n, t[c + 6], 9, -1069501632); n = this.md5_gg(n, r, o, i, t[c + 11], 14, 643717713); i = this.md5_gg(i, n, r, o, t[c + 0], 20, -373897302); o = this.md5_gg(o, i, n, r, t[c + 5], 5, -701558691); r = this.md5_gg(r, o, i, n, t[c + 10], 9, 38016083); n = this.md5_gg(n, r, o, i, t[c + 15], 14, -660478335); i = this.md5_gg(i, n, r, o, t[c + 4], 20, -405537848); o = this.md5_gg(o, i, n, r, t[c + 9], 5, 568446438); r = this.md5_gg(r, o, i, n, t[c + 14], 9, -1019803690); n = this.md5_gg(n, r, o, i, t[c + 3], 14, -187363961); i = this.md5_gg(i, n, r, o, t[c + 8], 20, 1163531501); o = this.md5_gg(o, i, n, r, t[c + 13], 5, -1444681467); r = this.md5_gg(r, o, i, n, t[c + 2], 9, -51403784); n = this.md5_gg(n, r, o, i, t[c + 7], 14, 1735328473); i = this.md5_gg(i, n, r, o, t[c + 12], 20, -1926607734); o = this.md5_hh(o, i, n, r, t[c + 5], 4, -378558); r = this.md5_hh(r, o, i, n, t[c + 8], 11, -2022574463); n = this.md5_hh(n, r, o, i, t[c + 11], 16, 1839030562); i = this.md5_hh(i, n, r, o, t[c + 14], 23, -35309556); o = this.md5_hh(o, i, n, r, t[c + 1], 4, -1530992060); r = this.md5_hh(r, o, i, n, t[c + 4], 11, 1272893353); n = this.md5_hh(n, r, o, i, t[c + 7], 16, -155497632); i = this.md5_hh(i, n, r, o, t[c + 10], 23, -1094730640); o = this.md5_hh(o, i, n, r, t[c + 13], 4, 681279174); r = this.md5_hh(r, o, i, n, t[c + 0], 11, -358537222); n = this.md5_hh(n, r, o, i, t[c + 3], 16, -722521979); i = this.md5_hh(i, n, r, o, t[c + 6], 23, 76029189); o = this.md5_hh(o, i, n, r, t[c + 9], 4, -640364487); r = this.md5_hh(r, o, i, n, t[c + 12], 11, -421815835); n = this.md5_hh(n, r, o, i, t[c + 15], 16, 530742520); i = this.md5_hh(i, n, r, o, t[c + 2], 23, -995338651); o = this.md5_ii(o, i, n, r, t[c + 0], 6, -198630844); r = this.md5_ii(r, o, i, n, t[c + 7], 10, 1126891415); n = this.md5_ii(n, r, o, i, t[c + 14], 15, -1416354905); i = this.md5_ii(i, n, r, o, t[c + 5], 21, -57434055); o = this.md5_ii(o, i, n, r, t[c + 12], 6, 1700485571); r = this.md5_ii(r, o, i, n, t[c + 3], 10, -1894986606); n = this.md5_ii(n, r, o, i, t[c + 10], 15, -1051523); i = this.md5_ii(i, n, r, o, t[c + 1], 21, -2054922799); o = this.md5_ii(o, i, n, r, t[c + 8], 6, 1873313359); r = this.md5_ii(r, o, i, n, t[c + 15], 10, -30611744); n = this.md5_ii(n, r, o, i, t[c + 6], 15, -1560198380); i = this.md5_ii(i, n, r, o, t[c + 13], 21, 1309151649); o = this.md5_ii(o, i, n, r, t[c + 4], 6, -145523070); r = this.md5_ii(r, o, i, n, t[c + 11], 10, -1120210379); n = this.md5_ii(n, r, o, i, t[c + 2], 15, 718787259); i = this.md5_ii(i, n, r, o, t[c + 9], 21, -343485551); o = this.safe_add(o, a); i = this.safe_add(i, s); n = this.safe_add(n, p); r = this.safe_add(r, l); } return [ o, i, n, r ]; }; t.prototype.md5_cmn = function(t, e, o, i, n, r) { return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(e, t), this.safe_add(i, r)), n), o); }; t.prototype.md5_ff = function(t, e, o, i, n, r, c) { return this.md5_cmn(e & o | ~e & i, t, e, n, r, c); }; t.prototype.md5_gg = function(t, e, o, i, n, r, c) { return this.md5_cmn(e & i | o & ~i, t, e, n, r, c); }; t.prototype.md5_hh = function(t, e, o, i, n, r, c) { return this.md5_cmn(e ^ o ^ i, t, e, n, r, c); }; t.prototype.md5_ii = function(t, e, o, i, n, r, c) { return this.md5_cmn(o ^ (e | ~i), t, e, n, r, c); }; t.prototype.safe_add = function(t, e) { var o = (65535 & t) + (65535 & e); return (t >> 16) + (e >> 16) + (o >> 16) << 16 | 65535 & o; }; t.prototype.bit_rol = function(t, e) { return t << e | t >>> 32 - e; }; return t; }(); o.default = i; cc._RF.pop(); }, {} ], MMagic: [ function(t, e, o) { "use strict"; cc._RF.push(e, "139d4DULhVEK4h9+frD9EIZ", "MMagic"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../bullet/BObject"), a = t("../../FSprite"), s = t("../SkillBase"), p = cc._decorator, l = p.ccclass, u = (p.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { this.sprite = this.node.getComponent(a.default); }; e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); var i = cc.instantiate(this.mBullet).getComponent(c.default), n = i.mStartEffect, r = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, s = this.sprite.mAtkSite.worldY, p = cc.v2(r, s), l = cc.instantiate(n); l.angle = this.sprite.wAngle; l.setPosition(p); l.parent = this.sprite.node; var u = l.getComponent(sp.Skeleton); u.setCompleteListener(function() { u.setCompleteListener(null); l.destroy(); e && e(); }); u.setAnimation(0, "atk", !1); this.sprite.playAction(a.SpriteActionType.atk, !1, function() { o.sprite.isWalk ? o.sprite.playAction(a.SpriteActionType.run, !0) : o.sprite.playAction(a.SpriteActionType.stand, !0); }); var f = void 0; if (t) f = t.node.getPosition(); else { var h = this.sprite.wAngle * Math.PI / 180, d = 300 * Math.sin(h) + this.node.y, m = 300 * Math.cos(h) + this.node.x; f = cc.v2(m, d); } var y = this.sprite.ff.mMap, v = cc.instantiate(i.mHitEffect); v.setPosition(f); v.parent = y.mSprites; var g = v.children[0].getComponent(sp.Skeleton); g.setCompleteListener(function() { g.setCompleteListener(null); v.destroy(); }); g.setAnimation(0, "animation", !1); this.roundHit(v); }; e.prototype.roundHit = function(t) { for (var e = this.sprite.ff, o = this.sprite.getEnemyGroup(), i = e.mMap.getSprites(), n = 0; n < i.length; n++) { var r = i[n], c = r.getComponent(a.default); c && r.active && c.isActive && c.hp > 0 && c.node.group == o && cc.Vec2.distance(t.getPosition(), r.getPosition()) < 300 && c.hp > 0 && null != c && c.isActive && this.sprite.atkjs(c, this._skillData); } }; return r([ l ], e); }(s.default)); o.default = u; cc._RF.pop(); }, { "../../../bullet/BObject": "BObject", "../../FSprite": "FSprite", "../SkillBase": "SkillBase" } ], MShotgun: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e85ecZc8blCc5BRkOJh9I0c", "MShotgun"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../bullet/BObject"), a = t("../../FSprite"), s = t("../SkillShotgun"), p = cc._decorator, l = p.ccclass, u = (p.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { this.sprite = this.node.getComponent(a.default); }; e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); var i = cc.instantiate(this.mBullet).getComponent(c.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, s = cc.v2(n, r), p = cc.instantiate(i); p.angle = this.sprite.wAngle; p.setPosition(s); p.parent = this.sprite.node; var l = p.getComponent(sp.Skeleton); l.setCompleteListener(function() { l.setCompleteListener(null); p.destroy(); e && e(); }); l.setAnimation(0, "atk", !1); this.sprite.playAction(a.SpriteActionType.atk, !1, function() { o.sprite.isWalk ? o.sprite.playAction(a.SpriteActionType.run, !0) : o.sprite.playAction(a.SpriteActionType.stand, !0); }); var u = void 0; if (t) (u = t.node.getPosition()).y += t.node.height / 2; else { var f = this.sprite.wAngle * Math.PI / 180, h = 300 * Math.sin(f) + this.node.y, d = 300 * Math.cos(f) + this.node.x; u = cc.v2(d, h + 40); } for (var m = 0; m < this.count; m++) this.fire(m, u); }; return r([ l ], e); }(s.default)); o.default = u; cc._RF.pop(); }, { "../../../bullet/BObject": "BObject", "../../FSprite": "FSprite", "../SkillShotgun": "SkillShotgun" } ], MSprite: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b0ae7hp5mpJn4iy7/l9QuB3", "MSprite"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./FSprite"), a = t("./skill/mainSkill/MBomb"), s = t("./skill/mainSkill/MFWind"), p = t("./skill/mainSkill/MMagic"), l = t("./skill/mainSkill/MShotgun"), u = cc._decorator, f = u.ccclass, h = (u.property, function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mJoystick = null; e.musicWalkId = -1; e.muiscRunId = -1; return e; } e.prototype.setAttrData = function(e) { t.prototype.setAttrData.call(this, e); var o = this.ff.main.sManage.getSkillById(e.weaponSkill); if (o) { if (1 == o.type) { (i = this.node.addComponent(l.default)).count = o.value2; i.bcount = o.value3; this.loadSkill(o, i); this.skill1 = i; } else if (2 == o.type) { var i = this.node.addComponent(a.default); this.loadSkill(o, i); this.skill1 = i; } else if (3 == o.type) { i = this.node.addComponent(p.default); this.loadSkill(o, i); this.skill1 = i; } else if (4 == o.type) { i = this.node.addComponent(s.default); this.loadSkill(o, i); this.skill1 = i; } this.skill1._skillData = o; } }; e.prototype.loadSkill = function(t, e) { cc.resources.load("icon/skills/" + t.effect + "/bullet", cc.Prefab, function(t, o) { t ? cc.error(t) : e.mBullet = o; }); }; e.prototype.setJoystick = function(t) { var e = this; this.mJoystick = t; this.mJoystick.setCallback(function(t, o, i) { if (t) { e.setWeaponAngle(i); var n = o.y, r = o.x; e.setDir({ x: r, y: n }); } else e.setDir({ x: 0, y: 0 }); e.playMusic(); }); }; e.prototype.setRuning = function(e) { t.prototype.setRuning.call(this, e); this.playMusic(); }; e.prototype.playMusic = function() { if (this.isWalk) { var t = this.ff.main.player.setting; if (t.music_ON_OFF_2) if (this.isRuning) { -1 == this.muiscRunId && (this.muiscRunId = cc.audioEngine.play(this.ff.mRun, !0, t.music_Slider_2)); if (-1 != this.musicWalkId) { cc.audioEngine.stop(this.musicWalkId); this.musicWalkId = -1; } } else { -1 == this.musicWalkId && (this.musicWalkId = cc.audioEngine.play(this.ff.mWalk, !0, t.music_Slider_2)); if (-1 != this.muiscRunId) { cc.audioEngine.stop(this.muiscRunId); this.muiscRunId = -1; } } } else { if (-1 != this.musicWalkId) { cc.audioEngine.stop(this.musicWalkId); this.musicWalkId = -1; } if (-1 != this.muiscRunId) { cc.audioEngine.stop(this.muiscRunId); this.muiscRunId = -1; } } }; return r([ f ], e); }(c.default)); o.default = h; cc._RF.pop(); }, { "./FSprite": "FSprite", "./skill/mainSkill/MBomb": "MBomb", "./skill/mainSkill/MFWind": "MFWind", "./skill/mainSkill/MMagic": "MMagic", "./skill/mainSkill/MShotgun": "MShotgun" } ], MagicBoxInfoView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f97fccpkCVDAY6VeiEq5uZN", "MagicBoxInfoView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../common/GoodItem"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mAbout = null; e.mContent = null; e.mGoodItem = null; e.mIcon = null; e.mCount = null; return e; } e.prototype.init = function(t) { var e = this; this.boxItem = t; var o = t._magicBox; this.mName.string = c.default.t(o.name); this.mAbout.string = c.default.t(o.about); cc.resources.load("icon/magic_box/" + o.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); for (var i = this.main.sManage.getRewardViews(o.list), n = 0; n < i.length && n < 5; n++) { var r = i[n], a = cc.instantiate(this.mGoodItem); a.getComponent(l.default).initReward(this.main, r); a.parent = this.mContent; } this.flush(); }; e.prototype.flush = function() { var t = this.boxItem._magicBox, e = this.main.player.getGoodCount(t.goodId); this.mCount.string = e + "/" + t.goodCount; }; e.prototype.onclickInfo = function() { var t = this; this.main.viewManage.loadFunc(a.GameViewType.moheReward, function(e) { e.init(t.boxItem); e.show(); }); }; e.prototype.onclickOpen = function() { var t = this, e = { id: this.boxItem._magicBox.id }; this.main.gameHttp.sendJson("magicBox/v1/open", e, function(e, o) { t.main.stopLoad(); if (e == p.HttpStateType.SUCCESS) if (0 == o.retCode) { t.boxItem.flush(); t.flush(); t.main.showReward(o); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; r([ h(cc.Label) ], e.prototype, "mName", void 0); r([ h(cc.Label) ], e.prototype, "mAbout", void 0); r([ h(cc.Node) ], e.prototype, "mContent", void 0); r([ h(cc.Prefab) ], e.prototype, "mGoodItem", void 0); r([ h(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ h(cc.Label) ], e.prototype, "mCount", void 0); return r([ f ], e); }(s.default); o.default = d; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "../../common/GoodItem": "GoodItem" } ], MagicBoxItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c8228BgwCdNFa7LJbYCDtnH", "MagicBoxItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mCount = null; return e; } e.prototype.init = function(t, e) { var o = this; this.main = t; this._magicBox = e; cc.resources.load("icon/magic_box/" + e.icon, cc.SpriteFrame, function(t, e) { t ? cc.error(t) : o.mIcon.spriteFrame = e; }); this.flush(); }; e.prototype.flush = function() { var t = this.main.player.getGoodCount(this._magicBox.goodId); this.mCount.string = t + "/" + this._magicBox.goodCount; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback && this.callback(this); }; r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ s(cc.Label) ], e.prototype, "mCount", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], MagicBoxRewardView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "81bdcqeKTJH2rvtc1ZseIu9", "MagicBoxRewardView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../common/GoodItem"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mRewardItem = null; return e; } e.prototype.init = function(t) { for (var e = t._magicBox, o = this.main.sManage.getRewardViews(e.list), i = 0; i < o.length; i++) { var n = o[i], r = cc.instantiate(this.mRewardItem), c = r.getComponent(a.default); c.initReward(this.main, n); c.mContrast.node.active = !0; c.mContrast.string = n.PR + "%"; r.parent = this.mContent; } }; r([ l(cc.Node) ], e.prototype, "mContent", void 0); r([ l(cc.Prefab) ], e.prototype, "mRewardItem", void 0); return r([ p ], e); }(c.default); o.default = u; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../common/GoodItem": "GoodItem" } ], MagicBoxView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ab8b2ASbORPV5ZPtznUWtDK", "MagicBoxView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewManage"), a = t("../../../main/ViewObject"), s = t("./MagicBoxItem"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mLine1 = null; e.mLine2 = null; e.mBoxItem = null; return e; } e.prototype.start = function() { this.init(1); }; e.prototype.init = function(t) { var e = this, o = this.main.sManage.magicBoxs; this.mLine1.destroyAllChildren(); this.mLine2.destroyAllChildren(); for (var i = 0, n = 0; n < o.length; n++) { var r = o[n]; if (r.type == t) { var c = cc.instantiate(this.mBoxItem), a = c.getComponent(s.default); a.init(this.main, r); c.parent = i < 2 ? this.mLine1 : this.mLine2; a.setCallback(function(t) { e.openMagicBox(t); }); i++; } } }; e.prototype.openMagicBox = function(t) { this.main.viewManage.loadFunc(c.GameViewType.moheInfo, function(e) { e.init(t); e.show(); }); }; r([ u(cc.Node) ], e.prototype, "mLine1", void 0); r([ u(cc.Node) ], e.prototype, "mLine2", void 0); r([ u(cc.Prefab) ], e.prototype, "mBoxItem", void 0); return r([ l ], e); }(a.default); o.default = f; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "./MagicBoxItem": "MagicBoxItem" } ], MailInfo: [ function(t, e, o) { "use strict"; cc._RF.push(e, "95448yXDKdKCJs8OndrJaR+", "MailInfo"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../util/CHttp"), a = t("../common/GoodItem"), s = t("./Mail"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTitle = null; e.mContent = null; e.mReward = null; e.mTime = null; e.mGoodItem = null; e.mBTReward = null; e.mBTLable = null; e.mMailYes = null; e.mMailNo = null; return e; } e.prototype.onLoad = function() { this.mMailNo.active = !0; this.mMailYes.active = !1; }; e.prototype.start = function() { this.mail = this.node.getComponent(s.default); this.main = this.mail.main; }; e.prototype.setMail = function(t) { this.mMailNo.active = !1; this.mMailYes.active = !0; this.mailItem = t; this.data = this.mailItem.data; this.flush(); }; e.prototype.flush = function() { this.mBTReward.interactable = !this.data.receive; this.data.receive ? this.mBTLable.string = "已领取" : this.mBTLable.string = "领取"; }; e.prototype.getMailInfo = function() { var t = this; this.mTitle.string = this.data.title; var e = { mailId: this.data.id }; this.main.gameHttp.sendJson("email/v1/info", e, function(e, o) { t.main.stopLoad(); if (e == c.HttpStateType.SUCCESS) if (0 == o.retCode) { t.data = o.data; t.initData(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.initData = function() { this.node.getComponent(s.default).mInfoNode.active = !0; this.mContent.string = this.data.content; this.mTime.string = this.data.date + " " + this.data.time; this.mReward.destroyAllChildren(); if (this.data.appendix) for (var t = JSON.parse(this.data.appendix), e = 0; e < t.length; e++) { var o = t[e], i = cc.instantiate(this.mGoodItem); i.getComponent(a.default).init(this.main, o); i.parent = this.mReward; } }; e.prototype.onclickGet = function() { var t = this, e = { mailId: this.data.id }; this.main.gameHttp.sendJson("email/v1/receive", e, function(e, o) { t.main.stopLoad(); if (e == c.HttpStateType.SUCCESS) if (0 == o.retCode) { t.data.receive = !0; t.flush(); t.main.showReward(o); t.mailItem.tipsIcon.active = !1; } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; r([ u(cc.Label) ], e.prototype, "mTitle", void 0); r([ u(cc.Label) ], e.prototype, "mContent", void 0); r([ u(cc.Node) ], e.prototype, "mReward", void 0); r([ u(cc.Label) ], e.prototype, "mTime", void 0); r([ u(cc.Prefab) ], e.prototype, "mGoodItem", void 0); r([ u(cc.Button) ], e.prototype, "mBTReward", void 0); r([ u(cc.Label) ], e.prototype, "mBTLable", void 0); r([ u(cc.Node) ], e.prototype, "mMailYes", void 0); r([ u(cc.Node) ], e.prototype, "mMailNo", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../util/CHttp": "CHttp", "../common/GoodItem": "GoodItem", "./Mail": "Mail" } ], MailItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a2f44yirC5Hbadm7hPdgIyl", "MailItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTitle = null; e.mTime = null; e.tipsIcon = null; e.index = 0; return e; } e.prototype.init = function(t, e) { this.data = t; this.index = e; this.mTitle.string = this.data.title; this.tipsIcon.active = !t.receive; var o = this.data.xTime / 86400; this.mTime.string = o <= 0 ? "即将过期" : "剩余" + Math.floor(o) + "天"; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ s(cc.Label) ], e.prototype, "mTitle", void 0); r([ s(cc.Label) ], e.prototype, "mTime", void 0); r([ s(cc.Node) ], e.prototype, "tipsIcon", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], Mail: [ function(t, e, o) { "use strict"; cc._RF.push(e, "d19b3kzCHBJSaT5WO/BdHbQ", "Mail"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewObject"), a = t("../../util/CHttp"), s = t("../data/RedPoint"), p = t("./MailInfo"), l = t("./MailItem"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mNull1 = null; e.mNull2 = null; e.mContent1 = null; e.mContent2 = null; e.mItem = null; e.mInfoNode = null; e.mMailInfo = null; e.mToggle1 = null; e.mToggle2 = null; e.itemList = []; e.clickIndex = 0; return e; } o = e; e.prototype.onLoad = function() { this.itemList = []; this.mNull1.active = !1; this.mNull2.active = !1; this.mInfoNode.active = !1; this.getMail(); }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.getMail = function() { var t = this; this.main.gameHttp.sendJson("email/v1/data", {}, function(e, o) { t.main.stopLoad(); e == a.HttpStateType.SUCCESS ? 0 == o.retCode ? t.initList(o.data) : t.main.showTips(o.message) : t.main.showTips("网络异常"); }); }; e.prototype.initList = function(t) { for (var e = this, o = 0; o < t.length; o++) { var i = t[o], n = cc.instantiate(this.mItem), r = n.getComponent(l.default); this.itemList.push(n); r.init(i, o); i.check || i.receive || s.default.addRed(this.main, n); r.setCallback(function(t) { s.default.removeRed(t.node); e.openInfo(t); e.refreshStatus(t); }); 1 == i.type ? n.parent = this.mContent2 : n.parent = this.mContent1; } this.mContent1.children.length > 0 ? this.mNull1.active = !1 : this.mNull1.active = !0; this.mContent2.children.length > 0 ? this.mNull2.active = !1 : this.mNull2.active = !0; }; e.prototype.openInfo = function(t) { if (this.mMailInfo.mailItem != t) { this.mMailInfo.setMail(t); this.mMailInfo.getMailInfo(); } }; e.prototype.onclickOnekey = function() { var t = this, e = []; this.onkeyGetMail(0, e, function() { t.main.showRewardList(e); }); }; e.prototype.onkeyGetMail = function(t, e, i) { var n = this, r = (this.mToggle1.isChecked ? this.mContent1 : this.mContent2).children; if (t >= r.length) i(); else { var c = r[t].getComponent(l.default); if (c.data.receive) { t++; this.onkeyGetMail(t, e, i); } else this.getMailInfo(c, function(r) { if (r) for (var c = 0; c < r.length; c++) { var a = r[c]; o.addReward(e, a); } t++; n.onkeyGetMail(t, e, i); }); } }; e.addReward = function(t, e) { if (1 == e.type || 2 == e.type) { for (var o = 0; o < t.length; o++) { var i = t[o]; if (i.type == e.type) { i.count += e.count; return; } } t.push(e); } else e.type, t.push(e); }; e.prototype.getMailInfo = function(t, e) { var o = this, i = { mailId: t.data.id }; this.main.gameHttp.sendJson("email/v1/receive", i, function(i, n) { o.main.stopLoad(); if (i == a.HttpStateType.SUCCESS) if (0 == n.retCode) { t.data.receive = !0; t.tipsIcon.active = !1; s.default.removeRed(t.node); o.mMailInfo.mailItem == t && o.mMailInfo.flush(); e(o.main.sManage.getRewards(n)); } else { o.main.showTips(n.message); e(null); } else { o.main.showTips("网络异常"); e(null); } }); }; e.prototype.refreshStatus = function(t) { var e = this; if (this.clickIndex == t.index) t.node.color = cc.color(173, 173, 173, 255); else { this.itemList.forEach(function(t) { t.getComponent(l.default).index == e.clickIndex && (t.color = cc.color(255, 255, 255, 255)); }); t.node.color = cc.color(173, 173, 173, 255); this.clickIndex = t.index; } }; var o; r([ h(cc.Node) ], e.prototype, "mNull1", void 0); r([ h(cc.Node) ], e.prototype, "mNull2", void 0); r([ h(cc.Node) ], e.prototype, "mContent1", void 0); r([ h(cc.Node) ], e.prototype, "mContent2", void 0); r([ h(cc.Prefab) ], e.prototype, "mItem", void 0); r([ h(cc.Node) ], e.prototype, "mInfoNode", void 0); r([ h(p.default) ], e.prototype, "mMailInfo", void 0); r([ h(cc.Toggle) ], e.prototype, "mToggle1", void 0); r([ h(cc.Toggle) ], e.prototype, "mToggle2", void 0); return o = r([ f ], e); }(c.default); o.default = d; cc._RF.pop(); }, { "../../main/ViewObject": "ViewObject", "../../util/CHttp": "CHttp", "../data/RedPoint": "RedPoint", "./MailInfo": "MailInfo", "./MailItem": "MailItem" } ], MainAtterItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f4490v8nBJD/JL6e3lWioPE", "MainAtterItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mValue = null; e.mContrast = null; e.mPCT = null; e.mUpDown = null; e.mUp = null; e.mDown = null; return e; } e.prototype.setValue = function(t) { this.mContrast.active = !1; this.mValue.string = "" + t; this.mValue.node.color = cc.color(75, 43, 0); }; e.prototype.setContrase = function(t, e) { this.mContrast.active = !0; this.mValue.string = "" + t; var o = cc.color(); if (t >= e) { o.r = 75; o.g = 43; o.b = 0; this.mValue.node.color = o; this.mUpDown.spriteFrame = this.mUp; } else { o.r = 255; o.g = 24; o.b = 24; this.mValue.node.color = o; this.mUpDown.spriteFrame = this.mDown; } this.mPCT.string = Math.floor(100 * (t - e) / t) + "%"; this.mPCT.node.color = o; }; r([ s(cc.Label) ], e.prototype, "mValue", void 0); r([ s(cc.Node) ], e.prototype, "mContrast", void 0); r([ s(cc.Label) ], e.prototype, "mPCT", void 0); r([ s(cc.Sprite) ], e.prototype, "mUpDown", void 0); r([ s(cc.SpriteFrame) ], e.prototype, "mUp", void 0); r([ s(cc.SpriteFrame) ], e.prototype, "mDown", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], Main: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b902fuPqp5GaJPLoBL3IWMm", "Main"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../i18n/i18n"), a = t("./ViewManage"), s = t("../util/CHttp"), p = t("../util/Profile"), l = t("../util/Tips"), u = t("../plot/GuideMask"), f = t("../login/AdminLogin"), h = cc._decorator, d = h.ccclass, m = h.property, y = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMapCamera = null; e.mLoading = null; e.mTips = null; e.mGuideMask = null; e.mI18n = null; e.RED_POINT = null; e.topNode = null; e.profile = null; e.bgmId = -1; e.effectId = -1; e.effectList = []; return e; } e.prototype.onLoad = function() { var t = this; cc.game.setFrameRate(35); this.viewManage = this.node.getComponent(a.default); cc.view.resizeWithBrowserSize(!0); this.resizeView(); cc.view.setResizeCallback(function() { cc.log("view resize callback"); t.resizeView(); }); this.profile = this.node.getComponent(p.default); this.loginHttp = new s.default(this.profile.url); }; e.prototype.start = function() { var t = this; this.mI18n.__init(function() { cc.log("语言测试 rabbit:", c.default.t("rabbit")); t.toHotUpdate(); }); }; e.prototype.resizeView = function() { var t = cc.winSize, e = t.width / t.height; if (e > 1.78) { cc.Canvas.instance.fitWidth = !1; cc.Canvas.instance.fitHeight = !0; } else { cc.Canvas.instance.fitWidth = !0; cc.Canvas.instance.fitHeight = !1; } cc.log("屏幕尺寸:", t.width, t.height); cc.log("canvas尺寸:", cc.Canvas.instance.node.width, cc.Canvas.instance.node.height); cc.log("屏幕比例:", e); }; Object.defineProperty(e.prototype, "i18n", { get: function() { return c.default; }, enumerable: !1, configurable: !0 }); e.prototype.startLoad = function() { this.mLoading.active = !0; }; e.prototype.stopLoad = function() { this.mLoading.active = !1; }; e.prototype.showTips = function(t) { var e = cc.instantiate(this.mTips); e.getComponent(l.default).setLabel(c.default.t(t)); var o = cc.winSize; e.y += o.height / 5; e.parent = this.node; }; e.prototype.showTips1 = function(t) { var e = this.sManage.getRewards(t); if (!(e.length <= 0)) { for (var o = "" + c.default.t("获得道具") + ":", i = 0; i < e.length; i++) { var n = e[i]; o += n.name + "x" + n.count + ";"; } o += ""; this.showTips(o); } }; e.prototype.showReward = function(t, e, o, i) { var n = this.sManage.getRewards(t); this.showRewardList(n, e, o, i); }; e.prototype.showRewardList = function(t, e, o, i) { var n = this; t.length > 0 ? this.viewManage.loadFunc(a.GameViewType.reward, function(r) { var s = r; s.init(t); o && (s.mTitle.string = c.default.t(o)); s.mAbout.string = i ? c.default.t(i) : ""; e && s.setCloseCallback(function() { e(); }); r.show(); n.playerEffectByPath(a.AudioMgr.award); }) : e && e(); }; e.prototype.toHotUpdate = function() { if (f.default.userData) { this.userData = f.default.userData; this.viewManage.loadFunc(a.GameViewType.area, function(t) { t.show(); }); } else cc.sys.isNative ? this.viewManage.loadFunc(a.GameViewType.fqLogin, function(t) { t.show(); }) : this.viewManage.loadFunc(a.GameViewType.login, function(t) { t.show(); }); }; e.prototype.playMusicByClip = function(t) { var e = this.player.setting; if (-1 != this.bgmId) { cc.audioEngine.stopMusic(); this.bgmId = -1; } e.music_ON_OFF_1 ? cc.audioEngine.setMusicVolume(e.music_Slider_1) : cc.audioEngine.setMusicVolume(0); this.bgmId = cc.audioEngine.playMusic(t, !0); }; e.prototype.playMusicByPath = function(t) { var e = this; "" != t && cc.resources.load(t, cc.AudioClip, function(t, o) { t ? console.log("===播放背景音乐 err===", t) : e.playMusicByClip(o); }); }; e.prototype.playerEffectByClip = function(t) { var e = this.player.setting; if (e.music_ON_OFF_2) { if (-1 != this.effectId) { cc.audioEngine.stopEffect(this.effectId); this.effectId = -1; } this.effectId = cc.audioEngine.playEffect(t, !1); cc.audioEngine.setEffectsVolume(e.music_Slider_2); } }; e.prototype.playerEffectByPath = function(t) { var e = this; "" != t && this.player.setting.music_ON_OFF_2 && cc.resources.load(t, cc.AudioClip, function(t, o) { t ? console.log("===播放背景音效 err===", t) : e.playerEffectByClip(o); }); }; e.prototype.pauseMusic = function() { this.player.setting.music_ON_OFF_1 || -1 != this.bgmId && cc.audioEngine.pauseMusic(); }; e.prototype.resumeMusic = function() { var t = this.player.setting; if (t.music_ON_OFF_1 && -1 != this.bgmId) { cc.audioEngine.resumeMusic(); cc.audioEngine.setMusicVolume(t.music_Slider_1); } }; e.prototype.stopAll = function() { this.effectList = []; cc.audioEngine.stopAll(); }; r([ m(cc.Camera) ], e.prototype, "mMapCamera", void 0); r([ m(cc.Node) ], e.prototype, "mLoading", void 0); r([ m(cc.Prefab) ], e.prototype, "mTips", void 0); r([ m(u.default) ], e.prototype, "mGuideMask", void 0); r([ m(c.default) ], e.prototype, "mI18n", void 0); r([ m(cc.SpriteFrame) ], e.prototype, "RED_POINT", void 0); r([ m(cc.Node) ], e.prototype, "topNode", void 0); return r([ d ], e); }(cc.Component); o.default = y; cc._RF.pop(); }, { "../i18n/i18n": "i18n", "../login/AdminLogin": "AdminLogin", "../plot/GuideMask": "GuideMask", "../util/CHttp": "CHttp", "../util/Profile": "Profile", "../util/Tips": "Tips", "./ViewManage": "ViewManage" } ], MiniMapItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7c8c3JfJ21FoqefCGH8C01y", "MiniMapItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mStarNode = null; e.mStarx = []; e.mId = null; e.starCount = 0; return e; } e.prototype.onLoad = function() { this.mStarNode || (this.mStarNode = this.node.children[0].children[0]); this.mId.string = "" + this._stageData.id; this.starCount = this.getStarCount(); for (var t = this.mStarNode.children, e = 0; e < t.length; e++) { var o = t[e].getComponent(cc.Sprite); e < this.starCount ? o.spriteFrame = this.mStarx[1] : o.spriteFrame = this.mStarx[0]; } }; e.prototype.setStar = function(t) { this.mStarNode.children[t].getComponent(cc.Sprite).spriteFrame = this.mStarx[1]; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { var t = this.stage.main; t.player.stage.stageIndex >= this._stageData.id - 1 ? this.callback(this) : t.showTips("关卡还未开启"); }; e.prototype.getStarCount = function() { var t = this.stage.main.player.stage.data[this._stageData.id]; return t ? t.starCount : 0; }; e.prototype.getStarCount1 = function() { var t = this.stage.main.player.stage, e = t.data[this._stageData.id], o = 0; t.stageIndex > this._stageData.id - 1 && o++; if (null != e) { this.getCount(this._stageData.goodId1) >= this._stageData.goodCount1 && o++; this.getCount(this._stageData.goodId2) >= this._stageData.goodCount2 && o++; } return o; }; e.prototype.getCount = function(t) { var e = this.stage.main.player.stage.data[this._stageData.id]; if (e && e.good) { var o = e.good["" + t]; return null == o ? 0 : o; } return 0; }; r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ s(cc.Node) ], e.prototype, "mStarNode", void 0); r([ s([ cc.SpriteFrame ]) ], e.prototype, "mStarx", void 0); r([ s(cc.Label) ], e.prototype, "mId", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], MiniMap: [ function(t, e, o) { "use strict"; cc._RF.push(e, "18b05cMT/VEYZeJhJXahevO", "MiniMap"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./MiniMapItem"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.touchLayer = null; e.mapLayer = null; e.mStageNode = null; return e; } e.prototype.onLoad = function() { for (var t = this, e = this.stage.main.player.stage, o = 0, i = this.mStageNode.children, n = 0; n < i.length; n++) { var r = i[n], a = r.getComponent(c.default); if (a) { a.stage = this.stage; a._stageData = this.sceneData.list[o++]; a.setCallback(function(e) { t.onclickItem(e); }); e.stageIndex >= a._stageData.id - 1 ? r.active = !0 : r.active = !1; } } }; e.prototype.start = function() { if (1 == this.stage.inGuide) { this.stage.inGuide = 2; this.openGuide(); } }; e.prototype.flushOpen = function() { for (var t = this.stage.main.player.stage, e = this.mStageNode.children, o = 0; o < e.length; o++) { var i = e[o], n = i.getComponent(c.default); n && (t.stageIndex >= n._stageData.id - 1 ? i.active = !0 : i.active = !1); } }; e.prototype.onEnable = function() { var t = this; this.flushOpen(); if (1 != this.stage.inGuide) { var e = cc.winSize, o = 0; this.touchLayer.on(cc.Node.EventType.TOUCH_START, function() { o = 0; t.touchLayer._touchListener.setSwallowTouches(!1); }); this.touchLayer.on(cc.Node.EventType.TOUCH_MOVE, function(i) { ++o > 5 && t.touchLayer._touchListener.setSwallowTouches(!0); var n = i.getDelta(); t.mapLayer.x += n.x; t.mapLayer.y += n.y; t.mapLayer.x < e.width - t.mapLayer.width && (t.mapLayer.x = e.width - t.mapLayer.width); t.mapLayer.x > 0 && (t.mapLayer.x = 0); t.mapLayer.y < e.height - t.mapLayer.height && (t.mapLayer.y = e.height - t.mapLayer.height); t.mapLayer.y > 0 && (t.mapLayer.y = 0); }); this.touchLayer.on(cc.Node.EventType.TOUCH_CANCEL, function() { t.touchLayer._touchListener.setSwallowTouches(!1); }); } }; e.prototype.onDisable = function() { this.touchLayer.off(cc.Node.EventType.TOUCH_START); this.touchLayer.off(cc.Node.EventType.TOUCH_MOVE); this.touchLayer.off(cc.Node.EventType.TOUCH_END); this.touchLayer.off(cc.Node.EventType.TOUCH_CANCEL); }; e.prototype.onclickItem = function(t) { if (this.callback) { this.callback(t); this.clickCallback && this.clickCallback(); } }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.setClickCallback = function(t) { this.clickCallback = t; }; e.prototype.openGuide = function() { var t = this.stage.main.mGuideMask; t.setTargetNode(this.mStageNode.children[0]); t.show(); this.setClickCallback(function() { t.close(); }); }; r([ p(cc.Node) ], e.prototype, "touchLayer", void 0); r([ p(cc.Node) ], e.prototype, "mapLayer", void 0); r([ p(cc.Node) ], e.prototype, "mStageNode", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "./MiniMapItem": "MiniMapItem" } ], MyZoneItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0d6a2BEZr1AYZHAN6KRG9pw", "MyZoneItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mZoneName = null; e.mRoleName = null; e.mRoleNode = null; e.mNullNode = null; return e; } e.prototype.onLoad = function() { if (null != this.role) { this.zone = this.area.getZoneById(this.role.zoneId); this.mRoleNode.active = !0; this.mNullNode.active = !1; this.mRoleName.string = this.role.name; } else { this.mRoleNode.active = !1; this.mNullNode.active = !0; } this.mZoneName.string = c.default.t(this.zone.name); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ p(cc.Label) ], e.prototype, "mZoneName", void 0); r([ p(cc.Label) ], e.prototype, "mRoleName", void 0); r([ p(cc.Node) ], e.prototype, "mRoleNode", void 0); r([ p(cc.Node) ], e.prototype, "mNullNode", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../i18n/i18n": "i18n" } ], PSprite: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f9652/vbedFzonYFA019XjH", "PSprite"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../util/CMath"), a = t("./FSprite"), s = cc._decorator, p = s.ccclass, l = (s.property, function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.isFollow = !1; e.PosList = []; e.RecordGap = 3; e.StopCount = 7; e.isFloowStart = !1; return e; } e.prototype.setLeader = function(t) { this.inFront = t; this.node.x = this.inFront.node.x; this.node.y = this.inFront.node.y; this.isFollow = !0; }; e.prototype.startFollow = function() { var t = this; if (!this.isFloowStart && !this.isFollow) { this.setShooting(!1); this.isFloowStart = !0; this.PosList = []; var e = this.ff.mainSprite.node.getPosition(), o = cc.v2(); o.x = e.x; o.y = e.y; this.playAction(a.SpriteActionType.run, !0); cc.tween(this.node).sequence(cc.moveTo(.5, o), cc.callFunc(function() { t.playAction(a.SpriteActionType.stand, !0); t.tmpActionType = null; t.isFollow = !0; t.isFloowStart = !1; })).start(); } }; e.prototype.stopFollow = function() { this.isFollow = !1; }; e.prototype.update = function(t) { if (!this.gamePause && this.inFront) if (this.PosList.length > 0) if (this.isFollow) { var e = this.inFront.node.getPosition(), o = this.PosList[this.PosList.length - 1]; cc.Vec2.distance(e, o) > this.RecordGap && this.PosList.push(e); if (this.PosList.length > this.StopCount) { var i = this.node.getPosition(), n = this.PosList[0]; this.updateSpineF(i, n) && (this.tmpActionType = null); this.moveTo(n, t); this.isWalk = !0; this.playAction(a.SpriteActionType.run, !0); } else { this.isWalk = this.inFront.isWalk; this.isWalk ? this.playAction(a.SpriteActionType.run, !0) : this.playAction(a.SpriteActionType.stand, !0); } for (;this.PosList.length > 0 && cc.Vec2.distance(this.node.getPosition(), this.PosList[0]) <= this.RecordGap; ) this.PosList.shift(); } else { this.tmpActionType = null; this.isFloowStart || this.updateMove(t); } else this.isFloowStart || this.PosList.push(this.inFront.node.getPosition()); }; e.prototype.updateSpineF = function(t, e) { var o = this.spine, i = Math.floor(t.x), n = Math.floor(e.x); Math.abs(i - n) < 2 || (i - n > 0 ? this.setLR(-1) : this.setLR(1)); if (o == this.spine) return !1; o && (o.node.active = !1); this.spine.node.active = !0; return !0; }; e.prototype.setPosition = function(t) { this.node.setPosition(t); this.PosList = []; }; e.prototype.removeSelf = function() { var t = this; this.playAction2(a.SpriteActionType.dead, !1, function() { t.setGhost(); }); }; e.prototype.setGhost = function() { var t = this; cc.resources.load("prefab/monter/ghost", cc.Prefab, function(e, o) { if (e) cc.error(e); else { var i = cc.instantiate(o), n = i.getComponent(sp.Skeleton); i.parent = t.node.getChildByName("juese01"); t.spine.node.active = !1; t.spine = n; for (var r = 0; r < t.mPanels.length; r++) t.mPanels[r].setClose(); } }); }; e.prototype.tangentMove = function(t) { var e = this, o = this.node.getPosition(), i = t.getPosition(), n = 180 * c.default.getAngle(o, i) / Math.PI; c.default.getRandom(0, 1) > 0 ? n += 90 : n -= 90; n > 180 && (n -= 180); n < -180 && (n += 180); var r = this.getDir(n); cc.tween(this.node).sequence(cc.delayTime(.5), cc.callFunc(function() { e.setDir(r); })).start(); }; e.prototype.getDir = function(t) { return t >= -30 && t < 30 ? { x: 1.4, y: 0 } : t >= 30 && t < 60 ? { x: 1, y: 1 } : t >= 60 && t < 120 ? { x: 0, y: 1.4 } : t >= 120 && t < 150 ? { x: -1, y: 1 } : t >= 150 && t < 180 ? { x: -1.4, y: 0 } : t >= -180 && t < -150 ? { x: -1.4, y: 0 } : t >= -150 && t < -120 ? { x: -1, y: -1 } : t >= -120 && t < -60 ? { x: 0, y: -1.4 } : t >= -60 && t < -30 ? { x: 1, y: -1 } : void 0; }; return r([ p ], e); }(a.default)); o.default = l; cc._RF.pop(); }, { "../../../util/CMath": "CMath", "./FSprite": "FSprite" } ], Pack: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c368bmHPt9AaIdo+bsJ+oDf", "Pack"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../common/GoodItem"), a = t("../../../main/ViewObject"), s = t("../../../main/ViewManage"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = []; e.mGoodItem = null; e.curInset = 0; return e; } e.prototype.httpEvent = function(t) { var e = t.data; null != e._equip && this.flushEquip(); null != e._pack && this.flushGood(); }; e.prototype.onLoad = function() { this.mContent[1].active = !1; this.flush(); }; e.prototype.flush = function() { this.flushGood(); this.flushEquip(); }; e.prototype.flushGood = function() { var t = this, e = this.main.player.pack, o = 0, i = this.mContent[0]; i.children.length && i.removeAllChildren(); for (var n in e) { var r = e[n]; if (r > 0) { var a = { id: n, count: r }; this.addGoodItem(i); var s = i.children[o].getComponent(c.default); s.initGood(this.main, a); 5 == s.good.type || 3 == s.good.type ? s.setCallback(function(e) { t.openEatFood(e); }) : s.setCallback(function(e) { t.openGoodAbout(e); }); o++; } } }; e.prototype.flushEquip = function() { var t = this, e = this.main.player.equip, o = 0, i = this.mContent[1]; i.children.length && i.removeAllChildren(); for (var n = 0; n < e.length; n++) { var r = e[n]; this.addGoodItem(i); var a = i.children[o].getComponent(c.default); a.initEquip(this.main, r); a.node.zIndex = this.main.player.equip.length - a.equip.id; a.setCallback(function(e) { t.openGoodAbout(e); }); o++; } }; e.prototype.sortEquip = function() { var t = this.main.player.equip; t.sort(function(t, e) { return e.id - t.id; }); return t; }; e.prototype.addGoodItem = function(t) { cc.instantiate(this.mGoodItem).parent = t; }; e.prototype.openGoodAbout = function(t) { this.main.viewManage.loadFunc(s.GameViewType.goodAbout, function(e) { e.init(t, !1); e.show(); }); }; e.prototype.openEatFood = function(t) { var e = this; this.main.viewManage.loadFunc(s.GameViewType.goodEat, function(o) { o.initGood(e, t); o.show(); }); }; e.prototype.onClickInset = function(t, e) { this.curInset = Number(e); this.mContent.forEach(function(t, o) { t.active = o == Number(e); }); }; r([ u([ cc.Node ]) ], e.prototype, "mContent", void 0); r([ u(cc.Prefab) ], e.prototype, "mGoodItem", void 0); return r([ l ], e); }(a.default); o.default = f; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../common/GoodItem": "GoodItem" } ], PayShopItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b4177ABxoNJbL4GfMGi5+xl", "PayShopItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mGold = null; e.mGaveGold = null; e.mRMB = null; e.icon = null; e.text = null; return e; } e.prototype.init = function(t, e) { this._payData = t; this.main = e; this.mGold.string = "" + t.gold; this.mGaveGold.string = "+" + t.firstGive; this.mRMB.string = "$" + t.usd; this.initIcon(t.id); this.showFirstGave(); }; e.prototype.initIcon = function(t) { var e = this; cc.resources.load("icon/shop/gold/" + t, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.icon.spriteFrame = o; }); }; e.prototype.isFirstPay = function() { return this.main.player.firstPayGave.indexOf(this._payData.id) > -1; }; e.prototype.showFirstGave = function() { this.text.active = !this.isFirstPay(); this.mGaveGold.node.active = !this.isFirstPay(); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ s(cc.Label) ], e.prototype, "mGold", void 0); r([ s(cc.Label) ], e.prototype, "mGaveGold", void 0); r([ s(cc.Label) ], e.prototype, "mRMB", void 0); r([ s(cc.Sprite) ], e.prototype, "icon", void 0); r([ s(cc.Node) ], e.prototype, "text", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], PayShopView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "523cb6At2RAbo8/BNKfkHhl", "PayShopView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mPayItem = null; return e; } e.prototype.init = function() {}; r([ p(cc.Node) ], e.prototype, "mContent", void 0); r([ p(cc.Prefab) ], e.prototype, "mPayItem", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../../main/ViewObject": "ViewObject" } ], PetIcon: [ function(t, e, o) { "use strict"; cc._RF.push(e, "45bd26GnpJMdrVfpOsZxq+L", "PetIcon"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../data/RedPoint"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mCheck = null; e.mLeaderIcon = null; return e; } o = e; e.prototype.onLoad = function() { this.mCheck.active = !1; this.mLeaderIcon.active = !1; }; e.prototype.flushIcon = function(t) { var e = this, o = t.skin; "30000" == o && (o = "" + this.data.id); cc.resources.load("icon/role_head/" + o, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { if (!this.mCheck.active) { for (var t = this.node.parent.children, e = 0; e < t.length; e++) { var i = t[e]; i == this.node ? this.mCheck.active = !0 : i.getComponent(o).mCheck.active = !1; } if (this.callback) { c.default.removeRed(this.node); this.callback(this); } } }; var o; r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ p(cc.Node) ], e.prototype, "mCheck", void 0); r([ p(cc.Node) ], e.prototype, "mLeaderIcon", void 0); return o = r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../data/RedPoint": "RedPoint" } ], PetInfo: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5b17awOvO1MRKJAynLRP8Bm", "PetInfo"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../main/ViewObject"), s = t("../../common/EquipViewAttr"), p = t("../../data/FFCalAttr"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mZdl = null; e.mAtk = null; e.mDef = null; e.mHp = null; e.mSp = null; e.mFAttrNode = null; e.mFAttrItem = null; e.mSkillNode = null; e.mSkillAbout = null; e.mSkillIcon = null; return e; } e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.init = function(t) { var e = this; this.node.zIndex = 1; var o = p.default.getAttr(this.main, t.data); this.mZdl.string = "" + o.zdl; this.mAtk.string = "" + o.atk; this.mDef.string = "" + o.def; this.mHp.string = "" + o.hp; this.mSp.string = "" + o.sp; if (o.attrs.length <= 0) this.mFAttrNode.active = !1; else { this.mFAttrNode.children.forEach(function(t) { "fsx_name" != t.name && t.destroy(); }); this.mFAttrNode.active = !0; for (var i = 0; i < o.attrs.length; i++) { var n = o.attrs[i], r = cc.instantiate(this.mFAttrItem); r.getComponent(s.default).init(this.main, n); r.parent = this.mFAttrNode; } } if (o.weaponSkill > 0) { this.mSkillNode.active = !0; var a = this.main.sManage.getSkillById(o.weaponSkill); this.mSkillAbout.string = c.default.t(a.about, { VAL1: a.value1, VAL2: a.value2, VAL3: a.value3 }); cc.resources.load("icon/skill/" + a.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mSkillIcon.spriteFrame = o; }); } else this.mSkillNode.active = !1; }; r([ f(cc.Label) ], e.prototype, "mZdl", void 0); r([ f(cc.Label) ], e.prototype, "mAtk", void 0); r([ f(cc.Label) ], e.prototype, "mDef", void 0); r([ f(cc.Label) ], e.prototype, "mHp", void 0); r([ f(cc.Label) ], e.prototype, "mSp", void 0); r([ f(cc.Node) ], e.prototype, "mFAttrNode", void 0); r([ f(cc.Prefab) ], e.prototype, "mFAttrItem", void 0); r([ f(cc.Node) ], e.prototype, "mSkillNode", void 0); r([ f(cc.Label) ], e.prototype, "mSkillAbout", void 0); r([ f(cc.Sprite) ], e.prototype, "mSkillIcon", void 0); return r([ u ], e); }(a.default); o.default = h; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewObject": "ViewObject", "../../common/EquipViewAttr": "EquipViewAttr", "../../data/FFCalAttr": "FFCalAttr" } ], Player: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b832f2Zqs1CiL5SqCPnm+7e", "Player"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = t("../../../i18n/i18n"), n = t("../FFCalAttr"), r = function() { function t(t) { this.isNew = !0; this.settingKey = "__setting"; this.readSetting(); if (t) { this.role = t.role; this.foodAttr = t.foodAttr; this.role.name || (this.role.name = i.default.t("冒险者") + this.role.id); this.roleIcon = t.roleIcon; this.pet = t.pet; this.godCard = t.godCard; this.flushID(); this.equip = t.equip; this.pack = t.pack; this.firstPayGave = t.firstPayGave; this.isNew = t.isNew; this.flushIndex(); } } t.prototype.readSetting = function() { var t = cc.sys.localStorage.getItem(this.settingKey); this.setting = t ? JSON.parse(t) : { music_ON_OFF_1: !0, music_Slider_1: .5, music_ON_OFF_2: !0, music_Slider_2: .5 }; }; t.prototype.saveSetting = function() { cc.sys.localStorage.setItem(this.settingKey, JSON.stringify(this.setting)); }; t.prototype.flushID = function() { for (var t in this.pet) this.pet[t].id = parseInt(t); }; t.prototype.getPet = function(t) { return this.pet[t]; }; t.prototype.flushIndex = function() { for (var t = 0; t < this.equip.length; t++) this.equip[t].__index = t; }; t.prototype.getGoodCount = function(t) { var e = this.pack["" + t]; return null == e ? 0 : e; }; t.prototype.httpEvent = function(t) { var e = t.data; if (null != e._role) { null != e._role.power && (this.role.power = e._role.power); null != e._role._money && (this.role.money += e._role._money); null != e._role._gold && (this.role.gold += e._role._gold); null != e._role.gold && (this.role.gold = e._role.gold); null != e._role.renameCount && (this.role.renameCount += e._role.renameCount); e._firstPayGave && (this.firstPayGave = e._firstPayGave); } if (null != e._pack) for (var o = 0; o < e._pack.length; o++) { var i = e._pack[o]; if (null != (a = this.pack["" + i.id])) { a += i.count; this.pack["" + i.id] = a; } else this.pack["" + i.id] = i.count; } var n = !1; if (null != e._equipRemove) { var r = []; for (o = 0; o < this.equip.length; o++) if (e._equipRemove.indexOf(o) < 0) { i = this.equip[o]; r.push(i); } this.equip = r; n = !0; } if (null != e._equip) { for (o = 0; o < e._equip.length; o++) { i = e._equip[o]; this.equip.push(i); } n = !0; } if (null != e._roleIcon) for (o = 0; o < e._roleIcon.length; o++) { i = e._roleIcon[o]; this.roleIcon.data.push(i); } n && this.flushIndex(); if (null != e._pet) for (var c in e._pet) { var a; i = e._pet[c]; if (null == (a = this.pet[c])) { this.pet[c] = i; i.id = parseInt(c); } else a.equips = i.equips; } if (null != e._godCard) for (o = 0; o < e._godCard.length; o++) { i = e._godCard[o]; this.godCard[i.id] = i; } }; t.prototype.getFight = function(t) { var e = []; for (var o in this.pet) { var i = this.pet[o]; e.push(n.default.getAttr(t, i)); } return e; }; t.prototype.flushZdl = function(t) { var e = this.pet, o = 0; for (var i in e) { var r = e[i]; o += n.default.getAttr(t, r).zdl; } this.role.zdl = o; return o; }; return t; }(); o.default = r; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../FFCalAttr": "FFCalAttr" } ], Plot1: [ function(t, e, o) { "use strict"; cc._RF.push(e, "35cdbfTDYNJbahX56atcCpT", "Plot1"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../../object/FSprite"), p = t("../../object/PSprite"), l = t("../dialog/FMapDialog"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.myspine = null; e.mBullet = null; e.mMapDialog = null; e.mEffect = null; e.mMonster = []; e.mDx = []; e.mAppleIcon = null; return e; } e.prototype.onLoad = function() {}; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(s.default); if (i.hp > 0) { this.ff = i.ff; this.node.removeComponent(cc.PhysicsBoxCollider); this.run(); } } }; e.prototype.run = function() { var t = this; this.ff.pauseSprite(!0); this.ff.mBlockInputEvents.active = !0; var e = this.ff.mMap, o = cc.winSize, i = e.mCamera, n = this.node.x - o.width / 2, r = this.node.y - o.height / 2; cc.tween(i.node).sequence(cc.moveTo(.7, cc.v2(n, r)), cc.callFunc(function() { t.d1(); })).start(); }; e.prototype.d1 = function() { var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2(); o.x = this.node.x + this.mDx[0].x; o.y = this.node.y + this.mDx[0].y + this.mDx[0].height; e.showDialog([ "解决她" ], o, null, function() { t.playAni1(); }); }; e.prototype.mDead = function(t) { var e = t.getComponent(sp.Skeleton); e.setCompleteListener(function() { t.destroy(); }); e.setEventListener(null); e.setAnimation(0, s.SpriteActionType.dead, !1); }; e.prototype.playAni1 = function() { var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect; o.destroy(); var n = this.myspine.node.getPosition(); n.y += this.myspine.node.height / 2; var r = this.mDx[0].getPosition(); r.y += this.mDx[0].height / 2; e.parent = this.node; var s = 180 * c.default.getAngle(n, r) / Math.PI; e.angle = s; cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() { e.destroy(); var o = cc.instantiate(i); o.x = t.mDx[0].x; o.y = t.mDx[0].y; o.parent = t.node; t.playAni2(); t.mDead(t.mDx[0]); })).start(); }; e.prototype.playAni2 = function() { var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect; o.destroy(); var n = this.myspine.node.getPosition(); n.y += this.myspine.node.height / 2; var r = this.mDx[1].getPosition(); r.y += this.mDx[1].height / 2; e.parent = this.node; var s = 180 * c.default.getAngle(n, r) / Math.PI; e.angle = s; cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() { e.destroy(); var o = cc.instantiate(i); o.x = t.mDx[1].x; o.y = t.mDx[1].y; o.parent = t.node; t.mDead(t.mDx[1]); t.d2(); })).start(); }; e.prototype.d2 = function() { var t = this; this.myspine.node.scaleX = 1; var e = new l.default(this.ff, this.mMapDialog), o = cc.v2(); o.x = this.node.x + this.mDx[2].x; o.y = this.node.y + this.mDx[2].y + this.mDx[2].height; e.showDialog([ "妖...妖怪" ], o, null, function() { t.d3(); }); }; e.prototype.d3 = function() { var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2(); o.x = this.node.x + this.mDx[3].x; o.y = this.node.y + this.mDx[3].y + this.mDx[3].height; e.showDialog([ "快...快跑" ], o, null, function() { t.playAni3(); }); }; e.prototype.playAni3 = function() { var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect; o.destroy(); var n = this.myspine.node.getPosition(); n.y += this.myspine.node.height / 2; var r = this.mDx[2].getPosition(); r.y += this.mDx[2].height / 2; e.parent = this.node; var s = 180 * c.default.getAngle(n, r) / Math.PI; e.angle = s; cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() { e.destroy(); var o = cc.instantiate(i); o.x = t.mDx[2].x; o.y = t.mDx[2].y; o.parent = t.node; t.playAni4(); t.mDead(t.mDx[2]); })).start(); }; e.prototype.playAni4 = function() { var t = this, e = cc.instantiate(this.mBullet), o = e.getComponent(a.default), i = o.mHitEffect; o.destroy(); var n = this.myspine.node.getPosition(); n.y += this.myspine.node.height / 2; var r = this.mDx[3].getPosition(); r.y += this.mDx[3].height / 2; e.parent = this.node; var s = 180 * c.default.getAngle(n, r) / Math.PI; e.angle = s; cc.tween(e).sequence(cc.moveTo(.5, r), cc.callFunc(function() { e.destroy(); var o = cc.instantiate(i); o.x = t.mDx[3].x; o.y = t.mDx[3].y; o.parent = t.node; t.mDead(t.mDx[3]); t.mainMove(); })).start(); }; e.prototype.mainMove = function() { var t = this; this.myspine.node.scaleX = -1; var e = this.ff.mainSprite, o = this.node.getPosition(); o.x -= 180; e.playAction2(s.SpriteActionType.run, !0); cc.tween(e.node).sequence(cc.moveTo(1, o), cc.callFunc(function() { e.playAction2(s.SpriteActionType.stand, !0); t.d4(); })).start(); }; e.prototype.d4 = function() { var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2(); o.x = this.node.x; o.y = this.node.y + this.node.height; e.showDialog([ "小巫女,你看到2个和我差不多大的人类吗?", "什么?你已经救了他们?", "太感谢你了,有没有什么我可以帮助你的?", "你要去传风带?", "#yun", "不要,我可不想跟你一起把小命丢了" ], o, this.myspine, function() { t.mainLose(); }); }; e.prototype.mainLose = function() { var t = this, e = new cc.Node(); e.group = "map"; e.addComponent(cc.Sprite).spriteFrame = this.mAppleIcon; var o = this.ff.mainSprite; e.x = o.node.x; e.y = o.node.y + o.node.height / 2; e.parent = this.ff.mMap.mSprites; e.setScale(1.5); var i = c.default.getRandom(-100, 100), n = cc.jumpBy(.5, cc.v2(i, 0), 100, 1); cc.tween(e).sequence(n, cc.delayTime(.5), cc.callFunc(function() { cc.tween(e).sequence(cc.moveTo(.5, t.node.getPosition()), cc.callFunc(function() { t.d5(); e.destroy(); })).start(); cc.tween(e).repeatForever(cc.rotateBy(1, 360)).start(); })).start(); }; e.prototype.d5 = function() { var t = this, e = new l.default(this.ff, this.mMapDialog), o = cc.v2(); o.x = this.node.x; o.y = this.node.y + this.node.height; e.showDialog([ "好吧,好吧,看在你救了我朋友的份上", "就陪你走一趟,耶稣菩萨保佑,我们一路平安", "出发" ], o, this.myspine, function() { t.getPet(); }); }; e.prototype.getPet = function() { var t = this, e = this.ff.mainSprite.node.getPosition(); e.x -= this.node.x; e.y -= this.node.y; this.myspine.setAnimation(0, s.SpriteActionType.run, !0); cc.tween(this.myspine.node).sequence(cc.moveTo(1, e), cc.callFunc(function() { t.myspine.node.removeFromParent(); for (var e = 0; e < t.mMonster.length; e++) { var o = t.mMonster[e], i = cc.instantiate(o).getComponent(p.default); t.ff.addRole(i); } t.node.destroy(); t.ff.pauseSprite(!1); })).start(); }; r([ h(sp.Skeleton) ], e.prototype, "myspine", void 0); r([ h(cc.Prefab) ], e.prototype, "mBullet", void 0); r([ h(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ h(cc.Prefab) ], e.prototype, "mEffect", void 0); r([ h({ type: [ cc.Prefab ], displayName: "解救的对象" }) ], e.prototype, "mMonster", void 0); r([ h([ cc.Node ]) ], e.prototype, "mDx", void 0); r([ h(cc.SpriteFrame) ], e.prototype, "mAppleIcon", void 0); return r([ f ], e); }(cc.Component); o.default = d; cc._RF.pop(); }, { "../../../../util/CMath": "CMath", "../../bullet/BObject": "BObject", "../../object/FSprite": "FSprite", "../../object/PSprite": "PSprite", "../dialog/FMapDialog": "FMapDialog" } ], PlotHome: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f25a9szG5lLH4++Gw71fPiS", "PlotHome"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../game/fight/evnet/map1/WOneByone"), a = t("../game/home/Home"), s = t("../login/FqLogin"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mNode = []; e.mMapDialog = null; e.text = []; e.mBlockInputEvents = null; e.mBtMx = null; e.mBtSpine = null; return e; } e.prototype.onLoad = function() { this.home = this.node.getComponent(a.default); }; e.prototype.exDialog = function() { this.dialog(0); this.mBtSpine.node.parent.active = !1; }; e.prototype.openMenu = function() { var t = this; this.mNode[1].children[0].active = !1; cc.tween(this).sequence(cc.delayTime(.1), cc.callFunc(function() { t.mBtSpine.setAnimation(0, "idle", !0); })).start(); }; e.prototype.dialog = function(t) { var e = this; if (t >= this.text.length) { this.setBlockInputCallback(null); this.moveToMx(function() { e.mBlockInputEvents.active = !1; e.guideMX(); }); } else { var o = this.text[t].split("|"), i = parseInt(o.shift()), n = this.mNode[i]; this.mBlockInputEvents.active = !0; this.showDialog(o, n, null, function() { t++; e.dialog(t); }); } }; e.prototype.showDialog = function(t, e, o, i) { var n = cc.instantiate(this.mMapDialog); n.zIndex = 9999; n.y += e.height; n.parent = e; var r = n.getComponent(c.default); r.dialogs = t; r.spine = o; r.setCallback(function() { n.destroy(); i(); }); this.setBlockInputCallback(function() { r.jump(); }); r._start(); }; e.prototype.setBlockInputCallback = function(t) { this.blockInputCallback = t; }; e.prototype.onclickBlockInput = function() { this.blockInputCallback && this.blockInputCallback(); }; e.prototype.moveToMx = function(t) { var e = this, o = this.mNode[1].children[0].getComponent(sp.Skeleton); o.setAnimation(0, "escape", !1); o.setCompleteListener(function() { o.setCompleteListener(null); o.setAnimation(0, "fly", !0); var i = e.mBtMx.convertToWorldSpaceAR(cc.v2(0, 0)), n = cc.winSize; i.x -= n.width / 2; i.y -= n.height / 2; cc.tween(e.mNode[1]).sequence(cc.moveTo(1, i), cc.callFunc(function() { e.openMenu1(); t(); })).start(); }); }; e.prototype.openMenu1 = function() { var t = this; this.mBtSpine.node.parent.active = !0; this.mBtSpine.setCompleteListener(function() { t.mBtSpine.setAnimation(0, "idle", !1); }); this.mBtSpine.setAnimation(0, "open", !1); }; e.prototype.guideMX = function() { var t = this, e = this.home.main.mGuideMask; e.setTargetNode(this.mBtMx); e.show(); this.home.setMxCallback(function() { e.close(); t.home.setMxCallback(null); s.default.commitEvent("jinruguanqia", "", ""); }); }; r([ u({ displayName: "对话对象", type: [ cc.Node ] }) ], e.prototype, "mNode", void 0); r([ u(cc.Prefab) ], e.prototype, "mMapDialog", void 0); r([ u([ cc.String ]) ], e.prototype, "text", void 0); r([ u(cc.Node) ], e.prototype, "mBlockInputEvents", void 0); r([ u(cc.Node) ], e.prototype, "mBtMx", void 0); r([ u(sp.Skeleton) ], e.prototype, "mBtSpine", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../game/fight/evnet/map1/WOneByone": "WOneByone", "../game/home/Home": "Home", "../login/FqLogin": "FqLogin" } ], PlotView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0f9e0p4hc1PS5mJAZtOMeWY", "PlotView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../login/FqLogin"), a = t("../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.plotList = []; e.iIndex = 0; return e; } e.prototype.onLoad = function() { c.default.commitEvent("manhua" + this.iIndex, "", ""); }; e.prototype.onclick = function() { this.iIndex++; if (this.iIndex > this.plotList.length - 1) this.exitDistroy(); else { this.plotList[this.iIndex].active = !0; c.default.commitEvent("manhua" + this.iIndex, "", ""); } }; r([ l(cc.Node) ], e.prototype, "plotList", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../login/FqLogin": "FqLogin", "../main/ViewObject": "ViewObject" } ], Profile: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7e1acWS4btEFLQ6Cpkhl5Ex", "Profile"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); o.ChannelType = void 0; var c = cc._decorator, a = c.ccclass, s = c.property; o.ChannelType = cc.Enum({ DEV: 3, TEST: 1, FQ: 2 }); var p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.url = null; e.url_dev = "http://127.0.0.1:9999"; e.url_test = "http://127.0.0.1:9999"; e.url_prod = "http://127.0.0.1:9999"; e.mChannel = o.ChannelType.TEST; return e; } e.prototype.onLoad = function() { this.mChannel == o.ChannelType.DEV ? this.url = this.url_dev : this.mChannel == o.ChannelType.TEST ? this.url = this.url_test : this.mChannel == o.ChannelType.FQ && (this.url = this.url_prod); }; r([ s({ displayName: "开发环境地址" }) ], e.prototype, "url_dev", void 0); r([ s({ displayName: "测试环境地址" }) ], e.prototype, "url_test", void 0); r([ s({ displayName: "正式环境地址" }) ], e.prototype, "url_prod", void 0); r([ s({ type: o.ChannelType, displayName: "渠道" }) ], e.prototype, "mChannel", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], RadarChart: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e30ceCdqvtHdZ1Vnuy6zekR", "RadarChart"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = c.executeInEditMode, l = c.executionOrder, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.target = null; e._axisLength = 200; e._axes = 6; e._axisScales = 3; e._drawAxes = !0; e._gridLineWidth = 4; e._innerGridLineWidth = 4; e._gridLineColor = cc.Color.GRAY; e._gridFillColor = cc.color(100, 100, 100, 100); e._dataValuesStrings = [ "0.8,0.5,0.6,0.5,0.8,0.6", "0.5,0.9,0.5,0.8,0.5,0.9" ]; e._dataLineWidths = [ 5, 5 ]; e._dataLineColors = [ cc.Color.BLUE, cc.Color.RED ]; e._dataFillColors = [ cc.color(120, 120, 180, 100), cc.color(180, 120, 120, 100) ]; e._dataJoinColors = []; e._drawDataJoin = !0; e.graphics = null; e.keepUpdating = !1; e.angles = null; e._curDatas = []; e.toRes = null; return e; } Object.defineProperty(e.prototype, "axisLength", { get: function() { return this._axisLength; }, set: function(t) { this._axisLength = t; this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "axes", { get: function() { return this._axes; }, set: function(t) { this._axes = Math.floor(t >= 3 ? t : 3); this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "axisScales", { get: function() { return this._axisScales; }, set: function(t) { this._axisScales = Math.floor(t >= 1 ? t : 1); this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "drawAxes", { get: function() { return this._drawAxes; }, set: function(t) { this._drawAxes = t; this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "gridLineWidth", { get: function() { return this._gridLineWidth; }, set: function(t) { this._gridLineWidth = t; this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "innerGridLineWidth", { get: function() { return this._innerGridLineWidth; }, set: function(t) { this._innerGridLineWidth = t; this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "gridLineColor", { get: function() { return this._gridLineColor; }, set: function(t) { this._gridLineColor = t; this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "gridFillColor", { get: function() { return this._gridFillColor; }, set: function(t) { this._gridFillColor = t; this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "dataValuesStrings", { get: function() { return this._dataValuesStrings; }, set: function(t) { this._dataValuesStrings = t; this.drawWithProperties(); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "dataLineWidths", { get: function() { return this._dataLineWidths; }, set: function(t) { this._dataLineWidths = t; this.drawWithProperties(); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "dataLineColors", { get: function() { return this._dataLineColors; }, set: function(t) { this._dataLineColors = t; this.drawWithProperties(); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "dataFillColors", { get: function() { return this._dataFillColors; }, set: function(t) { this._dataFillColors = t; this.drawWithProperties(); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "dataJoinColors", { get: function() { return this._dataJoinColors; }, set: function(t) { this._dataJoinColors = t; this.drawWithProperties(); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "drawDataJoin", { get: function() { return this._drawDataJoin; }, set: function(t) { this._drawDataJoin = t; this.draw(this.curDatas); }, enumerable: !1, configurable: !0 }); Object.defineProperty(e.prototype, "curDatas", { get: function() { return this._curDatas; }, enumerable: !1, configurable: !0 }); e.prototype.onLoad = function() { this.init(); this.drawWithProperties(); }; e.prototype.update = function() { this.keepUpdating && 0 !== this._curDatas.length && this.draw(this._curDatas); }; e.prototype.init = function() { this.target || (this.target = this.node); this.graphics = this.target.getComponent(cc.Graphics) || this.target.addComponent(cc.Graphics); this.graphics.lineJoin = cc.Graphics.LineJoin.ROUND; this.graphics.lineCap = cc.Graphics.LineCap.ROUND; }; e.prototype.drawWithProperties = function() { for (var t = [], e = 0; e < this.dataValuesStrings.length; e++) t.push({ values: this.processValuesString(this.dataValuesStrings[e]), lineWidth: this._dataLineWidths[e] || f.lineWidth, lineColor: this._dataLineColors[e] || f.lineColor, fillColor: this._dataFillColors[e] || f.fillColor, joinColor: this._dataJoinColors[e] || f.joinColor }); this.draw(t); }; e.prototype.processValuesString = function(t) { for (var e = t.split(","), o = [], i = 0; i < e.length; i++) { var n = parseFloat(e[i]); o.push(isNaN(n) ? 0 : n); } return o; }; e.prototype.drawBase = function() { this.graphics.lineWidth = this._gridLineWidth; this.graphics.strokeColor = this._gridLineColor; this.graphics.fillColor = this._gridFillColor; this.angles = []; for (var t = 360 / this.axes, e = 0; e < this.axes; e++) this.angles.push(t * e); var o = [], i = this._axisLength / this._axisScales; for (e = 0; e < this._axisScales; e++) { for (var n = [], r = this._axisLength - i * e, c = 0; c < this.angles.length; c++) { var a = Math.PI / 180 * this.angles[c]; n.push(cc.v2(r * Math.cos(a), r * Math.sin(a))); } o.push(n); } if (this._drawAxes) for (e = 0; e < o[0].length; e++) { this.graphics.moveTo(0, 0); this.graphics.lineTo(o[0][e].x, o[0][e].y); } this.graphics.moveTo(o[0][0].x, o[0][0].y); for (e = 1; e < o[0].length; e++) this.graphics.lineTo(o[0][e].x, o[0][e].y); this.graphics.close(); this.graphics.fill(); this.graphics.stroke(); if (o.length > 1) { this.graphics.lineWidth = this._innerGridLineWidth; for (e = 1; e < o.length; e++) { this.graphics.moveTo(o[e][0].x, o[e][0].y); for (c = 1; c < o[e].length; c++) this.graphics.lineTo(o[e][c].x, o[e][c].y); this.graphics.close(); } this.graphics.stroke(); } }; e.prototype.draw = function(t) { this.graphics.clear(); this.drawBase(); var e = Array.isArray(t) ? t : [ t ]; this._curDatas = e; this.resizeCurDatasValues(0); for (var o = 0; o < e.length; o++) { this.graphics.strokeColor = e[o].lineColor || f.lineColor; this.graphics.fillColor = e[o].fillColor || f.fillColor; this.graphics.lineWidth = e[o].lineWidth || f.lineWidth; for (var i = [], n = 0; n < this.axes; n++) { var r = (e[o].values[n] > 1 ? 1 : e[o].values[n]) * this.axisLength, c = Math.PI / 180 * this.angles[n]; i.push(cc.v2(r * Math.cos(c), r * Math.sin(c))); } this.graphics.moveTo(i[0].x, i[0].y); for (n = 1; n < i.length; n++) this.graphics.lineTo(i[n].x, i[n].y); this.graphics.close(); this.graphics.fill(); this.graphics.stroke(); if (this._drawDataJoin) for (n = 0; n < i.length; n++) { this.graphics.strokeColor = e[o].lineColor || f.lineColor; this.graphics.circle(i[n].x, i[n].y, 2); this.graphics.stroke(); this.graphics.strokeColor = e[o].joinColor || f.joinColor; this.graphics.circle(i[n].x, i[n].y, .65); this.graphics.stroke(); } } }; e.prototype.to = function(t, e) { var o = this; return new Promise(function(i) { var n; o.unscheduleAllCallbacks(); o.toRes && o.toRes(); o.toRes = i; var r = Array.isArray(t) ? t : [ t ]; o.keepUpdating = !0; for (var c = 0; c < r.length; c++) if (o._curDatas[c]) { for (var a = 0; a < o._curDatas[c].values.length; a++) cc.tween(o._curDatas[c].values).to(e, (n = {}, n[a] = r[c].values[a] > 1 ? 1 : r[c].values[a], n)).start(); cc.tween(o._curDatas[c]).to(e, { lineWidth: r[c].lineWidth || o._curDatas[c].lineWidth, lineColor: r[c].lineColor || o._curDatas[c].lineColor, fillColor: r[c].fillColor || o._curDatas[c].fillColor, joinColor: r[c].joinColor || o._curDatas[c].joinColor }).start(); } o.scheduleOnce(function() { o.keepUpdating = !1; o.toRes(); o.toRes = null; }, e); }); }; e.prototype.resizeCurDatasValues = function(t) { void 0 === t && (t = 0); for (var e = 0; e < this._curDatas.length; e++) if (this._curDatas[e].values.length < this._axes) for (var o = this._axes - this._curDatas[e].values.length, i = 0; i < o; i++) this._curDatas[e].values.push(t); }; r([ s({ type: cc.Node, tooltip: !1 }) ], e.prototype, "target", void 0); r([ s ], e.prototype, "_axisLength", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "axisLength", null); r([ s ], e.prototype, "_axes", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "axes", null); r([ s ], e.prototype, "_axisScales", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "axisScales", null); r([ s ], e.prototype, "_drawAxes", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "drawAxes", null); r([ s ], e.prototype, "_gridLineWidth", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "gridLineWidth", null); r([ s ], e.prototype, "_innerGridLineWidth", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "innerGridLineWidth", null); r([ s ], e.prototype, "_gridLineColor", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "gridLineColor", null); r([ s ], e.prototype, "_gridFillColor", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "gridFillColor", null); r([ s ], e.prototype, "_dataValuesStrings", void 0); r([ s({ type: [ cc.String ], tooltip: !1 }) ], e.prototype, "dataValuesStrings", null); r([ s ], e.prototype, "_dataLineWidths", void 0); r([ s({ type: [ cc.Integer ], tooltip: !1 }) ], e.prototype, "dataLineWidths", null); r([ s ], e.prototype, "_dataLineColors", void 0); r([ s({ type: [ cc.Color ], tooltip: !1 }) ], e.prototype, "dataLineColors", null); r([ s ], e.prototype, "_dataFillColors", void 0); r([ s({ type: [ cc.Color ], tooltip: !1 }) ], e.prototype, "dataFillColors", null); r([ s ], e.prototype, "_dataJoinColors", void 0); r([ s({ type: [ cc.Color ], tooltip: !1 }) ], e.prototype, "dataJoinColors", null); r([ s ], e.prototype, "_drawDataJoin", void 0); r([ s({ tooltip: !1 }) ], e.prototype, "drawDataJoin", null); return r([ a, p, l(-10) ], e); }(cc.Component); o.default = u; var f = { lineWidth: 5, lineColor: cc.Color.BLUE, fillColor: cc.color(120, 120, 180, 100), joinColor: cc.Color.WHITE }; cc._RF.pop(); }, {} ], RedNode: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ec8f9sbcpRBSbWqxXExUY6S", "RedNode"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }); Object.defineProperty(o, "__esModule", { value: !0 }); var r = function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } return e; }(cc.Component); o.default = r; cc._RF.pop(); }, {} ], RedPoint: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e1485GnTuND5oopJeooQJrO", "RedPoint"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = t("../../util/CUtil"), n = t("./FFCalAttr"), r = t("./RedNode"), c = function() { function t() {} t.petsRedPoint = function(e) { var o = e.player.pet; for (var i in o) { var n = o[i]; if (t.petRedPoint(e, n)) return !0; } return !1; }; t.petRedPoint = function(e, o) { for (var i = e.player.equip, n = 0; n < i.length; n++) { var r = i[n]; if (t.equipRedPoint(e, r, o)) return !0; } return !1; }; t.equipRedPoint = function(e, o, i) { var r = e.sManage.getEquipById(o.id); if (r.type > 5) return !1; if (0 != r.occ && r.occ != i.id) return !1; var c = t.getPetAttr(e, r.type, i); if (null == c) return !0; var a = e.sManage.getEquipById(c.id), s = n.default.getEquipAttr(e, o, r), p = n.default.getEquipAttr(e, c, a); return s.zdl > p.zdl; }; t.getPetAttr = function(t, e, o) { for (var i = o.equips, n = 0; n < i.length; n++) { var r = i[n]; if (e == t.sManage.getEquipById(r.id).type) return r; } return null; }; t.addRed = function(t, e, o, n) { var c = e.getChildByName("redpoint"); if (c) c.active || (o ? c.active = !0 : i.default.getNowTime() - c.getComponent(r.default).time > 600 && (c.active = !0)); else { (c = new cc.Node("redpoint")).addComponent(cc.Sprite).spriteFrame = t.RED_POINT; c.addComponent(r.default); c.parent = e; var a = t.RED_POINT.getRect(); if (n) { c.x = -(e.width - a.width) / 2; c.y = (e.height - a.height) / 2; } else { c.x = (e.width - a.width) / 2; c.y = (e.height - a.height) / 2; } } }; t.removeRed = function(t) { var e = t.getChildByName("redpoint"); if (e) { e.active = !1; e.getComponent(r.default).time = i.default.getNowTime(); } }; return t; }(); o.default = c; cc._RF.pop(); }, { "../../util/CUtil": "CUtil", "./FFCalAttr": "FFCalAttr", "./RedNode": "RedNode" } ], RemoveModou: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a1cbbuIhm5H1KdZ0eiv89G2", "RemoveModou"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./BaseEvent"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mPetId = 1; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.ff.main.player.getPet(this.mPetId) && this.node.destroy(); }; r([ p({ displayName: "解救伙伴后移除道具" }) ], e.prototype, "mPetId", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "./BaseEvent": "BaseEvent" } ], Revenge: [ function(t, e, o) { "use strict"; cc._RF.push(e, "31222h37ZNCI6Q4Ks6lKx0L", "Revenge"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../../util/CHttp"), s = t("../../../util/CUtilTime"), p = t("../../common/GoodItem"), l = t("../TopMenu"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.title = null; e.itemList = []; e.goldIcon = null; e.diamondIcon = null; e.lbnum = null; e.revengeTime = null; e.revengeData = null; e.clickIndex = 1; e.curClickNode = null; e.buyClickFunc = null; return e; } e.prototype.setBuyClickFunc = function(t) { this.buyClickFunc = t; }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.getRevengeData = function() { var t = this; this.main.gameHttp.sendJson("revenge/v1/data", {}, function(e, o) { t.main.stopLoad(); if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) { console.log("==reve=revengeData===", o); t.revengeData = o.data.list[0]; t.initItem(); t.show(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.initItem = function() { var t = this; this.title.string = this.revengeData.name; this.goldIcon.active = 2 == this.revengeData.needType; this.diamondIcon.active = 1 == this.revengeData.needType; this.lbnum.string = this.revengeData.needCount; this.itemList.forEach(function(e, o) { var i = e.getChildByName("item"), n = i.getChildByName("icon").getComponent(cc.Sprite), r = i.getChildByName("lbname").getComponent(cc.Label), c = e.getChildByName("clickIcon"); i.getChildByName("count").getComponent(cc.Label).string = t.revengeData["reveCount" + o]; if (0 == o) { var a = 1 == t.revengeData.reveType0 ? "3002" : "3001"; t.initIcon(n, "good/" + a); } else if (3 == t.revengeData["reveType" + o]) { t.initIcon(n, "equip/" + t.revengeData["reveId" + o]); var s = t.main.sManage.getEquipById(t.revengeData["reveId" + o]); r.string = s.name; } else t.initIcon(n, "good/" + t.revengeData["reveId" + o]); if (1 == o) { c.active = !0; t.curClickNode = c; } 0 != o && e.getComponent(p.default).setCallback(function() { t.curClickNode.active = !1; c.active = !0; t.curClickNode = c; t.clickIndex = o; }); }); }; e.prototype.refreshTime = function(t) { this.revengeTime && (this.revengeTime.string = s.default.getTimeString2(t) + "后消失"); }; e.prototype.initIcon = function(t, e) { cc.resources.load("icon/" + e, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.spriteFrame = o; }); }; e.prototype.onClickBuy = function() { var t = this, e = { id: this.revengeData.id, index: this.clickIndex - 1 }; this.main.gameHttp.sendJson("revenge/v1/buy", e, function(e, o) { t.main.stopLoad(); if (e == a.HttpStateType.SUCCESS) if (0 == o.retCode) { t.buyClickFunc && t.buyClickFunc(); t.exitDistroy(); t.main.showReward(o); t.main.topNode.getComponent(l.default).refresh(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; r([ h(cc.Label) ], e.prototype, "title", void 0); r([ h(cc.Node) ], e.prototype, "itemList", void 0); r([ h(cc.Node) ], e.prototype, "goldIcon", void 0); r([ h(cc.Node) ], e.prototype, "diamondIcon", void 0); r([ h(cc.Label) ], e.prototype, "lbnum", void 0); r([ h(cc.Label) ], e.prototype, "revengeTime", void 0); return r([ f ], e); }(c.default); o.default = d; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../../util/CHttp": "CHttp", "../../../util/CUtilTime": "CUtilTime", "../../common/GoodItem": "GoodItem", "../TopMenu": "TopMenu" } ], RewardView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "bc829Zc3iRKWYuOSY2Y2Tyl", "RewardView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewObject"), a = t("../home/card/item/CardItem"), s = t("./GoodItem"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mGoodItem = null; e.mContent = null; e.mComm = null; e.mGodCard = null; e.mCardItem = null; e.mTitle = null; e.mAbout = null; e.addList = []; return e; } e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.init = function(t) { for (var e = 0, o = 0; o < t.length; o++) { var i = t[o]; if (i.type <= 3) { var n = cc.instantiate(this.mGoodItem); n.parent = this.mContent; var r = n.getComponent(s.default); r.initReward(this.main, i); if (i.name) { r.mContrast.node.active = !0; r.mContrast.string = i.name; } e++; } else this.addList.push(i); } if (e <= 0) this.exitDistroy(); else { this.mComm.active = !0; this.mGodCard.active = !1; } }; e.prototype.exitDistroy = function() { if (this.addList.length <= 0) t.prototype.exitDistroy.call(this); else { this.mComm.active = !1; this.mGodCard.active = !0; var e = this.addList.shift(); this.mCardItem.init(this.main, e.data); } }; e.prototype.setCloseCallback = function(t) { this.closeCallback = t; }; r([ u(cc.Prefab) ], e.prototype, "mGoodItem", void 0); r([ u(cc.Node) ], e.prototype, "mContent", void 0); r([ u(cc.Node) ], e.prototype, "mComm", void 0); r([ u(cc.Node) ], e.prototype, "mGodCard", void 0); r([ u(a.default) ], e.prototype, "mCardItem", void 0); r([ u(cc.Label) ], e.prototype, "mTitle", void 0); r([ u(cc.Label) ], e.prototype, "mAbout", void 0); return r([ l ], e); }(c.default); o.default = f; cc._RF.pop(); }, { "../../main/ViewObject": "ViewObject", "../home/card/item/CardItem": "CardItem", "./GoodItem": "GoodItem" } ], RoleFrameView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "07e0571gTdL7YDHBLwWgncG", "RoleFrameView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../data/FFCalAttr"), s = t("./RoleIconItem"), p = t("./IconInfoView"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mFrameIcon = null; e.mZdl = null; e.iconInfoView = null; e.tapRole = null; return e; } e.prototype.onLoad = function() { this.iconInfoView.main = this.main; this.iconInfoView.roleFrameView = this; this.iconInfoView.openType = 2; this.init(); }; e.prototype.init = function() { for (var t = this, e = this.main.sManage.getRoleIcon(), o = void 0, i = this.main.player.role.frame, n = 0; n < e.length; n++) { var r = e[n]; if (2 == r.type) { var c = cc.instantiate(this.mFrameIcon), a = c.getComponent(s.default); a.roleIcon = r; a.mIcon.node.active = !1; a.loadFrame(this.main); a.flushLock(this.main); c.parent = this.mContent; a.setCallback(function(e) { t.openInfo(e); }); i == r.id && (o = a); } } o || (o = this.mContent.children[0].getComponent(s.default)); this.flush(o); }; e.prototype.flush = function(t) { this.iconInfoView.initFrame(this.main, t); for (var e = { atk: 0, def: 0, hp: 0, sp: 0 }, o = this.main.player.roleIcon.open, i = 0; i < o.length; i++) { var n = o[i]; if (n >= 200 && n < 300) { var r = this.main.sManage.getRoleIconById(n); e.atk += r.atk; e.def += r.def; e.hp += r.hp; e.sp += r.sp; } } var c = a.default.getZdl(e); this.mZdl.string = "" + c; var p = this.mContent.children; for (i = 0; i < p.length; i++) { var l = p[i].getComponent(s.default); l.roleIcon.id != this.main.player.role.frame ? l.setCheck(!1) : l.setCheck(!0); } }; e.prototype.openInfo = function(t) { this.flush(t); t.mCheck.active = !0; for (var e = t.node.parent.children, o = 0; o < e.length; o++) { var i = e[o].getComponent(s.default); i != t && (i.mCheck.active = !1); } }; r([ f(cc.Node) ], e.prototype, "mContent", void 0); r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0); r([ f(cc.Label) ], e.prototype, "mZdl", void 0); r([ f(p.default) ], e.prototype, "iconInfoView", void 0); return r([ u ], e); }(c.default); o.default = h; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../data/FFCalAttr": "FFCalAttr", "./IconInfoView": "IconInfoView", "./RoleIconItem": "RoleIconItem" } ], RoleIconItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a4ec7E5HQ5Hq58S+W6QmCKD", "RoleIconItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mFrame = null; e.mCheck = null; e.mLock = null; return e; } e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback && this.callback(this); }; e.prototype.loadIcon = function(t) { var e = this; this.mCheck.active = !1; this.mLock.active = !1; cc.resources.load("icon/role_head/" + this.roleIcon.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); if (t) { var o = t.player.role, i = t.sManage.getRoleIconById(o.frame); i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mFrame.spriteFrame = o; }); } }; e.prototype.loadFrame = function(t) { var e = this; this.mCheck.active = !1; this.mLock.active = !1; cc.resources.load("icon/role_head/txk/" + this.roleIcon.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mFrame.spriteFrame = o; }); if (this.mIcon) { var o = t.player.role, i = t.sManage.getRoleIconById(o.icon); i && cc.resources.load("icon/role_head/" + i.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mIcon.spriteFrame = o; }); } }; e.prototype.flushFrame = function(t) { var e = this, o = t.player, i = t.sManage.getRoleIconById(o.role.frame); i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.mFrame.spriteFrame = o; }); }; e.prototype.flush = function(t) { this.loadIcon(null); this.flushLock(t); }; e.prototype.flushLock = function(t) { t.player.roleIcon.open.indexOf(this.roleIcon.id) < 0 ? this.mLock.active = !0 : this.mLock.active = !1; }; e.prototype.setCheck = function(t) { this.mCheck && (this.mCheck.active = t); }; r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ s(cc.Sprite) ], e.prototype, "mFrame", void 0); r([ s(cc.Node) ], e.prototype, "mCheck", void 0); r([ s(cc.Node) ], e.prototype, "mLock", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], RoleIconView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f437f+STJZN65mMF2dKQbIk", "RoleIconView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../data/FFCalAttr"), s = t("./RoleIconItem"), p = t("./IconInfoView"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mFrameIcon = null; e.mZdl = null; e.iconInfoView = null; e.tapRole = null; return e; } e.prototype.onLoad = function() { this.iconInfoView.main = this.main; this.iconInfoView.roleIconView = this; this.iconInfoView.openType = 1; this.init(); }; e.prototype.init = function() { for (var t = this, e = this.main.sManage.getRoleIcon(), o = void 0, i = this.main.player.role.icon, n = 0; n < e.length; n++) { var r = e[n]; if (1 == r.type) { var c = cc.instantiate(this.mFrameIcon), a = c.getComponent(s.default); a.roleIcon = r; a.flush(this.main); c.parent = this.mContent; a.setCallback(function(e) { t.openInfo(e); }); i == r.id && (o = a); } } o || (o = this.mContent.children[0].getComponent(s.default)); this.flush(o); }; e.prototype.flush = function(t) { this.iconInfoView.init(this.main, t); for (var e = { atk: 0, def: 0, hp: 0, sp: 0 }, o = this.main.player.roleIcon.open, i = 0; i < o.length; i++) { var n = o[i]; if (n < 200) { var r = this.main.sManage.getRoleIconById(n); e.atk += r.atk; e.def += r.def; e.hp += r.hp; e.sp += r.sp; } } var c = a.default.getZdl(e); this.mZdl.string = "" + c; var p = this.mContent.children; for (i = 0; i < p.length; i++) { var l = p[i].getComponent(s.default); l.roleIcon.id != this.main.player.role.icon ? l.setCheck(!1) : l.setCheck(!0); } }; e.prototype.openInfo = function(t) { this.flush(t); t.mCheck.active = !0; for (var e = t.node.parent.children, o = 0; o < e.length; o++) { var i = e[o].getComponent(s.default); i != t && (i.mCheck.active = !1); } }; r([ f(cc.Node) ], e.prototype, "mContent", void 0); r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0); r([ f(cc.Label) ], e.prototype, "mZdl", void 0); r([ f(p.default) ], e.prototype, "iconInfoView", void 0); return r([ u ], e); }(c.default); o.default = h; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../data/FFCalAttr": "FFCalAttr", "./IconInfoView": "IconInfoView", "./RoleIconItem": "RoleIconItem" } ], RoleTitleItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "d32d12YZQ9JLbX+/jiqomQT", "RoleTitleItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mName = null; e.mLock = null; return e; } e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback && this.callback(this); }; e.prototype.init = function() { var t = this; this.mName.string = this.roleIcon.name; cc.resources.load("icon/role_head/ch/" + this.roleIcon.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mIcon.spriteFrame = o; }); }; e.prototype.flushLock = function(t) { t.player.roleIcon.data.indexOf(this.roleIcon.id) < 0 ? this.mLock.active = !0 : this.mLock.active = !1; }; r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ s(cc.Label) ], e.prototype, "mName", void 0); r([ s(cc.Node) ], e.prototype, "mLock", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], RoleTitleView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7e74587H9tIoaM8LqNS8Ev7", "RoleTitleView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../data/FFCalAttr"), s = t("./RoleTitleItem"), p = t("./TitleInfoView"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mContent = null; e.mFrameIcon = null; e.mContentHas = null; e.mTitleInfoView = null; e.mZdl = null; return e; } e.prototype.init = function() { for (var t = this, e = this.main.sManage.getRoleIcon(), o = 0; o < e.length; o++) { var i = e[o]; if (3 == i.type) { var n = cc.instantiate(this.mFrameIcon), r = n.getComponent(s.default); r.roleIcon = i; r.init(); r.flushLock(this.main); n.parent = this.mContent; r.setCallback(function(e) { t.openInfo(e); }); } } var c = this.mContent.children[0].getComponent(s.default); this.flush(c); }; e.prototype.flush = function(t) { this.mTitleInfoView.init(this.main, t); for (var e = { atk: 0, def: 0, hp: 0, sp: 0 }, o = this.main.player.roleIcon.open, i = 0; i < o.length; i++) { var n = o[i]; if (n >= 400 && n < 400) { var r = this.main.sManage.getRoleIconById(n); e.atk += r.atk; e.def += r.def; e.hp += r.hp; e.sp += r.sp; } } var c = a.default.getZdl(e); this.mZdl.string = "" + c; }; e.prototype.openInfo = function(t) { this.mTitleInfoView.init(this.main, t); }; r([ f(cc.Node) ], e.prototype, "mContent", void 0); r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0); r([ f(cc.Node) ], e.prototype, "mContentHas", void 0); r([ f(p.default) ], e.prototype, "mTitleInfoView", void 0); r([ f(cc.Label) ], e.prototype, "mZdl", void 0); return r([ u ], e); }(c.default); o.default = h; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../data/FFCalAttr": "FFCalAttr", "./RoleTitleItem": "RoleTitleItem", "./TitleInfoView": "TitleInfoView" } ], SManage: [ function(t, e, o) { "use strict"; cc._RF.push(e, "12930sLojdMS4RJKMFibLMs", "SManage"); Object.defineProperty(o, "__esModule", { value: !0 }); var i = t("../../../i18n/i18n"), n = function() { function t(t) { this.roleDataMap = new Map(); this.roleIcons = []; this.goodMap = new Map(); this.equipMap = new Map(); this.equipQHMap = new Map(); this.attrMap = new Map(); this.skillMap = new Map(); this.monsterMap = new Map(); this.sceneLists = null; this.stageLists = null; this.godCards = null; this.magicBoxs = null; this.payDatas = null; this.taskLists = null; this.initRoleData(t.roleData); this.roleIcons = t.roleIcon; this.initGood(t.good); this.initEquip(t.equip); this.initEquipQH(t.equipQH); this.initEquipAttr(t.eAttr); this.initSkillData(t.skill); this.initMonster(t.monster); this.sceneLists = t.scene; this.stageLists = t.stage; this.initScene(); this.initGodCard(t.godCard); this.initGodCardLevel(t.godCardLevel); this.initGodReborn(t.godReborn); this.magicBoxs = t.magicBox; this.initMaigcBoxReward(t.magicBoxReward); this.payDatas = t.payData; this.taskLists = t.task; } t.prototype.initMaigcBoxReward = function(t) { for (var e = 0; e < this.magicBoxs.length; e++) for (var o = this.magicBoxs[e], i = 0; i < t.length; i++) { var n = t[i]; if (n.magicBoxId == o.rewardId) { null == o.list && (o.list = []); o.list.push(n); } } }; t.prototype.initGodReborn = function(t) { var e = this; t.forEach(function(t) { e.getGodCardById(t.godCardId).godReborn = t; }); }; t.prototype.initGodCardLevel = function(t) { for (var e = 0; e < t.length; e++) { var o = t[e], i = this.getGodCardById(o.godCardId); i.list || (i.list = []); i.list.push(o); } }; t.prototype.initGodCard = function(t) { this.godCards = t; }; t.prototype.initSkillData = function(t) { var e = this; t.forEach(function(t) { e.skillMap.set(t.id, t); }); }; t.prototype.getRoleIconById = function(t) { for (var e = 0; e < this.roleIcons.length; e++) { var o = this.roleIcons[e]; if (o.id == t) return o; } }; t.prototype.initRoleData = function(t) { var e = this; t.forEach(function(t) { e.roleDataMap.set(t.id, t); }); }; t.prototype.initGood = function(t) { var e = this; t.forEach(function(t) { e.goodMap.set(t.id, t); }); }; t.prototype.initEquipAttr = function(t) { var e = this; t.forEach(function(t) { e.attrMap.set(t.id, t); }); }; t.prototype.initEquip = function(t) { var e = this; t.forEach(function(t) { e.equipMap.set(t.id, t); }); }; t.prototype.initEquipQH = function(t) { var e = this; t.forEach(function(t) { var o = t.occ + "@" + t.type, i = e.equipQHMap.get(o); if (i) i.push(t); else { (i = []).push(t); e.equipQHMap.set(o, i); } }); }; t.prototype.initMonster = function(t) { var e = this; t.forEach(function(t) { e.monsterMap.set(t.id, t); }); }; t.prototype.initScene = function() { for (var t = 0; t < this.stageLists.length; t++) { var e = this.stageLists[t], o = this.getSceneById(e.zid); if (null == o.list) { o.list = []; o.startIndex = t; } o.list.push(e); } }; t.prototype.getGodCardById = function(t) { for (var e = 0; e < this.godCards.length; e++) { var o = this.godCards[e]; if (o.id == t) return o; } }; t.prototype.getSceneById = function(t) { for (var e = 0; e < this.sceneLists.length; e++) { var o = this.sceneLists[e]; if (o.id == t) return o; } }; t.prototype.getSceneByStage = function(t) { return null == t ? this.sceneLists[this.sceneLists.length - 1] : this.getSceneById(t.zid); }; t.prototype.getScene = function() { return this.sceneLists; }; t.prototype.getStage = function() { return this.stageLists; }; t.prototype.getStageByIndex = function(t) { return t >= this.stageLists.length ? null : this.stageLists[t]; }; t.prototype.getMonsterData = function(t) { var e = this.monsterMap.get(t); return { id: t, type: e.type, post: e.career, path: "prefab/monster/" + e.act, atk: e.atk, def: e.def, hp: e.hp, sp: e.sp, water: 0, fire: 0, wind: 0, thunder: 0, earth: 0, sd: 500, weaponSkill: 0, suitId: 0, suitCount: 0, attrs: [], zdl: 1, skin: null, weapon: null, bullet: null }; }; t.prototype.getGoodById = function(t) { return this.goodMap.get(parseInt(t)); }; t.prototype.getGoodById1 = function(t) { return this.goodMap.get(t); }; t.prototype.getEquipById = function(t) { return this.equipMap.get(t); }; t.prototype.getEquipAttrById = function(t) { return this.attrMap.get(t); }; t.prototype.getSkillById = function(t) { return this.skillMap.get(t); }; t.prototype.getRoleById = function(t) { return this.roleDataMap.get(t); }; t.prototype.getRoleIcon = function() { return this.roleIcons; }; t.prototype.getEquipQHByType = function(t) { return this.equipQHMap.get(t.occ + "@" + t.type); }; t.prototype.getRewards = function(t) { var e = [], o = t.data; if (null != o._role) { if (null != o._role._money && o._role._money > 0) { var n = { type: 0, icon: "icon/good/3001", count: o._role._money, id: 0, pz: 4, star: 0, name: i.default.t("金币") }; e.push(n); } if (null != o._role._gold && o._role._gold > 0) { n = { type: 1, icon: "icon/good/3002", count: o._role._gold, id: 0, pz: 5, star: 0, name: i.default.t("钻石") }; e.push(n); } if (null != o._role._power && o._role._power > 0) { n = { type: 1, icon: "icon/good/3003", count: o._role._power, id: 0, pz: 5, star: 0, name: i.default.t("体力") }; e.push(n); } } if (null != o._pack) for (var r = 0; r < o._pack.length; r++) if ((a = o._pack[r]).count > 0) { var c = this.getGoodById1(a.id); n = { type: 2, icon: "icon/good/" + c.icon, count: a.count, id: a.id, pz: c.pz, star: 0, name: i.default.t(c.name) }; e.push(n); } if (null != o._equip) for (r = 0; r < o._equip.length; r++) { var a = o._equip[r], s = this.getEquipById(a.id); n = { type: 3, icon: "icon/equip/" + s.icon, count: 0, id: a.id, pz: s.pz, PI: a.PI, star: a.star, _data: s, name: i.default.t(s.name) }; e.push(n); } if (null != o._godCard) for (r = 0; r < o._godCard.length; r++) { n = { type: 4, data: a = o._godCard[r], name: i.default.t("神卡") }; e.push(n); } return e; }; t.prototype.getRewardViews = function(t) { for (var e = [], o = 0; o < t.length; o++) { var i = t[o]; if (1 == i.type) { var n = { type: 0, icon: "icon/good/3001", count: i.value1, id: 0, pz: 3, star: 0, PR: i.PR }; e.push(n); } else if (2 == i.type) { n = { type: 1, icon: "icon/good/3002", count: i.value1, id: 0, pz: 5, star: 0, PR: i.PR }; e.push(n); } else if (3 == i.type) { var r = this.getGoodById1(i.value1); n = { type: 2, icon: "icon/good/" + r.icon, count: i.value2, id: i.id, pz: r.pz, star: 0, PR: i.PR }; e.push(n); } else if (4 == i.type) { var c = this.getEquipById(i.value1); n = { type: 3, icon: "icon/equip/" + c.icon, count: 0, id: i.id, pz: c.pz, PI: i.value3, star: 0, _data: c, PR: i.PR }; e.push(n); } } return e; }; return t; }(); o.default = n; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n" } ], SetLeader: [ function(t, e, o) { "use strict"; cc._RF.push(e, "565b24L5RdMBaA1d+vdefVE", "SetLeader"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../util/CHttp"), a = t("../../common/PetIcon"), s = t("./Equip"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mSetButton = null; e.equip = null; return e; } e.prototype.onLoad = function() { this.equip = this.node.getComponent(s.default); }; e.prototype.start = function() { this.flushLeader(); }; e.prototype.flushLeader = function() { for (var t = this.equip.main.player, e = this.equip.mPetList.children, o = 0; o < e.length; o++) { var i = e[o].getComponent(a.default); i.id == t.role.leader ? i.mLeaderIcon.active = !0 : i.mLeaderIcon.active = !1; } }; e.prototype.onclickSetLeader = function() { var t = this, e = this.equip.main, o = { leader: this.equip.curPi.id }; e.gameHttp.sendJson("set/v1/leader", o, function(i, n) { e.stopLoad(); if (i == c.HttpStateType.SUCCESS) if (0 == n.retCode) { e.player.role.leader = o.leader; t.flushLeader(); e.showTips("设置成功"); } else e.showTips(n.message); else e.showTips("网络异常"); }); }; r([ u(cc.Node) ], e.prototype, "mSetButton", void 0); return r([ l ], e); }(cc.Component); o.default = f; cc._RF.pop(); }, { "../../../util/CHttp": "CHttp", "../../common/PetIcon": "PetIcon", "./Equip": "Equip" } ], ShopAmethystItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c0666l2UBhKGZJeX+qGDfmG", "ShopAmethystItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.init = function(t) { this._buyPowerData = t; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], ShopCoinItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "db0abuVfrtBNY+L2R7BcOOb", "ShopCoinItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.addNum = null; e.diamondNum = null; e.diamond = null; e.video = null; e.maxCount = null; e.icon = null; e.lbtime = null; e.shopId = 0; e.videoId = 0; e.videoMap = new Map(); return e; } e.prototype.init = function(t, e) { this._buyCoinData = t; this.shopId = t.id; this.addNum.string = "+" + (t.money + t.gave); this.video.active = 0 == t.gold; this.diamond.active = t.gold > 0; this.diamondNum.string = 0 == t.gold ? "免费" : t.gold + ""; if (t.maxCount < 0) this.maxCount.node.active = !1; else { var o = e[this.shopId] ? e[this.shopId] : 0; this.maxCount.string = "剩余次数" + (t.maxCount - o); } if (0 == t.gold) { o = e[this.shopId] ? e[this.shopId] : 0; this.videoMap[this.shopId] = t.maxCount - o; this.videoId = this.shopId; } this.initIcon(t.id); }; e.prototype.initIcon = function(t) { var e = this; cc.resources.load("icon/shop/money/" + t, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.icon.spriteFrame = o; }); }; e.prototype.refresh = function(t) { this.videoMap[t]--; this.maxCount.string = "剩余次数" + this.videoMap[t]; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ s(cc.Label) ], e.prototype, "addNum", void 0); r([ s(cc.Label) ], e.prototype, "diamondNum", void 0); r([ s(cc.Node) ], e.prototype, "diamond", void 0); r([ s(cc.Node) ], e.prototype, "video", void 0); r([ s(cc.Label) ], e.prototype, "maxCount", void 0); r([ s(cc.Sprite) ], e.prototype, "icon", void 0); r([ s(cc.Node) ], e.prototype, "lbtime", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], ShopPandoraItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e5f50DyGyxBWLVW2v3DMVDk", "ShopPandoraItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = { 1001: "包含1件普通、精良、稀有的物品", 1002: "包含1件稀有、史诗、传说的物品", 1003: "包含10件稀有、史诗、传说的物品" }, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.lbdesc = null; e.lbtime = null; e.lbtext = null; e.videoNum = null; e.diamondNum = null; e.diamondButtom = null; e.videoButtom = null; e.icon = null; e.lbname = null; e.shopId = 0; e.videoMap = new Map(); e.drawMap = new Map(); e.pandoraDrawCount = 0; e.needAmethyst = 0; return e; } e.prototype.init = function(t, e) { this._buyPandoraData = t; this.shopId = t.id; this.lbdesc.string = p[t.id]; this.lbname.string = t.name; if (t.adCount > 0) { var o = e.data[t.id] ? e.data[t.id] : 0; if (t.adCount - o > 0) { this.videoMap[String(t.id)] = "" + (t.adCount - o); this.videoNum.string = "" + (t.adCount - o); this.videoButtom.active = !0; this.diamondButtom.active = !1; } else { this.videoButtom.active = !1; this.diamondButtom.active = !0; this.diamondNum.string = "" + t.goodId; } } else { this.videoButtom.active = !1; this.diamondButtom.active = !0; this.diamondNum.string = "" + t.goodId; } this.lbtime.node.active = t.flushTime > 0; this.initIcon(t.id); this.initText(t.id, e); }; e.prototype.initText = function(t, e) { if (1001 == t) { this.lbtext.node.active = !1; this.pandoraDrawCount = 1; } else if (1002 == t) { this.pandoraDrawCount = 1; var o = e.count ? e.count : 0; this.drawMap[t] = 10 - o; this.lbtext.string = "" + (10 - o) + "次内必得传说物品"; } else if (1003 == t) { this.pandoraDrawCount = 10; this.lbtext.string = "必得传说物品"; } this.needAmethyst = this._buyPandoraData.goodId; }; e.prototype.initIcon = function(t) { var e = this; cc.resources.load("icon/magic_box/" + t, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.icon.spriteFrame = o; }); }; e.prototype.refresh = function(t) { if (this.videoMap[t]) { this.videoMap[t]--; if (0 == this.videoMap[t]) { this.videoButtom.active = !1; this.diamondButtom.active = !0; this.diamondNum.string = "" + this._buyPandoraData.goodId; } else this.videoNum.string = this.videoMap[t]; } }; e.prototype.refreshDraw = function(t) { if (this.drawMap[t]) { this.drawMap[t]--; 0 == this.drawMap[t] && (this.drawMap[t] = 10); this.lbtext.string = "" + this.drawMap[t] + "次内必得传说物品"; } }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ s(cc.RichText) ], e.prototype, "lbdesc", void 0); r([ s(cc.Label) ], e.prototype, "lbtime", void 0); r([ s(cc.RichText) ], e.prototype, "lbtext", void 0); r([ s(cc.Label) ], e.prototype, "videoNum", void 0); r([ s(cc.Label) ], e.prototype, "diamondNum", void 0); r([ s(cc.Node) ], e.prototype, "diamondButtom", void 0); r([ s(cc.Node) ], e.prototype, "videoButtom", void 0); r([ s(cc.Sprite) ], e.prototype, "icon", void 0); r([ s(cc.Label) ], e.prototype, "lbname", void 0); return r([ a ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, {} ], ShopPowerItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b1f046q8zZNlIbRE15h/RDz", "ShopPowerItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.addNum = null; e.diamondNum = null; e.diamond = null; e.video = null; e.maxCount = null; e.icon = null; e.lbtime = null; e.shopId = 0; e.videoId = 0; e.videoMap = new Map(); return e; } e.prototype.init = function(t, e) { this._buyPowerData = t; this.shopId = t.id; this.addNum.string = "+" + t.power; this.video.active = 0 == t.gold; this.diamond.active = t.gold > 0; this.diamondNum.string = 0 == t.gold ? "免费" : t.gold + ""; if (t.maxCount < 0) this.maxCount.node.active = !1; else { var o = e[this.shopId] ? e[this.shopId] : 0; this.maxCount.string = "剩余次数" + (t.maxCount - o); } if (0 == t.gold) { o = e[this.shopId] ? e[this.shopId] : 0; this.videoMap[this.shopId] = t.maxCount - o; this.videoId = this.shopId; } this.initIcon(t.id); }; e.prototype.initIcon = function(t) { var e = this; cc.resources.load("icon/shop/vigor/" + t, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e.icon.spriteFrame = o; }); }; e.prototype.refresh = function(t) { this.videoMap[t]--; this.maxCount.string = "剩余次数" + this.videoMap[t]; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ s(cc.Label) ], e.prototype, "addNum", void 0); r([ s(cc.Label) ], e.prototype, "diamondNum", void 0); r([ s(cc.Node) ], e.prototype, "diamond", void 0); r([ s(cc.Node) ], e.prototype, "video", void 0); r([ s(cc.Label) ], e.prototype, "maxCount", void 0); r([ s(cc.Sprite) ], e.prototype, "icon", void 0); r([ s(cc.Node) ], e.prototype, "lbtime", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], ShopView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "b9eb6IHQndFE7rarDYVSY6G", "ShopView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c, a = t("../../../main/ViewManage"), s = t("../../../main/ViewObject"), p = t("../../../pay/FqPay"), l = t("../../../util/CHttp"), u = t("../../pay/PayShopItem"), f = t("../TopMenu"), h = t("./ShopCoinItem"), d = t("./ShopPandoraItem"), m = t("./ShopPowerItem"); (function(t) { t.marketMoney = "marketMoney"; t.marketPower = "marketPower"; t.pandora = "pandora"; })(c || (c = {})); var y = cc._decorator, v = y.ccclass, g = y.property, _ = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.insetContent = null; e.content = null; e.payItem = null; e.powerItem = null; e.coinItem = null; e.pandoraItem = null; e.amethystNode = null; e.diamondNode = null; e.powerTips = null; e.curInsetNode = null; e.curInsetNum = 104; e.shopData = null; e.pandoraData = null; e.shopPandoraItem = null; e.pandorId = 0; e.pandoraDrawCount = 1; e.needAmethyst = 0; e._isClick = !1; e.itemList = new Map(); return e; } e.prototype.httpEvent = function(t) { null != t.data._pack && this.refreshAmethyst(); }; e.prototype.init = function(t) { var e = this; void 0 === t && (t = 104); this.main.topNode.getComponent(f.default).forbidBtn(!1); this.curInsetNum = t; this.curInsetNode = this.insetContent.getChildByName(t + ""); this.powerTips.active = 102 == Number(t); this.changeStatus(this.curInsetNode, !0); this.changeLayout(this.curInsetNum); this.refreshAmethyst(); this.refreshDiamond(); this.getPandoraData(function() { 104 == t && e.pandoraView(); }); this.getShopData(function() { 102 == t ? e.powerView() : 103 == t && e.coinView(); }); 101 == t && this.payView(); }; e.prototype.getShopData = function(t) { var e = this; this.main.gameHttp.sendJson("marketMoney/v1/data", {}, function(o, i) { e.main.stopLoad(); if (o == l.HttpStateType.SUCCESS) if (0 == i.retCode) { console.log("==reve=getShopData===", i); e.shopData = i.data; t && t(); } else e.main.showTips(i.message); else e.main.showTips("网络异常"); }); }; e.prototype.getPandoraData = function(t) { var e = this; this.main.gameHttp.sendJson("pandora/v1/data", {}, function(o, i) { e.main.stopLoad(); if (o == l.HttpStateType.SUCCESS) if (0 == i.retCode) { console.log("==reve=getPandoraData===", i); e.pandoraData = i.data; t && t(); } else e.main.showTips(i.message); else e.main.showTips("网络异常"); }); }; e.prototype.buy = function(t, e, o) { var i = this, n = { id: e }; this.main.gameHttp.sendJson(t + "/v1/buy", n, function(e, n) { i.main.stopLoad(); if (e == l.HttpStateType.SUCCESS) if (0 == n.retCode) { console.log("==reve==buy==", n); i.main.playerEffectByPath(a.AudioMgr.gift); i.main.showReward(n); o && o(); } else t == c.pandora && 600501 == n.retCode ? i.showExchangeAmethystView() : i.main.showTips(n.message); else i.main.showTips("网络异常"); i._isClick = !1; }); }; e.prototype.playVideo = function(t, e) { var o = "", i = ""; if (102 == this.curInsetNum) { o = p.UM_EVENT_ID.ad_power_0; i = p.UM_EVENT_ID.ad_power_1; } else if (103 == this.curInsetNum) { o = p.UM_EVENT_ID.ad_money_0; i = p.UM_EVENT_ID.ad_money_1; } else if (104 == this.curInsetNum) if (1001 == e) { o = p.UM_EVENT_ID.ad_pdl_t_0; i = p.UM_EVENT_ID.ad_pdl_t_1; } else if (1002 == e) { o = p.UM_EVENT_ID.ad_pdl_m_0; i = p.UM_EVENT_ID.ad_pdl_m_1; } new p.default(this.main).adVideo(t, o, i); }; e.prototype.showList = function(t, e) { this.itemList[t] && this.itemList[t].length && this.itemList[t].forEach(function(t) { t.active = !1; }); this.itemList[e] && this.itemList[e].length && this.itemList[e].forEach(function(t) { t.active = !0; }); }; e.prototype.isCreatorItem = function(t) { var e = !0; this.itemList[t] && (e = !1); return e; }; e.prototype.payView = function() { var t = this; if (this.isCreatorItem(101)) for (var e = this.main.sManage.payDatas, o = 0; o < e.length; o++) { var i = e[o]; if (1 == i.type) { var n = cc.instantiate(this.payItem); n.parent = this.content; this.itemList[101] || (this.itemList[101] = []); this.itemList[101].push(n); var r = n.getComponent(u.default); r.init(i, this.main); r.setCallback(function(e) { new p.default(t.main).pay(e._payData, function() { t.refreshDiamond(); t.itemList[101].forEach(function(t) { t.getComponent(u.default).showFirstGave(); }); }); }); } } }; e.prototype.powerView = function() { var t = this; this.isCreatorItem(102) && this.shopData.marketPowerData.forEach(function(e, o) { var i = cc.instantiate(t.powerItem); i.parent = t.content; t.itemList[102] || (t.itemList[102] = []); t.itemList[102].push(i); var n = i.getComponent(m.default); n.lbtime.active = 0 == o; n.init(e, t.shopData.playerMarketPower); n.setCallback(function(e) { console.log("===buy power==="); if (e.shopId == e.videoId) e.videoMap[e.shopId] ? t.playVideo(function(o) { 1 == o ? t.buy(c.marketPower, e.shopId, function() { e.refresh(e.shopId); }) : t.main.showTips("广告还未准备好"); }, e.shopId) : t.main.showTips("今日广告次数已用完"); else { if (t._isClick) { t.main.showTips("当前操作过于频繁!"); return; } t._isClick = !0; t.buy(c.marketPower, e.shopId, function() { t.refreshDiamond(); }); } }); }); }; e.prototype.coinView = function() { var t = this; this.isCreatorItem(103) && this.shopData.marketMoneyData.forEach(function(e, o) { var i = cc.instantiate(t.coinItem); i.parent = t.content; t.itemList[103] || (t.itemList[103] = []); t.itemList[103].push(i); var n = i.getComponent(h.default); n.lbtime.active = 0 == o; n.init(e, t.shopData.playerMarketMoney); n.setCallback(function(e) { console.log("====buy coin======", e.shopId); if (e.shopId == e.videoId) e.videoMap[e.shopId] ? t.playVideo(function(o) { 1 == o ? t.buy(c.marketMoney, e.shopId, function() { e.refresh(e.shopId); }) : t.main.showTips("广告还未准备好"); }, e.shopId) : t.main.showTips("今日广告次数已用完"); else { if (t._isClick) { t.main.showTips("当前操作过于频繁!"); return; } t._isClick = !0; t.buy(c.marketMoney, e.shopId, function() { t.refreshDiamond(); }); } }); }); }; e.prototype.pandoraView = function() { var t = this; this.isCreatorItem(104) && this.pandoraData.pandoraData.forEach(function(e) { var o = cc.instantiate(t.pandoraItem); o.parent = t.content; t.itemList[104] || (t.itemList[104] = []); t.itemList[104].push(o); var i = o.getComponent(d.default); i.init(e, t.pandoraData.playerPandora); i.setCallback(function(e) { console.log("====buy pandora======"); t.pandoraDrawCount = e.pandoraDrawCount; t.needAmethyst = e.needAmethyst; t.pandorId = e.shopId; t.shopPandoraItem = e; if (e.videoMap[e.shopId]) t.playVideo(function(o) { 1 == o ? t.buy(c.pandora, e.shopId, function() { e.refreshDraw(e.shopId); e.refresh(e.shopId); }) : t.main.showTips("广告还未准备好"); }, e.shopId); else { if (t._isClick) { t.main.showTips("当前操作过于频繁!"); return; } t._isClick = !0; t.buy(c.pandora, e.shopId, function() { e.refreshDraw(e.shopId); t.refreshAmethyst(); }); } }); }); }; e.prototype.changeStatus = function(t, e) { if (e) { t.getChildByName("liang").active = !0; t.getChildByName("an").active = !1; } else { t.getChildByName("liang").active = !1; t.getChildByName("an").active = !0; } }; e.prototype.changeLayout = function(t) { var e = this.content.getComponent(cc.Layout); if (101 == t) { e.paddingLeft = 10; e.paddingTop = 0; } else if (104 == t || 102 == t || 103 == t) { e.paddingLeft = 30; e.paddingTop = 80; } }; e.prototype.refreshAmethyst = function() { var t = this.main.player.getGoodCount(1009); this.amethystNode.getChildByName("lbamethyst").getComponent(cc.Label).string = " " + t; }; e.prototype.refreshDiamond = function() { var t = this.main.player.role.gold; this.diamondNode.getChildByName("lbdiamond").getComponent(cc.Label).string = " " + t; }; e.prototype.showExchangeAmethystView = function() { var t = this; this.main.viewManage.loadFunc(a.GameViewType.exchangeAmethyst, function(e) { var o = e; o.show(); o.init(t.pandoraDrawCount, t.needAmethyst, function() { t.buy(c.pandora, t.pandorId, function() { t.shopPandoraItem.refreshDraw(t.pandorId); t.refreshAmethyst(); t.refreshDiamond(); }); }); }); }; e.prototype.onClickInset = function(t, e) { if (this.curInsetNum != Number(e)) { this.changeStatus(this.curInsetNode, !1); this.changeStatus(t.target, !0); this.changeLayout(Number(e)); this.curInsetNode = t.target; var o = this.curInsetNum; this.showList(o, Number(e)); this.curInsetNum = Number(e); this.powerTips.active = 102 == Number(e); 101 == Number(e) ? this.payView() : 102 == Number(e) ? this.powerView() : 103 == Number(e) ? this.coinView() : 104 == Number(e) && this.pandoraView(); } }; e.prototype.onClose = function() { this.main.topNode.getComponent(f.default).forbidBtn(!0); this.exitDistroy(); }; r([ g(cc.Node) ], e.prototype, "insetContent", void 0); r([ g(cc.Node) ], e.prototype, "content", void 0); r([ g(cc.Prefab) ], e.prototype, "payItem", void 0); r([ g(cc.Prefab) ], e.prototype, "powerItem", void 0); r([ g(cc.Prefab) ], e.prototype, "coinItem", void 0); r([ g(cc.Prefab) ], e.prototype, "pandoraItem", void 0); r([ g(cc.Node) ], e.prototype, "amethystNode", void 0); r([ g(cc.Node) ], e.prototype, "diamondNode", void 0); r([ g(cc.Node) ], e.prototype, "powerTips", void 0); return r([ v ], e); }(s.default); o.default = _; cc._RF.pop(); }, { "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../pay/FqPay": "FqPay", "../../../util/CHttp": "CHttp", "../../pay/PayShopItem": "PayShopItem", "../TopMenu": "TopMenu", "./ShopCoinItem": "ShopCoinItem", "./ShopPandoraItem": "ShopPandoraItem", "./ShopPowerItem": "ShopPowerItem" } ], SkillBase: [ function(t, e, o) { "use strict"; cc._RF.push(e, "09cc4g7w7hNJ6g3BPdse3Rh", "SkillBase"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../AI/AIBase"), a = t("../FSprite"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.ID = 0; e.CD = 3e3; e.range = 1e3; e.speed = 500; e.continued = 2e3; e.time = 0; return e; } e.prototype.onLoad = function() { this.sprite = this.node.getComponent(a.default); this.AI = this.node.getComponent(c.default); }; e.prototype.ready = function() { var t = new Date().getTime(); if (0 == this.time) { this.time = t; return !1; } return t - this.time > this.CD; }; e.prototype.exe = function() {}; r([ l({ displayName: "技能编号" }) ], e.prototype, "ID", void 0); r([ l({ displayName: "技能CD时间(毫秒)" }) ], e.prototype, "CD", void 0); r([ l({ displayName: "有效射程" }) ], e.prototype, "range", void 0); r([ l({ displayName: "移动速度" }) ], e.prototype, "speed", void 0); r([ l({ displayName: "技能持续的时间(毫秒)" }) ], e.prototype, "continued", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../AI/AIBase": "AIBase", "../FSprite": "FSprite" } ], SkillCharge: [ function(t, e, o) { "use strict"; cc._RF.push(e, "43006c//c1PH7KiQMi1bz87", "SkillCharge"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CMath"), a = t("../FSprite"), s = t("../PSprite"), p = t("./ChargeCollision"), l = t("./SkillBase"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mRedGo = null; e.dtime = 2; e.ctime = .7; return e; } e.prototype.onLoad = function() { t.prototype.onLoad.call(this); this.mRedGo.active = !1; }; e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); this.mRedGo.active = !0; var i = this.node.getPosition(), n = t.node.getPosition(), r = c.default.getAngle(i, n); this.mRedGo.angle = 180 * r / Math.PI; t instanceof s.default && t.tangentMove(this.sprite.node); cc.tween(this.node).sequence(cc.delayTime(this.dtime), cc.callFunc(function() { o.mRedGo.active = !1; o.moveGO(r, e); })).start(); }; e.prototype.moveGO = function(t, e) { var o = this; this.sprite.playAction(a.SpriteActionType.atk, !1, function() { o.AI.walk(o.range); }); var i = cc.v2(), n = this.mRedGo.width; i.x = n * Math.cos(t); i.y = n * Math.sin(t); var r = this.node.getComponent(cc.PhysicsBoxCollider), c = new cc.Node(); c.x = this.node.x; c.y = this.node.y; c.group = "bullet"; var s = c.addComponent(cc.RigidBody); s.type = cc.RigidBodyType.Dynamic; s.enabledContactListener = !0; var l = c.addComponent(cc.PhysicsBoxCollider); l.sensor = !0; l.size = r.size.clone(); l.offset = r.offset.clone(); c.addComponent(p.default).skillBase = this; c.parent = this.sprite.ff.mMap.mSprites; cc.tween(this.node).sequence(cc.moveBy(this.ctime, i), cc.callFunc(function() {})).start(); cc.tween(c).sequence(cc.moveBy(this.ctime, i), cc.callFunc(function() { c.destroy(); e(); })).start(); }; r([ h({ type: cc.Node, displayName: "预警显示" }) ], e.prototype, "mRedGo", void 0); r([ h({ displayName: "预警延时" }) ], e.prototype, "dtime", void 0); r([ h({ displayName: "冲刺消耗的时间" }) ], e.prototype, "ctime", void 0); return r([ f ], e); }(l.default); o.default = d; cc._RF.pop(); }, { "../../../../util/CMath": "CMath", "../FSprite": "FSprite", "../PSprite": "PSprite", "./ChargeCollision": "ChargeCollision", "./SkillBase": "SkillBase" } ], SkillFixed: [ function(t, e, o) { "use strict"; cc._RF.push(e, "14f4cXX6/ZHFphrrohFfXC/", "SkillFixed"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../FSprite"), p = t("./SkillBase"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.count = 1; e.btime = 1; e.mBullet = null; return e; } e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), p = cc.instantiate(i); p.angle = this.sprite.wAngle; p.setPosition(c); p.parent = this.sprite.node; var l = p.getComponent(sp.Skeleton); l.setCompleteListener(function() { l.setCompleteListener(null); p.destroy(); e(); }); l.findAnimation("skill") ? l.setAnimation(0, "skill", !1) : l.setAnimation(0, "atk", !1); this.sprite.playAction(s.SpriteActionType.atk, !1, function() { o.AI.walk(o.range); }); for (var u = t.node.getPosition(), f = 0; f < this.count; f++) this.fire(f, u); }; e.prototype.fire = function(t, e) { this.fireBullet(t, e); }; e.prototype.fireBullet = function(t, e) { for (var o = this, i = 0; i < this.count; i++) cc.tween(this).sequence(cc.delayTime(i * this.btime), cc.callFunc(function() { o.fireBulletByTime(t, e); })).start(); }; e.prototype.fireBulletByTime = function(t, e) { var o = cc.instantiate(this.mBullet); o.group = "bullet"; var i = this.sprite, n = i.node.x + i.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = i.node.y + i.mAtkSite.worldY, s = cc.v2(n, r); o.setPosition(s); var p = o.getComponent(a.default); p.setSprite(this.sprite); p.speed = this.speed; o.parent = this.sprite.map.mSprites; var l = o.getPosition(), u = c.default.getAngle(l, e); p._skillData = this._skillData; p.fireAngle(u); }; r([ f({ displayName: "每次攻击子弹数量" }) ], e.prototype, "count", void 0); r([ f({ displayName: "每颗子弹间隔时间" }) ], e.prototype, "btime", void 0); r([ f({ type: cc.Prefab, displayName: "子弹" }) ], e.prototype, "mBullet", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../../util/CMath": "CMath", "../../bullet/BObject": "BObject", "../FSprite": "FSprite", "./SkillBase": "SkillBase" } ], SkillRotate: [ function(t, e, o) { "use strict"; cc._RF.push(e, "74e235lIGJIUJJ+tvV2bgpd", "SkillRotate"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../FSprite"), p = t("./SkillBase"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.count = 10; e.btime = .1; e.rotate = .2; e.mBullet = null; return e; } e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), p = cc.instantiate(i); p.angle = this.sprite.wAngle; p.setPosition(c); p.parent = this.sprite.node; var l = p.getComponent(sp.Skeleton); l.setCompleteListener(function() { l.setCompleteListener(null); p.destroy(); e(); }); l.findAnimation("skill") ? l.setAnimation(0, "skill", !1) : l.setAnimation(0, "atk", !1); this.sprite.playAction(s.SpriteActionType.atk, !1, function() { o.AI.walk(o.range); }); for (var u = t.node.getPosition(), f = 0; f < this.count; f++) this.fire(f, u); }; e.prototype.fire = function(t, e) { var o = this; cc.tween(this).sequence(cc.delayTime(t * this.btime), cc.callFunc(function() { o.fireBullet(t, e); })).start(); }; e.prototype.fireBullet = function(t, e) { var o = cc.instantiate(this.mBullet); o.group = "bullet"; var i = this.node.x + this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, n = this.node.y + this.sprite.mAtkSite.worldY, r = cc.v2(i, n); o.setPosition(r); var s = o.getComponent(a.default); s.setSprite(this.sprite); s.speed = this.speed; o.parent = this.sprite.map.mSprites; var p = o.getPosition(), l = c.default.getAngle(p, e); l += (t - this.count / 2) * this.rotate; s.fireAngle(l); }; r([ f({ displayName: "每次发射子弹数量" }) ], e.prototype, "count", void 0); r([ f({ displayName: "每颗子弹间隔时间" }) ], e.prototype, "btime", void 0); r([ f({ displayName: "每颗子弹旋转弧度" }) ], e.prototype, "rotate", void 0); r([ f({ type: cc.Prefab, displayName: "子弹" }) ], e.prototype, "mBullet", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../../util/CMath": "CMath", "../../bullet/BObject": "BObject", "../FSprite": "FSprite", "./SkillBase": "SkillBase" } ], SkillShotgun: [ function(t, e, o) { "use strict"; cc._RF.push(e, "ddb52BbjXJDaIxVSJx3OpjY", "SkillShotgun"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../util/CMath"), a = t("../../bullet/BObject"), s = t("../FSprite"), p = t("./SkillBase"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.count = 10; e.rotate = .2; e.bcount = 3; e.btime = .2; e.mBullet = null; return e; } e.prototype.exe = function(t, e) { var o = this; this.time = new Date().getTime(); this.sprite.setDir({ x: 0, y: 0 }); var i = cc.instantiate(this.mBullet).getComponent(a.default).mStartEffect, n = this.sprite.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = this.sprite.mAtkSite.worldY, c = cc.v2(n, r), p = cc.instantiate(i); p.angle = this.sprite.wAngle; p.setPosition(c); p.parent = this.sprite.node; var l = p.getComponent(sp.Skeleton); l.setCompleteListener(function() { l.setCompleteListener(null); p.destroy(); e(); }); l.findAnimation("skill") ? l.setAnimation(0, "skill", !1) : l.setAnimation(0, "atk", !1); this.sprite.playAction(s.SpriteActionType.atk, !1, function() { o.AI.walk(o.range); }); for (var u = t.node.getPosition(), f = 0; f < this.count; f++) this.fire(f, u); }; e.prototype.fire = function(t, e) { this.fireBullet(t, e); }; e.prototype.fireBullet = function(t, e) { for (var o = this, i = 0; i < this.bcount; i++) cc.tween(this).sequence(cc.delayTime(i * this.btime), cc.callFunc(function() { o.fireBulletByTime(t, e); })).start(); }; e.prototype.fireBulletByTime = function(t, e) { var o = cc.instantiate(this.mBullet); o.group = "bullet"; var i = this.sprite, n = i.node.x + i.mAtkSite.worldX * this.sprite.spine.node.scaleX, r = i.node.y + i.mAtkSite.worldY, s = cc.v2(n, r); o.setPosition(s); var p = o.getComponent(a.default); p.setSprite(this.sprite); p.speed = this.speed; o.parent = this.sprite.map.mSprites; var l = o.getPosition(), u = c.default.getAngle(l, e); u += (t - Math.floor(this.count / 2)) * this.rotate; p._skillData = this._skillData; p.fireAngle(u); }; r([ f({ displayName: "每次发射方向数" }) ], e.prototype, "count", void 0); r([ f({ displayName: "每方向旋转弧度" }) ], e.prototype, "rotate", void 0); r([ f({ displayName: "每个方向多少颗子弹" }) ], e.prototype, "bcount", void 0); r([ f({ displayName: "每个子弹间隔时间" }) ], e.prototype, "btime", void 0); r([ f({ type: cc.Prefab, displayName: "子弹" }) ], e.prototype, "mBullet", void 0); return r([ u ], e); }(p.default); o.default = h; cc._RF.pop(); }, { "../../../../util/CMath": "CMath", "../../bullet/BObject": "BObject", "../FSprite": "FSprite", "./SkillBase": "SkillBase" } ], StageFail: [ function(t, e, o) { "use strict"; cc._RF.push(e, "084fdK0+95KnIXNwRaKsRgI", "StageFail"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../main/ViewManage"), a = t("../../../../main/ViewObject"), s = t("../../../data/FFCalAttr"), p = t("../../../fight/object/FSprite"), l = t("../../equip/Equip"), u = cc._decorator, f = u.ccclass, h = u.property, d = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mSite = null; return e; } e.prototype.onLoad = function() { var t = this, e = this.main.sManage, o = this.main.player, i = e.getRoleById(o.role.leader), n = o.getPet(o.role.leader + ""); this.mSite.destroyAllChildren(); var r = s.default.getAttr(this.main, n); cc.resources.load("prefab/role/" + i.act, cc.Prefab, function(e, o) { if (e) cc.error(e); else { var i = cc.instantiate(o); i.parent = t.mSite; var n = i.getChildByName("juese01"), c = n.getChildByName("spineRight").getComponent(sp.Skeleton), a = c.findBone("control"); if (a) { a.data.rotation = 0; a.rotation = 0; } n.children[0].active = !1; c.setSkin(r.skin); l.default.chaneWeapon(c, r.weapon); c.setAnimation(0, p.SpriteActionType.dead, !1); } }); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclickOK = function() { this.main.topNode.active = !0; cc.sys.localStorage.getItem("showRevenge" + this.main.player.role.id) || cc.sys.localStorage.setItem("showRevenge" + this.main.player.role.id, 1); this.main.playMusicByPath(c.AudioMgr.homeMusic); this.exitDistroy(); this.callback && this.callback(); }; r([ h(cc.Node) ], e.prototype, "mSite", void 0); return r([ f ], e); }(a.default); o.default = d; cc._RF.pop(); }, { "../../../../main/ViewManage": "ViewManage", "../../../../main/ViewObject": "ViewObject", "../../../data/FFCalAttr": "FFCalAttr", "../../../fight/object/FSprite": "FSprite", "../../equip/Equip": "Equip" } ], StageInfoGood: [ function(t, e, o) { "use strict"; cc._RF.push(e, "f8d85n4NHxK4LURc8jhIhhC", "StageInfoGood"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mIcon = null; e.mGoodCount = null; e.stageInfo = null; return e; } e.prototype.onLoad = function() { for (var t = this.stageInfo.getGoods(), e = 0; e < t.length; e++) t[e]; }; e.prototype.getCount = function(t) { var e = this.stageInfo.main.player.stage["" + this.stageInfo.stageData.id]; if (null == e) return 0; if (null == e.goods) return 0; for (var o = 0; o < e.goods.length; o++) { var i = e.goods[o]; if (i.id == t) return i.count; } return 0; }; r([ s(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ s(cc.Label) ], e.prototype, "mGoodCount", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], StageInfoTask: [ function(t, e, o) { "use strict"; cc._RF.push(e, "53022jpe9xNWJo5dEvYmlYD", "StageInfoTask"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; e.text = "hello"; return e; } e.prototype.start = function() {}; r([ s(cc.Label) ], e.prototype, "label", void 0); r([ s ], e.prototype, "text", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], StageInfo: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5711eubOpdMtL9tiTEdqoOk", "StageInfo"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = t("../../../../main/ViewManage"), s = t("../../../../main/ViewObject"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mSceneName = null; e.mStageName = null; e.mStageAbout = null; e.mStar = null; e.mStarx = []; e.mGoodIcon1 = null; e.mGood1 = null; e.mGoodIcon2 = null; e.mGood2 = null; e.mGoodIcon3 = null; e.mGood3 = null; e.mTask = null; e.mStartNode = null; e.mGuideLayout = null; e.inGuide = 0; e.tempIndex = 1; return e; } e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.onLoad = function() { var t = this, e = this.main.sManage.getSceneById(this.stageData.zid); this.mSceneName.string = c.default.t(e.name); this.mStageName.string = c.default.t(this.stageData.name); this.mStageAbout.string = c.default.t(this.stageData.about); var o = this.main.sManage, i = o.getGoodById1(this.stageData.goodId1); cc.resources.load("icon/good/" + i.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mGoodIcon1.spriteFrame = o; }); var n = o.getGoodById1(this.stageData.goodId2); cc.resources.load("icon/good/" + n.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mGoodIcon2.spriteFrame = o; }); var r = o.getGoodById1(this.stageData.goodId3); cc.resources.load("icon/good/" + r.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mGoodIcon3.spriteFrame = o; }); this.flush(); for (var a = this.getStarCount(), s = this.mStar.children, p = 0; p < s.length; p++) { s[p].getComponent(cc.Sprite).spriteFrame = p < a ? this.mStarx[1] : this.mStarx[0]; } 2 == this.inGuide && this.openGuide1(); }; e.prototype.openGuide1 = function() { this.mGuideLayout.active = !0; for (var t = this.mGuideLayout.children, e = 2; e < t.length; e++) t[e].active = !1; }; e.prototype.openGuide2 = function() { var t = this.main.mGuideMask; t.setTargetNode(this.mStartNode); t.show(); this.setGuideCallback(function() { t.close(); }); }; e.prototype.getStarCount = function() { var t = this.main.player.stage, e = t.data[this.stageData.id], o = 0; t.stageIndex > this.stageData.id - 1 && o++; if (null != e) { this.getCount(this.stageData.goodId1) >= this.stageData.goodCount1 && o++; this.getCount(this.stageData.goodId2) >= this.stageData.goodCount2 && o++; } return o; }; e.prototype.flush = function() { var t = this.getCount(this.stageData.goodId1); this.mGood1.string = t + "/" + this.stageData.goodCount1; var e = this.getCount(this.stageData.goodId2); this.mGood2.string = e + "/" + this.stageData.goodCount2; var o = this.getCount(this.stageData.goodId3); this.mGood3.string = o + "/" + this.stageData.goodCount3; }; e.prototype.getCount = function(t) { var e = this.main.player.stage.data[this.stageData.id]; if (e && e.good) { var o = e.good["" + t]; return null == o ? 0 : o; } return 0; }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.setGuideCallback = function(t) { this.guideCallback = t; }; e.prototype.onclick = function() { this.exitDistroy(); this.callback && this.callback(this); this.guideCallback && this.guideCallback(); }; e.prototype.onclickPet = function() { var t = this; this.main.viewManage.loadFunc(a.GameViewType.equip, function(e) { e.show(t); }); }; e.prototype.getGoods = function() { return [ { id: this.stageData.goodId1, count: this.stageData.goodCount1 }, { id: this.stageData.goodId2, count: this.stageData.goodCount2 }, { id: this.stageData.goodId3, count: this.stageData.goodCount3 } ]; }; e.prototype.onclickNextGuide = function() { this.tempIndex++; var t = this.mGuideLayout.children; if (this.tempIndex >= t.length) { this.openGuide2(); this.mGuideLayout.active = !1; } else { t[this.tempIndex - 1].active = !1; t[this.tempIndex].active = !0; } }; r([ u(cc.Label) ], e.prototype, "mSceneName", void 0); r([ u(cc.Label) ], e.prototype, "mStageName", void 0); r([ u(cc.Label) ], e.prototype, "mStageAbout", void 0); r([ u(cc.Node) ], e.prototype, "mStar", void 0); r([ u([ cc.SpriteFrame ]) ], e.prototype, "mStarx", void 0); r([ u(cc.Sprite) ], e.prototype, "mGoodIcon1", void 0); r([ u(cc.Label) ], e.prototype, "mGood1", void 0); r([ u(cc.Sprite) ], e.prototype, "mGoodIcon2", void 0); r([ u(cc.Label) ], e.prototype, "mGood2", void 0); r([ u(cc.Sprite) ], e.prototype, "mGoodIcon3", void 0); r([ u(cc.Label) ], e.prototype, "mGood3", void 0); r([ u(cc.Node) ], e.prototype, "mTask", void 0); r([ u(cc.Node) ], e.prototype, "mStartNode", void 0); r([ u(cc.Node) ], e.prototype, "mGuideLayout", void 0); return r([ l ], e); }(s.default); o.default = f; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n", "../../../../main/ViewManage": "ViewManage", "../../../../main/ViewObject": "ViewObject" } ], StageSuccess: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7d2f4qwG6pMOZIFCooILE+j", "StageSuccess"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mLevelName = null; return e; } e.prototype.init = function(t) { this.mLevelName.string = c.default.t(t.name); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclickOK = function() { this.exitDistroy(); this.callback && this.callback(); }; r([ l(cc.Label) ], e.prototype, "mLevelName", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n", "../../../../main/ViewObject": "ViewObject" } ], Stage: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c91a53dP19Lr5IR+0fpLEND", "Stage"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./result/StageFail"), a = t("./scene/minimap/MiniMap"), s = t("../../../main/ViewObject"), p = t("../../../util/CHttp"), l = t("../../../main/ViewManage"), u = t("../../fight/FF"), f = t("../../fight/FLoad"), h = t("../../fight/object/FObject"), d = t("../../fight/object/FSpriteTmpGood"), m = t("../../../i18n/i18n"), y = t("../../../pay/FqPay"), v = cc._decorator, g = v.ccclass, _ = v.property, b = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mSuccess = null; e.mFail = null; e.mMiniNode = null; e.mFlyStar = null; e.mBlockInput = null; e.tmpMMItem = null; e.inGuide = 0; e.miniMap = null; return e; } e.prototype.load = function(t) { var e = this; this.loadStageData(function(o) { if (0 == o) { e.main.player.role; var i = e.main.sManage, n = i.getStageByIndex(0), r = i.getSceneByStage(n); e.loadMiniMap(r, function(e) { t(e); }); } else t(o); }); }; e.prototype.loadStageData = function(t) { var e = this; null == this.main.player.stage ? this.main.gameHttp.sendJson("stage/v1/stageData", {}, function(o, i) { if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) { e.main.player.stage = i.data; t(0); } else { e.main.showTips(i.message); t(-2); } else { e.main.showTips("网络异常"); t(-1); } }) : t(0); }; e.prototype.openWorldMap = function() { var t = this; this.main.viewManage.loadFunc(l.GameViewType.worldMap, function(e) { e.stage = t; e.show(); }); }; e.prototype.openWordTask = function() { this.main.viewManage.loadFunc(l.GameViewType.wordTask, function(t) { t.show(); }); }; e.prototype.opendungeon = function() { this.main.viewManage.loadFunc(l.GameViewType.dungeon, function(t) { t.show(); }); }; e.prototype.initMiniMap = function() { var t = this; this.miniMap.setCallback(function(e) { t.onclick(e); }); }; e.prototype.loadMiniMap = function(t, e) { var o = this; cc.resources.load("prefab/home/stage/scene/minimap/" + t.id, cc.Prefab, function(i, n) { if (i) { cc.error(i); e(-4); } else { var r = cc.instantiate(n); o.miniMap = r.getComponent(a.default); o.miniMap.stage = o; o.miniMap.sceneData = t; r.parent = o.mMiniNode; o.initMiniMap(); e(0); } o.main.stopLoad(); }); }; e.prototype.onclick = function(t) { var e = this; this.main.viewManage.loadFunc(l.GameViewType.stageInfo, function(o) { var i = o; i.stageData = t._stageData; i.inGuide = e.inGuide; e.inGuide = 0; i.setCallback(function(o) { e.tmpMMItem = t; e.openFF(o.stageData); }); o.show(); }); }; e.prototype.openFF = function(t) { var e = this, o = { id: t.id }; this.main.gameHttp.sendJson("stage/v1/openStage", o, function(o, i) { e.main.stopLoad(); if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) { e.main.topNode.active = !1; e.main.viewManage.loadFunc(l.GameViewType.fight, function(o) { o.show(e); var i = o; i.mFFheader.init(i, t); e.regEvent(i); cc.tween(cc.delayTime(.1)).call(function() { f.default.loadMap(i, t, function(t) { i.loadMap(t); var o = e.main.player.getFight(e.main); f.default.loadRole(i, o, function(t) { i.loadRole(t); }); }); }).start(); }); } else e.main.showTips(i.message); else e.main.showTips("网络异常"); }); }; e.prototype.regEvent = function(t) { var e = this; t.regClearCallback(function(o) { if (o.node.group == h.GroupType.A) { if (o == t.mainSprite) { t.pauseSprite(!0); if (t.isBack) e.fail(t); else { t.isBack = !0; e.showFHDialog(t); } } } else e.killMonster(o); }); t.regExitCallback(function() { t.pauseSprite(!0); e.success(t); }); }; e.prototype.showFHDialog = function(t) { var e = this; this.main.startLoad(); this.main.viewManage.loadFunc(l.GameViewType.fight_dialog_box, function(o) { e.main.stopLoad(); var i = o; i.mContent.string = m.default.t("需要原地复活吗?"); i.setOKCallback(function() { i.exitDistroy(); e.deadNode = e.fail(t); e.showADVideo(t); }); i.setCancelCallback(function() { i.exitDistroy(); e.fail(t); }); o.show(); }); }; e.prototype.showADVideo = function(t) { var e = this, o = new y.default(this.main), i = this; o.adVideo(function(o) { if (1 == o) { e.deadNode.exitDistroy(); e.deadNode = null; t.fuhuo(); t.pauseSprite(!1); } else -1 == o ? i.main.showTips("广告还未加载好,请稍后在试") : i.main.showTips("广告播放未完成"); }, y.UM_EVENT_ID.ad_fuhuo_0, y.UM_EVENT_ID.ad_fuhuo_1); }; e.prototype.killMonster = function(t) { var e = this, o = { monsterId: t.id }, i = t.node.getPosition(), n = t.ff; this.main.gameHttp.sendJson("stage/v1/stageMonster", o, function(t, o) { e.main.stopLoad(); if (t == p.HttpStateType.SUCCESS) if (0 == o.retCode) { var r = e.main.sManage.getRewards(o); n.addGoods(r, i); } else e.main.showTips(o.message); else e.main.showTips("网络异常"); }); var r = t.node.getComponent(d.default); r && t.ff.addGoodToMap(r.goodId, r.node.getPosition()); }; e.prototype.success = function(t) { var e = this; t.ffResultType = u.FF_Result_Type.win; var o = { stageId: t.mFFheader.stageData.id }; this.main.gameHttp.sendJson("stage/v1/beatStage", o, function(o, i) { if (o == p.HttpStateType.SUCCESS) if (0 == i.retCode) { null != i.data.stageIndex && (e.main.player.stage.stageIndex = i.data.stageIndex); t.exitDistroy(); e.getStarReward(); } else { t.exitDistroy(); e.main.showTips(i.message); } else { t.exitDistroy(); e.main.showTips("网络异常"); } }); }; e.prototype.fail = function(t) { if (t.ffResultType == u.FF_Result_Type.none) { t.ffResultType = u.FF_Result_Type.fail; var e = cc.instantiate(this.mFail).getComponent(c.default); e.main = this.main; e.show(); e.setCallback(function() { t.exitDistroy(); }); return e; } }; e.prototype.getStarReward = function() { var t = this.tmpMMItem; if (t) { var e = t.starCount, o = t.getStarCount1(); this.starFly(e, o); } }; e.prototype.starFly = function(t, e) { var o = this; this.mBlockInput.active = !0; if (t >= e) { this.mBlockInput.active = !1; this.getReward(); } else { var i = this.tmpMMItem, n = i.mStarNode.children[t].convertToWorldSpaceAR(cc.v2(0, 0)), r = cc.instantiate(this.mFlyStar); r.parent = this.mMiniNode; r.x = n.x - cc.winSize.width / 2; r.y = n.y + cc.winSize.height / 2; this.main.playerEffectByPath(l.AudioMgr.star); cc.tween(r).sequence(cc.moveTo(.3, n).easing(cc.easeIn(.3)), cc.callFunc(function() { i.setStar(t); cc.tween(i.node).sequence(cc.scaleTo(.1, 1.3).easing(cc.easeOut(.1)), cc.scaleTo(.1, 1).easing(cc.easeIn(.1))).start(); }), cc.delayTime(.1), cc.callFunc(function() { t++; o.starFly(t, e); }), cc.destroySelf()).start(); } }; e.prototype.getReward = function() { var t = this.tmpMMItem, e = t.starCount, o = t.getStarCount1(); e >= o || this.getReward1(e, o); }; e.prototype.getReward1 = function(t, e) { var o = this; if (!(t >= e)) { var i = this.tmpMMItem, n = { stageId: i._stageData.id }; this.main.startLoad(); this.main.gameHttp.sendJson("stage/v1/starReward", n, function(n, r) { o.main.stopLoad(); if (n == p.HttpStateType.SUCCESS) if (0 == r.retCode) { var c = o.main.player.stage; c.data[i._stageData.id] = r.data._stage; var a = c.data[i._stageData.id]; i.starCount = a.starCount; o.main.showReward(r, function() { t++; o.getReward1(t, e); }, "通关奖励", [ "获得一星奖励", "获得二星奖励", "获得三星奖励" ][t]); } else o.main.showTips(r.message); else o.main.showTips("网络异常"); }); } }; r([ _(cc.Prefab) ], e.prototype, "mSuccess", void 0); r([ _(cc.Prefab) ], e.prototype, "mFail", void 0); r([ _(cc.Node) ], e.prototype, "mMiniNode", void 0); r([ _({ displayName: "飞行的星星", type: cc.Prefab }) ], e.prototype, "mFlyStar", void 0); r([ _({ displayName: "事件拦截层", type: cc.Node }) ], e.prototype, "mBlockInput", void 0); return r([ g ], e); }(s.default); o.default = b; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../main/ViewManage": "ViewManage", "../../../main/ViewObject": "ViewObject", "../../../pay/FqPay": "FqPay", "../../../util/CHttp": "CHttp", "../../fight/FF": "FF", "../../fight/FLoad": "FLoad", "../../fight/object/FObject": "FObject", "../../fight/object/FSpriteTmpGood": "FSpriteTmpGood", "./result/StageFail": "StageFail", "./scene/minimap/MiniMap": "MiniMap" } ], SysData: [ function(t, e, o) { "use strict"; cc._RF.push(e, "e425ajU8s9GUZ109zIh6jIf", "SysData"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/Main"), a = t("./sdata/SManage"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.jsonAsset = null; return e; } e.prototype.onLoad = function() { var t = this.node.getComponent(c.default), e = this.jsonAsset.json; t.sManage = new a.default(e); }; r([ l(cc.JsonAsset) ], e.prototype, "jsonAsset", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../main/Main": "Main", "./sdata/SManage": "SManage" } ], TapController: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0a2a2mDrl9MqIIy3trkukjg", "TapController"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; return e; } e.prototype.onLoad = function() {}; e.prototype.start = function() {}; r([ p(cc.Label) ], e.prototype, "label", void 0); return r([ s ], e); }(c.default); o.default = l; cc._RF.pop(); }, { "../../main/ViewObject": "ViewObject" } ], TapRoleName: [ function(t, e, o) { "use strict"; cc._RF.push(e, "7a889ycEGhD+ZuHEl7ZddR8", "TapRoleName"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = t("../../main/ViewObject"), s = t("../../util/CHttp"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mEditBox = null; e.mCount = null; e.mFreeNode = null; e.mGoldNode = null; e.mGoldCount = null; e.tapRole = null; return e; } e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.start = function() { var t = this.main.player.role; this.mName.string = t.name; this.mCount.string = c.default.t("第{value}次改名", { value: t.renameCount + 1 }); if (t.renameCount <= 0) { this.mFreeNode.active = !0; this.mGoldNode.active = !1; } else { this.mFreeNode.active = !1; this.mGoldNode.active = !0; } }; e.prototype.onclickRename = function() { var t = this, e = { name: this.mEditBox.string }; this.main.gameHttp.sendJson("set/v1/name", e, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { t.main.player.role.name = t.mEditBox.string; t.exitDistroy(); t.main.showTips("改名成功"); t.tapRole.flush(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; r([ u(cc.Label) ], e.prototype, "mName", void 0); r([ u(cc.EditBox) ], e.prototype, "mEditBox", void 0); r([ u(cc.Label) ], e.prototype, "mCount", void 0); r([ u(cc.Node) ], e.prototype, "mFreeNode", void 0); r([ u(cc.Node) ], e.prototype, "mGoldNode", void 0); r([ u(cc.Label) ], e.prototype, "mGoldCount", void 0); return r([ l ], e); }(a.default); o.default = f; cc._RF.pop(); }, { "../../i18n/i18n": "i18n", "../../main/ViewObject": "ViewObject", "../../util/CHttp": "CHttp" } ], TapRole: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5697ecw2HNOKKj/mNmVxNd/", "TapRole"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = t("../../util/CMath"), p = t("./roleicon/RoleTitleItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mIcon = null; e.mFrame = null; e.mId = null; e.mFrameIcon = null; e.mContentHas = null; e.mZdl = null; return e; } e.prototype.onLoad = function() { var t = this.main.player; this.mName.string = t.role.name; this.mId.string = t.role.id; this.mZdl.string = "" + t.role.zdl; }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.onEnable = function() { this.flush(); }; e.prototype.flush = function() { var t = this, e = this.main.player; this.mName.string = e.role.name; var o = this.main.sManage.getRoleIconById(e.role.icon); o && cc.resources.load("icon/role_head/" + o.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mIcon.spriteFrame = o; }); var i = this.main.sManage.getRoleIconById(e.role.frame); i && cc.resources.load("icon/role_head/txk/" + i.icon, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.mFrame.spriteFrame = o; }); this.flushTitle(); }; e.prototype.flushTitle = function() { for (var t = this.main.player.roleIcon.open, e = this.mContentHas.children, o = t.slice(), i = e.length - 1; i >= 0; i--) { var n = (u = e[i]).getComponent(p.default); t.indexOf(n.roleIcon.id) < 0 && u.destroy(); for (var r = 0; r < o.length; r++) if (o[r] == n.roleIcon.id) { o.splice(r, 1); break; } } var c = this.mContentHas.width / 2 - 100, a = this.mContentHas.height / 2 - 30; for (i = 0; i < o.length; i++) { var l = o[i]; if (l >= 300) { var u; (u = cc.instantiate(this.mFrameIcon)).x = s.default.getRandom(-c, c); u.y = s.default.getRandom(-a, a); var f = u.getComponent(p.default), h = this.main.sManage.getRoleIconById(l); f.roleIcon = h; f.init(); f.mLock.active = !1; u.parent = this.mContentHas; } } }; e.prototype.onclickRename = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.tap_role_name, function(e) { e.tapRole = t; e.show(t); }); }; e.prototype.onclickIcon = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.role_icon_view, function(e) { e.tapRole = t; e.show(t); }); }; e.prototype.onclickFrame = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.role_frame_view, function(e) { e.tapRole = t; e.show(t); }); }; e.prototype.onclickTitle = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.role_title_view, function(e) { e.init(); e.show(t); }); }; r([ f(cc.Label) ], e.prototype, "mName", void 0); r([ f(cc.Sprite) ], e.prototype, "mIcon", void 0); r([ f(cc.Sprite) ], e.prototype, "mFrame", void 0); r([ f(cc.Label) ], e.prototype, "mId", void 0); r([ f(cc.Prefab) ], e.prototype, "mFrameIcon", void 0); r([ f(cc.Node) ], e.prototype, "mContentHas", void 0); r([ f(cc.Label) ], e.prototype, "mZdl", void 0); return r([ u ], e); }(a.default); o.default = h; cc._RF.pop(); }, { "../../main/ViewManage": "ViewManage", "../../main/ViewObject": "ViewObject", "../../util/CMath": "CMath", "./roleicon/RoleTitleItem": "RoleTitleItem" } ], TapSetMusic: [ function(t, e, o) { "use strict"; cc._RF.push(e, "91abe7vGPRPs6o0MRoAE3Yr", "TapSetMusic"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mMusicSprite1 = null; e.mMusicSprite2 = null; e.mON = null; e.mOFF = null; e.mMusicSlider1 = null; e.mMusicSlider2 = null; return e; } e.prototype.onLoad = function() { this.mMusicSlider1.node.on("slide", this.s1Callback, this); this.mMusicSlider2.node.on("slide", this.s2Callback, this); this.flush(); }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.flush = function() { var t = this.main.player.setting; t.music_ON_OFF_1 ? this.mMusicSprite1.spriteFrame = this.mON : this.mMusicSprite1.spriteFrame = this.mOFF; t.music_ON_OFF_2 ? this.mMusicSprite2.spriteFrame = this.mON : this.mMusicSprite2.spriteFrame = this.mOFF; this.mMusicSlider1.progress = t.music_Slider_1; this.mMusicSlider2.progress = t.music_Slider_2; }; e.prototype.onclick1 = function() { var t = this.main.player.setting; t.music_ON_OFF_1 = !t.music_ON_OFF_1; this.flush(); t.music_ON_OFF_1 ? this.main.resumeMusic() : this.main.pauseMusic(); this.main.player.saveSetting(); }; e.prototype.conclick2 = function() { var t = this.main.player.setting; t.music_ON_OFF_2 = !t.music_ON_OFF_2; this.flush(); this.main.player.saveSetting(); }; e.prototype.s1Callback = function(t) { var e = this.main.player.setting; e.music_Slider_1 = t.progress; this.main.bgmId >= 0 && cc.audioEngine.setMusicVolume(e.music_Slider_1); this.main.player.saveSetting(); }; e.prototype.s2Callback = function(t) { this.main.player.setting.music_Slider_2 = t.progress; this.main.player.saveSetting(); }; e.prototype.exitLogin = function() { cc.director.loadScene("hotUpdate"); }; e.prototype.openNotice = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.tap_set_Ann, function(e) { e.show(t); }); }; r([ l(cc.Sprite) ], e.prototype, "mMusicSprite1", void 0); r([ l(cc.Sprite) ], e.prototype, "mMusicSprite2", void 0); r([ l(cc.SpriteFrame) ], e.prototype, "mON", void 0); r([ l(cc.SpriteFrame) ], e.prototype, "mOFF", void 0); r([ l(cc.Slider) ], e.prototype, "mMusicSlider1", void 0); r([ l(cc.Slider) ], e.prototype, "mMusicSlider2", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../main/ViewManage": "ViewManage", "../../main/ViewObject": "ViewObject" } ], TapSet: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2363fWaDWJOrrUxOwsB9a9m", "TapSet"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; e.text = "hello"; return e; } e.prototype.onclickMusic = function() { var t = this; this.main.viewManage.loadFunc(c.GameViewType.tap_set_music, function(e) { e.show(t); }); }; e.prototype.opentap_set_control = function() { this.main.viewManage.loadFunc(c.GameViewType.tap_set_control, function(t) { t.show(); }); }; e.prototype.opentap_set_Ann = function() { this.main.viewManage.loadFunc(c.GameViewType.tap_set_Ann, function(t) { t.show(); }); }; r([ l(cc.Label) ], e.prototype, "label", void 0); r([ l ], e.prototype, "text", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../main/ViewManage": "ViewManage", "../../main/ViewObject": "ViewObject" } ], Tap_set_Ann: [ function(t, e, o) { "use strict"; cc._RF.push(e, "0e14amDUH1Jy61EaoQP4OYX", "Tap_set_Ann"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../main/ViewObject"), a = t("../util/CHttp"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mTitle = null; e.mContent = null; return e; } e.prototype.onLoad = function() { var t = this, e = this.main.loginHttp; this.main.startLoad(); e.sendForm("/notice?channel=1", {}, function(e, o) { t.main.stopLoad(); if (e == a.HttpStateType.SUCCESS) { var i = JSON.parse(o.data); t.mTitle.string = i.title; t.mContent.string = i.content; } else t.main.showTips("网络异常"); }); }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; r([ l(cc.Label) ], e.prototype, "mTitle", void 0); r([ l(cc.Label) ], e.prototype, "mContent", void 0); return r([ p ], e); }(c.default); o.default = u; cc._RF.pop(); }, { "../main/ViewObject": "ViewObject", "../util/CHttp": "CHttp" } ], Tap_set_control: [ function(t, e, o) { "use strict"; cc._RF.push(e, "05784JCwllFtI+fngD+z24a", "Tap_set_control"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() {}; e.prototype.onclick = function() {}; return r([ s ], e); }(c.default)); o.default = p; cc._RF.pop(); }, { "../../main/ViewObject": "ViewObject" } ], Thorn: [ function(t, e, o) { "use strict"; cc._RF.push(e, "10b0eBE2ZBAI4Rb7QLOjX9m", "Thorn"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../object/FSprite"), a = t("../base/BaseEvent"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.monsterId = 1001; e.interval = 2; e.spine = null; e.isAtk = !1; e.isPause = !1; e.spriteList = []; return e; } e.prototype.start = function() { this.run(); }; e.prototype.update = function() { var t = this; if (this.ff.lockCamera) { if (!this.ff.lockCamera != this.isPause) { this.isPause = !1; this.spine.paused = !1; } } else if (!this.ff.lockCamera != this.isPause) { this.isPause = !0; this.spine.paused = !0; return; } this.isAtk && this.spriteList.forEach(function(e) { t.rmHP(e); }); }; e.prototype.rmHP = function(t) { if (!(t.isAtk || t.sprite.hp <= 0)) { t.isAtk = !0; var e = this.ff.main.sManage.getMonsterData(this.monsterId); t.sprite.bAtkjs(e); } }; e.prototype.run = function() { var t = this; this.spriteList.forEach(function(t) { t.isAtk = !1; }); cc.tween(this).sequence(cc.delayTime(this.interval), cc.callFunc(function() { t.playAtk(); })).start(); }; e.prototype.playAtk = function() { var t = this; this.isAtk = !0; this.spine.setAnimation(0, "atk", !1); this.spine.setCompleteListener(function() { t.isAtk = !1; t.spine.setCompleteListener(null); t.spine.setAnimation(0, "idle", !0); t.run(); }); }; e.prototype.onBeginContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); this.ff = i.ff; this.pushSprite(i); } }; e.prototype.onEndContact = function(t, e, o) { if ("A" == o.node.group) { var i = o.node.getComponent(c.default); this.removeSprite(i); } }; e.prototype.pushSprite = function(t) { for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e].sprite == t) return; this.spriteList.push({ isAtk: !1, sprite: t }); }; e.prototype.removeSprite = function(t) { for (var e = 0; e < this.spriteList.length; e++) if (this.spriteList[e].sprite == t) { this.spriteList.splice(e, 1); break; } }; r([ l({ displayName: "数值(怪物id)" }) ], e.prototype, "monsterId", void 0); r([ l({ displayName: "地刺出现间隔时间" }) ], e.prototype, "interval", void 0); r([ l({ type: sp.Skeleton, displayName: "地刺动画" }) ], e.prototype, "spine", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../object/FSprite": "FSprite", "../base/BaseEvent": "BaseEvent" } ], Tips: [ function(t, e, o) { "use strict"; cc._RF.push(e, "059a6cd229FtK+Oaz5NkzwU", "Tips"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = c.property, p = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; return e; } e.prototype.start = function() { var t = this; cc.tween(this.node).sequence(cc.delayTime(.3), cc.spawn(cc.moveBy(2, cc.v2(0, 60)).easing(cc.easeSineOut()), cc.fadeOut(2)), cc.callFunc(function() { t.node.destroy(); })).start(); }; e.prototype.setLabel = function(t) { this.label.string = t; }; r([ s(cc.RichText) ], e.prototype, "label", void 0); return r([ a ], e); }(cc.Component); o.default = p; cc._RF.pop(); }, {} ], TitleInfoView: [ function(t, e, o) { "use strict"; cc._RF.push(e, "9162bzo9uBN5oHdtcr2LKVb", "TitleInfoView"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../i18n/i18n"), a = t("../../../util/CHttp"), s = t("../../data/FFCalAttr"), p = t("./RoleTitleItem"), l = cc._decorator, u = l.ccclass, f = l.property, h = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mRoleIcon = null; e.mZdl = null; e.mAtk = null; e.mDef = null; e.mHp = null; e.mSp = null; e.mButtonIcon = null; e.mButtonLabel = null; e.mButtonIconFrame = []; e.roleTitleView = null; e.fip = null; return e; } e.prototype.init = function(t, e) { this.main = t; this.fip = e; var o = e.roleIcon; this.mRoleIcon.roleIcon = o; this.mRoleIcon.init(); this.mAtk.string = "" + o.atk; this.mDef.string = "" + o.def; this.mHp.string = "" + o.hp; this.mSp.string = "" + o.sp; var i = s.default.getZdl(o); this.mZdl.string = "" + i; this.flushButton(); }; e.prototype.initFrame = function(t, e) { this.main = t; this.fip = e; var o = e.roleIcon; this.mRoleIcon.roleIcon = o; this.mAtk.string = "" + o.atk; this.mDef.string = "" + o.def; this.mHp.string = "" + o.hp; this.mSp.string = "" + o.sp; var i = s.default.getZdl(o); this.mZdl.string = "" + i; this.flushButton(); }; e.prototype.flushButton = function() { var t = this.getStatus(); if (0 == t) { this.mButtonIcon.spriteFrame = this.mButtonIconFrame[2]; this.mButtonLabel.string = c.default.t("未获得"); } else if (1 == t) { this.mButtonIcon.spriteFrame = this.mButtonIconFrame[0]; this.mButtonLabel.string = c.default.t("卸下"); } else if (2 == t) { this.mButtonIcon.spriteFrame = this.mButtonIconFrame[1]; this.mButtonLabel.string = c.default.t("使用"); } }; e.prototype.getStatus = function() { var t = this.fip.roleIcon, e = this.main.player.roleIcon; return e.open.indexOf(t.id) >= 0 ? 1 : e.data.indexOf(t.id) >= 0 ? 2 : 0; }; e.prototype.onclick = function() { var t = this.getStatus(); 1 == t ? this.roleIconRemove() : 2 == t && this.roleIconActive(); }; e.prototype.roleIconActive = function() { var t = this, e = this.fip.roleIcon, o = { id: e.id }; this.main.gameHttp.sendJson("set/v1/activeIcon", o, function(o, i) { t.main.stopLoad(); if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) { t.main.player.roleIcon.open.push(e.id); t.main.showTips("使用成功"); t.flushButton(); } else t.main.showTips(i.message); else t.main.showTips("网络异常"); }); }; e.prototype.roleIconRemove = function() { var t = this, e = this.fip.roleIcon, o = { id: e.id }; this.main.gameHttp.sendJson("set/v1/removeTitle", o, function(o, i) { t.main.stopLoad(); if (o == a.HttpStateType.SUCCESS) if (0 == i.retCode) { for (var n = t.main.player.roleIcon.open, r = 0; r < n.length; r++) if (n[r] == e.id) { n.splice(r, 1); break; } t.flushButton(); t.main.showTips("卸下成功"); } else t.main.showTips(i.message); else t.main.showTips("网络异常"); }); }; r([ f(p.default) ], e.prototype, "mRoleIcon", void 0); r([ f(cc.Label) ], e.prototype, "mZdl", void 0); r([ f(cc.Label) ], e.prototype, "mAtk", void 0); r([ f(cc.Label) ], e.prototype, "mDef", void 0); r([ f(cc.Label) ], e.prototype, "mHp", void 0); r([ f(cc.Label) ], e.prototype, "mSp", void 0); r([ f(cc.Sprite) ], e.prototype, "mButtonIcon", void 0); r([ f(cc.Label) ], e.prototype, "mButtonLabel", void 0); r([ f([ cc.SpriteFrame ]) ], e.prototype, "mButtonIconFrame", void 0); return r([ u ], e); }(cc.Component); o.default = h; cc._RF.pop(); }, { "../../../i18n/i18n": "i18n", "../../../util/CHttp": "CHttp", "../../data/FFCalAttr": "FFCalAttr", "./RoleTitleItem": "RoleTitleItem" } ], TopMenu: [ function(t, e, o) { "use strict"; cc._RF.push(e, "c5197+gv+9FbK4+NofHOGnw", "TopMenu"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../main/ViewManage"), a = t("../../main/ViewObject"), s = t("../data/RedPoint"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.lbPower = null; e.lbCoin = null; e.lbDiamond = null; e.mEmailNode = null; e.home = null; return e; } e.prototype.onEnable = function() { this.refresh(); }; e.prototype.refresh = function() { var t = this.main.player.role; this.lbCoin.string = "" + t.money; this.lbDiamond.string = "" + t.gold; this.lbPower.string = t.power + "/30"; }; e.prototype.forbidBtn = function(t) { this.lbCoin.node.parent.getComponent(cc.Button).interactable = t; this.lbDiamond.node.parent.getComponent(cc.Button).interactable = t; this.lbPower.node.parent.getComponent(cc.Button).interactable = t; }; e.prototype.onclickSet = function() { this.main.playerEffectByPath(c.AudioMgr.click); this.main.viewManage.loadFunc(c.GameViewType.tap_set, function(t) { t.show(); }); }; e.prototype.openShop = function(t, e) { this.main.playerEffectByPath(c.AudioMgr.click); this.main.startLoad(); this.main.viewManage.loadFunc(c.GameViewType.tap_shop, function(t) { var o = t; o.init(Number(e)); o.show(); }); }; e.prototype.onclickMail = function() { this.main.playerEffectByPath(c.AudioMgr.click); this.main.startLoad(); s.default.removeRed(this.mEmailNode); this.main.viewManage.loadFunc(c.GameViewType.email, function(t) { t.show(); }); }; r([ u(cc.Label) ], e.prototype, "lbPower", void 0); r([ u(cc.Label) ], e.prototype, "lbCoin", void 0); r([ u(cc.Label) ], e.prototype, "lbDiamond", void 0); r([ u(cc.Node) ], e.prototype, "mEmailNode", void 0); return r([ l ], e); }(a.default); o.default = f; cc._RF.pop(); }, { "../../main/ViewManage": "ViewManage", "../../main/ViewObject": "ViewObject", "../data/RedPoint": "RedPoint" } ], ViewManage: [ function(t, e, o) { "use strict"; cc._RF.push(e, "55cd4aLA19Kl5ViM+3IP4E/", "ViewManage"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); o.AudioMgr = o.GameViewType = void 0; var c = t("./Main"), a = t("./ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property; o.GameViewType = cc.Enum({ login: "prefab/login/login", fqLogin: "prefab/login/fqLogin", historyArea: "prefab/area/myzone", allArea: "prefab/area/allzone", area: "prefab/area/area", home: "prefab/home/home", reward: "prefab/common/award", plot_view: "prefab/plot/plot_view", tap_role: "prefab/setting/tap_role", tap_role_name: "prefab/setting/tap_role_name", tap_shop: "prefab/home/shop/shop", tap_set: "prefab/setting/tap_set", tap_set_music: "prefab/setting/tap_set_music", tap_set_control: "prefab/setting/tap_set_control", tap_set_Ann: "prefab/setting/tap_set_Ann", role_icon_view: "prefab/setting/tap_role_head", role_frame_view: "prefab/setting/tap_role_headk", role_title_view: "prefab/setting/tap_role_headtiezhi", role_icon_info_view: "prefab/setting/frame_icon/icon_info", role_title_info_view: "prefab/setting/frame_icon/title_info", stageView: "prefab/home/stage/stage", stageInfo: "prefab/home/stage/info/stageInfo", worldMap: "prefab/home/stage/scene/wordMap", wordTask: "prefab/home/stage/scene/wordTask", wordTaskItem: "prefab/home/stage/scene/wordTaskItem", wordTaskItem_1: "prefab/home/stage/scene/wordTaskItem_1", dungeon: "prefab/home/dungeon/dungeon", fight: "prefab/fight/fight", fight_hd_zb: "prefab/common/hd_zb", fight_map_event_tips: "prefab/map/element/map_event_tips", fight_map_sjp_tips: "prefab/map/element/shuijingping", fight_dialog_box: "prefab/fight/ff_dialog", fight_auto_equip: "prefab/fight/ff_auto_equip", fight_zsj_tips: "prefab/fight/ff_tips", pack: "prefab/home/pack/beibao", god_card: "prefab/home/godcard/god_card_view", god_card_info: "prefab/home/godcard/card_about_view", god_card_star: "prefab/home/godcard/card_star_view", god_card_star_success: "prefab/home/godcard/card_star_success_view", equip: "prefab/home/equip/role_zb", mohe: "prefab/home/mohe/mohe", moheInfo: "prefab/home/mohe/magic_info_view", moheReward: "prefab/home/mohe/magic_reward_view", email: "prefab/home/mail/mail", emailInfo: "prefab/home/mail/mail_info", goodAbout: "prefab/home/pack/good_Info", goodEat: "prefab/home/pack/food_view", changeEquip: "prefab/home/equip/zb_gh", IntensifyEquip: "prefab/home/equip/equi_pintensify", petInfo: "prefab/home/equip/pet_info", exchangeAmethyst: "prefab/home/shop/lottery_sj", firstPay: "prefab/activity/1001_sc", wish: "prefab/activity/1002_mrlb", revenge: "prefab/activity/1003_fclb" }); o.AudioMgr = cc.Enum({ homeMusic: "music/bgm/home", openDoor: "music/01_woodendoor", getCoin: "music/01_money", box: "music/01_treasure", amethyst: "music/01_crystal", star: "music/01_star", wooden: "music/01_wooden", qh: "music/01_intensify", qh2: "music/01_pack", click: "music/BT_common", equip: "music/01_clad", gift: "music/01_purchase", blood: "music/01_blood", award: "music/01_award" }); var u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mLayer = null; e.mLayer1 = null; e.runclick = !1; return e; } e.prototype.onLoad = function() { this.main = this.node.getComponent(c.default); }; e.prototype.popView = function(t) { t.parent = this.mLayer; this.runclick = !1; }; e.prototype.popView1 = function(t) { t.parent = this.mLayer1; this.runclick = !1; }; e.prototype.loadFunc = function(t, e) { var o = this; if (!this.runclick) { this.runclick = !0; this.main.startLoad(); cc.resources.load(t, cc.Prefab, function(t, i) { if (t) cc.error(t); else { var n = cc.instantiate(i).getComponent(a.default); n.main = o.main; e(n); } o.main.stopLoad(); }); } }; r([ l(cc.Node) ], e.prototype, "mLayer", void 0); r([ l(cc.Node) ], e.prototype, "mLayer1", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "./Main": "Main", "./ViewObject": "ViewObject" } ], ViewObject: [ function(t, e, o) { "use strict"; cc._RF.push(e, "d6332M7falPcp94704O0o5M", "ViewObject"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.setCloseCallback = function(t) { this.closeCallback = t; }; e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.__close = function() { this.node.removeFromParent(); this.closeCallback && this.closeCallback(); }; e.prototype.exitDistroy = function() { this.main && this.main.gameHttp && this.main.gameHttp.popEvent(this); this.node.destroy(); this.prev && this.prev.show(); this.closeCallback && this.closeCallback(); }; e.prototype.__distroyAll = function() { this.main && this.main.gameHttp && this.main.gameHttp.popEvent(this); this.prev && this.prev.isValid && this.prev.__distroyAll(); this.node.isValid && this.node.destroy(); this.closeCallback && this.closeCallback(); }; e.prototype.httpEvent = function() {}; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], ViewTop: [ function(t, e, o) { "use strict"; cc._RF.push(e, "658e8Q4DghHSZjUYnjIlUkB", "ViewTop"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = cc._decorator, a = c.ccclass, s = (c.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.show = function() { var t = cc.Canvas.instance; this.node.parent = t.node; }; e.prototype.onclick = function() { cc.director.loadScene("hotUpdate"); }; return r([ a ], e); }(cc.Component)); o.default = s; cc._RF.pop(); }, {} ], WOneByone: [ function(t, e, o) { "use strict"; cc._RF.push(e, "16b40yQYttOW6ZhDFdggHqr", "WOneByone"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = t("../../object/FSprite"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.label = null; e.text = ""; e.indexA = 0; e.indexB = 0; e.isOver = !0; e.interval = 100; e.jumpThis = !1; e.ctime = 0; e.dialogs = null; e.spine = null; return e; } e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype._start = function() { this.jumpThis = !1; this.indexA = 0; this.nextAction(); }; e.prototype.update = function() { if (!this.isOver) if (this.jumpThis) this.showWorld(); else { var t = new Date().getTime(); if (t - this.ctime > this.interval) { this.ctime = t; this.showWorld(); } } }; e.prototype.reset = function() { this.indexA = 0; this.indexB = 0; this.label.string = ""; this.isOver = !1; this.jumpThis = !1; }; e.prototype.jump = function() { if (this.isOver) { this.indexA++; if (this.indexA >= this.dialogs.length) { this.callback(); return; } this.nextAction(); } else this.jumpThis = !0; }; e.prototype.showWorld = function() { if (this.indexB >= this.text.length) this.isOver = !0; else { this.indexB++; var t = this.text.substring(0, this.indexB); this.label.string = t; } }; e.prototype.nextAction = function() { var t = this; this.indexB = 0; this.text = c.default.t(this.dialogs[this.indexA]); this.jumpThis = !1; if (0 == this.text.indexOf("#")) if (this.spine) { this.node.children[0].active = !1; this.spine.setCompleteListener(function() { t.spine.setCompleteListener(null); t.node.children[0].active = !0; t.spine.setAnimation(0, a.SpriteActionType.stand, !0); t.jump(); }); var e = this.text.replace("#", ""); this.spine.setAnimation(0, e, !1); } else this.jump(); else this.isOver = !1; }; r([ l(cc.Label) ], e.prototype, "label", void 0); return r([ p ], e); }(cc.Component); o.default = u; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n", "../../object/FSprite": "FSprite" } ], Wish: [ function(t, e, o) { "use strict"; cc._RF.push(e, "a0af4HI0ZRBzpsMI0HQyIej", "Wish"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../main/ViewObject"), a = t("../../../pay/FqPay"), s = t("../../../util/CHttp"), p = cc._decorator, l = p.ccclass, u = p.property, f = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.itemList = []; e.goodItem = null; e.wishData = null; e.curHdPayData = null; e.target = null; return e; } e.prototype.show = function(t) { if (t) { this.prev = t; this.prev.__close(); } this.main.viewManage.popView1(this.node); this.main && this.main.gameHttp && this.main.gameHttp.pushEvent(this); }; e.prototype.getWishData = function() { var t = this; this.main.gameHttp.sendJson("hdpay/v1/hdData", {}, function(e, o) { t.main.stopLoad(); if (e == s.HttpStateType.SUCCESS) if (0 == o.retCode) { console.log("==reve=getWishData===", o); t.wishData = o.data; t.initItem(); t.show(); } else t.main.showTips(o.message); else t.main.showTips("网络异常"); }); }; e.prototype.playVideo = function(t) { var e = a.UM_EVENT_ID.ad_wish_0, o = a.UM_EVENT_ID.ad_wish_1; new a.default(this.main).adVideo(t, e, o); }; e.prototype.videoFree = function(t) { var e = this, o = { hdId: t }; this.main.gameHttp.sendJson("hdpay/v1/freeHd", o, function(t, o) { e.main.stopLoad(); if (t == s.HttpStateType.SUCCESS) if (0 == o.retCode) { e.refresh(); e.main.showReward(o); } else e.main.showTips(o.message); else e.main.showTips("网络异常"); }); }; e.prototype.initItem = function() { var t = this; this.wishData.hdPayData.forEach(function(e, o) { var i = t.itemList[o], n = i.getChildByName("goodList"), r = i.getChildByName("lbtimes"), c = i.getChildByName("btnPay"), a = i.getChildByName("btnGeted"), s = c.getChildByName("lbpay"), p = t.wishData.playerPay[e.id] ? t.wishData.playerPay[e.id] : 0; if (s) { var l = t.getPayDataById(t.wishData.hdPayData[o].payId); s.getComponent(cc.Label).string = "$ " + l.usd; } r.getComponent(cc.Label).string = "限购:" + p + "/" + e.maxCount; if (p == e.maxCount) { a.active = !0; c.active = !1; } JSON.parse(e.reward).forEach(function(e) { t.addGood(n, e); }); }); }; e.prototype.addGood = function(t, e) { var o = cc.instantiate(this.goodItem); t.addChild(o); this.initGoodItem(o, e); }; e.prototype.initGoodItem = function(t, e) { var o = t.getChildByName("infoNode"), i = o.getChildByName("icon").getComponent(cc.Sprite), n = t.getChildByName("frame").getComponent(cc.Sprite); this.initIcon(i, e.icon); this.initFrameIcon(n, e.frame); o.getChildByName("countNode").getChildByName("count").getComponent(cc.Label).string = e.count + ""; }; e.prototype.initIcon = function(t, e) { cc.resources.load("icon/" + e, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.spriteFrame = o; }); }; e.prototype.initFrameIcon = function(t, e) { cc.resources.load("icon/frame/" + e, cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.spriteFrame = o; }); }; e.prototype.onClick = function(t, e) { var o = this; this.target = t.target; this.curHdPayData = this.wishData.hdPayData[e]; "0" == e ? this.playVideo(function(t) { 1 == t ? o.videoFree(o.curHdPayData.id) : o.main.showTips("广告还未准备好"); }) : "1" == e ? this.pay(this.curHdPayData.payId) : "2" == e && this.pay(this.curHdPayData.payId); }; e.prototype.pay = function(t) { var e = this, o = new a.default(this.main), i = this.getPayDataById(t); null != i ? o.pay(i, function() { e.refresh(); }) : console.log("===payData=null===", t); }; e.prototype.getPayDataById = function(t) { var e = null; this.main.sManage.payDatas.forEach(function(o) { o.id == Number(t) && (e = o); }); return e; }; e.prototype.refresh = function() { var t = this.target.parent, e = t.getChildByName("lbtimes"), o = t.getChildByName("btnPay"), i = t.getChildByName("btnGeted"), n = this.wishData.playerPay[this.curHdPayData.id] ? this.wishData.playerPay[this.curHdPayData.id] : 0; n++; e.getComponent(cc.Label).string = "限购:" + n + "/" + this.curHdPayData.maxCount; if (n == this.curHdPayData.maxCount) { o.active = !1; i.active = !0; } }; r([ u([ cc.Node ]) ], e.prototype, "itemList", void 0); r([ u(cc.Prefab) ], e.prototype, "goodItem", void 0); return r([ l ], e); }(c.default); o.default = f; cc._RF.pop(); }, { "../../../main/ViewObject": "ViewObject", "../../../pay/FqPay": "FqPay", "../../../util/CHttp": "CHttp" } ], WordTask: [ function(t, e, o) { "use strict"; cc._RF.push(e, "6705f81ijhLEaSNwPOl0kSV", "WordTask"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../main/ViewManage"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = (s.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() {}; e.prototype.onclick = function() {}; e.prototype.openwordTaskItem = function() { this.main.viewManage.loadFunc(c.GameViewType.wordTaskItem, function(t) { t.show(); }); }; return r([ p ], e); }(a.default)); o.default = l; cc._RF.pop(); }, { "../../../../main/ViewManage": "ViewManage", "../../../../main/ViewObject": "ViewObject" } ], WorldMapItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "018a1DPjfND9awKZ22JhbDP", "WorldMapItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mName = null; e.mIcon = null; return e; } e.prototype.onLoad = function() {}; e.prototype.setScene = function(t) { this.sceneData = t; this.mName.string = c.default.t(t.name); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ p(cc.Label) ], e.prototype, "mName", void 0); r([ p(cc.Sprite) ], e.prototype, "mIcon", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../../../i18n/i18n": "i18n" } ], WorldMap: [ function(t, e, o) { "use strict"; cc._RF.push(e, "bc69dUd5t5Na77f5pVjmUcX", "WorldMap"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./WorldMapItem"), a = t("../../../../main/ViewObject"), s = cc._decorator, p = s.ccclass, l = s.property, u = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mItem = null; e.mContent = null; return e; } e.prototype.onLoad = function() { for (var t = this, e = this.main.sManage.getScene(), o = 0; o < e.length; o++) { var i = e[o], n = cc.instantiate(this.mItem); n.parent = this.mContent; var r = n.getComponent(c.default); r.setScene(i); r.setCallback(function(e) { t.onclickScene(e); }); } }; e.prototype.onclickScene = function(t) { this.exitDistroy(); this.stage.loadMiniMap(t.sceneData, function() {}); }; r([ l(cc.Prefab) ], e.prototype, "mItem", void 0); r([ l(cc.Node) ], e.prototype, "mContent", void 0); return r([ p ], e); }(a.default); o.default = u; cc._RF.pop(); }, { "../../../../main/ViewObject": "ViewObject", "./WorldMapItem": "WorldMapItem" } ], ZoneItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "78375iFKb5Pf6cqy0FZtoYS", "ZoneItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../i18n/i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.mZoneName = null; return e; } e.prototype.onLoad = function() { this.mZoneName.string = c.default.t(this.zone.name); }; e.prototype.setCallback = function(t) { this.callback = t; }; e.prototype.onclick = function() { this.callback(this); }; r([ p(cc.Label) ], e.prototype, "mZoneName", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "../../i18n/i18n": "i18n" } ], i18nLabel: [ function(t, e, o) { "use strict"; cc._RF.push(e, "2e755RiYT1IMI77POfk+Rec", "i18nLabel"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./i18n"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() { var t = this.node.getComponent(cc.Label); t && (t.string = c.default.t(t.string)); }; return r([ s ], e); }(cc.Component)); o.default = p; cc._RF.pop(); }, { "./i18n": "i18n" } ], i18nSprite: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3a38em9KIlGiKLzxRIs8abt", "i18nSprite"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("./i18n"), a = cc._decorator, s = a.ccclass, p = a.property, l = function(t) { n(e, t); function e() { var e = null !== t && t.apply(this, arguments) || this; e.spriteName = ""; return e; } e.prototype.onLoad = function() { var t = this.node.getComponent(cc.Sprite); t && cc.resources.load("lang/" + t.spriteFrame.name + "_" + c.default.lang(), cc.SpriteFrame, function(e, o) { e ? cc.error(e) : t.spriteFrame = o; }); }; r([ p({ displayName: "默认图片路径" }) ], e.prototype, "spriteName", void 0); return r([ s ], e); }(cc.Component); o.default = l; cc._RF.pop(); }, { "./i18n": "i18n" } ], i18n: [ function(t, e, o) { "use strict"; cc._RF.push(e, "3d264uzMp9AmpRfP/6dLcPR", "i18n"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c, a = cc.sys.languageCode, s = a.substring(0, 2); c = "zh" == s ? "zh" == a || "zh-cn" == a || "zh-CN" == a ? "zh-CN" : "zh-HK" : s; cc.Enum({ zh_CN: "zh-CN", zh_HK: "zh-HK", en: "en", jo: "jo", ko: "ko" }); var p = cc._decorator, l = p.ccclass, u = (p.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } o = e; e.prototype.onLoad = function() { cc.log("当前语言:" + c); }; e.prototype.__init = function(t) { cc.resources.load("i18n/" + c, cc.JsonAsset, function(e, i) { if (e) cc.error(e); else { o.data = i.json; t(); } }); }; e.t = function(t, e) { if (t.length > 50) return t; var i = o.data[t]; i || (i = t); if (e) { var n = Object.keys(e); for (var r in n) { var c = n[r], a = e[c]; i = i.replace("{" + c + "}", a); } } return i; }; e.lang = function() { return c; }; e.load = function(t, e) { cc.resources.load(t + "_" + c, cc.SpriteFrame, function(t, o) { t ? cc.error(t) : e(o); }); }; var o; return o = r([ l ], e); }(cc.Component)); o.default = u; cc._RF.pop(); }, {} ], wordTaskItem_1: [ function(t, e, o) { "use strict"; cc._RF.push(e, "5f2fdHoH+BMTZwLhEogxhWo", "wordTaskItem_1"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() {}; e.prototype.onclick = function() {}; return r([ s ], e); }(c.default)); o.default = p; cc._RF.pop(); }, { "../../../../main/ViewObject": "ViewObject" } ], wordTaskItem: [ function(t, e, o) { "use strict"; cc._RF.push(e, "90d3fY2/M9H/qP6hzXnyvx7", "wordTaskItem"); var i, n = this && this.__extends || (i = function(t, e) { return (i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) { t.__proto__ = e; } || function(t, e) { for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]); })(t, e); }, function(t, e) { i(t, e); function o() { this.constructor = t; } t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o()); }), r = this && this.__decorate || function(t, e, o, i) { var n, r = arguments.length, c = r < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, i); else for (var a = t.length - 1; a >= 0; a--) (n = t[a]) && (c = (r < 3 ? n(c) : r > 3 ? n(e, o, c) : n(e, o)) || c); return r > 3 && c && Object.defineProperty(e, o, c), c; }; Object.defineProperty(o, "__esModule", { value: !0 }); var c = t("../../../../main/ViewObject"), a = cc._decorator, s = a.ccclass, p = (a.property, function(t) { n(e, t); function e() { return null !== t && t.apply(this, arguments) || this; } e.prototype.onLoad = function() {}; e.prototype.onclick = function() {}; return r([ s ], e); }(c.default)); o.default = p; cc._RF.pop(); }, { "../../../../main/ViewObject": "ViewObject" } ] }, {}, [ "Adapter", "FullScene", "LeftBottom", "AllArea", "Area", "HistoryArea", "Tap_set_Ann", "MyZoneItem", "ZoneItem", "EquipAbout", "EquipViewAttr", "GoodAbout", "GoodItem", "PetIcon", "RewardView", "FFCalAttr", "RedNode", "RedPoint", "SysData", "SManage", "Player", "EventButton", "FControl", "FCountDown", "FF", "FFHeader", "FFRes", "FLoad", "FObjectFly", "FTmpTaskGood", "FTmpTaskPanel", "DialogButton", "DialogCage", "DialogSay", "FBox", "FExitBox", "FFAutoEquip", "FFDialogBox", "FFZsjTips", "BBObject", "BEffect", "BObject", "GEffect", "LBObject", "FCloseDoor", "FDialogMonster", "FDialogNone", "FDialogNoneNPC", "FDialogNoneXJ", "FDialogPet", "FDialogTest", "FExit", "FFenceTrigger", "FGass", "FGold", "FGrassShard", "FHD_ZB", "FHitMound", "FMqs", "FOpenTrigger", "FPickGood", "FStoreTS", "FTmpGood", "FTreasureBox", "FAltar1_3", "FAltarStar", "FFruit1_3", "FGetSkill", "FPick1_3", "FSjpPanel", "FFire1_4", "FAltar1_5", "FAltar", "FAltarFire", "FAltarGear", "FAltarLight", "BaseEvent", "RemoveModou", "FBigBomb", "FBomb", "FHitBox", "FHitBoxOpenDoor", "FCage", "FCageShooter", "FDialogAttr", "FDialogBox", "FMapDialog", "Guide1", "GuideBase", "GuideTips", "GuideTips1", "FCageSign", "FDialogTest_Zeus", "FDialogTest_athena", "FEndSign", "FStory_rescue", "WOneByone", "FBothwayOpen", "FOpenDoorButton", "FOpenDoorChat", "FOpenDoorCheck", "FOpenDoorFW", "FOpenDoorVine", "FOpenDoorVineEx", "FTransportDoor", "FopenDoorOrder", "FExtra", "FPatrol", "FPatrolWarn", "FDialogPack26", "FFruit26", "Plot1", "FSpring", "FStoenRoll", "FStoneDrop", "Thorn", "FDoorTips", "FTipsEvent", "FPlantTrre", "FIconBlink", "FLiteMap", "FMap", "AIBase", "AIPet", "FObject", "FPanel", "FPanelIcon", "FSprite", "FSpriteTmpGood", "MSprite", "PSprite", "ChargeCollision", "SkillBase", "SkillCharge", "SkillFixed", "SkillRotate", "SkillShotgun", "MBomb", "MFWind", "MMagic", "MShotgun", "EnemyTrigger", "Home", "TopMenu", "FirstPay", "Revenge", "Wish", "CardInfoView", "CardStarSuccessView", "CardStarView", "GodCardView", "CardAttrItem", "CardItem", "CardUplevelItem", "Dungeon", "ChangeEquip", "Equip", "EquipInfo", "EquipItem", "EquipPack", "EquipQH", "EquipQHAttrItem", "EquipQHMax", "EquipStar", "MainAtterItem", "PetInfo", "SetLeader", "MagicBoxInfoView", "MagicBoxItem", "MagicBoxRewardView", "MagicBoxView", "FoodView", "Pack", "ExchangeAmethystView", "ShopAmethystItem", "ShopCoinItem", "ShopPandoraItem", "ShopPowerItem", "ShopView", "Stage", "StageInfo", "StageInfoGood", "StageInfoTask", "StageFail", "StageSuccess", "WordTask", "WorldMap", "WorldMapItem", "MiniMap", "MiniMapItem", "wordTaskItem", "wordTaskItem_1", "Mail", "MailInfo", "MailItem", "PayShopItem", "PayShopView", "TapController", "TapRole", "TapRoleName", "TapSet", "TapSetMusic", "Tap_set_control", "IconInfoView", "RoleFrameView", "RoleIconItem", "RoleIconView", "RoleTitleItem", "RoleTitleView", "TitleInfoView", "i18n", "i18nLabel", "i18nSprite", "AdminLogin", "FqLogin", "Login", "Main", "ViewManage", "ViewObject", "ViewTop", "FlowLightEffect", "FqPay", "GuideMask", "PlotHome", "PlotView", "HotUpdate", "CHttp", "CHttpEvent", "CMath", "CUtil", "CUtilTime", "Joystick", "Loading", "MMD5", "Profile", "RadarChart", "Tips", "JoystickTest", "Joystick_8d" ]);