<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Global</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">Global</h1> <section> <header> <h2></h2> </header> <article> <div class="container-overview"> <dl class="details"> </dl> </div> <h3 class="subsection-title">Members</h3> <h4 class="name" id="Message"><span class="type-signature">(readonly) </span>Message<span class="type-signature"> :string</span></h4> <div class="description"> Message IDs </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>CONNECT</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>DISCONNECT</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>CREATE_GUEST</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>GET_MATCH_LIST</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>PLAY_RANDOM</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>CREATE_MATCH</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>JOIN_MATCH</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>ROLL_DICE</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>MOVE_PIECE</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>CONFIRM_MOVES</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>UNDO_MOVES</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_PLAYER_JOINED</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_TURN_START</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_DICE_ROLL</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_PIECE_MOVE</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_MATCH_START</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_MATCH_OVER</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_GAME_OVER</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_GAME_RESTART</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>EVENT_UNDO_MOVES</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="comm.js.html">comm.js</a>, <a href="comm.js.html#line16">line 16</a> </li></ul></dd> </dl> <h4 class="name" id="MoveActionType"><span class="type-signature">(readonly) </span>MoveActionType<span class="type-signature"> :string</span></h4> <div class="description"> Move action types are determined by rules. This is only a default list of actions that are shared by most rules. </div> <h5>Type:</h5> <ul> <li> <span class="param-type">string</span> </li> </ul> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>MOVE</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">MOVE: Move piece from one point to another</td> </tr> <tr> <td class="name"><code>RECOVER</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">RECOVER: Recover piece from bar and place it on board</td> </tr> <tr> <td class="name"><code>HIT</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">HIT: Hit opponent's piece and sent it to bar</td> </tr> <tr> <td class="name"><code>BEAR</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last">BEAR: Bear piece - move it outside the board</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="model.js.html">model.js</a>, <a href="model.js.html#line947">line 947</a> </li></ul></dd> </dl> <h4 class="name" id="PieceType"><span class="type-signature">(readonly) </span>PieceType<span class="type-signature"> :number</span></h4> <div class="description"> Current version supports only two colours of checkers and two players as the author is not yet aware of rules with three or more types of checkers and/or players. </div> <h5>Type:</h5> <ul> <li> <span class="param-type">number</span> </li> </ul> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>WHITE</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">White piece</td> </tr> <tr> <td class="name"><code>BLACK</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">Black piece</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="model.js.html">model.js</a>, <a href="model.js.html#line10">line 10</a> </li></ul></dd> </dl> <h4 class="name" id="Protocol"><span class="type-signature"></span>Protocol<span class="type-signature"> :Object</span></h4> <div class="description"> Protocol options </div> <h5>Type:</h5> <ul> <li> <span class="param-type">Object</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="comm.js.html">comm.js</a>, <a href="comm.js.html#line5">line 5</a> </li></ul></dd> </dl> <h3 class="subsection-title">Type Definitions</h3> <h4 class="name" id="messageCallback"><span class="type-signature"></span>messageCallback<span class="signature">(msg, clientMsgSeq, reply)</span><span class="type-signature"></span></h4> <div class="description"> Message callback </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>msg</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">An integer.</td> </tr> <tr> <td class="name"><code>clientMsgSeq</code></td> <td class="type"> <span class="param-type">number</span> </td> <td class="description last">An integer.</td> </tr> <tr> <td class="name"><code>reply</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">Object containing reply data. <h6>Properties</h6> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>result</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="description last">Result of command execution</td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="client.js.html">client.js</a>, <a href="client.js.html#line186">line 186</a> </li></ul></dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Client.html">Client</a></li><li><a href="Dice.html">Dice</a></li><li><a href="Game.html">Game</a></li><li><a href="Match.html">Match</a></li><li><a href="MoveAction.html">MoveAction</a></li><li><a href="Piece.html">Piece</a></li><li><a href="Player.html">Player</a></li><li><a href="PlayerStats.html">PlayerStats</a></li><li><a href="Random.html">Random</a></li><li><a href="Rule.html">Rule</a></li><li><a href="RuleBgCasual.html">RuleBgCasual</a></li><li><a href="RuleBgGulbara.html">RuleBgGulbara</a></li><li><a href="RuleBgTapa.html">RuleBgTapa</a></li><li><a href="State.html">State</a></li><li><a href="Utils.html">Utils</a></li></ul><h3>Global</h3><ul><li><a href="global.html#Message">Message</a></li><li><a href="global.html#MoveActionType">MoveActionType</a></li><li><a href="global.html#PieceType">PieceType</a></li><li><a href="global.html#Protocol">Protocol</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Sun Dec 18 2016 20:10:05 GMT+0200 (EET) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>