From 7d91eff5fc4245429e60c55b016fe1abeb21c6ac Mon Sep 17 00:00:00 2001 From: elioat Date: Mon, 17 Feb 2025 09:20:00 -0500 Subject: * --- html/tower/docs/module-uiHandlers.html | 543 +++++++++++++++++++++++++++++++++ 1 file changed, 543 insertions(+) create mode 100644 html/tower/docs/module-uiHandlers.html (limited to 'html/tower/docs/module-uiHandlers.html') 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 @@ + + + + + JSDoc: Module: uiHandlers + + + + + + + + + + +
+ +

Module: uiHandlers

+ + + + + + +
+ +
+ + + + + +
+ +
+
+ + +
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
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

(inner) initializeDragAndDrop(canvas, gameState) → {Object}

+ + + + + + +
+ Initializes drag and drop functionality for tower placement +Implements HTML5 Drag and Drop API +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
canvas + + +HTMLCanvasElement + + + + Game canvas element
gameState + + +Object + + + + Current game state
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+ Drag handlers and state information +
+ + + +
+
+ Type +
+
+ +Object + + +
+
+ + + + + + + + + + + + + +

(inner) placeTower(gameState, towerType, position)

+ + + + + + +
+ Places a tower in the game grid +Implements tower placement validation and state updates +
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gameState + + +Object + + + + Current game state
towerType + + +string + + + + Type of tower to place
position + + +Object + + + + Grid position for placement
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file -- cgit 1.4.1-2-gfad0