global.html 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Global | 12 Heroes</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
  12. <link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css">
  13. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  14. <link type="text/css" rel="stylesheet" href="styles/tui-doc.css">
  15. </head>
  16. <body>
  17. <nav class="lnb" id="lnb">
  18. <div class="logo" style="">
  19. <img src="img/toast-ui.png" width="100%" height="100%">
  20. </div>
  21. <div class="title">
  22. <h1><a href="index.html" class="link">12 Heroes</a></h1>
  23. </div>
  24. <div class="search-container" id="search-container">
  25. <input type="text" placeholder="Search">
  26. <ul></ul>
  27. </div>
  28. <div class="lnb-api hidden"><h3>Namespaces</h3><ul><li><a href="Constants.html">Constants</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Constants_sub"></div></li><li><a href="Constants.HERO.html">Constants.HERO</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Constants.HERO_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Constants.HERO.html#.HERO_ABILITY">HERO_ABILITY</a></li><li><a href="Constants.HERO.html#.HERO_DEPLOY">HERO_DEPLOY</a></li><li><a href="Constants.HERO.html#.HERO_DISCARD">HERO_DISCARD</a></li><li><a href="Constants.HERO.html#.HERO_DISMISS">HERO_DISMISS</a></li><li><a href="Constants.HERO.html#.HERO_MOVE">HERO_MOVE</a></li><li><a href="Constants.HERO.html#.HERO_RECRUIT">HERO_RECRUIT</a></li><li><a href="Constants.HERO.html#.HERO_REPLACE">HERO_REPLACE</a></li></ul></div></li><li><a href="Constants.PLAYER.html">Constants.PLAYER</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Constants.PLAYER_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Constants.PLAYER.html#.PLAYER_PASS">PLAYER_PASS</a></li><li><a href="Constants.PLAYER.html#.PLAYER_SUPPLY">PLAYER_SUPPLY</a></li></ul></div></li><li><a href="Constants.POS.html">Constants.POS</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Constants.POS_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Constants.POS.html#.POS_BATTLE_CENTER">POS_BATTLE_CENTER</a></li><li><a href="Constants.POS.html#.POS_BATTLE_LEFT">POS_BATTLE_LEFT</a></li><li><a href="Constants.POS.html#.POS_BATTLE_RIGHT">POS_BATTLE_RIGHT</a></li><li><a href="Constants.POS.html#.POS_CAMP">POS_CAMP</a></li><li><a href="Constants.POS.html#.POS_DISCARD">POS_DISCARD</a></li><li><a href="Constants.POS.html#.POS_HAND">POS_HAND</a></li><li><a href="Constants.POS.html#.POS_PILE">POS_PILE</a></li></ul></div></li><li><a href="Constants.REQ.html">Constants.REQ</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Constants.REQ_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Constants.REQ.html#.REQ_ERROR">REQ_ERROR</a></li><li><a href="Constants.REQ.html#.REQ_IDLE">REQ_IDLE</a></li><li><a href="Constants.REQ.html#.REQ_REQUESTED">REQ_REQUESTED</a></li><li><a href="Constants.REQ.html#.REQ_SUCCESS">REQ_SUCCESS</a></li></ul></div></li></ul></div><div class="lnb-api hidden"><h3>Global</h3><ul><li><a href="global.html#getDraftSets">getDraftSets</a></li><li><a href="global.html#getHeroesIdsByFaction">getHeroesIdsByFaction</a></li><li><a href="global.html#shuffleHeroes">shuffleHeroes</a></li><li><a href="global.html#TH_Ability">TH_Ability</a></li><li><a href="global.html#TH_AbilityHook">TH_AbilityHook</a></li><li><a href="global.html#TH_AdvRule">TH_AdvRule</a></li><li><a href="global.html#TH_BattleTile">TH_BattleTile</a></li><li><a href="global.html#TH_Color">TH_Color</a></li><li><a href="global.html#TH_CommStatus">TH_CommStatus</a></li><li><a href="global.html#TH_DeckMode">TH_DeckMode</a></li><li><a href="global.html#TH_Faction">TH_Faction</a></li><li><a href="global.html#TH_GameDataStore">TH_GameDataStore</a></li><li><a href="global.html#TH_GameGlobalState">TH_GameGlobalState</a></li><li><a href="global.html#TH_GameStateEnum">TH_GameStateEnum</a></li><li><a href="global.html#TH_HeroAction">TH_HeroAction</a></li><li><a href="global.html#TH_HeroCard">TH_HeroCard</a></li><li><a href="global.html#TH_HeroInGame">TH_HeroInGame</a></li><li><a href="global.html#TH_HeroPosition">TH_HeroPosition</a></li><li><a href="global.html#TH_MessageChatFrom">TH_MessageChatFrom</a></li><li><a href="global.html#TH_MessageDraftStep">TH_MessageDraftStep</a></li><li><a href="global.html#TH_MessageFaction">TH_MessageFaction</a></li><li><a href="global.html#TH_MessageTournamentDeckStep">TH_MessageTournamentDeckStep</a></li><li><a href="global.html#TH_PlayerAction">TH_PlayerAction</a></li><li><a href="global.html#TH_PlayerGameState">TH_PlayerGameState</a></li><li><a href="global.html#TH_Popularity">TH_Popularity</a></li><li><a href="global.html#TH_ReqStatus">TH_ReqStatus</a></li></ul></div>
  29. </nav>
  30. <div id="resizer"></div>
  31. <div class="main" id="main">
  32. <section>
  33. <header>
  34. <h2>Global</h2>
  35. </header>
  36. <article>
  37. <h3 class="subsection-title">Members</h3>
  38. <dl>
  39. <dt>
  40. <h4 class="name" id="getDraftSets">
  41. <span class="type-signature"><span class="icon green">constant</span> </span>getDraftSets<span class="type-signature"></span>
  42. <br>
  43. <br>
  44. <div class="container-source members">
  45. <code><a href="server_src_client-server-shared_heroesHelper.js.html">server/src/client-server-shared/heroesHelper.js</a></code>,
  46. <code><a href="server_src_client-server-shared_heroesHelper.js.html#line78">line 78</a></code>
  47. </div>
  48. </h4>
  49. </dt>
  50. <dd>
  51. <div class="description">
  52. <p>Get draft sets to play draft mode</p>
  53. </div>
  54. <!--
  55. -->
  56. <dl class="details">
  57. </dl>
  58. </dd>
  59. <hr>
  60. <dt>
  61. <h4 class="name" id="getHeroesIdsByFaction">
  62. <span class="type-signature"><span class="icon green">constant</span> </span>getHeroesIdsByFaction<span class="type-signature"></span>
  63. <br>
  64. <br>
  65. <div class="container-source members">
  66. <code><a href="server_src_client-server-shared_heroesHelper.js.html">server/src/client-server-shared/heroesHelper.js</a></code>,
  67. <code><a href="server_src_client-server-shared_heroesHelper.js.html#line50">line 50</a></code>
  68. </div>
  69. </h4>
  70. </dt>
  71. <dd>
  72. <div class="description">
  73. <p>Get 12 heroes id by faction in random order.</p>
  74. </div>
  75. <!--
  76. -->
  77. <dl class="details">
  78. </dl>
  79. </dd>
  80. <hr>
  81. <dt>
  82. <h4 class="name" id="shuffleHeroes">
  83. <span class="type-signature"><span class="icon green">constant</span> </span>shuffleHeroes<span class="type-signature"></span>
  84. <br>
  85. <br>
  86. <div class="container-source members">
  87. <code><a href="server_src_client-server-shared_heroesHelper.js.html">server/src/client-server-shared/heroesHelper.js</a></code>,
  88. <code><a href="server_src_client-server-shared_heroesHelper.js.html#line107">line 107</a></code>
  89. </div>
  90. </h4>
  91. </dt>
  92. <dd>
  93. <div class="description">
  94. <p>Shuffle Heroes</p>
  95. </div>
  96. <!--
  97. -->
  98. <dl class="details">
  99. </dl>
  100. </dd>
  101. <hr>
  102. <dt>
  103. <h4 class="name" id="TH_Ability">
  104. <span class="type-signature"></span>TH_Ability<span class="type-signature"> :object</span>
  105. <br>
  106. <br>
  107. <div class="container-source members">
  108. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  109. <code><a href="server_src_client-server-shared_type_game.js.html#line49">line 49</a></code>
  110. </div>
  111. </h4>
  112. </dt>
  113. <dd>
  114. <div class="description">
  115. <p>Ability of an Hero</p>
  116. </div>
  117. <!--
  118. <h5>Type:</h5>
  119. <ul>
  120. <li>
  121. <span class="param-type">object</span>
  122. </li>
  123. </ul>
  124. -->
  125. <h5 class="subsection-title">Properties:</h5>
  126. <table class="props">
  127. <thead>
  128. <tr>
  129. <th>Name</th>
  130. <th>Type</th>
  131. <th class="last">Description</th>
  132. </tr>
  133. </thead>
  134. <tbody>
  135. <tr>
  136. <td class="name"><code>name</code></td>
  137. <td class="type">
  138. <span class="param-type">string</span>
  139. </td>
  140. <td class="description last"><p>name of the ability</p></td>
  141. </tr>
  142. <tr>
  143. <td class="name"><code>hook</code></td>
  144. <td class="type">
  145. <span class="param-type"><a href="global.html#TH_AbilityHook">TH_AbilityHook</a></span>
  146. </td>
  147. <td class="description last"><p>when ability has an effect</p></td>
  148. </tr>
  149. <tr>
  150. <td class="name"><code>isOptionnal</code></td>
  151. <td class="type">
  152. <span class="param-type">boolean</span>
  153. </td>
  154. <td class="description last"><p>If true, player will have choice wether to activate ability or not</p></td>
  155. </tr>
  156. <tr>
  157. <td class="name"><code>desc</code></td>
  158. <td class="type">
  159. <span class="param-type">string</span>
  160. </td>
  161. <td class="description last"><p>Description of the ability effect</p></td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <dl class="details">
  166. </dl>
  167. </dd>
  168. <hr>
  169. <dt>
  170. <h4 class="name" id="TH_AbilityHook">
  171. <span class="type-signature"></span>TH_AbilityHook<span class="type-signature"> :'AfterDeploy'|'AfterDiscard'|'AfterRecruit'|'BeforeControl'|'BeforeMaintenance'|'BeforeMilitary'</span>
  172. <br>
  173. <br>
  174. <div class="container-source members">
  175. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  176. <code><a href="server_src_client-server-shared_type_game.js.html#line44">line 44</a></code>
  177. </div>
  178. </h4>
  179. </dt>
  180. <dd>
  181. <div class="description">
  182. <p>Ability Hook</p>
  183. </div>
  184. <!--
  185. <h5>Type:</h5>
  186. <ul>
  187. <li>
  188. <span class="param-type">'AfterDeploy'</span>
  189. |
  190. <span class="param-type">'AfterDiscard'</span>
  191. |
  192. <span class="param-type">'AfterRecruit'</span>
  193. |
  194. <span class="param-type">'BeforeControl'</span>
  195. |
  196. <span class="param-type">'BeforeMaintenance'</span>
  197. |
  198. <span class="param-type">'BeforeMilitary'</span>
  199. </li>
  200. </ul>
  201. -->
  202. <dl class="details">
  203. </dl>
  204. </dd>
  205. <hr>
  206. <dt>
  207. <h4 class="name" id="TH_AdvRule">
  208. <span class="type-signature"></span>TH_AdvRule<span class="type-signature"> :'popularity'|'discard'</span>
  209. <br>
  210. <br>
  211. <div class="container-source members">
  212. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  213. <code><a href="server_src_client-server-shared_type_game.js.html#line29">line 29</a></code>
  214. </div>
  215. </h4>
  216. </dt>
  217. <dd>
  218. <div class="description">
  219. <p>Possible advanced rules</p>
  220. </div>
  221. <!--
  222. <h5>Type:</h5>
  223. <ul>
  224. <li>
  225. <span class="param-type">'popularity'</span>
  226. |
  227. <span class="param-type">'discard'</span>
  228. </li>
  229. </ul>
  230. -->
  231. <dl class="details">
  232. </dl>
  233. </dd>
  234. <hr>
  235. <dt>
  236. <h4 class="name" id="TH_BattleTile">
  237. <span class="type-signature"></span>TH_BattleTile<span class="type-signature"> :object</span>
  238. <br>
  239. <br>
  240. <div class="container-source members">
  241. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  242. <code><a href="server_src_client-server-shared_type_game.js.html#line72">line 72</a></code>
  243. </div>
  244. </h4>
  245. </dt>
  246. <dd>
  247. <div class="description">
  248. <p>Battle Tile object</p>
  249. </div>
  250. <!--
  251. <h5>Type:</h5>
  252. <ul>
  253. <li>
  254. <span class="param-type">object</span>
  255. </li>
  256. </ul>
  257. -->
  258. <h5 class="subsection-title">Properties:</h5>
  259. <table class="props">
  260. <thead>
  261. <tr>
  262. <th>Name</th>
  263. <th>Type</th>
  264. <th class="last">Description</th>
  265. </tr>
  266. </thead>
  267. <tbody>
  268. <tr>
  269. <td class="name"><code>id</code></td>
  270. <td class="type">
  271. <span class="param-type">number</span>
  272. </td>
  273. <td class="description last"><p>unique ID of tile</p></td>
  274. </tr>
  275. <tr>
  276. <td class="name"><code>name</code></td>
  277. <td class="type">
  278. <span class="param-type">string</span>
  279. </td>
  280. <td class="description last"><p>name of tile</p></td>
  281. </tr>
  282. <tr>
  283. <td class="name"><code>victoryPoints</code></td>
  284. <td class="type">
  285. <span class="param-type">number</span>
  286. </td>
  287. <td class="description last"><p>Number of victory points</p></td>
  288. </tr>
  289. <tr>
  290. <td class="name"><code>victories/blue</code></td>
  291. <td class="type">
  292. <span class="param-type">number</span>
  293. </td>
  294. <td class="description last"><p>Number of red player victories</p></td>
  295. </tr>
  296. <tr>
  297. <td class="name"><code>victories/red</code></td>
  298. <td class="type">
  299. <span class="param-type">number</span>
  300. </td>
  301. <td class="description last"><p>Number of blue player victories</p></td>
  302. </tr>
  303. </tbody>
  304. </table>
  305. <dl class="details">
  306. </dl>
  307. </dd>
  308. <hr>
  309. <dt>
  310. <h4 class="name" id="TH_Color">
  311. <span class="type-signature"></span>TH_Color<span class="type-signature"> :'blue'|'red'</span>
  312. <br>
  313. <br>
  314. <div class="container-source members">
  315. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  316. <code><a href="server_src_client-server-shared_type_game.js.html#line24">line 24</a></code>
  317. </div>
  318. </h4>
  319. </dt>
  320. <dd>
  321. <div class="description">
  322. <p>player colors</p>
  323. </div>
  324. <!--
  325. <h5>Type:</h5>
  326. <ul>
  327. <li>
  328. <span class="param-type">'blue'</span>
  329. |
  330. <span class="param-type">'red'</span>
  331. </li>
  332. </ul>
  333. -->
  334. <dl class="details">
  335. </dl>
  336. </dd>
  337. <hr>
  338. <dt>
  339. <h4 class="name" id="TH_CommStatus">
  340. <span class="type-signature"></span>TH_CommStatus<span class="type-signature"> :object</span>
  341. <br>
  342. <br>
  343. <div class="container-source members">
  344. <code><a href="server_src_client-server-shared_type_comm.js.html">server/src/client-server-shared/type/comm.js</a></code>,
  345. <code><a href="server_src_client-server-shared_type_comm.js.html#line9">line 9</a></code>
  346. </div>
  347. </h4>
  348. </dt>
  349. <dd>
  350. <div class="description">
  351. <p>Comm status</p>
  352. </div>
  353. <!--
  354. <h5>Type:</h5>
  355. <ul>
  356. <li>
  357. <span class="param-type">object</span>
  358. </li>
  359. </ul>
  360. -->
  361. <h5 class="subsection-title">Properties:</h5>
  362. <table class="props">
  363. <thead>
  364. <tr>
  365. <th>Name</th>
  366. <th>Type</th>
  367. <th class="last">Description</th>
  368. </tr>
  369. </thead>
  370. <tbody>
  371. <tr>
  372. <td class="name"><code>status</code></td>
  373. <td class="type">
  374. <span class="param-type"><a href="global.html#TH_ReqStatus">TH_ReqStatus</a></span>
  375. </td>
  376. <td class="description last"><p>Status of the request</p></td>
  377. </tr>
  378. <tr>
  379. <td class="name"><code>text</code></td>
  380. <td class="type">
  381. <span class="param-type">string</span>
  382. </td>
  383. <td class="description last"><p>Text describing current status</p></td>
  384. </tr>
  385. </tbody>
  386. </table>
  387. <dl class="details">
  388. </dl>
  389. </dd>
  390. <hr>
  391. <dt>
  392. <h4 class="name" id="TH_DeckMode">
  393. <span class="type-signature"></span>TH_DeckMode<span class="type-signature"> :'faction'|'draft'|'tournament'</span>
  394. <br>
  395. <br>
  396. <div class="container-source members">
  397. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  398. <code><a href="server_src_client-server-shared_type_game.js.html#line9">line 9</a></code>
  399. </div>
  400. </h4>
  401. </dt>
  402. <dd>
  403. <div class="description">
  404. <p>Values For Deck Mode.</p>
  405. </div>
  406. <!--
  407. <h5>Type:</h5>
  408. <ul>
  409. <li>
  410. <span class="param-type">'faction'</span>
  411. |
  412. <span class="param-type">'draft'</span>
  413. |
  414. <span class="param-type">'tournament'</span>
  415. </li>
  416. </ul>
  417. -->
  418. <dl class="details">
  419. </dl>
  420. </dd>
  421. <hr>
  422. <dt>
  423. <h4 class="name" id="TH_Faction">
  424. <span class="type-signature"></span>TH_Faction<span class="type-signature"> :'orcs'|'humans'|'elves'|'meca'|'none'</span>
  425. <br>
  426. <br>
  427. <div class="container-source members">
  428. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  429. <code><a href="server_src_client-server-shared_type_game.js.html#line14">line 14</a></code>
  430. </div>
  431. </h4>
  432. </dt>
  433. <dd>
  434. <div class="description">
  435. <p>Faction of a hero</p>
  436. </div>
  437. <!--
  438. <h5>Type:</h5>
  439. <ul>
  440. <li>
  441. <span class="param-type">'orcs'</span>
  442. |
  443. <span class="param-type">'humans'</span>
  444. |
  445. <span class="param-type">'elves'</span>
  446. |
  447. <span class="param-type">'meca'</span>
  448. |
  449. <span class="param-type">'none'</span>
  450. </li>
  451. </ul>
  452. -->
  453. <dl class="details">
  454. </dl>
  455. </dd>
  456. <hr>
  457. <dt>
  458. <h4 class="name" id="TH_GameDataStore">
  459. <span class="type-signature"></span>TH_GameDataStore<span class="type-signature"> :object</span>
  460. <br>
  461. <br>
  462. <div class="container-source members">
  463. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  464. <code><a href="server_src_client-server-shared_type_game.js.html#line131">line 131</a></code>
  465. </div>
  466. </h4>
  467. </dt>
  468. <dd>
  469. <div class="description">
  470. <p>Game Data Store</p>
  471. </div>
  472. <!--
  473. <h5>Type:</h5>
  474. <ul>
  475. <li>
  476. <span class="param-type">object</span>
  477. </li>
  478. </ul>
  479. -->
  480. <h5 class="subsection-title">Properties:</h5>
  481. <table class="props">
  482. <thead>
  483. <tr>
  484. <th>Name</th>
  485. <th>Type</th>
  486. <th class="last">Description</th>
  487. </tr>
  488. </thead>
  489. <tbody>
  490. <tr>
  491. <td class="name"><code>game</code></td>
  492. <td class="type">
  493. <span class="param-type"><a href="global.html#TH_GameGlobalState">TH_GameGlobalState</a></span>
  494. </td>
  495. <td class="description last"><p>The game global state in store</p></td>
  496. </tr>
  497. <tr>
  498. <td class="name"><code>bluePlayer</code></td>
  499. <td class="type">
  500. <span class="param-type"><a href="global.html#TH_PlayerGameState">TH_PlayerGameState</a></span>
  501. </td>
  502. <td class="description last"><p>The game state for blue player</p></td>
  503. </tr>
  504. <tr>
  505. <td class="name"><code>redPlayer</code></td>
  506. <td class="type">
  507. <span class="param-type"><a href="global.html#TH_PlayerGameState">TH_PlayerGameState</a></span>
  508. </td>
  509. <td class="description last"><p>The game state for red player</p></td>
  510. </tr>
  511. </tbody>
  512. </table>
  513. <dl class="details">
  514. </dl>
  515. </dd>
  516. <hr>
  517. <dt>
  518. <h4 class="name" id="TH_GameGlobalState">
  519. <span class="type-signature"></span>TH_GameGlobalState<span class="type-signature"> :object</span>
  520. <br>
  521. <br>
  522. <div class="container-source members">
  523. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  524. <code><a href="server_src_client-server-shared_type_game.js.html#line83">line 83</a></code>
  525. </div>
  526. </h4>
  527. </dt>
  528. <dd>
  529. <div class="description">
  530. <p>One game global state</p>
  531. </div>
  532. <!--
  533. <h5>Type:</h5>
  534. <ul>
  535. <li>
  536. <span class="param-type">object</span>
  537. </li>
  538. </ul>
  539. -->
  540. <h5 class="subsection-title">Properties:</h5>
  541. <table class="props">
  542. <thead>
  543. <tr>
  544. <th>Name</th>
  545. <th>Type</th>
  546. <th class="last">Description</th>
  547. </tr>
  548. </thead>
  549. <tbody>
  550. <tr>
  551. <td class="name"><code>gameState</code></td>
  552. <td class="type">
  553. <span class="param-type"><a href="global.html#TH_GameStateEnum">TH_GameStateEnum</a></span>
  554. </td>
  555. <td class="description last"><p>Current status of the game</p></td>
  556. </tr>
  557. <tr>
  558. <td class="name"><code>allHeroes</code></td>
  559. <td class="type">
  560. <span class="param-type">Array.&lt;<a href="global.html#TH_HeroCard">TH_HeroCard</a>></span>
  561. </td>
  562. <td class="description last"><p>Array containing all heroes</p></td>
  563. </tr>
  564. <tr>
  565. <td class="name"><code>deckMode</code></td>
  566. <td class="type">
  567. <span class="param-type"><a href="global.html#TH_DeckMode">TH_DeckMode</a></span>
  568. </td>
  569. <td class="description last"><p>Deck mode of the game</p></td>
  570. </tr>
  571. <tr>
  572. <td class="name"><code>advRules</code></td>
  573. <td class="type">
  574. <span class="param-type">Array.&lt;<a href="global.html#TH_AdvRule">TH_AdvRule</a>></span>
  575. </td>
  576. <td class="description last"><p>Array describing the active advandced rules, if any</p></td>
  577. </tr>
  578. <tr>
  579. <td class="name"><code>waitingFor/blue</code></td>
  580. <td class="type">
  581. <span class="param-type">boolean</span>
  582. </td>
  583. <td class="description last"><p>If true, we are waiting for blue to play</p></td>
  584. </tr>
  585. <tr>
  586. <td class="name"><code>waitingFor/red</code></td>
  587. <td class="type">
  588. <span class="param-type">boolean</span>
  589. </td>
  590. <td class="description last"><p>If true, we are waiting for red to play</p></td>
  591. </tr>
  592. <tr>
  593. <td class="name"><code>currentPlayer</code></td>
  594. <td class="type">
  595. <span class="param-type"><a href="global.html#TH_Color">TH_Color</a></span>
  596. |
  597. <span class="param-type">'both'</span>
  598. </td>
  599. <td class="description last"><p>Who is current player, can be 'both'</p></td>
  600. </tr>
  601. <tr>
  602. <td class="name"><code>battleTiles/left/ofBlue</code></td>
  603. <td class="type">
  604. <span class="param-type">Array.&lt;<a href="global.html#TH_BattleTile">TH_BattleTile</a>></span>
  605. </td>
  606. <td class="description last"><p>Battle tiles on left side of blue player</p></td>
  607. </tr>
  608. <tr>
  609. <td class="name"><code>battleTiles/center/ofBlue</code></td>
  610. <td class="type">
  611. <span class="param-type">Array.&lt;<a href="global.html#TH_BattleTile">TH_BattleTile</a>></span>
  612. </td>
  613. <td class="description last"><p>Battle tiles on center of blue player</p></td>
  614. </tr>
  615. <tr>
  616. <td class="name"><code>battleTiles/right/ofBlue</code></td>
  617. <td class="type">
  618. <span class="param-type">Array.&lt;<a href="global.html#TH_BattleTile">TH_BattleTile</a>></span>
  619. </td>
  620. <td class="description last"><p>Battle tiles on right side of blue player</p></td>
  621. </tr>
  622. <tr>
  623. <td class="name"><code>totalFood</code></td>
  624. <td class="type">
  625. <span class="param-type">number</span>
  626. </td>
  627. <td class="description last"><p>Total food available for players to take</p></td>
  628. </tr>
  629. <tr>
  630. <td class="name"><code>allHeroesJson</code></td>
  631. <td class="type">
  632. <span class="param-type">string</span>
  633. </td>
  634. <td class="description last"><p>All heroes in JSON format (read from a JSON file)</p></td>
  635. </tr>
  636. </tbody>
  637. </table>
  638. <dl class="details">
  639. </dl>
  640. </dd>
  641. <hr>
  642. <dt>
  643. <h4 class="name" id="TH_GameStateEnum">
  644. <span class="type-signature"></span>TH_GameStateEnum<span class="type-signature"> :'0_INIT'|'1_SELECT_DRAFT'|'1_SELECT_FACTION'|'1_SELECT_TOURNAMENT'|'2_CHANGE_UP_TO_3_CARDS'</span>
  645. <br>
  646. <br>
  647. <div class="container-source members">
  648. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  649. <code><a href="server_src_client-server-shared_type_game.js.html#line4">line 4</a></code>
  650. </div>
  651. </h4>
  652. </dt>
  653. <dd>
  654. <div class="description">
  655. <p>Values for Game state.</p>
  656. </div>
  657. <!--
  658. <h5>Type:</h5>
  659. <ul>
  660. <li>
  661. <span class="param-type">'0_INIT'</span>
  662. |
  663. <span class="param-type">'1_SELECT_DRAFT'</span>
  664. |
  665. <span class="param-type">'1_SELECT_FACTION'</span>
  666. |
  667. <span class="param-type">'1_SELECT_TOURNAMENT'</span>
  668. |
  669. <span class="param-type">'2_CHANGE_UP_TO_3_CARDS'</span>
  670. </li>
  671. </ul>
  672. -->
  673. <dl class="details">
  674. </dl>
  675. </dd>
  676. <hr>
  677. <dt>
  678. <h4 class="name" id="TH_HeroAction">
  679. <span class="type-signature"></span>TH_HeroAction<span class="type-signature"> :'recruit'|'deploy'|'move'|'ability'|'dismiss'|'discard'|'replace'</span>
  680. <br>
  681. <br>
  682. <div class="container-source members">
  683. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  684. <code><a href="server_src_client-server-shared_type_game.js.html#line34">line 34</a></code>
  685. </div>
  686. </h4>
  687. </dt>
  688. <dd>
  689. <div class="description">
  690. <p>Possible action for a hero</p>
  691. </div>
  692. <!--
  693. <h5>Type:</h5>
  694. <ul>
  695. <li>
  696. <span class="param-type">'recruit'</span>
  697. |
  698. <span class="param-type">'deploy'</span>
  699. |
  700. <span class="param-type">'move'</span>
  701. |
  702. <span class="param-type">'ability'</span>
  703. |
  704. <span class="param-type">'dismiss'</span>
  705. |
  706. <span class="param-type">'discard'</span>
  707. |
  708. <span class="param-type">'replace'</span>
  709. </li>
  710. </ul>
  711. -->
  712. <dl class="details">
  713. </dl>
  714. </dd>
  715. <hr>
  716. <dt>
  717. <h4 class="name" id="TH_HeroCard">
  718. <span class="type-signature"></span>TH_HeroCard<span class="type-signature"> :object</span>
  719. <br>
  720. <br>
  721. <div class="container-source members">
  722. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  723. <code><a href="server_src_client-server-shared_type_game.js.html#line58">line 58</a></code>
  724. </div>
  725. </h4>
  726. </dt>
  727. <dd>
  728. <div class="description">
  729. <p>Hero card</p>
  730. </div>
  731. <!--
  732. <h5>Type:</h5>
  733. <ul>
  734. <li>
  735. <span class="param-type">object</span>
  736. </li>
  737. </ul>
  738. -->
  739. <h5 class="subsection-title">Properties:</h5>
  740. <table class="props">
  741. <thead>
  742. <tr>
  743. <th>Name</th>
  744. <th>Type</th>
  745. <th class="last">Description</th>
  746. </tr>
  747. </thead>
  748. <tbody>
  749. <tr>
  750. <td class="name"><code>id</code></td>
  751. <td class="type">
  752. <span class="param-type">number</span>
  753. </td>
  754. <td class="description last"><p>unique ID of hero</p></td>
  755. </tr>
  756. <tr>
  757. <td class="name"><code>name</code></td>
  758. <td class="type">
  759. <span class="param-type">string</span>
  760. </td>
  761. <td class="description last"><p>name of hero</p></td>
  762. </tr>
  763. <tr>
  764. <td class="name"><code>cost</code></td>
  765. <td class="type">
  766. <span class="param-type">number</span>
  767. </td>
  768. <td class="description last"><p>cost of hero</p></td>
  769. </tr>
  770. <tr>
  771. <td class="name"><code>power</code></td>
  772. <td class="type">
  773. <span class="param-type">number</span>
  774. </td>
  775. <td class="description last"><p>power of hero</p></td>
  776. </tr>
  777. <tr>
  778. <td class="name"><code>faction</code></td>
  779. <td class="type">
  780. <span class="param-type"><a href="global.html#TH_Faction">TH_Faction</a></span>
  781. </td>
  782. <td class="description last"><p>faction of hero</p></td>
  783. </tr>
  784. <tr>
  785. <td class="name"><code>popularity</code></td>
  786. <td class="type">
  787. <span class="param-type"><a href="global.html#TH_Popularity">TH_Popularity</a></span>
  788. </td>
  789. <td class="description last"><p>popularity attribute of hero</p></td>
  790. </tr>
  791. <tr>
  792. <td class="name"><code>isDraftable</code></td>
  793. <td class="type">
  794. <span class="param-type">boolean</span>
  795. </td>
  796. <td class="description last"><p>Is hero available in Draft mode</p></td>
  797. </tr>
  798. <tr>
  799. <td class="name"><code>ability</code></td>
  800. <td class="type">
  801. <span class="param-type"><a href="global.html#TH_Ability">TH_Ability</a></span>
  802. </td>
  803. <td class="description last"><p>Ability of a hero</p></td>
  804. </tr>
  805. </tbody>
  806. </table>
  807. <dl class="details">
  808. </dl>
  809. </dd>
  810. <hr>
  811. <dt>
  812. <h4 class="name" id="TH_HeroInGame">
  813. <span class="type-signature"></span>TH_HeroInGame<span class="type-signature"> :object</span>
  814. <br>
  815. <br>
  816. <div class="container-source members">
  817. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  818. <code><a href="server_src_client-server-shared_type_game.js.html#line100">line 100</a></code>
  819. </div>
  820. </h4>
  821. </dt>
  822. <dd>
  823. <div class="description">
  824. <p>Hero in game</p>
  825. </div>
  826. <!--
  827. <h5>Type:</h5>
  828. <ul>
  829. <li>
  830. <span class="param-type">object</span>
  831. </li>
  832. </ul>
  833. -->
  834. <h5 class="subsection-title">Properties:</h5>
  835. <table class="props">
  836. <thead>
  837. <tr>
  838. <th>Name</th>
  839. <th>Type</th>
  840. <th class="last">Description</th>
  841. </tr>
  842. </thead>
  843. <tbody>
  844. <tr>
  845. <td class="name"><code>id</code></td>
  846. <td class="type">
  847. <span class="param-type">number</span>
  848. </td>
  849. <td class="description last"><p>unique ID of hero</p></td>
  850. </tr>
  851. <tr>
  852. <td class="name"><code>position</code></td>
  853. <td class="type">
  854. <span class="param-type"><a href="global.html#TH_HeroPosition">TH_HeroPosition</a></span>
  855. </td>
  856. <td class="description last"><p>position of hero in game</p></td>
  857. </tr>
  858. <tr>
  859. <td class="name"><code>possibleActions</code></td>
  860. <td class="type">
  861. <span class="param-type">Array.&lt;<a href="global.html#TH_HeroAction">TH_HeroAction</a>></span>
  862. </td>
  863. <td class="description last"><p>Actions possible on hero</p></td>
  864. </tr>
  865. </tbody>
  866. </table>
  867. <dl class="details">
  868. </dl>
  869. </dd>
  870. <hr>
  871. <dt>
  872. <h4 class="name" id="TH_HeroPosition">
  873. <span class="type-signature"></span>TH_HeroPosition<span class="type-signature"> :'pile'|'hand'|'discard'|'camp'|'battle_left'|'battle_center'|'battle_right'</span>
  874. <br>
  875. <br>
  876. <div class="container-source members">
  877. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  878. <code><a href="server_src_client-server-shared_type_game.js.html#line39">line 39</a></code>
  879. </div>
  880. </h4>
  881. </dt>
  882. <dd>
  883. <div class="description">
  884. <p>Possible position for a hero</p>
  885. </div>
  886. <!--
  887. <h5>Type:</h5>
  888. <ul>
  889. <li>
  890. <span class="param-type">'pile'</span>
  891. |
  892. <span class="param-type">'hand'</span>
  893. |
  894. <span class="param-type">'discard'</span>
  895. |
  896. <span class="param-type">'camp'</span>
  897. |
  898. <span class="param-type">'battle_left'</span>
  899. |
  900. <span class="param-type">'battle_center'</span>
  901. |
  902. <span class="param-type">'battle_right'</span>
  903. </li>
  904. </ul>
  905. -->
  906. <dl class="details">
  907. </dl>
  908. </dd>
  909. <hr>
  910. <dt>
  911. <h4 class="name" id="TH_MessageChatFrom">
  912. <span class="type-signature"></span>TH_MessageChatFrom<span class="type-signature"> :object</span>
  913. <br>
  914. <br>
  915. <div class="container-source members">
  916. <code><a href="server_src_client-server-shared_type_comm.js.html">server/src/client-server-shared/type/comm.js</a></code>,
  917. <code><a href="server_src_client-server-shared_type_comm.js.html#line40">line 40</a></code>
  918. </div>
  919. </h4>
  920. </dt>
  921. <dd>
  922. <div class="description">
  923. <p>Message for chat from one player to others</p>
  924. </div>
  925. <!--
  926. <h5>Type:</h5>
  927. <ul>
  928. <li>
  929. <span class="param-type">object</span>
  930. </li>
  931. </ul>
  932. -->
  933. <h5 class="subsection-title">Properties:</h5>
  934. <table class="props">
  935. <thead>
  936. <tr>
  937. <th>Name</th>
  938. <th>Type</th>
  939. <th class="last">Description</th>
  940. </tr>
  941. </thead>
  942. <tbody>
  943. <tr>
  944. <td class="name"><code>from</code></td>
  945. <td class="type">
  946. <span class="param-type">string</span>
  947. </td>
  948. <td class="description last"><p>From is the message from</p></td>
  949. </tr>
  950. <tr>
  951. <td class="name"><code>text</code></td>
  952. <td class="type">
  953. <span class="param-type">string</span>
  954. </td>
  955. <td class="description last"><p>The content of chat message</p></td>
  956. </tr>
  957. </tbody>
  958. </table>
  959. <dl class="details">
  960. </dl>
  961. </dd>
  962. <hr>
  963. <dt>
  964. <h4 class="name" id="TH_MessageDraftStep">
  965. <span class="type-signature"></span>TH_MessageDraftStep<span class="type-signature"> :object</span>
  966. <br>
  967. <br>
  968. <div class="container-source members">
  969. <code><a href="server_src_client-server-shared_type_comm.js.html">server/src/client-server-shared/type/comm.js</a></code>,
  970. <code><a href="server_src_client-server-shared_type_comm.js.html#line24">line 24</a></code>
  971. </div>
  972. </h4>
  973. </dt>
  974. <dd>
  975. <div class="description">
  976. <p>Message from player for draft mode steps.
  977. Each turn of draft mode, players choses 2 new Ids which will be added to his twelveHeroes.</p>
  978. </div>
  979. <!--
  980. <h5>Type:</h5>
  981. <ul>
  982. <li>
  983. <span class="param-type">object</span>
  984. </li>
  985. </ul>
  986. -->
  987. <h5 class="subsection-title">Properties:</h5>
  988. <table class="props">
  989. <thead>
  990. <tr>
  991. <th>Name</th>
  992. <th>Type</th>
  993. <th class="last">Description</th>
  994. </tr>
  995. </thead>
  996. <tbody>
  997. <tr>
  998. <td class="name"><code>color</code></td>
  999. <td class="type">
  1000. <span class="param-type"><a href="global.html#TH_Color">TH_Color</a></span>
  1001. </td>
  1002. <td class="description last"><p>color of player</p></td>
  1003. </tr>
  1004. <tr>
  1005. <td class="name"><code>chosenIds</code></td>
  1006. <td class="type">
  1007. <span class="param-type">Array.&lt;number></span>
  1008. </td>
  1009. <td class="description last"><p>The chosen Ids</p></td>
  1010. </tr>
  1011. </tbody>
  1012. </table>
  1013. <dl class="details">
  1014. </dl>
  1015. </dd>
  1016. <hr>
  1017. <dt>
  1018. <h4 class="name" id="TH_MessageFaction">
  1019. <span class="type-signature"></span>TH_MessageFaction<span class="type-signature"> :object</span>
  1020. <br>
  1021. <br>
  1022. <div class="container-source members">
  1023. <code><a href="server_src_client-server-shared_type_comm.js.html">server/src/client-server-shared/type/comm.js</a></code>,
  1024. <code><a href="server_src_client-server-shared_type_comm.js.html#line17">line 17</a></code>
  1025. </div>
  1026. </h4>
  1027. </dt>
  1028. <dd>
  1029. <div class="description">
  1030. <p>Message from player with faction selected</p>
  1031. </div>
  1032. <!--
  1033. <h5>Type:</h5>
  1034. <ul>
  1035. <li>
  1036. <span class="param-type">object</span>
  1037. </li>
  1038. </ul>
  1039. -->
  1040. <h5 class="subsection-title">Properties:</h5>
  1041. <table class="props">
  1042. <thead>
  1043. <tr>
  1044. <th>Name</th>
  1045. <th>Type</th>
  1046. <th class="last">Description</th>
  1047. </tr>
  1048. </thead>
  1049. <tbody>
  1050. <tr>
  1051. <td class="name"><code>color</code></td>
  1052. <td class="type">
  1053. <span class="param-type"><a href="global.html#TH_Color">TH_Color</a></span>
  1054. </td>
  1055. <td class="description last"><p>color of player</p></td>
  1056. </tr>
  1057. <tr>
  1058. <td class="name"><code>faction</code></td>
  1059. <td class="type">
  1060. <span class="param-type"><a href="global.html#TH_Faction">TH_Faction</a></span>
  1061. </td>
  1062. <td class="description last"><p>The chosen faction</p></td>
  1063. </tr>
  1064. </tbody>
  1065. </table>
  1066. <dl class="details">
  1067. </dl>
  1068. </dd>
  1069. <hr>
  1070. <dt>
  1071. <h4 class="name" id="TH_MessageTournamentDeckStep">
  1072. <span class="type-signature"></span>TH_MessageTournamentDeckStep<span class="type-signature"> :object</span>
  1073. <br>
  1074. <br>
  1075. <div class="container-source members">
  1076. <code><a href="server_src_client-server-shared_type_comm.js.html">server/src/client-server-shared/type/comm.js</a></code>,
  1077. <code><a href="server_src_client-server-shared_type_comm.js.html#line32">line 32</a></code>
  1078. </div>
  1079. </h4>
  1080. </dt>
  1081. <dd>
  1082. <div class="description">
  1083. <p>Message from player for tournament mode.
  1084. Player chose 12 heroes.</p>
  1085. </div>
  1086. <!--
  1087. <h5>Type:</h5>
  1088. <ul>
  1089. <li>
  1090. <span class="param-type">object</span>
  1091. </li>
  1092. </ul>
  1093. -->
  1094. <h5 class="subsection-title">Properties:</h5>
  1095. <table class="props">
  1096. <thead>
  1097. <tr>
  1098. <th>Name</th>
  1099. <th>Type</th>
  1100. <th class="last">Description</th>
  1101. </tr>
  1102. </thead>
  1103. <tbody>
  1104. <tr>
  1105. <td class="name"><code>color</code></td>
  1106. <td class="type">
  1107. <span class="param-type"><a href="global.html#TH_Color">TH_Color</a></span>
  1108. </td>
  1109. <td class="description last"><p>color of player</p></td>
  1110. </tr>
  1111. <tr>
  1112. <td class="name"><code>twelveHeroesIds</code></td>
  1113. <td class="type">
  1114. <span class="param-type">Array.&lt;number></span>
  1115. </td>
  1116. <td class="description last"><p>The chosen 12 heroes IDs</p></td>
  1117. </tr>
  1118. </tbody>
  1119. </table>
  1120. <dl class="details">
  1121. </dl>
  1122. </dd>
  1123. <hr>
  1124. <dt>
  1125. <h4 class="name" id="TH_PlayerAction">
  1126. <span class="type-signature"></span>TH_PlayerAction<span class="type-signature"> :'supply'|'pass'</span>
  1127. <br>
  1128. <br>
  1129. <div class="container-source members">
  1130. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  1131. <code><a href="server_src_client-server-shared_type_game.js.html#line109">line 109</a></code>
  1132. </div>
  1133. </h4>
  1134. </dt>
  1135. <dd>
  1136. <div class="description">
  1137. <p>Possible action for a player</p>
  1138. </div>
  1139. <!--
  1140. <h5>Type:</h5>
  1141. <ul>
  1142. <li>
  1143. <span class="param-type">'supply'</span>
  1144. |
  1145. <span class="param-type">'pass'</span>
  1146. </li>
  1147. </ul>
  1148. -->
  1149. <dl class="details">
  1150. </dl>
  1151. </dd>
  1152. <hr>
  1153. <dt>
  1154. <h4 class="name" id="TH_PlayerGameState">
  1155. <span class="type-signature"></span>TH_PlayerGameState<span class="type-signature"> :object</span>
  1156. <br>
  1157. <br>
  1158. <div class="container-source members">
  1159. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  1160. <code><a href="server_src_client-server-shared_type_game.js.html#line114">line 114</a></code>
  1161. </div>
  1162. </h4>
  1163. </dt>
  1164. <dd>
  1165. <div class="description">
  1166. <p>Game state for one player</p>
  1167. </div>
  1168. <!--
  1169. <h5>Type:</h5>
  1170. <ul>
  1171. <li>
  1172. <span class="param-type">object</span>
  1173. </li>
  1174. </ul>
  1175. -->
  1176. <h5 class="subsection-title">Properties:</h5>
  1177. <table class="props">
  1178. <thead>
  1179. <tr>
  1180. <th>Name</th>
  1181. <th>Type</th>
  1182. <th class="last">Description</th>
  1183. </tr>
  1184. </thead>
  1185. <tbody>
  1186. <tr>
  1187. <td class="name"><code>name</code></td>
  1188. <td class="type">
  1189. <span class="param-type">string</span>
  1190. </td>
  1191. <td class="description last"><p>username of this player</p></td>
  1192. </tr>
  1193. <tr>
  1194. <td class="name"><code>color</code></td>
  1195. <td class="type">
  1196. <span class="param-type"><a href="global.html#TH_Color">TH_Color</a></span>
  1197. </td>
  1198. <td class="description last"><p>color of the player</p></td>
  1199. </tr>
  1200. <tr>
  1201. <td class="name"><code>faction</code></td>
  1202. <td class="type">
  1203. <span class="param-type"><a href="global.html#TH_Faction">TH_Faction</a></span>
  1204. |
  1205. <span class="param-type">''</span>
  1206. </td>
  1207. <td class="description last"><p>Chosen faction (empty if not playing faction mode)</p></td>
  1208. </tr>
  1209. <tr>
  1210. <td class="name"><code>draftHeroesIds</code></td>
  1211. <td class="type">
  1212. <span class="param-type">Array.&lt;number></span>
  1213. </td>
  1214. <td class="description last"><p>Will contain the IDs of the heroes selectable for draft mode</p></td>
  1215. </tr>
  1216. <tr>
  1217. <td class="name"><code>twelveHeroes</code></td>
  1218. <td class="type">
  1219. <span class="param-type">Array.&lt;<a href="global.html#TH_HeroInGame">TH_HeroInGame</a>></span>
  1220. </td>
  1221. <td class="description last"><p>The 12 Heroes used by player</p></td>
  1222. </tr>
  1223. <tr>
  1224. <td class="name"><code>foodInCamp</code></td>
  1225. <td class="type">
  1226. <span class="param-type">number</span>
  1227. </td>
  1228. <td class="description last"><p>Number of food in camp</p></td>
  1229. </tr>
  1230. <tr>
  1231. <td class="name"><code>foodInBattle/left</code></td>
  1232. <td class="type">
  1233. <span class="param-type">number</span>
  1234. </td>
  1235. <td class="description last"><p>Food on left battle field</p></td>
  1236. </tr>
  1237. <tr>
  1238. <td class="name"><code>foodInBattle/center</code></td>
  1239. <td class="type">
  1240. <span class="param-type">number</span>
  1241. </td>
  1242. <td class="description last"><p>Food on center battle field</p></td>
  1243. </tr>
  1244. <tr>
  1245. <td class="name"><code>foodInBattle/right</code></td>
  1246. <td class="type">
  1247. <span class="param-type">number</span>
  1248. </td>
  1249. <td class="description last"><p>Food on right battle field</p></td>
  1250. </tr>
  1251. <tr>
  1252. <td class="name"><code>actionsPerformed</code></td>
  1253. <td class="type">
  1254. <span class="param-type">Array.&lt;object></span>
  1255. </td>
  1256. <td class="description last"><p>During military phase it will contain actions made by player to be replayed by other</p></td>
  1257. </tr>
  1258. <tr>
  1259. <td class="name"><code></code></td>
  1260. <td class="type">
  1261. <span class="param-type">Array.&lt;<a href="global.html#TH_PlayerAction">TH_PlayerAction</a>></span>
  1262. </td>
  1263. <td class="description last"><p>Actions avalaible for the player</p></td>
  1264. </tr>
  1265. </tbody>
  1266. </table>
  1267. <dl class="details">
  1268. </dl>
  1269. </dd>
  1270. <hr>
  1271. <dt>
  1272. <h4 class="name" id="TH_Popularity">
  1273. <span class="type-signature"></span>TH_Popularity<span class="type-signature"> :'with'|'without'|'any'</span>
  1274. <br>
  1275. <br>
  1276. <div class="container-source members">
  1277. <code><a href="server_src_client-server-shared_type_game.js.html">server/src/client-server-shared/type/game.js</a></code>,
  1278. <code><a href="server_src_client-server-shared_type_game.js.html#line19">line 19</a></code>
  1279. </div>
  1280. </h4>
  1281. </dt>
  1282. <dd>
  1283. <div class="description">
  1284. <p>popularity attribute of a hero</p>
  1285. </div>
  1286. <!--
  1287. <h5>Type:</h5>
  1288. <ul>
  1289. <li>
  1290. <span class="param-type">'with'</span>
  1291. |
  1292. <span class="param-type">'without'</span>
  1293. |
  1294. <span class="param-type">'any'</span>
  1295. </li>
  1296. </ul>
  1297. -->
  1298. <dl class="details">
  1299. </dl>
  1300. </dd>
  1301. <hr>
  1302. <dt>
  1303. <h4 class="name" id="TH_ReqStatus">
  1304. <span class="type-signature"></span>TH_ReqStatus<span class="type-signature"> :'idle'|'requested'|'success'|'error'</span>
  1305. <br>
  1306. <br>
  1307. <div class="container-source members">
  1308. <code><a href="server_src_client-server-shared_type_comm.js.html">server/src/client-server-shared/type/comm.js</a></code>,
  1309. <code><a href="server_src_client-server-shared_type_comm.js.html#line4">line 4</a></code>
  1310. </div>
  1311. </h4>
  1312. </dt>
  1313. <dd>
  1314. <div class="description">
  1315. <p>Statuses of a server Request</p>
  1316. </div>
  1317. <!--
  1318. <h5>Type:</h5>
  1319. <ul>
  1320. <li>
  1321. <span class="param-type">'idle'</span>
  1322. |
  1323. <span class="param-type">'requested'</span>
  1324. |
  1325. <span class="param-type">'success'</span>
  1326. |
  1327. <span class="param-type">'error'</span>
  1328. </li>
  1329. </ul>
  1330. -->
  1331. <dl class="details">
  1332. </dl>
  1333. </dd>
  1334. <hr>
  1335. </dl>
  1336. </article>
  1337. </section>
  1338. </div>
  1339. <footer>
  1340. <img class="logo" src="img/toast-ui.png" style="">
  1341. <div class="footer-text">NHN Entertainment. Frontend Development Lab</div>
  1342. </footer>
  1343. <script>prettyPrint();</script>
  1344. <script src="scripts/jquery.min.js"></script>
  1345. <script src="scripts/tui-doc.js"></script>
  1346. <script src="scripts/linenumber.js"></script>
  1347. <script>
  1348. var id = '_sub'.replace(/"/g, '_');
  1349. var selectedApi = document.getElementById(id); // do not use jquery selector
  1350. var $selectedApi = $(selectedApi);
  1351. $selectedApi.removeClass('hidden');
  1352. $selectedApi.parent().find('.glyphicon').removeClass('glyphicon-plus').addClass('glyphicon-minus');
  1353. showLnbApi();
  1354. </script>
  1355. </body>
  1356. </html>