module-Typedefs.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Module: typedefs</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/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Module: typedefs</h1>
  17. <section>
  18. <header>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. </div>
  23. <h3 class="subsection-title">Type Definitions</h3>
  24. <h4 class="name" id="~Ability">Ability</h4>
  25. <div class="description">
  26. <p>Ability of an Hero</p>
  27. </div>
  28. <h5>Type:</h5>
  29. <ul>
  30. <li>
  31. <span class="param-type">object</span>
  32. </li>
  33. </ul>
  34. <h5 class="subsection-title">Properties:</h5>
  35. <table class="props">
  36. <thead>
  37. <tr>
  38. <th>Name</th>
  39. <th>Type</th>
  40. <th class="last">Description</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr>
  45. <td class="name"><code>name</code></td>
  46. <td class="type">
  47. <span class="param-type">string</span>
  48. </td>
  49. <td class="description last"><p>name of the ability</p></td>
  50. </tr>
  51. <tr>
  52. <td class="name"><code>hook</code></td>
  53. <td class="type">
  54. <span class="param-type">AbilityHook</span>
  55. </td>
  56. <td class="description last"><p>when ability has an effect</p></td>
  57. </tr>
  58. <tr>
  59. <td class="name"><code>isOptionnal</code></td>
  60. <td class="type">
  61. <span class="param-type">boolean</span>
  62. </td>
  63. <td class="description last"><p>If true, player will have choice wether to activate ability or not</p></td>
  64. </tr>
  65. <tr>
  66. <td class="name"><code>desc</code></td>
  67. <td class="type">
  68. <span class="param-type">string</span>
  69. </td>
  70. <td class="description last"><p>Description of the ability effect</p></td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <dl class="details">
  75. <dt class="tag-source">Source:</dt>
  76. <dd class="tag-source"><ul class="dummy"><li>
  77. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line52">line 52</a>
  78. </li></ul></dd>
  79. </dl>
  80. <h4 class="name" id="~AbilityHook">AbilityHook</h4>
  81. <div class="description">
  82. <p>Ability Hook</p>
  83. </div>
  84. <h5>Type:</h5>
  85. <ul>
  86. <li>
  87. <span class="param-type">"AfterDeploy"</span>
  88. |
  89. <span class="param-type">"AfterDiscard"</span>
  90. |
  91. <span class="param-type">"AfterRecruit"</span>
  92. |
  93. <span class="param-type">"BeforeControl"</span>
  94. |
  95. <span class="param-type">"BeforeMaintenance"</span>
  96. |
  97. <span class="param-type">"BeforeMilitary"</span>
  98. </li>
  99. </ul>
  100. <dl class="details">
  101. <dt class="tag-source">Source:</dt>
  102. <dd class="tag-source"><ul class="dummy"><li>
  103. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line47">line 47</a>
  104. </li></ul></dd>
  105. </dl>
  106. <h4 class="name" id="~AdvRule">AdvRule</h4>
  107. <div class="description">
  108. <p>Possible advanced rules</p>
  109. </div>
  110. <h5>Type:</h5>
  111. <ul>
  112. <li>
  113. <span class="param-type">"popularity"</span>
  114. |
  115. <span class="param-type">"discard"</span>
  116. </li>
  117. </ul>
  118. <dl class="details">
  119. <dt class="tag-source">Source:</dt>
  120. <dd class="tag-source"><ul class="dummy"><li>
  121. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line32">line 32</a>
  122. </li></ul></dd>
  123. </dl>
  124. <h4 class="name" id="~Color">Color</h4>
  125. <div class="description">
  126. <p>player colors</p>
  127. </div>
  128. <h5>Type:</h5>
  129. <ul>
  130. <li>
  131. <span class="param-type">"blue"</span>
  132. |
  133. <span class="param-type">"red"</span>
  134. </li>
  135. </ul>
  136. <dl class="details">
  137. <dt class="tag-source">Source:</dt>
  138. <dd class="tag-source"><ul class="dummy"><li>
  139. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line27">line 27</a>
  140. </li></ul></dd>
  141. </dl>
  142. <h4 class="name" id="~DeckMode">DeckMode</h4>
  143. <div class="description">
  144. <p>Values For Deck Mode.</p>
  145. </div>
  146. <h5>Type:</h5>
  147. <ul>
  148. <li>
  149. <span class="param-type">"faction"</span>
  150. |
  151. <span class="param-type">"draft"</span>
  152. |
  153. <span class="param-type">"tournament"</span>
  154. </li>
  155. </ul>
  156. <dl class="details">
  157. <dt class="tag-source">Source:</dt>
  158. <dd class="tag-source"><ul class="dummy"><li>
  159. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line12">line 12</a>
  160. </li></ul></dd>
  161. </dl>
  162. <h4 class="name" id="~Faction">Faction</h4>
  163. <div class="description">
  164. <p>Faction of a hero</p>
  165. </div>
  166. <h5>Type:</h5>
  167. <ul>
  168. <li>
  169. <span class="param-type">"orcs"</span>
  170. |
  171. <span class="param-type">"humans"</span>
  172. |
  173. <span class="param-type">"elves"</span>
  174. |
  175. <span class="param-type">"meca"</span>
  176. |
  177. <span class="param-type">"none"</span>
  178. </li>
  179. </ul>
  180. <dl class="details">
  181. <dt class="tag-source">Source:</dt>
  182. <dd class="tag-source"><ul class="dummy"><li>
  183. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line17">line 17</a>
  184. </li></ul></dd>
  185. </dl>
  186. <h4 class="name" id="~GameGlobalState">GameGlobalState</h4>
  187. <div class="description">
  188. <p>One game global state</p>
  189. </div>
  190. <h5>Type:</h5>
  191. <ul>
  192. <li>
  193. <span class="param-type">object</span>
  194. </li>
  195. </ul>
  196. <h5 class="subsection-title">Properties:</h5>
  197. <table class="props">
  198. <thead>
  199. <tr>
  200. <th>Name</th>
  201. <th>Type</th>
  202. <th class="last">Description</th>
  203. </tr>
  204. </thead>
  205. <tbody>
  206. <tr>
  207. <td class="name"><code>gameState</code></td>
  208. <td class="type">
  209. <span class="param-type">GameStateEnum</span>
  210. </td>
  211. <td class="description last"><p>Current status of the game</p></td>
  212. </tr>
  213. <tr>
  214. <td class="name"><code>allHeroes</code></td>
  215. <td class="type">
  216. <span class="param-type">Array.&lt;HeroCard></span>
  217. </td>
  218. <td class="description last"><p>Array containing all heroes</p></td>
  219. </tr>
  220. <tr>
  221. <td class="name"><code>deckMode</code></td>
  222. <td class="type">
  223. <span class="param-type">DeckMode</span>
  224. </td>
  225. <td class="description last"><p>Deck mode of the game</p></td>
  226. </tr>
  227. <tr>
  228. <td class="name"><code>advRules</code></td>
  229. <td class="type">
  230. <span class="param-type">Array.&lt;AdvRule></span>
  231. </td>
  232. <td class="description last"><p>Array describing the active advandced rules, if any</p></td>
  233. </tr>
  234. <tr>
  235. <td class="name"><code>waitingFor/blue</code></td>
  236. <td class="type">
  237. <span class="param-type">boolean</span>
  238. </td>
  239. <td class="description last"><p>If true, we are waiting for blue to play</p></td>
  240. </tr>
  241. <tr>
  242. <td class="name"><code>waitingFor/red</code></td>
  243. <td class="type">
  244. <span class="param-type">boolean</span>
  245. </td>
  246. <td class="description last"><p>If true, we are waiting for red to play</p></td>
  247. </tr>
  248. <tr>
  249. <td class="name"><code>currentPlayer</code></td>
  250. <td class="type">
  251. <span class="param-type">Color</span>
  252. |
  253. <span class="param-type">'both'</span>
  254. </td>
  255. <td class="description last"><p>Who is current player, can be 'both'</p></td>
  256. </tr>
  257. <tr>
  258. <td class="name"><code>battleTiles/left/ofBlue</code></td>
  259. <td class="type">
  260. <span class="param-type">Array.&lt;BattleTile></span>
  261. </td>
  262. <td class="description last"><p>Battle tiles on left side of blue player</p></td>
  263. </tr>
  264. <tr>
  265. <td class="name"><code>battleTiles/center/ofBlue</code></td>
  266. <td class="type">
  267. <span class="param-type">Array.&lt;BattleTile></span>
  268. </td>
  269. <td class="description last"><p>Battle tiles on center of blue player</p></td>
  270. </tr>
  271. <tr>
  272. <td class="name"><code>battleTiles/right/ofBlue</code></td>
  273. <td class="type">
  274. <span class="param-type">Array.&lt;BattleTile></span>
  275. </td>
  276. <td class="description last"><p>Battle tiles on right side of blue player</p></td>
  277. </tr>
  278. <tr>
  279. <td class="name"><code>totalFood</code></td>
  280. <td class="type">
  281. <span class="param-type">number</span>
  282. </td>
  283. <td class="description last"><p>Total food available for players to take</p></td>
  284. </tr>
  285. <tr>
  286. <td class="name"><code></code></td>
  287. <td class="type">
  288. <span class="param-type">string</span>
  289. </td>
  290. <td class="description last"><p>All heroes in JSON format (read from a JSON file)</p></td>
  291. </tr>
  292. </tbody>
  293. </table>
  294. <dl class="details">
  295. <dt class="tag-source">Source:</dt>
  296. <dd class="tag-source"><ul class="dummy"><li>
  297. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line87">line 87</a>
  298. </li></ul></dd>
  299. </dl>
  300. <h4 class="name" id="~GameStateEnum">GameStateEnum</h4>
  301. <div class="description">
  302. <p>Values for Game state.</p>
  303. </div>
  304. <h5>Type:</h5>
  305. <ul>
  306. <li>
  307. <span class="param-type">"0_INIT"</span>
  308. |
  309. <span class="param-type">"1_SELECT_DRAFT"</span>
  310. |
  311. <span class="param-type">"1_SELECT_FACTION"</span>
  312. |
  313. <span class="param-type">"1_SELECT_TOURNAMENT"</span>
  314. |
  315. <span class="param-type">"2_CHANGE_UP_TO_3_CARDS"</span>
  316. </li>
  317. </ul>
  318. <dl class="details">
  319. <dt class="tag-source">Source:</dt>
  320. <dd class="tag-source"><ul class="dummy"><li>
  321. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line7">line 7</a>
  322. </li></ul></dd>
  323. </dl>
  324. <h4 class="name" id="~HeroAction">HeroAction</h4>
  325. <div class="description">
  326. <p>Possible action for a hero</p>
  327. </div>
  328. <h5>Type:</h5>
  329. <ul>
  330. <li>
  331. <span class="param-type">"recruit"</span>
  332. |
  333. <span class="param-type">"deploy"</span>
  334. |
  335. <span class="param-type">"move"</span>
  336. |
  337. <span class="param-type">"ability"</span>
  338. |
  339. <span class="param-type">"dismiss"</span>
  340. |
  341. <span class="param-type">"discard"</span>
  342. |
  343. <span class="param-type">"replace"</span>
  344. </li>
  345. </ul>
  346. <dl class="details">
  347. <dt class="tag-source">Source:</dt>
  348. <dd class="tag-source"><ul class="dummy"><li>
  349. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line37">line 37</a>
  350. </li></ul></dd>
  351. </dl>
  352. <h4 class="name" id="~HeroCard">HeroCard</h4>
  353. <div class="description">
  354. <p>Hero card</p>
  355. </div>
  356. <h5>Type:</h5>
  357. <ul>
  358. <li>
  359. <span class="param-type">object</span>
  360. </li>
  361. </ul>
  362. <h5 class="subsection-title">Properties:</h5>
  363. <table class="props">
  364. <thead>
  365. <tr>
  366. <th>Name</th>
  367. <th>Type</th>
  368. <th class="last">Description</th>
  369. </tr>
  370. </thead>
  371. <tbody>
  372. <tr>
  373. <td class="name"><code>id</code></td>
  374. <td class="type">
  375. <span class="param-type">number</span>
  376. </td>
  377. <td class="description last"><p>unique ID of hero</p></td>
  378. </tr>
  379. <tr>
  380. <td class="name"><code>name</code></td>
  381. <td class="type">
  382. <span class="param-type">string</span>
  383. </td>
  384. <td class="description last"><p>name of hero</p></td>
  385. </tr>
  386. <tr>
  387. <td class="name"><code>cost</code></td>
  388. <td class="type">
  389. <span class="param-type">number</span>
  390. </td>
  391. <td class="description last"><p>cost of hero</p></td>
  392. </tr>
  393. <tr>
  394. <td class="name"><code>power</code></td>
  395. <td class="type">
  396. <span class="param-type">number</span>
  397. </td>
  398. <td class="description last"><p>power of hero</p></td>
  399. </tr>
  400. <tr>
  401. <td class="name"><code>faction</code></td>
  402. <td class="type">
  403. <span class="param-type">Faction</span>
  404. </td>
  405. <td class="description last"><p>faction of hero</p></td>
  406. </tr>
  407. <tr>
  408. <td class="name"><code>popularity</code></td>
  409. <td class="type">
  410. <span class="param-type">Popularity</span>
  411. </td>
  412. <td class="description last"><p>popularity attribute of hero</p></td>
  413. </tr>
  414. <tr>
  415. <td class="name"><code>isDraftable</code></td>
  416. <td class="type">
  417. <span class="param-type">boolean</span>
  418. </td>
  419. <td class="description last"><p>Is hero available in Draft mode</p></td>
  420. </tr>
  421. <tr>
  422. <td class="name"><code>ability</code></td>
  423. <td class="type">
  424. <span class="param-type">Ability</span>
  425. </td>
  426. <td class="description last"><p>Ability of a hero</p></td>
  427. </tr>
  428. </tbody>
  429. </table>
  430. <dl class="details">
  431. <dt class="tag-source">Source:</dt>
  432. <dd class="tag-source"><ul class="dummy"><li>
  433. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line61">line 61</a>
  434. </li></ul></dd>
  435. </dl>
  436. <h4 class="name" id="~HeroInGame">HeroInGame</h4>
  437. <div class="description">
  438. <p>Hero in game</p>
  439. </div>
  440. <h5>Type:</h5>
  441. <ul>
  442. <li>
  443. <span class="param-type">object</span>
  444. </li>
  445. </ul>
  446. <h5 class="subsection-title">Properties:</h5>
  447. <table class="props">
  448. <thead>
  449. <tr>
  450. <th>Name</th>
  451. <th>Type</th>
  452. <th class="last">Description</th>
  453. </tr>
  454. </thead>
  455. <tbody>
  456. <tr>
  457. <td class="name"><code>id</code></td>
  458. <td class="type">
  459. <span class="param-type">number</span>
  460. </td>
  461. <td class="description last"><p>unique ID of hero</p></td>
  462. </tr>
  463. <tr>
  464. <td class="name"><code>position</code></td>
  465. <td class="type">
  466. <span class="param-type">HeroPosition</span>
  467. </td>
  468. <td class="description last"><p>position of hero in game</p></td>
  469. </tr>
  470. <tr>
  471. <td class="name"><code>possibleActions</code></td>
  472. <td class="type">
  473. <span class="param-type">Array.&lt;HeroAction></span>
  474. </td>
  475. <td class="description last"><p>Actions possible on hero</p></td>
  476. </tr>
  477. </tbody>
  478. </table>
  479. <dl class="details">
  480. <dt class="tag-source">Source:</dt>
  481. <dd class="tag-source"><ul class="dummy"><li>
  482. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line104">line 104</a>
  483. </li></ul></dd>
  484. </dl>
  485. <h4 class="name" id="~HeroPosition">HeroPosition</h4>
  486. <div class="description">
  487. <p>Possible position for a hero</p>
  488. </div>
  489. <h5>Type:</h5>
  490. <ul>
  491. <li>
  492. <span class="param-type">"pile"</span>
  493. |
  494. <span class="param-type">"hand"</span>
  495. |
  496. <span class="param-type">"discard"</span>
  497. |
  498. <span class="param-type">"camp"</span>
  499. |
  500. <span class="param-type">"battle_left"</span>
  501. |
  502. <span class="param-type">"battle_center"</span>
  503. |
  504. <span class="param-type">"battle_right"</span>
  505. </li>
  506. </ul>
  507. <dl class="details">
  508. <dt class="tag-source">Source:</dt>
  509. <dd class="tag-source"><ul class="dummy"><li>
  510. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line42">line 42</a>
  511. </li></ul></dd>
  512. </dl>
  513. <h4 class="name" id="~PlayerAction">PlayerAction</h4>
  514. <div class="description">
  515. <p>Possible action for a player</p>
  516. </div>
  517. <h5>Type:</h5>
  518. <ul>
  519. <li>
  520. <span class="param-type">"supply"</span>
  521. |
  522. <span class="param-type">"pass"</span>
  523. </li>
  524. </ul>
  525. <dl class="details">
  526. <dt class="tag-source">Source:</dt>
  527. <dd class="tag-source"><ul class="dummy"><li>
  528. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line113">line 113</a>
  529. </li></ul></dd>
  530. </dl>
  531. <h4 class="name" id="~PlayerGameState">PlayerGameState</h4>
  532. <div class="description">
  533. <p>Game state for one player</p>
  534. </div>
  535. <h5>Type:</h5>
  536. <ul>
  537. <li>
  538. <span class="param-type">object</span>
  539. </li>
  540. </ul>
  541. <h5 class="subsection-title">Properties:</h5>
  542. <table class="props">
  543. <thead>
  544. <tr>
  545. <th>Name</th>
  546. <th>Type</th>
  547. <th class="last">Description</th>
  548. </tr>
  549. </thead>
  550. <tbody>
  551. <tr>
  552. <td class="name"><code>name</code></td>
  553. <td class="type">
  554. <span class="param-type">string</span>
  555. </td>
  556. <td class="description last"><p>username of this player</p></td>
  557. </tr>
  558. <tr>
  559. <td class="name"><code>color</code></td>
  560. <td class="type">
  561. <span class="param-type">Color</span>
  562. </td>
  563. <td class="description last"><p>color of the player</p></td>
  564. </tr>
  565. <tr>
  566. <td class="name"><code>faction</code></td>
  567. <td class="type">
  568. <span class="param-type">Faction</span>
  569. |
  570. <span class="param-type">""</span>
  571. </td>
  572. <td class="description last"><p>Chosen faction (empty if not playing faction mode)</p></td>
  573. </tr>
  574. <tr>
  575. <td class="name"><code>draftHeroesIds</code></td>
  576. <td class="type">
  577. <span class="param-type">Array.&lt;number></span>
  578. </td>
  579. <td class="description last"><p>Will contain the IDs of the heroes selectable for draft mode</p></td>
  580. </tr>
  581. <tr>
  582. <td class="name"><code>twelveHeroes</code></td>
  583. <td class="type">
  584. <span class="param-type">Array.&lt;HeroInGame></span>
  585. </td>
  586. <td class="description last"><p>The 12 Heroes used by player</p></td>
  587. </tr>
  588. <tr>
  589. <td class="name"><code>foodInCamp</code></td>
  590. <td class="type">
  591. <span class="param-type">number</span>
  592. </td>
  593. <td class="description last"><p>Number of food in camp</p></td>
  594. </tr>
  595. <tr>
  596. <td class="name"><code>foodInBattle/left</code></td>
  597. <td class="type">
  598. <span class="param-type">number</span>
  599. </td>
  600. <td class="description last"><p>Food on left battle field</p></td>
  601. </tr>
  602. <tr>
  603. <td class="name"><code>foodInBattle/center</code></td>
  604. <td class="type">
  605. <span class="param-type">number</span>
  606. </td>
  607. <td class="description last"><p>Food on center battle field</p></td>
  608. </tr>
  609. <tr>
  610. <td class="name"><code>foodInBattle/right</code></td>
  611. <td class="type">
  612. <span class="param-type">number</span>
  613. </td>
  614. <td class="description last"><p>Food on right battle field</p></td>
  615. </tr>
  616. <tr>
  617. <td class="name"><code>actionsPerformed</code></td>
  618. <td class="type">
  619. <span class="param-type">Array.&lt;object></span>
  620. </td>
  621. <td class="description last"><p>During military phase it will contain actions made by player to be replayed by other</p></td>
  622. </tr>
  623. <tr>
  624. <td class="name"><code></code></td>
  625. <td class="type">
  626. <span class="param-type">Array.&lt;PlayerAction></span>
  627. </td>
  628. <td class="description last"><p>Actions avalaible for the player</p></td>
  629. </tr>
  630. </tbody>
  631. </table>
  632. <dl class="details">
  633. <dt class="tag-source">Source:</dt>
  634. <dd class="tag-source"><ul class="dummy"><li>
  635. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line118">line 118</a>
  636. </li></ul></dd>
  637. </dl>
  638. <h4 class="name" id="~Popularity">Popularity</h4>
  639. <div class="description">
  640. <p>popularity attribute of a hero</p>
  641. </div>
  642. <h5>Type:</h5>
  643. <ul>
  644. <li>
  645. <span class="param-type">"with"</span>
  646. |
  647. <span class="param-type">"without"</span>
  648. |
  649. <span class="param-type">"any"</span>
  650. </li>
  651. </ul>
  652. <dl class="details">
  653. <dt class="tag-source">Source:</dt>
  654. <dd class="tag-source"><ul class="dummy"><li>
  655. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line22">line 22</a>
  656. </li></ul></dd>
  657. </dl>
  658. <h4 class="name" id="~StoreData">StoreData</h4>
  659. <div class="description">
  660. <p>Store data</p>
  661. </div>
  662. <h5>Type:</h5>
  663. <ul>
  664. <li>
  665. <span class="param-type">object</span>
  666. </li>
  667. </ul>
  668. <h5 class="subsection-title">Properties:</h5>
  669. <table class="props">
  670. <thead>
  671. <tr>
  672. <th>Name</th>
  673. <th>Type</th>
  674. <th class="last">Description</th>
  675. </tr>
  676. </thead>
  677. <tbody>
  678. <tr>
  679. <td class="name"><code>game</code></td>
  680. <td class="type">
  681. <span class="param-type">GameGlobalState</span>
  682. </td>
  683. <td class="description last"><p>The game global state in store</p></td>
  684. </tr>
  685. <tr>
  686. <td class="name"><code>bluePlayer</code></td>
  687. <td class="type">
  688. <span class="param-type">PlayerGameState</span>
  689. </td>
  690. <td class="description last"><p>The game state for blue player</p></td>
  691. </tr>
  692. <tr>
  693. <td class="name"><code>redPlayer</code></td>
  694. <td class="type">
  695. <span class="param-type">PlayerGameState</span>
  696. </td>
  697. <td class="description last"><p>The game state for red player</p></td>
  698. </tr>
  699. </tbody>
  700. </table>
  701. <dl class="details">
  702. <dt class="tag-source">Source:</dt>
  703. <dd class="tag-source"><ul class="dummy"><li>
  704. <a href="server_src_client-server-shared_def_typedefs.js.html">server/src/client-server-shared/def/typedefs.js</a>, <a href="server_src_client-server-shared_def_typedefs.js.html#line135">line 135</a>
  705. </li></ul></dd>
  706. </dl>
  707. </article>
  708. </section>
  709. </div>
  710. <nav>
  711. <h2><a href="index.html">12 Heroes</a></h2><h3>Modules</h3><ul><li><a href="module-GameStore%2520-%2520vuex%2520store%2520part%2520with%2520game%2520data.html">GameStore - vuex store part with game data</a></li><li><a href="module-typedefs.html">typedefs</a></li></ul><h3>Namespaces</h3><ul><li><a href="constants.html">constants</a></li></ul><h3>Global</h3><ul><li><a href="global.html#Getters">Getters</a></li><li><a href="global.html#State">State</a></li></ul>
  712. </nav>
  713. <br class="clear">
  714. <footer>
  715. Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.4</a> on Mon May 18 2020 21:55:23 GMT+0200 (Central European Summer Time)
  716. </footer>
  717. <script> prettyPrint(); </script>
  718. <script src="scripts/linenumber.js"> </script>
  719. </body>
  720. </html>