123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>JSDoc: Source: server/src/client-server-shared/def/constants.js</title>
- <script src="scripts/prettify/prettify.js"> </script>
- <script src="scripts/prettify/lang-css.js"> </script>
- <!--[if lt IE 9]>
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
- </head>
- <body>
- <div id="main">
- <h1 class="page-title">Source: server/src/client-server-shared/def/constants.js</h1>
-
-
- <section>
- <article>
- <pre class="prettyprint source linenums"><code>import * as typedefs from 'def/typedefs';
- /**
- * @namespace constants
- */
- // Positions of heroes in game
- /**
- * @constant
- * @type {typedefs.HeroPosition}
- * @default
- * @memberof constants
- */
- export const JOJO = 'camp';
- export const Constants = {
- // Server requests status
- REQ_IDLE: 'idle',
- REQ_REQUESTED: 'requested',
- REQ_SUCCESS: 'success',
- REQ_ERROR: 'error',
- // Positions of heroes in game
- /**
- * @constant
- * @type {typedefs.HeroPosition}
- * @default
- * @memberof constants
- */
- POS_PILE: 'pile',
- POS_HAND: 'hand',
- POS_DISCARD: 'discard',
- POS_CAMP: 'camp',
- POS_BATTLE_LEFT: 'battle_left',
- POS_BATTLE_CENTER: 'battle_center',
- POS_BATTLE_RIGHT: 'battle_right',
- // Possible hero actions in game
- HERO_RECRUIT: 'recruit',
- HERO_DEPLOY: 'deploy',
- HERO_MOVE: 'move',
- HERO_ABILITY: 'ability',
- HERO_DISMISS: 'dismiss',
- HERO_DISCARD: 'discard',
- HERO_REPLACE: 'replace',
- // Possible actions for player in game
- PLAYER_SUPPLY: 'supply',
- PLAYER_PASS: 'pass'
- };
- Constants.install = function(Vue) {
- Vue.prototype.$types = key => {
- return Constants[key];
- };
- };
- </code></pre>
- </article>
- </section>
- </div>
- <nav>
- <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></ul><h3>Namespaces</h3><ul><li><a href="constants.html">constants</a></li></ul><h3>Global</h3><ul><li><a href="global.html#Typedefs">Typedefs</a></li></ul>
- </nav>
- <br class="clear">
- <footer>
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.4</a> on Mon May 18 2020 22:36:59 GMT+0200 (Central European Summer Time)
- </footer>
- <script> prettyPrint(); </script>
- <script src="scripts/linenumber.js"> </script>
- </body>
- </html>
|