Permalink
Browse files

Widen path WIP

  • Loading branch information...
1 parent 620362d commit b644b6be6204e7b0e509b20a7a55f07f5a4fc667 @izb committed May 15, 2013
Showing with 398 additions and 166 deletions.
  1. +120 −2 dist/doc/pathfinder.PathFinder.html
  2. +0 −49 dist/doc/tile.Tile.html
  3. +151 −69 dist/snaps.js
  4. +22 −21 dist/snaps.min.js
  5. +100 −17 src/ai/pathfinder.js
  6. +4 −0 src/map/staggered-isometric.js
  7. +1 −8 src/map/tile.js
@@ -513,7 +513,7 @@ <h4 class="name" id="route"><span class="type-signature"></span>route<span class
<dt>
- <h4 class="name" id="routeToDirections"><span class="type-signature"></span>routeToDirections<span class="signature">(route)</span><span class="type-signature"> &rarr; {Array}</span></h4>
+ <h4 class="name" id="routeToDirections"><span class="type-signature"></span>routeToDirections<span class="signature">(route, <span class="optional">widen</span>)</span><span class="type-signature"> &rarr; {Array}</span></h4>
</dt>
@@ -545,8 +545,12 @@ <h4 class="name" id="routeToDirections"><span class="type-signature"></span>rout
<th>Type</th>
+ <th>Argument</th>
+
+ <th>Default</th>
+
<th class="last">Description</th>
</tr>
@@ -570,14 +574,69 @@ <h4 class="name" id="routeToDirections"><span class="type-signature"></span>rout
</td>
+ <td class="attributes">
+
+
+
+
+
+ </td>
+
+
+ <td class="default">
+
+ </td>
<td class="description last">Route in the form returned by
<a href="pathfinder.PathFinder.html#route"><code>route</code></a>.</td>
</tr>
+
+ <tr>
+
+ <td class="name"><code>widen</code></td>
+
+
+ <td class="type">
+
+
+<span class="param-type">Boolean</span>
+
+
+
+ </td>
+
+
+ <td class="attributes">
+
+ &lt;optional><br>
+
+
+
+
+
+ </td>
+
+
+
+ <td class="default">
+
+ false
+
+ </td>
+
+
+ <td class="description last">Widens the route by expanding the path on diagonal
+movements (n,s,e and w on isometric maps). Note that this modifies the passed in
+route array by adding new tiles onto the end as well as returning a larger
+set of output. The tiles in the route will no longer be usable in any sequential
+order.</td>
+ </tr>
+
+
</tbody>
</table>
@@ -645,7 +704,7 @@ <h4 class="name" id="routeToDirections"><span class="type-signature"></span>rout
<dt>
- <h4 class="name" id="routeToVectors"><span class="type-signature"></span>routeToVectors<span class="signature">(route)</span><span class="type-signature"> &rarr; {Array}</span></h4>
+ <h4 class="name" id="routeToVectors"><span class="type-signature"></span>routeToVectors<span class="signature">(route, <span class="optional">widen</span>)</span><span class="type-signature"> &rarr; {Array}</span></h4>
</dt>
@@ -677,8 +736,12 @@ <h4 class="name" id="routeToVectors"><span class="type-signature"></span>routeTo
<th>Type</th>
+ <th>Argument</th>
+
+ <th>Default</th>
+
<th class="last">Description</th>
</tr>
@@ -702,14 +765,69 @@ <h4 class="name" id="routeToVectors"><span class="type-signature"></span>routeTo
</td>
+ <td class="attributes">
+
+
+
+
+
+ </td>
+
+
+ <td class="default">
+
+ </td>
<td class="description last">Route in the form returned by
<a href="pathfinder.PathFinder.html#route"><code>route</code></a>.</td>
</tr>
+
+ <tr>
+
+ <td class="name"><code>widen</code></td>
+
+
+ <td class="type">
+
+
+<span class="param-type">Boolean</span>
+
+
+
+ </td>
+
+
+ <td class="attributes">
+
+ &lt;optional><br>
+
+
+
+
+
+ </td>
+
+
+
+ <td class="default">
+
+ false
+
+ </td>
+
+
+ <td class="description last">Widens the route by expanding the path on diagonal
+movements (n,s,e and w on isometric maps). Note that this modifies the passed in
+route array by adding new tiles onto the end as well as returning a larger
+set of output. The tiles in the route will no longer be usable in any sequential
+order.</td>
+ </tr>
+
+
</tbody>
</table>
@@ -348,55 +348,6 @@ <h4 class="name" id="Tile"><span class="type-signature"></span>new Tile<span cla
- <h3 class="subsection-title">Members</h3>
-
- <dl>
-
-<dt>
- <h4 class="name" id="id"><span class="type-signature"></span>id<span class="type-signature"> :Number</span></h4>
-
-
-</dt>
-<dd>
-
- <div class="description">
- Every tile has a unique ID
- </div>
-
-
-
-<dl class="details">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</dl>
-
-
-
-</dd>
-
- </dl>
-
<h3 class="subsection-title">Methods</h3>
Oops, something went wrong.

0 comments on commit b644b6b

Please sign in to comment.