Files
esengine/source/docs/classes/_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html
2020-11-20 14:07:34 +08:00

507 lines
31 KiB
HTML

<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WeightedGridGraph | @esengine/egret-framework</title>
<meta name="description" content="Documentation for @esengine/egret-framework">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">@esengine/egret-framework</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/_ai_pathfinding_dijkstra_weightedgridgraph_.html">&quot;AI/Pathfinding/Dijkstra/WeightedGridGraph&quot;</a>
</li>
<li>
<a href="../modules/_ai_pathfinding_dijkstra_weightedgridgraph_.es.html">es</a>
</li>
<li>
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html">WeightedGridGraph</a>
</li>
</ul>
<h1>Class WeightedGridGraph</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>支持一种加权节点的基本网格图</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">WeightedGridGraph</span>
</li>
</ul>
</section>
<section class="tsd-panel">
<h3>Implements</h3>
<ul class="tsd-hierarchy">
<li><a href="../interfaces/_ai_pathfinding_dijkstra_iweightedgraph_.es.iweightedgraph.html" class="tsd-signature-type">IWeightedGraph</a><span class="tsd-signature-symbol">&lt;</span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Constructors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_dirs" class="tsd-kind-icon">_dirs</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_height" class="tsd-kind-icon">_height</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_neighbors" class="tsd-kind-icon">_neighbors</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_width" class="tsd-kind-icon">_width</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#defaultweight" class="tsd-kind-icon">default<wbr>Weight</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#walls" class="tsd-kind-icon">walls</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#weightednodeweight" class="tsd-kind-icon">weighted<wbr>Node<wbr>Weight</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#weightednodes" class="tsd-kind-icon">weighted<wbr>Nodes</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#cardinal_dirs" class="tsd-kind-icon">CARDINAL_<wbr>DIRS</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#compass_dirs" class="tsd-kind-icon">COMPASS_<wbr>DIRS</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#cost" class="tsd-kind-icon">cost</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#getneighbors" class="tsd-kind-icon">get<wbr>Neighbors</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#isnodeinbounds" class="tsd-kind-icon">is<wbr>Node<wbr>InBounds</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#isnodepassable" class="tsd-kind-icon">is<wbr>Node<wbr>Passable</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#search" class="tsd-kind-icon">search</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Constructors</h2>
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">new <wbr>Weighted<wbr>Grid<wbr>Graph<span class="tsd-signature-symbol">(</span>width<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, allowDiagonalSearch<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html" class="tsd-signature-type">WeightedGridGraph</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L33">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:33</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>width: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5>height: <span class="tsd-signature-type">number</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> allowDiagonalSearch: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html" class="tsd-signature-type">WeightedGridGraph</a></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_dirs" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _dirs</h3>
<div class="tsd-signature tsd-kind-icon">_dirs<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L32">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:32</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_height" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _height</h3>
<div class="tsd-signature tsd-kind-icon">_height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L31">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:31</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_neighbors" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _neighbors</h3>
<div class="tsd-signature tsd-kind-icon">_neighbors<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = new Array(4)</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L33">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:33</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="_width" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _width</h3>
<div class="tsd-signature tsd-kind-icon">_width<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L30">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:30</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="defaultweight" class="tsd-anchor"></a>
<h3>default<wbr>Weight</h3>
<div class="tsd-signature tsd-kind-icon">default<wbr>Weight<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L27">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:27</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="walls" class="tsd-anchor"></a>
<h3>walls</h3>
<div class="tsd-signature tsd-kind-icon">walls<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L25">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:25</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="weightednodeweight" class="tsd-anchor"></a>
<h3>weighted<wbr>Node<wbr>Weight</h3>
<div class="tsd-signature tsd-kind-icon">weighted<wbr>Node<wbr>Weight<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 5</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L28">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:28</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="weightednodes" class="tsd-anchor"></a>
<h3>weighted<wbr>Nodes</h3>
<div class="tsd-signature tsd-kind-icon">weighted<wbr>Nodes<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L26">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:26</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
<a name="cardinal_dirs" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> CARDINAL_<wbr>DIRS</h3>
<div class="tsd-signature tsd-kind-icon">CARDINAL_<wbr>DIRS<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = [new Vector2(1, 0),new Vector2(0, -1),new Vector2(-1, 0),new Vector2(0, 1)]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L7">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:7</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
<a name="compass_dirs" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> COMPASS_<wbr>DIRS</h3>
<div class="tsd-signature tsd-kind-icon">COMPASS_<wbr>DIRS<span class="tsd-signature-symbol">:</span> <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = [new Vector2(1, 0),new Vector2(1, -1),new Vector2(0, -1),new Vector2(-1, -1),new Vector2(-1, 0),new Vector2(-1, 1),new Vector2(0, 1),new Vector2(1, 1),]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L14">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:14</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="cost" class="tsd-anchor"></a>
<h3>cost</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">cost<span class="tsd-signature-symbol">(</span>from<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, to<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L65">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:65</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>from: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
</li>
<li>
<h5>to: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getneighbors" class="tsd-anchor"></a>
<h3>get<wbr>Neighbors</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Neighbors<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L53">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:53</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>node: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="isnodeinbounds" class="tsd-anchor"></a>
<h3>is<wbr>Node<wbr>InBounds</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">is<wbr>Node<wbr>InBounds<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L41">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:41</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>node: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="isnodepassable" class="tsd-anchor"></a>
<h3>is<wbr>Node<wbr>Passable</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">is<wbr>Node<wbr>Passable<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L45">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:45</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>node: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="search" class="tsd-anchor"></a>
<h3>search</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">search<span class="tsd-signature-symbol">(</span>start<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a>, goal<span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/esengine/egret-framework/blob/562bacb/source/src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts#L49">src/AI/Pathfinding/Dijkstra/WeightedGridGraph.ts:49</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>start: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
</li>
<li>
<h5>goal: <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="_math_vector2_.es.vector2.html" class="tsd-signature-type">Vector2</a><span class="tsd-signature-symbol">[]</span></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class="current tsd-kind-module">
<a href="../modules/_ai_pathfinding_dijkstra_weightedgridgraph_.html">&quot;AI/<wbr>Pathfinding/<wbr>Dijkstra/<wbr>Weighted<wbr>Grid<wbr>Graph&quot;</a>
<ul>
<li class="current tsd-kind-namespace tsd-parent-kind-module">
<a href="../modules/_ai_pathfinding_dijkstra_weightedgridgraph_.es.html">es</a>
</li>
</ul>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-namespace">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html" class="tsd-kind-icon">Weighted<wbr>Grid<wbr>Graph</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_dirs" class="tsd-kind-icon">_dirs</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_height" class="tsd-kind-icon">_height</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_neighbors" class="tsd-kind-icon">_neighbors</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#_width" class="tsd-kind-icon">_width</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#defaultweight" class="tsd-kind-icon">default<wbr>Weight</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#walls" class="tsd-kind-icon">walls</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#weightednodeweight" class="tsd-kind-icon">weighted<wbr>Node<wbr>Weight</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#weightednodes" class="tsd-kind-icon">weighted<wbr>Nodes</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#cardinal_dirs" class="tsd-kind-icon">CARDINAL_<wbr>DIRS</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-static">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#compass_dirs" class="tsd-kind-icon">COMPASS_<wbr>DIRS</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#cost" class="tsd-kind-icon">cost</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#getneighbors" class="tsd-kind-icon">get<wbr>Neighbors</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#isnodeinbounds" class="tsd-kind-icon">is<wbr>Node<wbr>InBounds</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#isnodepassable" class="tsd-kind-icon">is<wbr>Node<wbr>Passable</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_ai_pathfinding_dijkstra_weightedgridgraph_.es.weightedgridgraph.html#search" class="tsd-kind-icon">search</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>