12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738 |
- 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 = "<color=#FFFFFF>" + c.default.t("获得道具") + ":</c><color=#0fffff>" + c.default.t(i.name) + "x" + e + "</c>";
- 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 = "<color=#FFFFFF>" + c.default.t("获得道具") + ":</c><color=#0fffff>", i = 0; i < e.length; i++) {
- var n = e[i];
- o += n.name + "x" + n.count + ";";
- }
- o += "</c>";
- 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: "<color=#FFFFFF>包含1件</c>普通、<color=#3DFF00>精良</color>、<color=#0fffff>稀有</color>的物品",
- 1002: "<color=#FFFFFF>包含1件</c><color=#0fffff>稀有</color>、<color=#E62CFF>史诗</color>、<color=#FFE000>传说</color>的物品",
- 1003: "<color=#FFFFFF>包含10件</c><color=#0fffff>稀有</color>、<color=#E62CFF>史诗</color>、<color=#FFE000>传说</color>的物品"
- }, 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 = "<color=#0fffff>" + (10 - o) + "次内</c><color=#ffffff>必得<color=#ffff00>传说<color=#ffffff>物品</color>";
- } else if (1003 == t) {
- this.pandoraDrawCount = 10;
- this.lbtext.string = "<color=#ffffff>必得<color=#ffff00>传说<color=#ffffff>物品</color>";
- }
- 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 = "<color=#0fffff>" + this.drawMap[t] + "次内</c><color=#ffffff>必得<color=#ffff00>传说<color=#ffffff>物品</color>";
- }
- };
- 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" ]);
|