Skip to content

Commit

Permalink
refactor: update JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
andretchen0 committed Jul 31, 2023
1 parent 0009279 commit cda9d1c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/utility/pathfinding.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as arrayUtils from './arrayUtils';

/** search
* @param {Hex} start ?
* @param {Hex} end ?
* @param {?} creatureSize ?
* @param {?} creatureId ?
* @param {?} grid ?
* @returns {?} ?
/**
* @param {Hex} start - Starting point of search
* @param {Hex} end - Ending point of search
* @param {number} creatureSize - The size of the creature who will walk the searched path
* @param {number} creatureId - The id of the creature who will walk the searched path
* @param {HexGrid} grid - The HexGrid instance to search
* @returns {Hex[]} A path of hexes or an empty array if no path is found
*/
export function search(start, end, creatureSize, creatureId, grid) {
const openList = [];
Expand Down

0 comments on commit cda9d1c

Please sign in to comment.