diff options
Diffstat (limited to 'html/tower/docs/module-uiHandlers.html')
-rw-r--r-- | html/tower/docs/module-uiHandlers.html | 543 |
1 files changed, 543 insertions, 0 deletions
diff --git a/html/tower/docs/module-uiHandlers.html b/html/tower/docs/module-uiHandlers.html new file mode 100644 index 0000000..fc3fdc4 --- /dev/null +++ b/html/tower/docs/module-uiHandlers.html @@ -0,0 +1,543 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>JSDoc: Module: uiHandlers</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">Module: uiHandlers</h1> + + + + + + +<section> + +<header> + + + + + +</header> + +<article> + <div class="container-overview"> + + + <div class="description">UI Handlers Module + +This module manages user interactions and UI state. +Implements: +1. Drag and Drop system +2. Event handling +3. UI state management +4. Input validation</div> + + + + + + + + + + + + + + + + + + + +<dl class="details"> + + + + + + + + + + + + + + + + + + + + + + + + + + + <dt class="tag-source">Source:</dt> + <dd class="tag-source"><ul class="dummy"><li> + <a href="uiHandlers.js.html">uiHandlers.js</a>, <a href="uiHandlers.js.html#line1">line 1</a> + </li></ul></dd> + + + + + + + +</dl> + + + + + + + + + + + + + + + + + + + + + + + </div> + + + + + + + + + + + + + + + + + <h3 class="subsection-title">Methods</h3> + + + + + + + + <h4 class="name" id="~initializeDragAndDrop"><span class="type-signature">(inner) </span>initializeDragAndDrop<span class="signature">(canvas, gameState)</span><span class="type-signature"> → {Object}</span></h4> + + + + + + +<div class="description"> + Initializes drag and drop functionality for tower placement +Implements HTML5 Drag and Drop API +</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>canvas</code></td> + + + <td class="type"> + + +<span class="param-type">HTMLCanvasElement</span> + + + + </td> + + + + + + <td class="description last">Game canvas element</td> + </tr> + + + + <tr> + + <td class="name"><code>gameState</code></td> + + + <td class="type"> + + +<span class="param-type">Object</span> + + + + </td> + + + + + + <td class="description last">Current game state</td> + </tr> + + + </tbody> +</table> + + + + + + +<dl class="details"> + + + + + + + + + + + + + + + + + + + + + + + + + + + <dt class="tag-source">Source:</dt> + <dd class="tag-source"><ul class="dummy"><li> + <a href="uiHandlers.js.html">uiHandlers.js</a>, <a href="uiHandlers.js.html#line22">line 22</a> + </li></ul></dd> + + + + + + + +</dl> + + + + + + + + + + + + + + + +<h5>Returns:</h5> + + +<div class="param-desc"> + Drag handlers and state information +</div> + + + +<dl> + <dt> + Type + </dt> + <dd> + +<span class="param-type">Object</span> + + + </dd> +</dl> + + + + + + + + + + + + + + <h4 class="name" id="~placeTower"><span class="type-signature">(inner) </span>placeTower<span class="signature">(gameState, towerType, position)</span><span class="type-signature"></span></h4> + + + + + + +<div class="description"> + Places a tower in the game grid +Implements tower placement validation and state updates +</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>gameState</code></td> + + + <td class="type"> + + +<span class="param-type">Object</span> + + + + </td> + + + + + + <td class="description last">Current game state</td> + </tr> + + + + <tr> + + <td class="name"><code>towerType</code></td> + + + <td class="type"> + + +<span class="param-type">string</span> + + + + </td> + + + + + + <td class="description last">Type of tower to place</td> + </tr> + + + + <tr> + + <td class="name"><code>position</code></td> + + + <td class="type"> + + +<span class="param-type">Object</span> + + + + </td> + + + + + + <td class="description last">Grid position for placement</td> + </tr> + + + </tbody> +</table> + + + + + + +<dl class="details"> + + + + + + + + + + + + + + + + + + + + + + + + + + + <dt class="tag-source">Source:</dt> + <dd class="tag-source"><ul class="dummy"><li> + <a href="uiHandlers.js.html">uiHandlers.js</a>, <a href="uiHandlers.js.html#line86">line 86</a> + </li></ul></dd> + + + + + + + +</dl> + + + + + + + + + + + + + + + + + + + + + + + + + + +</article> + +</section> + + + + +</div> + +<nav> + <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-game.html">game</a></li><li><a href="module-gameState.html">gameState</a></li><li><a href="module-mechanics.html">mechanics</a></li><li><a href="module-path.html">path</a></li><li><a href="module-renderer.html">renderer</a></li><li><a href="module-uiHandlers.html">uiHandlers</a></li></ul> +</nav> + +<br class="clear"> + +<footer> + Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.3</a> on Mon Feb 17 2025 09:19:19 GMT-0500 (Eastern Standard Time) +</footer> + +<script> prettyPrint(); </script> +<script src="scripts/linenumber.js"> </script> +</body> +</html> \ No newline at end of file |