diff --git a/README.md b/README.md index 6b29749..aa6b5f5 100644 --- a/README.md +++ b/README.md @@ -1,59 +1,72 @@ -# Pathway -A module that will enable pathfinding functionality in the Vylocity Game Engine +# Pathway Module + +The Pathway module smoothly integrates pathfinding into the Vylocity Game Engine, allowing map instances to navigate environments more efficiently. Uses [easystar](https://github.com/prettymuchbryce/easystarjs) under the hood. +## Installation + +### ES Module -# ES Module ```js -// Importing as an ES module import { Pathway } from './pathway.mjs'; ``` -# IIFE (Immediately Invoked Function Expression) -```js - - +### IIFE (Immediately Invoked Function Expression) +```js +; // ... -window.PathwayBundle.Pathway +window.PathwayBundle.Pathway; ``` -# CommonJS (CJS) Module +### CommonJS (CJS) Module ```js -// Importing as a CommonJS module (Node.js) const { Pathway } = require('./pathway.cjs.js'); ``` -## API - -### instance.pathwayWeight - - `type`: `number` - - `desc`: The weight of this instance in the pathfinder system, higher values will try to make the pathfinder generate paths that do not include this instance. A weight of `0` is converying that is is passable. A weight of `-1` means it is impassable. Weights are optional! - -### Pathway.to(pInstance, pDestination, pOptions) - - `pInstance`: The instance to move. `object` - - `pDestination.x`: The xCoordinate to move to `integer` - - `pDestination.y`: The yCoordinate to move to `integer` - - `pOptions.diagonal`: Whether or not the pathfinder allows diagonal moves `boolean` - - `pOptions.mode`: How this instance will move. `collision` for moving with collisions in mind (movePos). `position` for moving with no collisions in mind (setPos). `string` - - `pOptions.pixelsPerSecond`: The speed in pixels this instance moves per second. This setting only works when `pOptions.mode` is set to `position`.`number` - - `pOptions.exclude`: An array of diobs that will be excluded when calculating the path `array` - - `pOptions.minDistance`: The minimum distance this pathway system will use to calculate if you have reached the (next) node. `number` - - `pOptions.maxStuckCounter`: The maximum amount of ticks of pInstance being in the same position as the last tick before its considered stuck. `number` - - `pOptions.onPathComplete`: Callback for when pInstance makes it to the `function` - - `pOptions.onPathFound`: Callback for when pInstance finds a path. The first parameter is the path that was generated. `function` - - `pOptions.onPathStuck`: Callback for when pInstance gets stuck on a path. `function` - - `pOptions.onPathNotFound`: Callback for when no path is found. `function` - - `desc`: Moves `pInstance` to the provided coordinates by walking along a generated path free of obstacles. - -### Pathway.end(pInstance) - - `pInstance`: The instance to end the pathfinding on. - - `desc`: Cancels the current path if there is one and stops this instance from moving - -### Pathway.setTileSize(pTileSize) - - `pTileSize`: The size of the tileset. `number` | `object` `pTileSize.width` and `pTileSize.height` when using an object. - - `desc`: Sets the tile size internally for this pathway system to reference. This is how pathway will determine node positions. - -This module expects the `VYLO` variable to be exposed globally. \ No newline at end of file +## API + +### MapInstance Properties + +#### `pathwayWeight` + +- **Type**: `number` +- **Description**: Represents the importance of an element in pathfinding. Higher values indicate that paths should avoid this element. A weight of `0` means it's easy to traverse, while `-1` indicates an impassable obstacle. This property is optional. + +### Methods + +#### `Pathway.to(pInstance, pDestination, pOptions)` + +- **Parameters**: + - `pInstance`: The moving element. + - `pDestination.x`: The destination's x-coordinate. + - `pDestination.y`: The destination's y-coordinate. + - `pOptions.diagonal`: Whether diagonal movement is allowed. + - `pOptions.mode`: Movement style (`collision` considers obstacles, `position` ignores obstacles). + - `pOptions.pixelsPerSecond`: Speed of movement in pixels per second (applies only in `position` mode). + - `pOptions.exclude`: An array of obstacles to avoid when planning the path. + - `pOptions.minDistance`: Minimum distance to determine node proximity. + - `pOptions.maxStuckCounter`: Maximum consecutive ticks without movement before considering the instance stuck. + - `pOptions.onPathComplete`: Callback executed when the element reaches its destination. + - `pOptions.onPathFound`: Callback executed when a viable path is found. + - `pOptions.onPathStuck`: Callback executed when an element gets stuck on its path. + - `pOptions.onPathNotFound`: Callback executed when no path is found. +- **Description**: Guides an element to a destination along a clear path, avoiding obstacles as necessary. + +#### `Pathway.end(pInstance)` + +- **Parameters**: + - `pInstance`: The element to stop pathfinding for. +- **Description**: Halts the current path and stops the element's movement. + +#### `Pathway.setTileSize(pTileSize)` + +- **Parameters**: + - `pTileSize`: The dimensions of the tileset. +- **Description**: Sets the size of tiles for the pathway system to reference. + +### Global Dependency + +Pathway relies on the `VYLO` variable being globally accessible. diff --git a/docs/ast/source/pathway.mjs.json b/docs/ast/source/pathway.mjs.json index cfc459a..aa8bee6 100644 --- a/docs/ast/source/pathway.mjs.json +++ b/docs/ast/source/pathway.mjs.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 31169, + "end": 31212, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 31169, + "end": 31212, "loc": { "start": { "line": 1, @@ -307,7 +307,7 @@ { "type": "Identifier", "start": 241, - "end": 30528, + "end": 30571, "loc": { "start": { "line": 10, @@ -340,7 +340,7 @@ "body": { "type": "ClassBody", "start": 264, - "end": 30528, + "end": 30571, "loc": { "start": { "line": 10, @@ -2394,7 +2394,7 @@ { "type": "ClassMethod", "start": 4942, - "end": 12015, + "end": 12061, "loc": { "start": { "line": 135, @@ -2486,7 +2486,7 @@ "body": { "type": "BlockStatement", "start": 4980, - "end": 12015, + "end": 12061, "loc": { "start": { "line": 135, @@ -2501,7 +2501,7 @@ { "type": "IfStatement", "start": 4985, - "end": 12011, + "end": 12057, "loc": { "start": { "line": 136, @@ -2592,7 +2592,7 @@ "consequent": { "type": "BlockStatement", "start": 5021, - "end": 11892, + "end": 11938, "loc": { "start": { "line": 136, @@ -2606,8 +2606,8 @@ "body": [ { "type": "IfStatement", - "start": 5072, - "end": 5219, + "start": 5068, + "end": 5215, "loc": { "start": { "line": 138, @@ -2620,8 +2620,8 @@ }, "test": { "type": "UnaryExpression", - "start": 5076, - "end": 5094, + "start": 5072, + "end": 5090, "loc": { "start": { "line": 138, @@ -2636,8 +2636,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 5077, - "end": 5094, + "start": 5073, + "end": 5090, "loc": { "start": { "line": 138, @@ -2650,8 +2650,8 @@ }, "object": { "type": "Identifier", - "start": 5077, - "end": 5086, + "start": 5073, + "end": 5082, "loc": { "start": { "line": 138, @@ -2668,8 +2668,8 @@ }, "property": { "type": "Identifier", - "start": 5087, - "end": 5094, + "start": 5083, + "end": 5090, "loc": { "start": { "line": 138, @@ -2693,8 +2693,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5096, - "end": 5219, + "start": 5092, + "end": 5215, "loc": { "start": { "line": 138, @@ -2708,8 +2708,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5103, - "end": 5200, + "start": 5099, + "end": 5196, "loc": { "start": { "line": 139, @@ -2722,8 +2722,8 @@ }, "expression": { "type": "CallExpression", - "start": 5103, - "end": 5199, + "start": 5099, + "end": 5195, "loc": { "start": { "line": 139, @@ -2736,8 +2736,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5103, - "end": 5145, + "start": 5099, + "end": 5141, "loc": { "start": { "line": 139, @@ -2750,8 +2750,8 @@ }, "object": { "type": "CallExpression", - "start": 5103, - "end": 5139, + "start": 5099, + "end": 5135, "loc": { "start": { "line": 139, @@ -2764,8 +2764,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5103, - "end": 5121, + "start": 5099, + "end": 5117, "loc": { "start": { "line": 139, @@ -2778,8 +2778,8 @@ }, "object": { "type": "MemberExpression", - "start": 5103, - "end": 5114, + "start": 5099, + "end": 5110, "loc": { "start": { "line": 139, @@ -2792,8 +2792,8 @@ }, "object": { "type": "ThisExpression", - "start": 5103, - "end": 5107, + "start": 5099, + "end": 5103, "loc": { "start": { "line": 139, @@ -2807,8 +2807,8 @@ }, "property": { "type": "Identifier", - "start": 5108, - "end": 5114, + "start": 5104, + "end": 5110, "loc": { "start": { "line": 139, @@ -2826,8 +2826,8 @@ }, "property": { "type": "Identifier", - "start": 5115, - "end": 5121, + "start": 5111, + "end": 5117, "loc": { "start": { "line": 139, @@ -2846,8 +2846,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5122, - "end": 5138, + "start": 5118, + "end": 5134, "loc": { "start": { "line": 139, @@ -2868,8 +2868,8 @@ }, "property": { "type": "Identifier", - "start": 5140, - "end": 5145, + "start": 5136, + "end": 5141, "loc": { "start": { "line": 139, @@ -2888,8 +2888,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5146, - "end": 5198, + "start": 5142, + "end": 5194, "loc": { "start": { "line": 139, @@ -2911,8 +2911,8 @@ }, { "type": "ReturnStatement", - "start": 5206, - "end": 5213, + "start": 5202, + "end": 5209, "loc": { "start": { "line": 140, @@ -2933,9 +2933,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " If this instance is not on a mapname.", + "value": " If this instance is not on a map.", "start": 5027, - "end": 5067, + "end": 5063, "loc": { "start": { "line": 137, @@ -2943,7 +2943,7 @@ }, "end": { "line": 137, - "column": 43 + "column": 39 } } } @@ -2952,8 +2952,8 @@ { "type": "CommentLine", "value": " If there is no destination object passed return.", - "start": 5226, - "end": 5277, + "start": 5222, + "end": 5273, "loc": { "start": { "line": 143, @@ -2969,8 +2969,8 @@ }, { "type": "IfStatement", - "start": 5282, - "end": 5452, + "start": 5278, + "end": 5448, "loc": { "start": { "line": 144, @@ -2983,8 +2983,8 @@ }, "test": { "type": "BinaryExpression", - "start": 5286, - "end": 5319, + "start": 5282, + "end": 5315, "loc": { "start": { "line": 144, @@ -2997,8 +2997,8 @@ }, "left": { "type": "UnaryExpression", - "start": 5286, - "end": 5306, + "start": 5282, + "end": 5302, "loc": { "start": { "line": 144, @@ -3013,8 +3013,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 5293, - "end": 5305, + "start": 5289, + "end": 5301, "loc": { "start": { "line": 144, @@ -3030,7 +3030,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 5292 + "parenStart": 5288 } }, "extra": { @@ -3041,8 +3041,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 5311, - "end": 5319, + "start": 5307, + "end": 5315, "loc": { "start": { "line": 144, @@ -3063,8 +3063,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5321, - "end": 5452, + "start": 5317, + "end": 5448, "loc": { "start": { "line": 144, @@ -3078,8 +3078,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5328, - "end": 5433, + "start": 5324, + "end": 5429, "loc": { "start": { "line": 145, @@ -3092,8 +3092,8 @@ }, "expression": { "type": "CallExpression", - "start": 5328, - "end": 5432, + "start": 5324, + "end": 5428, "loc": { "start": { "line": 145, @@ -3106,8 +3106,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5328, - "end": 5370, + "start": 5324, + "end": 5366, "loc": { "start": { "line": 145, @@ -3120,8 +3120,8 @@ }, "object": { "type": "CallExpression", - "start": 5328, - "end": 5364, + "start": 5324, + "end": 5360, "loc": { "start": { "line": 145, @@ -3134,8 +3134,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5328, - "end": 5346, + "start": 5324, + "end": 5342, "loc": { "start": { "line": 145, @@ -3148,8 +3148,8 @@ }, "object": { "type": "MemberExpression", - "start": 5328, - "end": 5339, + "start": 5324, + "end": 5335, "loc": { "start": { "line": 145, @@ -3162,8 +3162,8 @@ }, "object": { "type": "ThisExpression", - "start": 5328, - "end": 5332, + "start": 5324, + "end": 5328, "loc": { "start": { "line": 145, @@ -3177,8 +3177,8 @@ }, "property": { "type": "Identifier", - "start": 5333, - "end": 5339, + "start": 5329, + "end": 5335, "loc": { "start": { "line": 145, @@ -3196,8 +3196,8 @@ }, "property": { "type": "Identifier", - "start": 5340, - "end": 5346, + "start": 5336, + "end": 5342, "loc": { "start": { "line": 145, @@ -3216,8 +3216,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5347, - "end": 5363, + "start": 5343, + "end": 5359, "loc": { "start": { "line": 145, @@ -3238,8 +3238,8 @@ }, "property": { "type": "Identifier", - "start": 5365, - "end": 5370, + "start": 5361, + "end": 5366, "loc": { "start": { "line": 145, @@ -3258,8 +3258,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5371, - "end": 5431, + "start": 5367, + "end": 5427, "loc": { "start": { "line": 145, @@ -3281,8 +3281,8 @@ }, { "type": "ReturnStatement", - "start": 5439, - "end": 5446, + "start": 5435, + "end": 5442, "loc": { "start": { "line": 146, @@ -3304,8 +3304,8 @@ { "type": "CommentLine", "value": " If there is no destination object passed return.", - "start": 5226, - "end": 5277, + "start": 5222, + "end": 5273, "loc": { "start": { "line": 143, @@ -3322,8 +3322,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 5459, - "end": 5501, + "start": 5455, + "end": 5497, "loc": { "start": { "line": 149, @@ -3339,8 +3339,8 @@ }, { "type": "VariableDeclaration", - "start": 5506, - "end": 5561, + "start": 5502, + "end": 5557, "loc": { "start": { "line": 150, @@ -3354,8 +3354,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5510, - "end": 5560, + "start": 5506, + "end": 5556, "loc": { "start": { "line": 150, @@ -3368,8 +3368,8 @@ }, "id": { "type": "Identifier", - "start": 5510, - "end": 5522, + "start": 5506, + "end": 5518, "loc": { "start": { "line": 150, @@ -3386,8 +3386,8 @@ }, "init": { "type": "CallExpression", - "start": 5525, - "end": 5560, + "start": 5521, + "end": 5556, "loc": { "start": { "line": 150, @@ -3400,8 +3400,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5525, - "end": 5549, + "start": 5521, + "end": 5545, "loc": { "start": { "line": 150, @@ -3414,8 +3414,8 @@ }, "object": { "type": "MemberExpression", - "start": 5525, - "end": 5545, + "start": 5521, + "end": 5541, "loc": { "start": { "line": 150, @@ -3428,8 +3428,8 @@ }, "object": { "type": "ThisExpression", - "start": 5525, - "end": 5529, + "start": 5521, + "end": 5525, "loc": { "start": { "line": 150, @@ -3443,8 +3443,8 @@ }, "property": { "type": "Identifier", - "start": 5530, - "end": 5545, + "start": 5526, + "end": 5541, "loc": { "start": { "line": 150, @@ -3462,8 +3462,8 @@ }, "property": { "type": "Identifier", - "start": 5546, - "end": 5549, + "start": 5542, + "end": 5545, "loc": { "start": { "line": 150, @@ -3482,8 +3482,8 @@ "arguments": [ { "type": "Identifier", - "start": 5550, - "end": 5559, + "start": 5546, + "end": 5555, "loc": { "start": { "line": 150, @@ -3507,8 +3507,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 5459, - "end": 5501, + "start": 5455, + "end": 5497, "loc": { "start": { "line": 149, @@ -3524,8 +3524,8 @@ }, { "type": "IfStatement", - "start": 5568, - "end": 7218, + "start": 5564, + "end": 7214, "loc": { "start": { "line": 152, @@ -3538,8 +3538,8 @@ }, "test": { "type": "UnaryExpression", - "start": 5572, - "end": 5585, + "start": 5568, + "end": 5581, "loc": { "start": { "line": 152, @@ -3554,8 +3554,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 5573, - "end": 5585, + "start": 5569, + "end": 5581, "loc": { "start": { "line": 152, @@ -3575,8 +3575,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5587, - "end": 7124, + "start": 5583, + "end": 7120, "loc": { "start": { "line": 152, @@ -3590,8 +3590,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5624, - "end": 6704, + "start": 5620, + "end": 6700, "loc": { "start": { "line": 154, @@ -3604,8 +3604,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5624, - "end": 6703, + "start": 5620, + "end": 6699, "loc": { "start": { "line": 154, @@ -3619,8 +3619,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 5624, - "end": 5636, + "start": 5620, + "end": 5632, "loc": { "start": { "line": 154, @@ -3637,8 +3637,8 @@ }, "right": { "type": "ObjectExpression", - "start": 5639, - "end": 6703, + "start": 5635, + "end": 6699, "loc": { "start": { "line": 154, @@ -3652,8 +3652,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5647, - "end": 5741, + "start": 5643, + "end": 5737, "loc": { "start": { "line": 155, @@ -3669,8 +3669,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5647, - "end": 5657, + "start": 5643, + "end": 5653, "loc": { "start": { "line": 155, @@ -3686,8 +3686,8 @@ }, "value": { "type": "ObjectExpression", - "start": 5659, - "end": 5741, + "start": 5655, + "end": 5737, "loc": { "start": { "line": 155, @@ -3701,8 +3701,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5669, - "end": 5677, + "start": 5665, + "end": 5673, "loc": { "start": { "line": 156, @@ -3718,8 +3718,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5669, - "end": 5674, + "start": 5665, + "end": 5670, "loc": { "start": { "line": 156, @@ -3735,8 +3735,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5676, - "end": 5677, + "start": 5672, + "end": 5673, "loc": { "start": { "line": 156, @@ -3756,8 +3756,8 @@ }, { "type": "ObjectProperty", - "start": 5687, - "end": 5691, + "start": 5683, + "end": 5687, "loc": { "start": { "line": 157, @@ -3773,8 +3773,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5687, - "end": 5688, + "start": 5683, + "end": 5684, "loc": { "start": { "line": 157, @@ -3790,8 +3790,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5690, - "end": 5691, + "start": 5686, + "end": 5687, "loc": { "start": { "line": 157, @@ -3811,8 +3811,8 @@ }, { "type": "ObjectProperty", - "start": 5701, - "end": 5705, + "start": 5697, + "end": 5701, "loc": { "start": { "line": 158, @@ -3828,8 +3828,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5701, - "end": 5702, + "start": 5697, + "end": 5698, "loc": { "start": { "line": 158, @@ -3845,8 +3845,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5704, - "end": 5705, + "start": 5700, + "end": 5701, "loc": { "start": { "line": 158, @@ -3866,8 +3866,8 @@ }, { "type": "ObjectProperty", - "start": 5715, - "end": 5732, + "start": 5711, + "end": 5728, "loc": { "start": { "line": 159, @@ -3883,8 +3883,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5715, - "end": 5726, + "start": 5711, + "end": 5722, "loc": { "start": { "line": 159, @@ -3900,8 +3900,8 @@ }, "value": { "type": "NullLiteral", - "start": 5728, - "end": 5732, + "start": 5724, + "end": 5728, "loc": { "start": { "line": 159, @@ -3919,8 +3919,8 @@ }, { "type": "ObjectProperty", - "start": 5796, - "end": 5827, + "start": 5792, + "end": 5823, "loc": { "start": { "line": 162, @@ -3936,8 +3936,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5796, - "end": 5811, + "start": 5792, + "end": 5807, "loc": { "start": { "line": 162, @@ -3954,8 +3954,8 @@ }, "value": { "type": "ObjectExpression", - "start": 5813, - "end": 5827, + "start": 5809, + "end": 5823, "loc": { "start": { "line": 162, @@ -3969,8 +3969,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5815, - "end": 5819, + "start": 5811, + "end": 5815, "loc": { "start": { "line": 162, @@ -3986,8 +3986,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5815, - "end": 5816, + "start": 5811, + "end": 5812, "loc": { "start": { "line": 162, @@ -4003,8 +4003,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5818, - "end": 5819, + "start": 5814, + "end": 5815, "loc": { "start": { "line": 162, @@ -4024,8 +4024,8 @@ }, { "type": "ObjectProperty", - "start": 5821, - "end": 5825, + "start": 5817, + "end": 5821, "loc": { "start": { "line": 162, @@ -4041,8 +4041,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5821, - "end": 5822, + "start": 5817, + "end": 5818, "loc": { "start": { "line": 162, @@ -4058,8 +4058,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5824, - "end": 5825, + "start": 5820, + "end": 5821, "loc": { "start": { "line": 162, @@ -4083,8 +4083,8 @@ { "type": "CommentLine", "value": " The current position of the instance.", - "start": 5749, - "end": 5789, + "start": 5745, + "end": 5785, "loc": { "start": { "line": 161, @@ -4100,8 +4100,8 @@ }, { "type": "ObjectProperty", - "start": 5902, - "end": 5934, + "start": 5898, + "end": 5930, "loc": { "start": { "line": 164, @@ -4117,8 +4117,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5902, - "end": 5918, + "start": 5898, + "end": 5914, "loc": { "start": { "line": 164, @@ -4135,8 +4135,8 @@ }, "value": { "type": "ObjectExpression", - "start": 5920, - "end": 5934, + "start": 5916, + "end": 5930, "loc": { "start": { "line": 164, @@ -4150,8 +4150,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5922, - "end": 5926, + "start": 5918, + "end": 5922, "loc": { "start": { "line": 164, @@ -4167,8 +4167,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5922, - "end": 5923, + "start": 5918, + "end": 5919, "loc": { "start": { "line": 164, @@ -4184,8 +4184,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5925, - "end": 5926, + "start": 5921, + "end": 5922, "loc": { "start": { "line": 164, @@ -4205,8 +4205,8 @@ }, { "type": "ObjectProperty", - "start": 5928, - "end": 5932, + "start": 5924, + "end": 5928, "loc": { "start": { "line": 164, @@ -4222,8 +4222,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5928, - "end": 5929, + "start": 5924, + "end": 5925, "loc": { "start": { "line": 164, @@ -4239,8 +4239,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5931, - "end": 5932, + "start": 5927, + "end": 5928, "loc": { "start": { "line": 164, @@ -4264,8 +4264,8 @@ { "type": "CommentLine", "value": " The previous position of the instance in the tick before.", - "start": 5835, - "end": 5895, + "start": 5831, + "end": 5891, "loc": { "start": { "line": 163, @@ -4281,8 +4281,8 @@ }, { "type": "ObjectProperty", - "start": 6161, - "end": 6176, + "start": 6157, + "end": 6172, "loc": { "start": { "line": 167, @@ -4298,8 +4298,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6161, - "end": 6173, + "start": 6157, + "end": 6169, "loc": { "start": { "line": 167, @@ -4316,8 +4316,8 @@ }, "value": { "type": "NumericLiteral", - "start": 6175, - "end": 6176, + "start": 6171, + "end": 6172, "loc": { "start": { "line": 167, @@ -4338,8 +4338,8 @@ { "type": "CommentLine", "value": " The stuck counter of this instance. When this instance is in the same position for multiple ticks, this value is added onto up until -", - "start": 5942, - "end": 6079, + "start": 5938, + "end": 6075, "loc": { "start": { "line": 165, @@ -4354,8 +4354,8 @@ { "type": "CommentLine", "value": " the max stuck counter is reached and the `stuck` event is called.", - "start": 6086, - "end": 6154, + "start": 6082, + "end": 6150, "loc": { "start": { "line": 166, @@ -4371,8 +4371,8 @@ }, { "type": "ObjectProperty", - "start": 6184, - "end": 6235, + "start": 6180, + "end": 6231, "loc": { "start": { "line": 168, @@ -4388,8 +4388,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6184, - "end": 6199, + "start": 6180, + "end": 6195, "loc": { "start": { "line": 168, @@ -4405,8 +4405,8 @@ }, "value": { "type": "MemberExpression", - "start": 6201, - "end": 6235, + "start": 6197, + "end": 6231, "loc": { "start": { "line": 168, @@ -4419,8 +4419,8 @@ }, "object": { "type": "Identifier", - "start": 6201, - "end": 6217, + "start": 6197, + "end": 6213, "loc": { "start": { "line": 168, @@ -4436,8 +4436,8 @@ }, "property": { "type": "Identifier", - "start": 6218, - "end": 6235, + "start": 6214, + "end": 6231, "loc": { "start": { "line": 168, @@ -4456,8 +4456,8 @@ }, { "type": "ObjectProperty", - "start": 6243, - "end": 6255, + "start": 6239, + "end": 6251, "loc": { "start": { "line": 169, @@ -4473,8 +4473,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6243, - "end": 6249, + "start": 6239, + "end": 6245, "loc": { "start": { "line": 169, @@ -4490,8 +4490,8 @@ }, "value": { "type": "NullLiteral", - "start": 6251, - "end": 6255, + "start": 6247, + "end": 6251, "loc": { "start": { "line": 169, @@ -4506,8 +4506,8 @@ }, { "type": "ObjectProperty", - "start": 6326, - "end": 6334, + "start": 6322, + "end": 6330, "loc": { "start": { "line": 170, @@ -4523,8 +4523,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6326, - "end": 6330, + "start": 6322, + "end": 6326, "loc": { "start": { "line": 170, @@ -4541,8 +4541,8 @@ }, "value": { "type": "ArrayExpression", - "start": 6332, - "end": 6334, + "start": 6328, + "end": 6330, "loc": { "start": { "line": 170, @@ -4559,8 +4559,8 @@ { "type": "CommentLine", "value": " ID of the path that was generated. Used to cancel the path.", - "start": 6257, - "end": 6319, + "start": 6253, + "end": 6315, "loc": { "start": { "line": 169, @@ -4576,8 +4576,8 @@ }, { "type": "ObjectProperty", - "start": 6342, - "end": 6354, + "start": 6338, + "end": 6350, "loc": { "start": { "line": 171, @@ -4593,8 +4593,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6342, - "end": 6348, + "start": 6338, + "end": 6344, "loc": { "start": { "line": 171, @@ -4610,8 +4610,8 @@ }, "value": { "type": "NullLiteral", - "start": 6350, - "end": 6354, + "start": 6346, + "end": 6350, "loc": { "start": { "line": 171, @@ -4626,8 +4626,8 @@ }, { "type": "ObjectProperty", - "start": 6362, - "end": 6397, + "start": 6358, + "end": 6393, "loc": { "start": { "line": 172, @@ -4643,8 +4643,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6362, - "end": 6366, + "start": 6358, + "end": 6362, "loc": { "start": { "line": 172, @@ -4660,8 +4660,8 @@ }, "value": { "type": "MemberExpression", - "start": 6368, - "end": 6397, + "start": 6364, + "end": 6393, "loc": { "start": { "line": 172, @@ -4674,8 +4674,8 @@ }, "object": { "type": "Identifier", - "start": 6368, - "end": 6384, + "start": 6364, + "end": 6380, "loc": { "start": { "line": 172, @@ -4691,8 +4691,8 @@ }, "property": { "type": "Identifier", - "start": 6385, - "end": 6397, + "start": 6381, + "end": 6393, "loc": { "start": { "line": 172, @@ -4711,8 +4711,8 @@ }, { "type": "ObjectProperty", - "start": 6405, - "end": 6464, + "start": 6401, + "end": 6460, "loc": { "start": { "line": 173, @@ -4728,8 +4728,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6405, - "end": 6420, + "start": 6401, + "end": 6416, "loc": { "start": { "line": 173, @@ -4745,8 +4745,8 @@ }, "value": { "type": "MemberExpression", - "start": 6422, - "end": 6464, + "start": 6418, + "end": 6460, "loc": { "start": { "line": 173, @@ -4759,8 +4759,8 @@ }, "object": { "type": "Identifier", - "start": 6422, - "end": 6438, + "start": 6418, + "end": 6434, "loc": { "start": { "line": 173, @@ -4776,8 +4776,8 @@ }, "property": { "type": "Identifier", - "start": 6439, - "end": 6464, + "start": 6435, + "end": 6460, "loc": { "start": { "line": 173, @@ -4796,8 +4796,8 @@ }, { "type": "ObjectProperty", - "start": 6472, - "end": 6526, + "start": 6468, + "end": 6522, "loc": { "start": { "line": 174, @@ -4813,8 +4813,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6472, - "end": 6483, + "start": 6468, + "end": 6479, "loc": { "start": { "line": 174, @@ -4830,8 +4830,8 @@ }, "value": { "type": "MemberExpression", - "start": 6485, - "end": 6526, + "start": 6481, + "end": 6522, "loc": { "start": { "line": 174, @@ -4844,8 +4844,8 @@ }, "object": { "type": "Identifier", - "start": 6485, - "end": 6501, + "start": 6481, + "end": 6497, "loc": { "start": { "line": 174, @@ -4861,8 +4861,8 @@ }, "property": { "type": "Identifier", - "start": 6502, - "end": 6526, + "start": 6498, + "end": 6522, "loc": { "start": { "line": 174, @@ -4881,8 +4881,8 @@ }, { "type": "ObjectProperty", - "start": 6534, - "end": 6661, + "start": 6530, + "end": 6657, "loc": { "start": { "line": 175, @@ -4898,8 +4898,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6534, - "end": 6540, + "start": 6530, + "end": 6536, "loc": { "start": { "line": 175, @@ -4915,8 +4915,8 @@ }, "value": { "type": "ObjectExpression", - "start": 6542, - "end": 6661, + "start": 6538, + "end": 6657, "loc": { "start": { "line": 175, @@ -4930,8 +4930,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 6551, - "end": 6568, + "start": 6547, + "end": 6564, "loc": { "start": { "line": 176, @@ -4947,8 +4947,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6551, - "end": 6562, + "start": 6547, + "end": 6558, "loc": { "start": { "line": 176, @@ -4964,8 +4964,8 @@ }, "value": { "type": "NullLiteral", - "start": 6564, - "end": 6568, + "start": 6560, + "end": 6564, "loc": { "start": { "line": 176, @@ -4980,8 +4980,8 @@ }, { "type": "ObjectProperty", - "start": 6577, - "end": 6597, + "start": 6573, + "end": 6593, "loc": { "start": { "line": 177, @@ -4997,8 +4997,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6577, - "end": 6591, + "start": 6573, + "end": 6587, "loc": { "start": { "line": 177, @@ -5014,8 +5014,8 @@ }, "value": { "type": "NullLiteral", - "start": 6593, - "end": 6597, + "start": 6589, + "end": 6593, "loc": { "start": { "line": 177, @@ -5030,8 +5030,8 @@ }, { "type": "ObjectProperty", - "start": 6606, - "end": 6623, + "start": 6602, + "end": 6619, "loc": { "start": { "line": 178, @@ -5047,8 +5047,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6606, - "end": 6617, + "start": 6602, + "end": 6613, "loc": { "start": { "line": 178, @@ -5064,8 +5064,8 @@ }, "value": { "type": "NullLiteral", - "start": 6619, - "end": 6623, + "start": 6615, + "end": 6619, "loc": { "start": { "line": 178, @@ -5080,8 +5080,8 @@ }, { "type": "ObjectProperty", - "start": 6632, - "end": 6652, + "start": 6628, + "end": 6648, "loc": { "start": { "line": 179, @@ -5097,8 +5097,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6632, - "end": 6646, + "start": 6628, + "end": 6642, "loc": { "start": { "line": 179, @@ -5114,8 +5114,8 @@ }, "value": { "type": "NullLiteral", - "start": 6648, - "end": 6652, + "start": 6644, + "end": 6648, "loc": { "start": { "line": 179, @@ -5133,8 +5133,8 @@ }, { "type": "ObjectProperty", - "start": 6669, - "end": 6696, + "start": 6665, + "end": 6692, "loc": { "start": { "line": 181, @@ -5150,8 +5150,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6669, - "end": 6677, + "start": 6665, + "end": 6673, "loc": { "start": { "line": 181, @@ -5167,8 +5167,8 @@ }, "value": { "type": "NewExpression", - "start": 6679, - "end": 6696, + "start": 6675, + "end": 6692, "loc": { "start": { "line": 181, @@ -5181,8 +5181,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6683, - "end": 6694, + "start": 6679, + "end": 6690, "loc": { "start": { "line": 181, @@ -5195,8 +5195,8 @@ }, "object": { "type": "Identifier", - "start": 6683, - "end": 6691, + "start": 6679, + "end": 6687, "loc": { "start": { "line": 181, @@ -5212,8 +5212,8 @@ }, "property": { "type": "Identifier", - "start": 6692, - "end": 6694, + "start": 6688, + "end": 6690, "loc": { "start": { "line": 181, @@ -5240,8 +5240,8 @@ { "type": "CommentLine", "value": " Set the instance data", - "start": 5594, - "end": 5618, + "start": 5590, + "end": 5614, "loc": { "start": { "line": 153, @@ -5258,8 +5258,8 @@ { "type": "CommentLine", "value": " If you have a large grid, then it is possible that these calculations could slow down the browser. ", - "start": 6710, - "end": 6812, + "start": 6706, + "end": 6808, "loc": { "start": { "line": 183, @@ -5274,8 +5274,8 @@ { "type": "CommentLine", "value": " For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation", - "start": 6818, - "end": 6913, + "start": 6814, + "end": 6909, "loc": { "start": { "line": 184, @@ -5290,8 +5290,8 @@ { "type": "CommentLine", "value": " https://github.com/prettymuchbryce/easystarjs", - "start": 6919, - "end": 6967, + "start": 6915, + "end": 6963, "loc": { "start": { "line": 185, @@ -5307,8 +5307,8 @@ }, { "type": "ExpressionStatement", - "start": 6973, - "end": 7029, + "start": 6969, + "end": 7025, "loc": { "start": { "line": 186, @@ -5321,8 +5321,8 @@ }, "expression": { "type": "CallExpression", - "start": 6973, - "end": 7028, + "start": 6969, + "end": 7024, "loc": { "start": { "line": 186, @@ -5335,8 +5335,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6973, - "end": 7022, + "start": 6969, + "end": 7018, "loc": { "start": { "line": 186, @@ -5349,8 +5349,8 @@ }, "object": { "type": "MemberExpression", - "start": 6973, - "end": 6994, + "start": 6969, + "end": 6990, "loc": { "start": { "line": 186, @@ -5363,8 +5363,8 @@ }, "object": { "type": "Identifier", - "start": 6973, - "end": 6985, + "start": 6969, + "end": 6981, "loc": { "start": { "line": 186, @@ -5381,8 +5381,8 @@ }, "property": { "type": "Identifier", - "start": 6986, - "end": 6994, + "start": 6982, + "end": 6990, "loc": { "start": { "line": 186, @@ -5401,8 +5401,8 @@ }, "property": { "type": "Identifier", - "start": 6995, - "end": 7022, + "start": 6991, + "end": 7018, "loc": { "start": { "line": 186, @@ -5422,8 +5422,8 @@ "arguments": [ { "type": "NumericLiteral", - "start": 7023, - "end": 7027, + "start": 7019, + "end": 7023, "loc": { "start": { "line": 186, @@ -5447,8 +5447,8 @@ { "type": "CommentLine", "value": " If you have a large grid, then it is possible that these calculations could slow down the browser. ", - "start": 6710, - "end": 6812, + "start": 6706, + "end": 6808, "loc": { "start": { "line": 183, @@ -5463,8 +5463,8 @@ { "type": "CommentLine", "value": " For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation", - "start": 6818, - "end": 6913, + "start": 6814, + "end": 6909, "loc": { "start": { "line": 184, @@ -5479,8 +5479,8 @@ { "type": "CommentLine", "value": " https://github.com/prettymuchbryce/easystarjs", - "start": 6919, - "end": 6967, + "start": 6915, + "end": 6963, "loc": { "start": { "line": 185, @@ -5497,8 +5497,8 @@ { "type": "CommentLine", "value": " Assign the instance data", - "start": 7035, - "end": 7062, + "start": 7031, + "end": 7058, "loc": { "start": { "line": 187, @@ -5514,8 +5514,8 @@ }, { "type": "ExpressionStatement", - "start": 7068, - "end": 7118, + "start": 7064, + "end": 7114, "loc": { "start": { "line": 188, @@ -5528,8 +5528,8 @@ }, "expression": { "type": "CallExpression", - "start": 7068, - "end": 7117, + "start": 7064, + "end": 7113, "loc": { "start": { "line": 188, @@ -5542,8 +5542,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7068, - "end": 7092, + "start": 7064, + "end": 7088, "loc": { "start": { "line": 188, @@ -5556,8 +5556,8 @@ }, "object": { "type": "MemberExpression", - "start": 7068, - "end": 7088, + "start": 7064, + "end": 7084, "loc": { "start": { "line": 188, @@ -5570,8 +5570,8 @@ }, "object": { "type": "ThisExpression", - "start": 7068, - "end": 7072, + "start": 7064, + "end": 7068, "loc": { "start": { "line": 188, @@ -5586,8 +5586,8 @@ }, "property": { "type": "Identifier", - "start": 7073, - "end": 7088, + "start": 7069, + "end": 7084, "loc": { "start": { "line": 188, @@ -5606,8 +5606,8 @@ }, "property": { "type": "Identifier", - "start": 7089, - "end": 7092, + "start": 7085, + "end": 7088, "loc": { "start": { "line": 188, @@ -5627,8 +5627,8 @@ "arguments": [ { "type": "Identifier", - "start": 7093, - "end": 7102, + "start": 7089, + "end": 7098, "loc": { "start": { "line": 188, @@ -5644,8 +5644,8 @@ }, { "type": "Identifier", - "start": 7104, - "end": 7116, + "start": 7100, + "end": 7112, "loc": { "start": { "line": 188, @@ -5666,8 +5666,8 @@ { "type": "CommentLine", "value": " Assign the instance data", - "start": 7035, - "end": 7062, + "start": 7031, + "end": 7058, "loc": { "start": { "line": 187, @@ -5686,8 +5686,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 7130, - "end": 7218, + "start": 7126, + "end": 7214, "loc": { "start": { "line": 189, @@ -5701,8 +5701,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7192, - "end": 7212, + "start": 7188, + "end": 7208, "loc": { "start": { "line": 191, @@ -5715,8 +5715,8 @@ }, "expression": { "type": "CallExpression", - "start": 7192, - "end": 7211, + "start": 7188, + "end": 7207, "loc": { "start": { "line": 191, @@ -5729,8 +5729,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7192, - "end": 7200, + "start": 7188, + "end": 7196, "loc": { "start": { "line": 191, @@ -5743,8 +5743,8 @@ }, "object": { "type": "ThisExpression", - "start": 7192, - "end": 7196, + "start": 7188, + "end": 7192, "loc": { "start": { "line": 191, @@ -5759,8 +5759,8 @@ }, "property": { "type": "Identifier", - "start": 7197, - "end": 7200, + "start": 7193, + "end": 7196, "loc": { "start": { "line": 191, @@ -5780,8 +5780,8 @@ "arguments": [ { "type": "Identifier", - "start": 7201, - "end": 7210, + "start": 7197, + "end": 7206, "loc": { "start": { "line": 191, @@ -5802,8 +5802,8 @@ { "type": "CommentLine", "value": " If this instance has data already, we reset it", - "start": 7137, - "end": 7186, + "start": 7133, + "end": 7182, "loc": { "start": { "line": 190, @@ -5824,9 +5824,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n\t\t\t * An exclusion list of tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", - "start": 7225, - "end": 7292, + "value": "*\r\n\t\t\t * An exclusion list of instances and tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", + "start": 7221, + "end": 7302, "loc": { "start": { "line": 194, @@ -5842,8 +5842,8 @@ }, { "type": "VariableDeclaration", - "start": 7297, - "end": 7318, + "start": 7307, + "end": 7328, "loc": { "start": { "line": 198, @@ -5857,8 +5857,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7301, - "end": 7317, + "start": 7311, + "end": 7327, "loc": { "start": { "line": 198, @@ -5871,8 +5871,8 @@ }, "id": { "type": "Identifier", - "start": 7301, - "end": 7312, + "start": 7311, + "end": 7322, "loc": { "start": { "line": 198, @@ -5889,8 +5889,8 @@ }, "init": { "type": "ArrayExpression", - "start": 7315, - "end": 7317, + "start": 7325, + "end": 7327, "loc": { "start": { "line": 198, @@ -5910,9 +5910,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n\t\t\t * An exclusion list of tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", - "start": 7225, - "end": 7292, + "value": "*\r\n\t\t\t * An exclusion list of instances and tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", + "start": 7221, + "end": 7302, "loc": { "start": { "line": 194, @@ -5929,8 +5929,8 @@ { "type": "CommentLine", "value": " If there are options passed. Parse them.", - "start": 7325, - "end": 7368, + "start": 7335, + "end": 7378, "loc": { "start": { "line": 200, @@ -5946,8 +5946,8 @@ }, { "type": "IfStatement", - "start": 7373, - "end": 9222, + "start": 7383, + "end": 9233, "loc": { "start": { "line": 201, @@ -5960,8 +5960,8 @@ }, "test": { "type": "BinaryExpression", - "start": 7377, - "end": 7406, + "start": 7387, + "end": 7416, "loc": { "start": { "line": 201, @@ -5974,8 +5974,8 @@ }, "left": { "type": "UnaryExpression", - "start": 7377, - "end": 7393, + "start": 7387, + "end": 7403, "loc": { "start": { "line": 201, @@ -5990,8 +5990,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 7384, - "end": 7392, + "start": 7394, + "end": 7402, "loc": { "start": { "line": 201, @@ -6007,7 +6007,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 7383 + "parenStart": 7393 } }, "extra": { @@ -6018,8 +6018,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7398, - "end": 7406, + "start": 7408, + "end": 7416, "loc": { "start": { "line": 201, @@ -6040,8 +6040,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7408, - "end": 9222, + "start": 7418, + "end": 9233, "loc": { "start": { "line": 201, @@ -6055,8 +6055,8 @@ "body": [ { "type": "IfStatement", - "start": 7473, - "end": 7595, + "start": 7483, + "end": 7605, "loc": { "start": { "line": 203, @@ -6069,8 +6069,8 @@ }, "test": { "type": "BinaryExpression", - "start": 7477, - "end": 7522, + "start": 7487, + "end": 7532, "loc": { "start": { "line": 203, @@ -6083,8 +6083,8 @@ }, "left": { "type": "UnaryExpression", - "start": 7477, - "end": 7509, + "start": 7487, + "end": 7519, "loc": { "start": { "line": 203, @@ -6099,8 +6099,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 7484, - "end": 7508, + "start": 7494, + "end": 7518, "loc": { "start": { "line": 203, @@ -6113,8 +6113,8 @@ }, "object": { "type": "Identifier", - "start": 7484, - "end": 7492, + "start": 7494, + "end": 7502, "loc": { "start": { "line": 203, @@ -6131,8 +6131,8 @@ }, "property": { "type": "Identifier", - "start": 7493, - "end": 7508, + "start": 7503, + "end": 7518, "loc": { "start": { "line": 203, @@ -6150,7 +6150,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 7483 + "parenStart": 7493 } }, "extra": { @@ -6161,8 +6161,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7514, - "end": 7522, + "start": 7524, + "end": 7532, "loc": { "start": { "line": 203, @@ -6183,8 +6183,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7524, - "end": 7595, + "start": 7534, + "end": 7605, "loc": { "start": { "line": 203, @@ -6198,8 +6198,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7532, - "end": 7588, + "start": 7542, + "end": 7598, "loc": { "start": { "line": 204, @@ -6212,8 +6212,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7532, - "end": 7587, + "start": 7542, + "end": 7597, "loc": { "start": { "line": 204, @@ -6227,8 +6227,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 7532, - "end": 7560, + "start": 7542, + "end": 7570, "loc": { "start": { "line": 204, @@ -6241,8 +6241,8 @@ }, "object": { "type": "Identifier", - "start": 7532, - "end": 7544, + "start": 7542, + "end": 7554, "loc": { "start": { "line": 204, @@ -6258,8 +6258,8 @@ }, "property": { "type": "Identifier", - "start": 7545, - "end": 7560, + "start": 7555, + "end": 7570, "loc": { "start": { "line": 204, @@ -6277,8 +6277,8 @@ }, "right": { "type": "MemberExpression", - "start": 7563, - "end": 7587, + "start": 7573, + "end": 7597, "loc": { "start": { "line": 204, @@ -6291,8 +6291,8 @@ }, "object": { "type": "Identifier", - "start": 7563, - "end": 7571, + "start": 7573, + "end": 7581, "loc": { "start": { "line": 204, @@ -6308,8 +6308,8 @@ }, "property": { "type": "Identifier", - "start": 7572, - "end": 7587, + "start": 7582, + "end": 7597, "loc": { "start": { "line": 204, @@ -6336,8 +6336,8 @@ { "type": "CommentLine", "value": " If max stuck counter is found in options, set it.", - "start": 7415, - "end": 7467, + "start": 7425, + "end": 7477, "loc": { "start": { "line": 202, @@ -6354,8 +6354,8 @@ { "type": "CommentLine", "value": " Enable diagonals if found in passed options.", - "start": 7603, - "end": 7650, + "start": 7613, + "end": 7660, "loc": { "start": { "line": 207, @@ -6370,8 +6370,8 @@ { "type": "CommentLine", "value": " This can cause some \"issues\" such as trying to cut through corners.", - "start": 7656, - "end": 7726, + "start": 7666, + "end": 7736, "loc": { "start": { "line": 208, @@ -6387,8 +6387,8 @@ }, { "type": "IfStatement", - "start": 7732, - "end": 7861, + "start": 7742, + "end": 7871, "loc": { "start": { "line": 209, @@ -6401,8 +6401,8 @@ }, "test": { "type": "MemberExpression", - "start": 7736, - "end": 7753, + "start": 7746, + "end": 7763, "loc": { "start": { "line": 209, @@ -6415,8 +6415,8 @@ }, "object": { "type": "Identifier", - "start": 7736, - "end": 7744, + "start": 7746, + "end": 7754, "loc": { "start": { "line": 209, @@ -6433,8 +6433,8 @@ }, "property": { "type": "Identifier", - "start": 7745, - "end": 7753, + "start": 7755, + "end": 7763, "loc": { "start": { "line": 209, @@ -6453,8 +6453,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7755, - "end": 7861, + "start": 7765, + "end": 7871, "loc": { "start": { "line": 209, @@ -6468,8 +6468,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7763, - "end": 7803, + "start": 7773, + "end": 7813, "loc": { "start": { "line": 210, @@ -6482,8 +6482,8 @@ }, "expression": { "type": "CallExpression", - "start": 7763, - "end": 7802, + "start": 7773, + "end": 7812, "loc": { "start": { "line": 210, @@ -6496,8 +6496,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7763, - "end": 7800, + "start": 7773, + "end": 7810, "loc": { "start": { "line": 210, @@ -6510,8 +6510,8 @@ }, "object": { "type": "MemberExpression", - "start": 7763, - "end": 7784, + "start": 7773, + "end": 7794, "loc": { "start": { "line": 210, @@ -6524,8 +6524,8 @@ }, "object": { "type": "Identifier", - "start": 7763, - "end": 7775, + "start": 7773, + "end": 7785, "loc": { "start": { "line": 210, @@ -6541,8 +6541,8 @@ }, "property": { "type": "Identifier", - "start": 7776, - "end": 7784, + "start": 7786, + "end": 7794, "loc": { "start": { "line": 210, @@ -6560,8 +6560,8 @@ }, "property": { "type": "Identifier", - "start": 7785, - "end": 7800, + "start": 7795, + "end": 7810, "loc": { "start": { "line": 210, @@ -6582,8 +6582,8 @@ }, { "type": "ExpressionStatement", - "start": 7810, - "end": 7854, + "start": 7820, + "end": 7864, "loc": { "start": { "line": 211, @@ -6596,8 +6596,8 @@ }, "expression": { "type": "CallExpression", - "start": 7810, - "end": 7853, + "start": 7820, + "end": 7863, "loc": { "start": { "line": 211, @@ -6610,8 +6610,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7810, - "end": 7851, + "start": 7820, + "end": 7861, "loc": { "start": { "line": 211, @@ -6624,8 +6624,8 @@ }, "object": { "type": "MemberExpression", - "start": 7810, - "end": 7831, + "start": 7820, + "end": 7841, "loc": { "start": { "line": 211, @@ -6638,8 +6638,8 @@ }, "object": { "type": "Identifier", - "start": 7810, - "end": 7822, + "start": 7820, + "end": 7832, "loc": { "start": { "line": 211, @@ -6655,8 +6655,8 @@ }, "property": { "type": "Identifier", - "start": 7823, - "end": 7831, + "start": 7833, + "end": 7841, "loc": { "start": { "line": 211, @@ -6674,8 +6674,8 @@ }, "property": { "type": "Identifier", - "start": 7832, - "end": 7851, + "start": 7842, + "end": 7861, "loc": { "start": { "line": 211, @@ -6703,8 +6703,8 @@ { "type": "CommentLine", "value": " Enable diagonals if found in passed options.", - "start": 7603, - "end": 7650, + "start": 7613, + "end": 7660, "loc": { "start": { "line": 207, @@ -6719,8 +6719,8 @@ { "type": "CommentLine", "value": " This can cause some \"issues\" such as trying to cut through corners.", - "start": 7656, - "end": 7726, + "start": 7666, + "end": 7736, "loc": { "start": { "line": 208, @@ -6737,8 +6737,8 @@ { "type": "CommentLine", "value": " Set the positioning mode", - "start": 7869, - "end": 7896, + "start": 7879, + "end": 7906, "loc": { "start": { "line": 214, @@ -6754,8 +6754,8 @@ }, { "type": "IfStatement", - "start": 7902, - "end": 8178, + "start": 7912, + "end": 8188, "loc": { "start": { "line": 215, @@ -6768,8 +6768,8 @@ }, "test": { "type": "MemberExpression", - "start": 7906, - "end": 7919, + "start": 7916, + "end": 7929, "loc": { "start": { "line": 215, @@ -6782,8 +6782,8 @@ }, "object": { "type": "Identifier", - "start": 7906, - "end": 7914, + "start": 7916, + "end": 7924, "loc": { "start": { "line": 215, @@ -6800,8 +6800,8 @@ }, "property": { "type": "Identifier", - "start": 7915, - "end": 7919, + "start": 7925, + "end": 7929, "loc": { "start": { "line": 215, @@ -6820,8 +6820,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7921, - "end": 8178, + "start": 7931, + "end": 8188, "loc": { "start": { "line": 215, @@ -6835,8 +6835,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 8014, - "end": 8139, + "start": 8024, + "end": 8149, "loc": { "start": { "line": 217, @@ -6850,8 +6850,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8020, - "end": 8138, + "start": 8030, + "end": 8148, "loc": { "start": { "line": 217, @@ -6864,8 +6864,8 @@ }, "id": { "type": "Identifier", - "start": 8020, - "end": 8024, + "start": 8030, + "end": 8034, "loc": { "start": { "line": 217, @@ -6882,8 +6882,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 8027, - "end": 8138, + "start": 8037, + "end": 8148, "loc": { "start": { "line": 217, @@ -6896,8 +6896,8 @@ }, "test": { "type": "LogicalExpression", - "start": 8028, - "end": 8089, + "start": 8038, + "end": 8099, "loc": { "start": { "line": 217, @@ -6910,8 +6910,8 @@ }, "left": { "type": "BinaryExpression", - "start": 8028, - "end": 8057, + "start": 8038, + "end": 8067, "loc": { "start": { "line": 217, @@ -6924,8 +6924,8 @@ }, "left": { "type": "MemberExpression", - "start": 8028, - "end": 8041, + "start": 8038, + "end": 8051, "loc": { "start": { "line": 217, @@ -6938,8 +6938,8 @@ }, "object": { "type": "Identifier", - "start": 8028, - "end": 8036, + "start": 8038, + "end": 8046, "loc": { "start": { "line": 217, @@ -6955,8 +6955,8 @@ }, "property": { "type": "Identifier", - "start": 8037, - "end": 8041, + "start": 8047, + "end": 8051, "loc": { "start": { "line": 217, @@ -6975,8 +6975,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8046, - "end": 8057, + "start": 8056, + "end": 8067, "loc": { "start": { "line": 217, @@ -6997,8 +6997,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 8061, - "end": 8089, + "start": 8071, + "end": 8099, "loc": { "start": { "line": 217, @@ -7011,8 +7011,8 @@ }, "left": { "type": "MemberExpression", - "start": 8061, - "end": 8074, + "start": 8071, + "end": 8084, "loc": { "start": { "line": 217, @@ -7025,8 +7025,8 @@ }, "object": { "type": "Identifier", - "start": 8061, - "end": 8069, + "start": 8071, + "end": 8079, "loc": { "start": { "line": 217, @@ -7042,8 +7042,8 @@ }, "property": { "type": "Identifier", - "start": 8070, - "end": 8074, + "start": 8080, + "end": 8084, "loc": { "start": { "line": 217, @@ -7062,8 +7062,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8079, - "end": 8089, + "start": 8089, + "end": 8099, "loc": { "start": { "line": 217, @@ -7083,13 +7083,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 8027 + "parenStart": 8037 } }, "consequent": { "type": "MemberExpression", - "start": 8093, - "end": 8106, + "start": 8103, + "end": 8116, "loc": { "start": { "line": 217, @@ -7102,8 +7102,8 @@ }, "object": { "type": "Identifier", - "start": 8093, - "end": 8101, + "start": 8103, + "end": 8111, "loc": { "start": { "line": 217, @@ -7119,8 +7119,8 @@ }, "property": { "type": "Identifier", - "start": 8102, - "end": 8106, + "start": 8112, + "end": 8116, "loc": { "start": { "line": 217, @@ -7138,8 +7138,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 8109, - "end": 8138, + "start": 8119, + "end": 8148, "loc": { "start": { "line": 217, @@ -7152,8 +7152,8 @@ }, "object": { "type": "Identifier", - "start": 8109, - "end": 8125, + "start": 8119, + "end": 8135, "loc": { "start": { "line": 217, @@ -7169,8 +7169,8 @@ }, "property": { "type": "Identifier", - "start": 8126, - "end": 8138, + "start": 8136, + "end": 8148, "loc": { "start": { "line": 217, @@ -7195,8 +7195,8 @@ { "type": "CommentLine", "value": " Get the mode, if an invalid mode is passed, we default to the default mode.", - "start": 7929, - "end": 8007, + "start": 7939, + "end": 8017, "loc": { "start": { "line": 216, @@ -7212,8 +7212,8 @@ }, { "type": "ExpressionStatement", - "start": 8146, - "end": 8171, + "start": 8156, + "end": 8181, "loc": { "start": { "line": 218, @@ -7226,8 +7226,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8146, - "end": 8170, + "start": 8156, + "end": 8180, "loc": { "start": { "line": 218, @@ -7241,8 +7241,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8146, - "end": 8163, + "start": 8156, + "end": 8173, "loc": { "start": { "line": 218, @@ -7255,8 +7255,8 @@ }, "object": { "type": "Identifier", - "start": 8146, - "end": 8158, + "start": 8156, + "end": 8168, "loc": { "start": { "line": 218, @@ -7272,8 +7272,8 @@ }, "property": { "type": "Identifier", - "start": 8159, - "end": 8163, + "start": 8169, + "end": 8173, "loc": { "start": { "line": 218, @@ -7291,8 +7291,8 @@ }, "right": { "type": "Identifier", - "start": 8166, - "end": 8170, + "start": 8176, + "end": 8180, "loc": { "start": { "line": 218, @@ -7317,8 +7317,8 @@ { "type": "CommentLine", "value": " Set the positioning mode", - "start": 7869, - "end": 7896, + "start": 7879, + "end": 7906, "loc": { "start": { "line": 214, @@ -7335,8 +7335,8 @@ { "type": "CommentLine", "value": " Assign pixels per second ", - "start": 8186, - "end": 8214, + "start": 8196, + "end": 8224, "loc": { "start": { "line": 221, @@ -7352,8 +7352,8 @@ }, { "type": "IfStatement", - "start": 8220, - "end": 8342, + "start": 8230, + "end": 8352, "loc": { "start": { "line": 222, @@ -7366,8 +7366,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8224, - "end": 8269, + "start": 8234, + "end": 8279, "loc": { "start": { "line": 222, @@ -7380,8 +7380,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8224, - "end": 8256, + "start": 8234, + "end": 8266, "loc": { "start": { "line": 222, @@ -7396,8 +7396,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8231, - "end": 8255, + "start": 8241, + "end": 8265, "loc": { "start": { "line": 222, @@ -7410,8 +7410,8 @@ }, "object": { "type": "Identifier", - "start": 8231, - "end": 8239, + "start": 8241, + "end": 8249, "loc": { "start": { "line": 222, @@ -7428,8 +7428,8 @@ }, "property": { "type": "Identifier", - "start": 8240, - "end": 8255, + "start": 8250, + "end": 8265, "loc": { "start": { "line": 222, @@ -7447,7 +7447,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 8230 + "parenStart": 8240 } }, "extra": { @@ -7458,8 +7458,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8261, - "end": 8269, + "start": 8271, + "end": 8279, "loc": { "start": { "line": 222, @@ -7480,8 +7480,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8271, - "end": 8342, + "start": 8281, + "end": 8352, "loc": { "start": { "line": 222, @@ -7495,8 +7495,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8279, - "end": 8335, + "start": 8289, + "end": 8345, "loc": { "start": { "line": 223, @@ -7509,8 +7509,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8279, - "end": 8334, + "start": 8289, + "end": 8344, "loc": { "start": { "line": 223, @@ -7524,8 +7524,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8279, - "end": 8307, + "start": 8289, + "end": 8317, "loc": { "start": { "line": 223, @@ -7538,8 +7538,8 @@ }, "object": { "type": "Identifier", - "start": 8279, - "end": 8291, + "start": 8289, + "end": 8301, "loc": { "start": { "line": 223, @@ -7555,8 +7555,8 @@ }, "property": { "type": "Identifier", - "start": 8292, - "end": 8307, + "start": 8302, + "end": 8317, "loc": { "start": { "line": 223, @@ -7574,8 +7574,8 @@ }, "right": { "type": "MemberExpression", - "start": 8310, - "end": 8334, + "start": 8320, + "end": 8344, "loc": { "start": { "line": 223, @@ -7588,8 +7588,8 @@ }, "object": { "type": "Identifier", - "start": 8310, - "end": 8318, + "start": 8320, + "end": 8328, "loc": { "start": { "line": 223, @@ -7605,8 +7605,8 @@ }, "property": { "type": "Identifier", - "start": 8319, - "end": 8334, + "start": 8329, + "end": 8344, "loc": { "start": { "line": 223, @@ -7633,8 +7633,8 @@ { "type": "CommentLine", "value": " Assign pixels per second ", - "start": 8186, - "end": 8214, + "start": 8196, + "end": 8224, "loc": { "start": { "line": 221, @@ -7651,8 +7651,8 @@ { "type": "CommentLine", "value": " Assign the min distance", - "start": 8350, - "end": 8376, + "start": 8360, + "end": 8386, "loc": { "start": { "line": 226, @@ -7668,8 +7668,8 @@ }, { "type": "IfStatement", - "start": 8382, - "end": 8492, + "start": 8392, + "end": 8502, "loc": { "start": { "line": 227, @@ -7682,8 +7682,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8386, - "end": 8427, + "start": 8396, + "end": 8437, "loc": { "start": { "line": 227, @@ -7696,8 +7696,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8386, - "end": 8414, + "start": 8396, + "end": 8424, "loc": { "start": { "line": 227, @@ -7712,8 +7712,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8393, - "end": 8413, + "start": 8403, + "end": 8423, "loc": { "start": { "line": 227, @@ -7726,8 +7726,8 @@ }, "object": { "type": "Identifier", - "start": 8393, - "end": 8401, + "start": 8403, + "end": 8411, "loc": { "start": { "line": 227, @@ -7744,8 +7744,8 @@ }, "property": { "type": "Identifier", - "start": 8402, - "end": 8413, + "start": 8412, + "end": 8423, "loc": { "start": { "line": 227, @@ -7763,7 +7763,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 8392 + "parenStart": 8402 } }, "extra": { @@ -7774,8 +7774,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8419, - "end": 8427, + "start": 8429, + "end": 8437, "loc": { "start": { "line": 227, @@ -7796,8 +7796,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8429, - "end": 8492, + "start": 8439, + "end": 8502, "loc": { "start": { "line": 227, @@ -7811,8 +7811,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8437, - "end": 8485, + "start": 8447, + "end": 8495, "loc": { "start": { "line": 228, @@ -7825,8 +7825,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8437, - "end": 8484, + "start": 8447, + "end": 8494, "loc": { "start": { "line": 228, @@ -7840,8 +7840,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8437, - "end": 8461, + "start": 8447, + "end": 8471, "loc": { "start": { "line": 228, @@ -7854,8 +7854,8 @@ }, "object": { "type": "Identifier", - "start": 8437, - "end": 8449, + "start": 8447, + "end": 8459, "loc": { "start": { "line": 228, @@ -7871,8 +7871,8 @@ }, "property": { "type": "Identifier", - "start": 8450, - "end": 8461, + "start": 8460, + "end": 8471, "loc": { "start": { "line": 228, @@ -7890,8 +7890,8 @@ }, "right": { "type": "MemberExpression", - "start": 8464, - "end": 8484, + "start": 8474, + "end": 8494, "loc": { "start": { "line": 228, @@ -7904,8 +7904,8 @@ }, "object": { "type": "Identifier", - "start": 8464, - "end": 8472, + "start": 8474, + "end": 8482, "loc": { "start": { "line": 228, @@ -7921,8 +7921,8 @@ }, "property": { "type": "Identifier", - "start": 8473, - "end": 8484, + "start": 8483, + "end": 8494, "loc": { "start": { "line": 228, @@ -7949,8 +7949,8 @@ { "type": "CommentLine", "value": " Assign the min distance", - "start": 8350, - "end": 8376, + "start": 8360, + "end": 8386, "loc": { "start": { "line": 226, @@ -7967,8 +7967,8 @@ { "type": "CommentLine", "value": " Assign events", - "start": 8500, - "end": 8516, + "start": 8510, + "end": 8526, "loc": { "start": { "line": 231, @@ -7984,8 +7984,8 @@ }, { "type": "IfStatement", - "start": 8522, - "end": 8650, + "start": 8532, + "end": 8660, "loc": { "start": { "line": 232, @@ -7998,8 +7998,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8526, - "end": 8572, + "start": 8536, + "end": 8582, "loc": { "start": { "line": 232, @@ -8012,8 +8012,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8526, - "end": 8557, + "start": 8536, + "end": 8567, "loc": { "start": { "line": 232, @@ -8028,8 +8028,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8533, - "end": 8556, + "start": 8543, + "end": 8566, "loc": { "start": { "line": 232, @@ -8042,8 +8042,8 @@ }, "object": { "type": "Identifier", - "start": 8533, - "end": 8541, + "start": 8543, + "end": 8551, "loc": { "start": { "line": 232, @@ -8060,8 +8060,8 @@ }, "property": { "type": "Identifier", - "start": 8542, - "end": 8556, + "start": 8552, + "end": 8566, "loc": { "start": { "line": 232, @@ -8079,7 +8079,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 8532 + "parenStart": 8542 } }, "extra": { @@ -8090,8 +8090,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8562, - "end": 8572, + "start": 8572, + "end": 8582, "loc": { "start": { "line": 232, @@ -8112,8 +8112,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8574, - "end": 8650, + "start": 8584, + "end": 8660, "loc": { "start": { "line": 232, @@ -8127,8 +8127,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8582, - "end": 8643, + "start": 8592, + "end": 8653, "loc": { "start": { "line": 233, @@ -8141,8 +8141,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8582, - "end": 8642, + "start": 8592, + "end": 8652, "loc": { "start": { "line": 233, @@ -8156,8 +8156,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8582, - "end": 8616, + "start": 8592, + "end": 8626, "loc": { "start": { "line": 233, @@ -8170,8 +8170,8 @@ }, "object": { "type": "MemberExpression", - "start": 8582, - "end": 8601, + "start": 8592, + "end": 8611, "loc": { "start": { "line": 233, @@ -8184,8 +8184,8 @@ }, "object": { "type": "Identifier", - "start": 8582, - "end": 8594, + "start": 8592, + "end": 8604, "loc": { "start": { "line": 233, @@ -8201,8 +8201,8 @@ }, "property": { "type": "Identifier", - "start": 8595, - "end": 8601, + "start": 8605, + "end": 8611, "loc": { "start": { "line": 233, @@ -8220,8 +8220,8 @@ }, "property": { "type": "Identifier", - "start": 8602, - "end": 8616, + "start": 8612, + "end": 8626, "loc": { "start": { "line": 233, @@ -8239,8 +8239,8 @@ }, "right": { "type": "MemberExpression", - "start": 8619, - "end": 8642, + "start": 8629, + "end": 8652, "loc": { "start": { "line": 233, @@ -8253,8 +8253,8 @@ }, "object": { "type": "Identifier", - "start": 8619, - "end": 8627, + "start": 8629, + "end": 8637, "loc": { "start": { "line": 233, @@ -8270,8 +8270,8 @@ }, "property": { "type": "Identifier", - "start": 8628, - "end": 8642, + "start": 8638, + "end": 8652, "loc": { "start": { "line": 233, @@ -8297,8 +8297,8 @@ { "type": "CommentLine", "value": " Assign events", - "start": 8500, - "end": 8516, + "start": 8510, + "end": 8526, "loc": { "start": { "line": 231, @@ -8314,8 +8314,8 @@ }, { "type": "IfStatement", - "start": 8658, - "end": 8777, + "start": 8668, + "end": 8787, "loc": { "start": { "line": 236, @@ -8328,8 +8328,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8662, - "end": 8705, + "start": 8672, + "end": 8715, "loc": { "start": { "line": 236, @@ -8342,8 +8342,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8662, - "end": 8690, + "start": 8672, + "end": 8700, "loc": { "start": { "line": 236, @@ -8358,8 +8358,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8669, - "end": 8689, + "start": 8679, + "end": 8699, "loc": { "start": { "line": 236, @@ -8372,8 +8372,8 @@ }, "object": { "type": "Identifier", - "start": 8669, - "end": 8677, + "start": 8679, + "end": 8687, "loc": { "start": { "line": 236, @@ -8389,8 +8389,8 @@ }, "property": { "type": "Identifier", - "start": 8678, - "end": 8689, + "start": 8688, + "end": 8699, "loc": { "start": { "line": 236, @@ -8407,7 +8407,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 8668 + "parenStart": 8678 } }, "extra": { @@ -8417,8 +8417,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8695, - "end": 8705, + "start": 8705, + "end": 8715, "loc": { "start": { "line": 236, @@ -8438,8 +8438,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8707, - "end": 8777, + "start": 8717, + "end": 8787, "loc": { "start": { "line": 236, @@ -8453,8 +8453,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8715, - "end": 8770, + "start": 8725, + "end": 8780, "loc": { "start": { "line": 237, @@ -8467,8 +8467,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8715, - "end": 8769, + "start": 8725, + "end": 8779, "loc": { "start": { "line": 237, @@ -8482,8 +8482,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8715, - "end": 8746, + "start": 8725, + "end": 8756, "loc": { "start": { "line": 237, @@ -8496,8 +8496,8 @@ }, "object": { "type": "MemberExpression", - "start": 8715, - "end": 8734, + "start": 8725, + "end": 8744, "loc": { "start": { "line": 237, @@ -8510,8 +8510,8 @@ }, "object": { "type": "Identifier", - "start": 8715, - "end": 8727, + "start": 8725, + "end": 8737, "loc": { "start": { "line": 237, @@ -8527,8 +8527,8 @@ }, "property": { "type": "Identifier", - "start": 8728, - "end": 8734, + "start": 8738, + "end": 8744, "loc": { "start": { "line": 237, @@ -8546,8 +8546,8 @@ }, "property": { "type": "Identifier", - "start": 8735, - "end": 8746, + "start": 8745, + "end": 8756, "loc": { "start": { "line": 237, @@ -8565,8 +8565,8 @@ }, "right": { "type": "MemberExpression", - "start": 8749, - "end": 8769, + "start": 8759, + "end": 8779, "loc": { "start": { "line": 237, @@ -8579,8 +8579,8 @@ }, "object": { "type": "Identifier", - "start": 8749, - "end": 8757, + "start": 8759, + "end": 8767, "loc": { "start": { "line": 237, @@ -8596,8 +8596,8 @@ }, "property": { "type": "Identifier", - "start": 8758, - "end": 8769, + "start": 8768, + "end": 8779, "loc": { "start": { "line": 237, @@ -8622,8 +8622,8 @@ }, { "type": "IfStatement", - "start": 8785, - "end": 8913, + "start": 8795, + "end": 8923, "loc": { "start": { "line": 240, @@ -8636,8 +8636,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8789, - "end": 8835, + "start": 8799, + "end": 8845, "loc": { "start": { "line": 240, @@ -8650,8 +8650,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8789, - "end": 8820, + "start": 8799, + "end": 8830, "loc": { "start": { "line": 240, @@ -8666,8 +8666,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8796, - "end": 8819, + "start": 8806, + "end": 8829, "loc": { "start": { "line": 240, @@ -8680,8 +8680,8 @@ }, "object": { "type": "Identifier", - "start": 8796, - "end": 8804, + "start": 8806, + "end": 8814, "loc": { "start": { "line": 240, @@ -8697,8 +8697,8 @@ }, "property": { "type": "Identifier", - "start": 8805, - "end": 8819, + "start": 8815, + "end": 8829, "loc": { "start": { "line": 240, @@ -8715,7 +8715,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 8795 + "parenStart": 8805 } }, "extra": { @@ -8725,8 +8725,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8825, - "end": 8835, + "start": 8835, + "end": 8845, "loc": { "start": { "line": 240, @@ -8746,8 +8746,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8837, - "end": 8913, + "start": 8847, + "end": 8923, "loc": { "start": { "line": 240, @@ -8761,8 +8761,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8845, - "end": 8906, + "start": 8855, + "end": 8916, "loc": { "start": { "line": 241, @@ -8775,8 +8775,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8845, - "end": 8905, + "start": 8855, + "end": 8915, "loc": { "start": { "line": 241, @@ -8790,8 +8790,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8845, - "end": 8879, + "start": 8855, + "end": 8889, "loc": { "start": { "line": 241, @@ -8804,8 +8804,8 @@ }, "object": { "type": "MemberExpression", - "start": 8845, - "end": 8864, + "start": 8855, + "end": 8874, "loc": { "start": { "line": 241, @@ -8818,8 +8818,8 @@ }, "object": { "type": "Identifier", - "start": 8845, - "end": 8857, + "start": 8855, + "end": 8867, "loc": { "start": { "line": 241, @@ -8835,8 +8835,8 @@ }, "property": { "type": "Identifier", - "start": 8858, - "end": 8864, + "start": 8868, + "end": 8874, "loc": { "start": { "line": 241, @@ -8854,8 +8854,8 @@ }, "property": { "type": "Identifier", - "start": 8865, - "end": 8879, + "start": 8875, + "end": 8889, "loc": { "start": { "line": 241, @@ -8873,8 +8873,8 @@ }, "right": { "type": "MemberExpression", - "start": 8882, - "end": 8905, + "start": 8892, + "end": 8915, "loc": { "start": { "line": 241, @@ -8887,8 +8887,8 @@ }, "object": { "type": "Identifier", - "start": 8882, - "end": 8890, + "start": 8892, + "end": 8900, "loc": { "start": { "line": 241, @@ -8904,8 +8904,8 @@ }, "property": { "type": "Identifier", - "start": 8891, - "end": 8905, + "start": 8901, + "end": 8915, "loc": { "start": { "line": 241, @@ -8930,8 +8930,8 @@ }, { "type": "IfStatement", - "start": 8921, - "end": 9040, + "start": 8931, + "end": 9050, "loc": { "start": { "line": 244, @@ -8944,8 +8944,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8925, - "end": 8968, + "start": 8935, + "end": 8978, "loc": { "start": { "line": 244, @@ -8958,8 +8958,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8925, - "end": 8953, + "start": 8935, + "end": 8963, "loc": { "start": { "line": 244, @@ -8974,8 +8974,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8932, - "end": 8952, + "start": 8942, + "end": 8962, "loc": { "start": { "line": 244, @@ -8988,8 +8988,8 @@ }, "object": { "type": "Identifier", - "start": 8932, - "end": 8940, + "start": 8942, + "end": 8950, "loc": { "start": { "line": 244, @@ -9005,8 +9005,8 @@ }, "property": { "type": "Identifier", - "start": 8941, - "end": 8952, + "start": 8951, + "end": 8962, "loc": { "start": { "line": 244, @@ -9023,7 +9023,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 8931 + "parenStart": 8941 } }, "extra": { @@ -9033,8 +9033,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8958, - "end": 8968, + "start": 8968, + "end": 8978, "loc": { "start": { "line": 244, @@ -9054,8 +9054,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8970, - "end": 9040, + "start": 8980, + "end": 9050, "loc": { "start": { "line": 244, @@ -9069,8 +9069,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8978, - "end": 9033, + "start": 8988, + "end": 9043, "loc": { "start": { "line": 245, @@ -9083,8 +9083,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8978, - "end": 9032, + "start": 8988, + "end": 9042, "loc": { "start": { "line": 245, @@ -9098,8 +9098,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8978, - "end": 9009, + "start": 8988, + "end": 9019, "loc": { "start": { "line": 245, @@ -9112,8 +9112,8 @@ }, "object": { "type": "MemberExpression", - "start": 8978, - "end": 8997, + "start": 8988, + "end": 9007, "loc": { "start": { "line": 245, @@ -9126,8 +9126,8 @@ }, "object": { "type": "Identifier", - "start": 8978, - "end": 8990, + "start": 8988, + "end": 9000, "loc": { "start": { "line": 245, @@ -9143,8 +9143,8 @@ }, "property": { "type": "Identifier", - "start": 8991, - "end": 8997, + "start": 9001, + "end": 9007, "loc": { "start": { "line": 245, @@ -9162,8 +9162,8 @@ }, "property": { "type": "Identifier", - "start": 8998, - "end": 9009, + "start": 9008, + "end": 9019, "loc": { "start": { "line": 245, @@ -9181,8 +9181,8 @@ }, "right": { "type": "MemberExpression", - "start": 9012, - "end": 9032, + "start": 9022, + "end": 9042, "loc": { "start": { "line": 245, @@ -9195,8 +9195,8 @@ }, "object": { "type": "Identifier", - "start": 9012, - "end": 9020, + "start": 9022, + "end": 9030, "loc": { "start": { "line": 245, @@ -9212,8 +9212,8 @@ }, "property": { "type": "Identifier", - "start": 9021, - "end": 9032, + "start": 9031, + "end": 9042, "loc": { "start": { "line": 245, @@ -9239,9 +9239,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Copy the contents of the exclude array to the exclude list we manage.", - "start": 9048, - "end": 9120, + "value": " Copy the contents of the exclude array to the exclude array we manage.", + "start": 9058, + "end": 9131, "loc": { "start": { "line": 248, @@ -9249,7 +9249,7 @@ }, "end": { "line": 248, - "column": 76 + "column": 77 } } } @@ -9257,8 +9257,8 @@ }, { "type": "IfStatement", - "start": 9126, - "end": 9216, + "start": 9137, + "end": 9227, "loc": { "start": { "line": 249, @@ -9271,8 +9271,8 @@ }, "test": { "type": "CallExpression", - "start": 9130, - "end": 9161, + "start": 9141, + "end": 9172, "loc": { "start": { "line": 249, @@ -9285,8 +9285,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9130, - "end": 9143, + "start": 9141, + "end": 9154, "loc": { "start": { "line": 249, @@ -9299,8 +9299,8 @@ }, "object": { "type": "Identifier", - "start": 9130, - "end": 9135, + "start": 9141, + "end": 9146, "loc": { "start": { "line": 249, @@ -9317,8 +9317,8 @@ }, "property": { "type": "Identifier", - "start": 9136, - "end": 9143, + "start": 9147, + "end": 9154, "loc": { "start": { "line": 249, @@ -9338,8 +9338,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9144, - "end": 9160, + "start": 9155, + "end": 9171, "loc": { "start": { "line": 249, @@ -9352,8 +9352,8 @@ }, "object": { "type": "Identifier", - "start": 9144, - "end": 9152, + "start": 9155, + "end": 9163, "loc": { "start": { "line": 249, @@ -9369,8 +9369,8 @@ }, "property": { "type": "Identifier", - "start": 9153, - "end": 9160, + "start": 9164, + "end": 9171, "loc": { "start": { "line": 249, @@ -9391,8 +9391,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9163, - "end": 9216, + "start": 9174, + "end": 9227, "loc": { "start": { "line": 249, @@ -9406,8 +9406,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9171, - "end": 9209, + "start": 9182, + "end": 9220, "loc": { "start": { "line": 250, @@ -9420,8 +9420,8 @@ }, "expression": { "type": "CallExpression", - "start": 9171, - "end": 9208, + "start": 9182, + "end": 9219, "loc": { "start": { "line": 250, @@ -9434,8 +9434,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9171, - "end": 9187, + "start": 9182, + "end": 9198, "loc": { "start": { "line": 250, @@ -9448,8 +9448,8 @@ }, "object": { "type": "Identifier", - "start": 9171, - "end": 9182, + "start": 9182, + "end": 9193, "loc": { "start": { "line": 250, @@ -9465,8 +9465,8 @@ }, "property": { "type": "Identifier", - "start": 9183, - "end": 9187, + "start": 9194, + "end": 9198, "loc": { "start": { "line": 250, @@ -9485,8 +9485,8 @@ "arguments": [ { "type": "SpreadElement", - "start": 9188, - "end": 9207, + "start": 9199, + "end": 9218, "loc": { "start": { "line": 250, @@ -9499,8 +9499,8 @@ }, "argument": { "type": "MemberExpression", - "start": 9191, - "end": 9207, + "start": 9202, + "end": 9218, "loc": { "start": { "line": 250, @@ -9513,8 +9513,8 @@ }, "object": { "type": "Identifier", - "start": 9191, - "end": 9199, + "start": 9202, + "end": 9210, "loc": { "start": { "line": 250, @@ -9530,8 +9530,8 @@ }, "property": { "type": "Identifier", - "start": 9200, - "end": 9207, + "start": 9211, + "end": 9218, "loc": { "start": { "line": 250, @@ -9558,9 +9558,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " Copy the contents of the exclude array to the exclude list we manage.", - "start": 9048, - "end": 9120, + "value": " Copy the contents of the exclude array to the exclude array we manage.", + "start": 9058, + "end": 9131, "loc": { "start": { "line": 248, @@ -9568,7 +9568,7 @@ }, "end": { "line": 248, - "column": 76 + "column": 77 } } } @@ -9583,8 +9583,8 @@ { "type": "CommentLine", "value": " If there are options passed. Parse them.", - "start": 7325, - "end": 7368, + "start": 7335, + "end": 7378, "loc": { "start": { "line": 200, @@ -9600,9 +9600,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " We add the instance to the exclude list so that it is excluded.", - "start": 9229, - "end": 9295, + "value": " We add the instance to the exclude array so that it is excluded.", + "start": 9240, + "end": 9307, "loc": { "start": { "line": 254, @@ -9610,7 +9610,7 @@ }, "end": { "line": 254, - "column": 69 + "column": 70 } } } @@ -9618,8 +9618,8 @@ }, { "type": "IfStatement", - "start": 9300, - "end": 9379, + "start": 9312, + "end": 9391, "loc": { "start": { "line": 255, @@ -9632,8 +9632,8 @@ }, "test": { "type": "UnaryExpression", - "start": 9304, - "end": 9336, + "start": 9316, + "end": 9348, "loc": { "start": { "line": 255, @@ -9648,8 +9648,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 9305, - "end": 9336, + "start": 9317, + "end": 9348, "loc": { "start": { "line": 255, @@ -9662,8 +9662,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9305, - "end": 9325, + "start": 9317, + "end": 9337, "loc": { "start": { "line": 255, @@ -9676,8 +9676,8 @@ }, "object": { "type": "Identifier", - "start": 9305, - "end": 9316, + "start": 9317, + "end": 9328, "loc": { "start": { "line": 255, @@ -9694,8 +9694,8 @@ }, "property": { "type": "Identifier", - "start": 9317, - "end": 9325, + "start": 9329, + "end": 9337, "loc": { "start": { "line": 255, @@ -9715,8 +9715,8 @@ "arguments": [ { "type": "Identifier", - "start": 9326, - "end": 9335, + "start": 9338, + "end": 9347, "loc": { "start": { "line": 255, @@ -9740,8 +9740,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9338, - "end": 9379, + "start": 9350, + "end": 9391, "loc": { "start": { "line": 255, @@ -9755,8 +9755,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9345, - "end": 9373, + "start": 9357, + "end": 9385, "loc": { "start": { "line": 256, @@ -9769,8 +9769,8 @@ }, "expression": { "type": "CallExpression", - "start": 9345, - "end": 9372, + "start": 9357, + "end": 9384, "loc": { "start": { "line": 256, @@ -9783,8 +9783,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9345, - "end": 9361, + "start": 9357, + "end": 9373, "loc": { "start": { "line": 256, @@ -9797,8 +9797,8 @@ }, "object": { "type": "Identifier", - "start": 9345, - "end": 9356, + "start": 9357, + "end": 9368, "loc": { "start": { "line": 256, @@ -9814,8 +9814,8 @@ }, "property": { "type": "Identifier", - "start": 9357, - "end": 9361, + "start": 9369, + "end": 9373, "loc": { "start": { "line": 256, @@ -9834,8 +9834,8 @@ "arguments": [ { "type": "Identifier", - "start": 9362, - "end": 9371, + "start": 9374, + "end": 9383, "loc": { "start": { "line": 256, @@ -9860,9 +9860,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " We add the instance to the exclude list so that it is excluded.", - "start": 9229, - "end": 9295, + "value": " We add the instance to the exclude array so that it is excluded.", + "start": 9240, + "end": 9307, "loc": { "start": { "line": 254, @@ -9870,7 +9870,7 @@ }, "end": { "line": 254, - "column": 69 + "column": 70 } } } @@ -9879,8 +9879,8 @@ { "type": "CommentLine", "value": " Build the 2D array grid that represents the map", - "start": 9386, - "end": 9436, + "start": 9398, + "end": 9448, "loc": { "start": { "line": 259, @@ -9896,8 +9896,8 @@ }, { "type": "VariableDeclaration", - "start": 9441, - "end": 9510, + "start": 9453, + "end": 9522, "loc": { "start": { "line": 260, @@ -9911,8 +9911,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9447, - "end": 9509, + "start": 9459, + "end": 9521, "loc": { "start": { "line": 260, @@ -9925,8 +9925,8 @@ }, "id": { "type": "Identifier", - "start": 9447, - "end": 9455, + "start": 9459, + "end": 9467, "loc": { "start": { "line": 260, @@ -9943,8 +9943,8 @@ }, "init": { "type": "CallExpression", - "start": 9458, - "end": 9509, + "start": 9470, + "end": 9521, "loc": { "start": { "line": 260, @@ -9957,8 +9957,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9458, - "end": 9477, + "start": 9470, + "end": 9489, "loc": { "start": { "line": 260, @@ -9971,8 +9971,8 @@ }, "object": { "type": "ThisExpression", - "start": 9458, - "end": 9462, + "start": 9470, + "end": 9474, "loc": { "start": { "line": 260, @@ -9986,8 +9986,8 @@ }, "property": { "type": "Identifier", - "start": 9463, - "end": 9477, + "start": 9475, + "end": 9489, "loc": { "start": { "line": 260, @@ -10006,8 +10006,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9478, - "end": 9495, + "start": 9490, + "end": 9507, "loc": { "start": { "line": 260, @@ -10020,8 +10020,8 @@ }, "object": { "type": "Identifier", - "start": 9478, - "end": 9487, + "start": 9490, + "end": 9499, "loc": { "start": { "line": 260, @@ -10037,8 +10037,8 @@ }, "property": { "type": "Identifier", - "start": 9488, - "end": 9495, + "start": 9500, + "end": 9507, "loc": { "start": { "line": 260, @@ -10056,8 +10056,8 @@ }, { "type": "Identifier", - "start": 9497, - "end": 9508, + "start": 9509, + "end": 9520, "loc": { "start": { "line": 260, @@ -10081,8 +10081,8 @@ { "type": "CommentLine", "value": " Build the 2D array grid that represents the map", - "start": 9386, - "end": 9436, + "start": 9398, + "end": 9448, "loc": { "start": { "line": 259, @@ -10099,8 +10099,8 @@ { "type": "CommentLine", "value": " Assign the grid to easystar", - "start": 9520, - "end": 9550, + "start": 9532, + "end": 9562, "loc": { "start": { "line": 262, @@ -10116,8 +10116,8 @@ }, { "type": "ExpressionStatement", - "start": 9555, - "end": 9600, + "start": 9567, + "end": 9612, "loc": { "start": { "line": 263, @@ -10130,8 +10130,8 @@ }, "expression": { "type": "CallExpression", - "start": 9555, - "end": 9599, + "start": 9567, + "end": 9611, "loc": { "start": { "line": 263, @@ -10144,8 +10144,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9555, - "end": 9584, + "start": 9567, + "end": 9596, "loc": { "start": { "line": 263, @@ -10158,8 +10158,8 @@ }, "object": { "type": "MemberExpression", - "start": 9555, - "end": 9576, + "start": 9567, + "end": 9588, "loc": { "start": { "line": 263, @@ -10172,8 +10172,8 @@ }, "object": { "type": "Identifier", - "start": 9555, - "end": 9567, + "start": 9567, + "end": 9579, "loc": { "start": { "line": 263, @@ -10190,8 +10190,8 @@ }, "property": { "type": "Identifier", - "start": 9568, - "end": 9576, + "start": 9580, + "end": 9588, "loc": { "start": { "line": 263, @@ -10210,8 +10210,8 @@ }, "property": { "type": "Identifier", - "start": 9577, - "end": 9584, + "start": 9589, + "end": 9596, "loc": { "start": { "line": 263, @@ -10231,8 +10231,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9585, - "end": 9598, + "start": 9597, + "end": 9610, "loc": { "start": { "line": 263, @@ -10245,8 +10245,8 @@ }, "object": { "type": "Identifier", - "start": 9585, - "end": 9593, + "start": 9597, + "end": 9605, "loc": { "start": { "line": 263, @@ -10262,8 +10262,8 @@ }, "property": { "type": "Identifier", - "start": 9594, - "end": 9598, + "start": 9606, + "end": 9610, "loc": { "start": { "line": 263, @@ -10286,8 +10286,8 @@ { "type": "CommentLine", "value": " Assign the grid to easystar", - "start": 9520, - "end": 9550, + "start": 9532, + "end": 9562, "loc": { "start": { "line": 262, @@ -10304,8 +10304,8 @@ { "type": "CommentLine", "value": " Assign the weight of each tile", - "start": 9610, - "end": 9643, + "start": 9622, + "end": 9655, "loc": { "start": { "line": 265, @@ -10321,8 +10321,8 @@ }, { "type": "ExpressionStatement", - "start": 9648, - "end": 9753, + "start": 9660, + "end": 9765, "loc": { "start": { "line": 266, @@ -10335,8 +10335,8 @@ }, "expression": { "type": "CallExpression", - "start": 9648, - "end": 9752, + "start": 9660, + "end": 9764, "loc": { "start": { "line": 266, @@ -10349,8 +10349,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9648, - "end": 9672, + "start": 9660, + "end": 9684, "loc": { "start": { "line": 266, @@ -10363,8 +10363,8 @@ }, "object": { "type": "MemberExpression", - "start": 9648, - "end": 9664, + "start": 9660, + "end": 9676, "loc": { "start": { "line": 266, @@ -10377,8 +10377,8 @@ }, "object": { "type": "Identifier", - "start": 9648, - "end": 9656, + "start": 9660, + "end": 9668, "loc": { "start": { "line": 266, @@ -10395,8 +10395,8 @@ }, "property": { "type": "Identifier", - "start": 9657, - "end": 9664, + "start": 9669, + "end": 9676, "loc": { "start": { "line": 266, @@ -10415,8 +10415,8 @@ }, "property": { "type": "Identifier", - "start": 9665, - "end": 9672, + "start": 9677, + "end": 9684, "loc": { "start": { "line": 266, @@ -10436,8 +10436,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 9673, - "end": 9751, + "start": 9685, + "end": 9763, "loc": { "start": { "line": 266, @@ -10455,8 +10455,8 @@ "params": [ { "type": "Identifier", - "start": 9674, - "end": 9681, + "start": 9686, + "end": 9693, "loc": { "start": { "line": 266, @@ -10473,8 +10473,8 @@ ], "body": { "type": "BlockStatement", - "start": 9686, - "end": 9751, + "start": 9698, + "end": 9763, "loc": { "start": { "line": 266, @@ -10488,8 +10488,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9693, - "end": 9745, + "start": 9705, + "end": 9757, "loc": { "start": { "line": 267, @@ -10502,8 +10502,8 @@ }, "expression": { "type": "CallExpression", - "start": 9693, - "end": 9744, + "start": 9705, + "end": 9756, "loc": { "start": { "line": 267, @@ -10516,8 +10516,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9693, - "end": 9726, + "start": 9705, + "end": 9738, "loc": { "start": { "line": 267, @@ -10530,8 +10530,8 @@ }, "object": { "type": "MemberExpression", - "start": 9693, - "end": 9714, + "start": 9705, + "end": 9726, "loc": { "start": { "line": 267, @@ -10544,8 +10544,8 @@ }, "object": { "type": "Identifier", - "start": 9693, - "end": 9705, + "start": 9705, + "end": 9717, "loc": { "start": { "line": 267, @@ -10561,8 +10561,8 @@ }, "property": { "type": "Identifier", - "start": 9706, - "end": 9714, + "start": 9718, + "end": 9726, "loc": { "start": { "line": 267, @@ -10580,8 +10580,8 @@ }, "property": { "type": "Identifier", - "start": 9715, - "end": 9726, + "start": 9727, + "end": 9738, "loc": { "start": { "line": 267, @@ -10600,8 +10600,8 @@ "arguments": [ { "type": "Identifier", - "start": 9727, - "end": 9734, + "start": 9739, + "end": 9746, "loc": { "start": { "line": 267, @@ -10617,8 +10617,8 @@ }, { "type": "Identifier", - "start": 9736, - "end": 9743, + "start": 9748, + "end": 9755, "loc": { "start": { "line": 267, @@ -10646,8 +10646,8 @@ { "type": "CommentLine", "value": " Assign the weight of each tile", - "start": 9610, - "end": 9643, + "start": 9622, + "end": 9655, "loc": { "start": { "line": 265, @@ -10664,8 +10664,8 @@ { "type": "CommentLine", "value": " Assign what tiles can be used", - "start": 9760, - "end": 9792, + "start": 9772, + "end": 9804, "loc": { "start": { "line": 270, @@ -10681,8 +10681,8 @@ }, { "type": "ExpressionStatement", - "start": 9797, - "end": 9862, + "start": 9809, + "end": 9874, "loc": { "start": { "line": 271, @@ -10695,8 +10695,8 @@ }, "expression": { "type": "CallExpression", - "start": 9797, - "end": 9861, + "start": 9809, + "end": 9873, "loc": { "start": { "line": 271, @@ -10709,8 +10709,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9797, - "end": 9837, + "start": 9809, + "end": 9849, "loc": { "start": { "line": 271, @@ -10723,8 +10723,8 @@ }, "object": { "type": "MemberExpression", - "start": 9797, - "end": 9818, + "start": 9809, + "end": 9830, "loc": { "start": { "line": 271, @@ -10737,8 +10737,8 @@ }, "object": { "type": "Identifier", - "start": 9797, - "end": 9809, + "start": 9809, + "end": 9821, "loc": { "start": { "line": 271, @@ -10755,8 +10755,8 @@ }, "property": { "type": "Identifier", - "start": 9810, - "end": 9818, + "start": 9822, + "end": 9830, "loc": { "start": { "line": 271, @@ -10775,8 +10775,8 @@ }, "property": { "type": "Identifier", - "start": 9819, - "end": 9837, + "start": 9831, + "end": 9849, "loc": { "start": { "line": 271, @@ -10796,8 +10796,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9838, - "end": 9860, + "start": 9850, + "end": 9872, "loc": { "start": { "line": 271, @@ -10810,8 +10810,8 @@ }, "object": { "type": "Identifier", - "start": 9838, - "end": 9846, + "start": 9850, + "end": 9858, "loc": { "start": { "line": 271, @@ -10827,8 +10827,8 @@ }, "property": { "type": "Identifier", - "start": 9847, - "end": 9860, + "start": 9859, + "end": 9872, "loc": { "start": { "line": 271, @@ -10851,8 +10851,8 @@ { "type": "CommentLine", "value": " Assign what tiles can be used", - "start": 9760, - "end": 9792, + "start": 9772, + "end": 9804, "loc": { "start": { "line": 270, @@ -10869,8 +10869,8 @@ { "type": "CommentLine", "value": " Grab the pos of the instance so we can locate the starting tile its on.", - "start": 9869, - "end": 9943, + "start": 9881, + "end": 9955, "loc": { "start": { "line": 273, @@ -10885,8 +10885,8 @@ { "type": "CommentLine", "value": " This is also used as the startingNode position.", - "start": 9948, - "end": 9998, + "start": 9960, + "end": 10010, "loc": { "start": { "line": 274, @@ -10902,8 +10902,8 @@ }, { "type": "VariableDeclaration", - "start": 10003, - "end": 10068, + "start": 10015, + "end": 10080, "loc": { "start": { "line": 275, @@ -10917,8 +10917,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10009, - "end": 10067, + "start": 10021, + "end": 10079, "loc": { "start": { "line": 275, @@ -10931,8 +10931,8 @@ }, "id": { "type": "Identifier", - "start": 10009, - "end": 10025, + "start": 10021, + "end": 10037, "loc": { "start": { "line": 275, @@ -10949,8 +10949,8 @@ }, "init": { "type": "CallExpression", - "start": 10028, - "end": 10067, + "start": 10040, + "end": 10079, "loc": { "start": { "line": 275, @@ -10963,8 +10963,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10028, - "end": 10056, + "start": 10040, + "end": 10068, "loc": { "start": { "line": 275, @@ -10977,8 +10977,8 @@ }, "object": { "type": "ThisExpression", - "start": 10028, - "end": 10032, + "start": 10040, + "end": 10044, "loc": { "start": { "line": 275, @@ -10992,8 +10992,8 @@ }, "property": { "type": "Identifier", - "start": 10033, - "end": 10056, + "start": 10045, + "end": 10068, "loc": { "start": { "line": 275, @@ -11012,8 +11012,8 @@ "arguments": [ { "type": "Identifier", - "start": 10057, - "end": 10066, + "start": 10069, + "end": 10078, "loc": { "start": { "line": 275, @@ -11037,8 +11037,8 @@ { "type": "CommentLine", "value": " Grab the pos of the instance so we can locate the starting tile its on.", - "start": 9869, - "end": 9943, + "start": 9881, + "end": 9955, "loc": { "start": { "line": 273, @@ -11053,8 +11053,8 @@ { "type": "CommentLine", "value": " This is also used as the startingNode position.", - "start": 9948, - "end": 9998, + "start": 9960, + "end": 10010, "loc": { "start": { "line": 274, @@ -11071,8 +11071,8 @@ { "type": "CommentLine", "value": " Get the origin tile the instance is on.", - "start": 10073, - "end": 10115, + "start": 10085, + "end": 10127, "loc": { "start": { "line": 276, @@ -11088,8 +11088,8 @@ }, { "type": "VariableDeclaration", - "start": 10120, - "end": 10219, + "start": 10132, + "end": 10231, "loc": { "start": { "line": 277, @@ -11103,8 +11103,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10126, - "end": 10218, + "start": 10138, + "end": 10230, "loc": { "start": { "line": 277, @@ -11117,8 +11117,8 @@ }, "id": { "type": "Identifier", - "start": 10126, - "end": 10136, + "start": 10138, + "end": 10148, "loc": { "start": { "line": 277, @@ -11135,8 +11135,8 @@ }, "init": { "type": "CallExpression", - "start": 10139, - "end": 10218, + "start": 10151, + "end": 10230, "loc": { "start": { "line": 277, @@ -11149,8 +11149,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10139, - "end": 10159, + "start": 10151, + "end": 10171, "loc": { "start": { "line": 277, @@ -11163,8 +11163,8 @@ }, "object": { "type": "MemberExpression", - "start": 10139, - "end": 10147, + "start": 10151, + "end": 10159, "loc": { "start": { "line": 277, @@ -11177,8 +11177,8 @@ }, "object": { "type": "Identifier", - "start": 10139, - "end": 10143, + "start": 10151, + "end": 10155, "loc": { "start": { "line": 277, @@ -11194,8 +11194,8 @@ }, "property": { "type": "Identifier", - "start": 10144, - "end": 10147, + "start": 10156, + "end": 10159, "loc": { "start": { "line": 277, @@ -11213,8 +11213,8 @@ }, "property": { "type": "Identifier", - "start": 10148, - "end": 10159, + "start": 10160, + "end": 10171, "loc": { "start": { "line": 277, @@ -11233,8 +11233,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10160, - "end": 10178, + "start": 10172, + "end": 10190, "loc": { "start": { "line": 277, @@ -11247,8 +11247,8 @@ }, "object": { "type": "Identifier", - "start": 10160, - "end": 10176, + "start": 10172, + "end": 10188, "loc": { "start": { "line": 277, @@ -11264,8 +11264,8 @@ }, "property": { "type": "Identifier", - "start": 10177, - "end": 10178, + "start": 10189, + "end": 10190, "loc": { "start": { "line": 277, @@ -11283,8 +11283,8 @@ }, { "type": "MemberExpression", - "start": 10180, - "end": 10198, + "start": 10192, + "end": 10210, "loc": { "start": { "line": 277, @@ -11297,8 +11297,8 @@ }, "object": { "type": "Identifier", - "start": 10180, - "end": 10196, + "start": 10192, + "end": 10208, "loc": { "start": { "line": 277, @@ -11314,8 +11314,8 @@ }, "property": { "type": "Identifier", - "start": 10197, - "end": 10198, + "start": 10209, + "end": 10210, "loc": { "start": { "line": 277, @@ -11333,8 +11333,8 @@ }, { "type": "MemberExpression", - "start": 10200, - "end": 10217, + "start": 10212, + "end": 10229, "loc": { "start": { "line": 277, @@ -11347,8 +11347,8 @@ }, "object": { "type": "Identifier", - "start": 10200, - "end": 10209, + "start": 10212, + "end": 10221, "loc": { "start": { "line": 277, @@ -11364,8 +11364,8 @@ }, "property": { "type": "Identifier", - "start": 10210, - "end": 10217, + "start": 10222, + "end": 10229, "loc": { "start": { "line": 277, @@ -11391,8 +11391,8 @@ { "type": "CommentLine", "value": " Get the origin tile the instance is on.", - "start": 10073, - "end": 10115, + "start": 10085, + "end": 10127, "loc": { "start": { "line": 276, @@ -11409,8 +11409,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 10224, - "end": 10273, + "start": 10236, + "end": 10285, "loc": { "start": { "line": 278, @@ -11426,8 +11426,8 @@ }, { "type": "VariableDeclaration", - "start": 10278, - "end": 10333, + "start": 10290, + "end": 10345, "loc": { "start": { "line": 279, @@ -11441,8 +11441,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10284, - "end": 10332, + "start": 10296, + "end": 10344, "loc": { "start": { "line": 279, @@ -11455,8 +11455,8 @@ }, "id": { "type": "Identifier", - "start": 10284, - "end": 10291, + "start": 10296, + "end": 10303, "loc": { "start": { "line": 279, @@ -11473,8 +11473,8 @@ }, "init": { "type": "CallExpression", - "start": 10294, - "end": 10332, + "start": 10306, + "end": 10344, "loc": { "start": { "line": 279, @@ -11487,8 +11487,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10294, - "end": 10313, + "start": 10306, + "end": 10325, "loc": { "start": { "line": 279, @@ -11501,8 +11501,8 @@ }, "object": { "type": "MemberExpression", - "start": 10294, - "end": 10302, + "start": 10306, + "end": 10314, "loc": { "start": { "line": 279, @@ -11515,8 +11515,8 @@ }, "object": { "type": "Identifier", - "start": 10294, - "end": 10298, + "start": 10306, + "end": 10310, "loc": { "start": { "line": 279, @@ -11532,8 +11532,8 @@ }, "property": { "type": "Identifier", - "start": 10299, - "end": 10302, + "start": 10311, + "end": 10314, "loc": { "start": { "line": 279, @@ -11551,8 +11551,8 @@ }, "property": { "type": "Identifier", - "start": 10303, - "end": 10313, + "start": 10315, + "end": 10325, "loc": { "start": { "line": 279, @@ -11571,8 +11571,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10314, - "end": 10331, + "start": 10326, + "end": 10343, "loc": { "start": { "line": 279, @@ -11585,8 +11585,8 @@ }, "object": { "type": "Identifier", - "start": 10314, - "end": 10323, + "start": 10326, + "end": 10335, "loc": { "start": { "line": 279, @@ -11602,8 +11602,8 @@ }, "property": { "type": "Identifier", - "start": 10324, - "end": 10331, + "start": 10336, + "end": 10343, "loc": { "start": { "line": 279, @@ -11629,8 +11629,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 10224, - "end": 10273, + "start": 10236, + "end": 10285, "loc": { "start": { "line": 278, @@ -11647,8 +11647,8 @@ { "type": "CommentLine", "value": " Get the end nodes position so we can get the destinationTile", - "start": 10340, - "end": 10403, + "start": 10352, + "end": 10415, "loc": { "start": { "line": 281, @@ -11664,8 +11664,8 @@ }, { "type": "VariableDeclaration", - "start": 10408, - "end": 10567, + "start": 10420, + "end": 10579, "loc": { "start": { "line": 282, @@ -11679,8 +11679,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10414, - "end": 10566, + "start": 10426, + "end": 10578, "loc": { "start": { "line": 282, @@ -11693,8 +11693,8 @@ }, "id": { "type": "Identifier", - "start": 10414, - "end": 10422, + "start": 10426, + "end": 10434, "loc": { "start": { "line": 282, @@ -11711,8 +11711,8 @@ }, "init": { "type": "CallExpression", - "start": 10425, - "end": 10566, + "start": 10437, + "end": 10578, "loc": { "start": { "line": 282, @@ -11725,8 +11725,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10425, - "end": 10436, + "start": 10437, + "end": 10448, "loc": { "start": { "line": 282, @@ -11739,8 +11739,8 @@ }, "object": { "type": "Identifier", - "start": 10425, - "end": 10430, + "start": 10437, + "end": 10442, "loc": { "start": { "line": 282, @@ -11756,8 +11756,8 @@ }, "property": { "type": "Identifier", - "start": 10431, - "end": 10436, + "start": 10443, + "end": 10448, "loc": { "start": { "line": 282, @@ -11776,8 +11776,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 10437, - "end": 10526, + "start": 10449, + "end": 10538, "loc": { "start": { "line": 282, @@ -11790,8 +11790,8 @@ }, "left": { "type": "BinaryExpression", - "start": 10437, - "end": 10500, + "start": 10449, + "end": 10512, "loc": { "start": { "line": 282, @@ -11804,8 +11804,8 @@ }, "left": { "type": "CallExpression", - "start": 10437, - "end": 10478, + "start": 10449, + "end": 10490, "loc": { "start": { "line": 282, @@ -11818,8 +11818,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10437, - "end": 10448, + "start": 10449, + "end": 10460, "loc": { "start": { "line": 282, @@ -11832,8 +11832,8 @@ }, "object": { "type": "Identifier", - "start": 10437, - "end": 10442, + "start": 10449, + "end": 10454, "loc": { "start": { "line": 282, @@ -11849,8 +11849,8 @@ }, "property": { "type": "Identifier", - "start": 10443, - "end": 10448, + "start": 10455, + "end": 10460, "loc": { "start": { "line": 282, @@ -11869,8 +11869,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10449, - "end": 10463, + "start": 10461, + "end": 10475, "loc": { "start": { "line": 282, @@ -11883,8 +11883,8 @@ }, "object": { "type": "Identifier", - "start": 10449, - "end": 10461, + "start": 10461, + "end": 10473, "loc": { "start": { "line": 282, @@ -11900,8 +11900,8 @@ }, "property": { "type": "Identifier", - "start": 10462, - "end": 10463, + "start": 10474, + "end": 10475, "loc": { "start": { "line": 282, @@ -11919,8 +11919,8 @@ }, { "type": "NumericLiteral", - "start": 10465, - "end": 10466, + "start": 10477, + "end": 10478, "loc": { "start": { "line": 282, @@ -11939,8 +11939,8 @@ }, { "type": "MemberExpression", - "start": 10468, - "end": 10477, + "start": 10480, + "end": 10489, "loc": { "start": { "line": 282, @@ -11953,8 +11953,8 @@ }, "object": { "type": "Identifier", - "start": 10468, - "end": 10475, + "start": 10480, + "end": 10487, "loc": { "start": { "line": 282, @@ -11970,8 +11970,8 @@ }, "property": { "type": "Identifier", - "start": 10476, - "end": 10477, + "start": 10488, + "end": 10489, "loc": { "start": { "line": 282, @@ -11992,8 +11992,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 10481, - "end": 10500, + "start": 10493, + "end": 10512, "loc": { "start": { "line": 282, @@ -12006,8 +12006,8 @@ }, "object": { "type": "MemberExpression", - "start": 10481, - "end": 10494, + "start": 10493, + "end": 10506, "loc": { "start": { "line": 282, @@ -12020,8 +12020,8 @@ }, "object": { "type": "ThisExpression", - "start": 10481, - "end": 10485, + "start": 10493, + "end": 10497, "loc": { "start": { "line": 282, @@ -12035,8 +12035,8 @@ }, "property": { "type": "Identifier", - "start": 10486, - "end": 10494, + "start": 10498, + "end": 10506, "loc": { "start": { "line": 282, @@ -12054,8 +12054,8 @@ }, "property": { "type": "Identifier", - "start": 10495, - "end": 10500, + "start": 10507, + "end": 10512, "loc": { "start": { "line": 282, @@ -12075,8 +12075,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 10503, - "end": 10526, + "start": 10515, + "end": 10538, "loc": { "start": { "line": 282, @@ -12089,8 +12089,8 @@ }, "left": { "type": "MemberExpression", - "start": 10503, - "end": 10522, + "start": 10515, + "end": 10534, "loc": { "start": { "line": 282, @@ -12103,8 +12103,8 @@ }, "object": { "type": "MemberExpression", - "start": 10503, - "end": 10516, + "start": 10515, + "end": 10528, "loc": { "start": { "line": 282, @@ -12117,8 +12117,8 @@ }, "object": { "type": "ThisExpression", - "start": 10503, - "end": 10507, + "start": 10515, + "end": 10519, "loc": { "start": { "line": 282, @@ -12132,8 +12132,8 @@ }, "property": { "type": "Identifier", - "start": 10508, - "end": 10516, + "start": 10520, + "end": 10528, "loc": { "start": { "line": 282, @@ -12151,8 +12151,8 @@ }, "property": { "type": "Identifier", - "start": 10517, - "end": 10522, + "start": 10529, + "end": 10534, "loc": { "start": { "line": 282, @@ -12171,8 +12171,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 10525, - "end": 10526, + "start": 10537, + "end": 10538, "loc": { "start": { "line": 282, @@ -12193,8 +12193,8 @@ }, { "type": "NumericLiteral", - "start": 10528, - "end": 10529, + "start": 10540, + "end": 10541, "loc": { "start": { "line": 282, @@ -12213,8 +12213,8 @@ }, { "type": "BinaryExpression", - "start": 10531, - "end": 10565, + "start": 10543, + "end": 10577, "loc": { "start": { "line": 282, @@ -12227,8 +12227,8 @@ }, "left": { "type": "MemberExpression", - "start": 10531, - "end": 10543, + "start": 10543, + "end": 10555, "loc": { "start": { "line": 282, @@ -12241,8 +12241,8 @@ }, "object": { "type": "Identifier", - "start": 10531, - "end": 10538, + "start": 10543, + "end": 10550, "loc": { "start": { "line": 282, @@ -12258,8 +12258,8 @@ }, "property": { "type": "Identifier", - "start": 10539, - "end": 10543, + "start": 10551, + "end": 10555, "loc": { "start": { "line": 282, @@ -12278,8 +12278,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 10546, - "end": 10565, + "start": 10558, + "end": 10577, "loc": { "start": { "line": 282, @@ -12292,8 +12292,8 @@ }, "object": { "type": "MemberExpression", - "start": 10546, - "end": 10559, + "start": 10558, + "end": 10571, "loc": { "start": { "line": 282, @@ -12306,8 +12306,8 @@ }, "object": { "type": "ThisExpression", - "start": 10546, - "end": 10550, + "start": 10558, + "end": 10562, "loc": { "start": { "line": 282, @@ -12321,8 +12321,8 @@ }, "property": { "type": "Identifier", - "start": 10551, - "end": 10559, + "start": 10563, + "end": 10571, "loc": { "start": { "line": 282, @@ -12340,8 +12340,8 @@ }, "property": { "type": "Identifier", - "start": 10560, - "end": 10565, + "start": 10572, + "end": 10577, "loc": { "start": { "line": 282, @@ -12368,8 +12368,8 @@ { "type": "CommentLine", "value": " Get the end nodes position so we can get the destinationTile", - "start": 10340, - "end": 10403, + "start": 10352, + "end": 10415, "loc": { "start": { "line": 281, @@ -12385,8 +12385,8 @@ }, { "type": "VariableDeclaration", - "start": 10572, - "end": 10734, + "start": 10584, + "end": 10746, "loc": { "start": { "line": 283, @@ -12400,8 +12400,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10578, - "end": 10733, + "start": 10590, + "end": 10745, "loc": { "start": { "line": 283, @@ -12414,8 +12414,8 @@ }, "id": { "type": "Identifier", - "start": 10578, - "end": 10586, + "start": 10590, + "end": 10598, "loc": { "start": { "line": 283, @@ -12431,8 +12431,8 @@ }, "init": { "type": "CallExpression", - "start": 10589, - "end": 10733, + "start": 10601, + "end": 10745, "loc": { "start": { "line": 283, @@ -12445,8 +12445,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10589, - "end": 10600, + "start": 10601, + "end": 10612, "loc": { "start": { "line": 283, @@ -12459,8 +12459,8 @@ }, "object": { "type": "Identifier", - "start": 10589, - "end": 10594, + "start": 10601, + "end": 10606, "loc": { "start": { "line": 283, @@ -12476,8 +12476,8 @@ }, "property": { "type": "Identifier", - "start": 10595, - "end": 10600, + "start": 10607, + "end": 10612, "loc": { "start": { "line": 283, @@ -12496,8 +12496,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 10601, - "end": 10692, + "start": 10613, + "end": 10704, "loc": { "start": { "line": 283, @@ -12510,8 +12510,8 @@ }, "left": { "type": "BinaryExpression", - "start": 10601, - "end": 10665, + "start": 10613, + "end": 10677, "loc": { "start": { "line": 283, @@ -12524,8 +12524,8 @@ }, "left": { "type": "CallExpression", - "start": 10601, - "end": 10642, + "start": 10613, + "end": 10654, "loc": { "start": { "line": 283, @@ -12538,8 +12538,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10601, - "end": 10612, + "start": 10613, + "end": 10624, "loc": { "start": { "line": 283, @@ -12552,8 +12552,8 @@ }, "object": { "type": "Identifier", - "start": 10601, - "end": 10606, + "start": 10613, + "end": 10618, "loc": { "start": { "line": 283, @@ -12569,8 +12569,8 @@ }, "property": { "type": "Identifier", - "start": 10607, - "end": 10612, + "start": 10619, + "end": 10624, "loc": { "start": { "line": 283, @@ -12589,8 +12589,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10613, - "end": 10627, + "start": 10625, + "end": 10639, "loc": { "start": { "line": 283, @@ -12603,8 +12603,8 @@ }, "object": { "type": "Identifier", - "start": 10613, - "end": 10625, + "start": 10625, + "end": 10637, "loc": { "start": { "line": 283, @@ -12620,8 +12620,8 @@ }, "property": { "type": "Identifier", - "start": 10626, - "end": 10627, + "start": 10638, + "end": 10639, "loc": { "start": { "line": 283, @@ -12639,8 +12639,8 @@ }, { "type": "NumericLiteral", - "start": 10629, - "end": 10630, + "start": 10641, + "end": 10642, "loc": { "start": { "line": 283, @@ -12659,8 +12659,8 @@ }, { "type": "MemberExpression", - "start": 10632, - "end": 10641, + "start": 10644, + "end": 10653, "loc": { "start": { "line": 283, @@ -12673,8 +12673,8 @@ }, "object": { "type": "Identifier", - "start": 10632, - "end": 10639, + "start": 10644, + "end": 10651, "loc": { "start": { "line": 283, @@ -12690,8 +12690,8 @@ }, "property": { "type": "Identifier", - "start": 10640, - "end": 10641, + "start": 10652, + "end": 10653, "loc": { "start": { "line": 283, @@ -12712,8 +12712,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 10645, - "end": 10665, + "start": 10657, + "end": 10677, "loc": { "start": { "line": 283, @@ -12726,8 +12726,8 @@ }, "object": { "type": "MemberExpression", - "start": 10645, - "end": 10658, + "start": 10657, + "end": 10670, "loc": { "start": { "line": 283, @@ -12740,8 +12740,8 @@ }, "object": { "type": "ThisExpression", - "start": 10645, - "end": 10649, + "start": 10657, + "end": 10661, "loc": { "start": { "line": 283, @@ -12755,8 +12755,8 @@ }, "property": { "type": "Identifier", - "start": 10650, - "end": 10658, + "start": 10662, + "end": 10670, "loc": { "start": { "line": 283, @@ -12774,8 +12774,8 @@ }, "property": { "type": "Identifier", - "start": 10659, - "end": 10665, + "start": 10671, + "end": 10677, "loc": { "start": { "line": 283, @@ -12795,8 +12795,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 10668, - "end": 10692, + "start": 10680, + "end": 10704, "loc": { "start": { "line": 283, @@ -12809,8 +12809,8 @@ }, "left": { "type": "MemberExpression", - "start": 10668, - "end": 10688, + "start": 10680, + "end": 10700, "loc": { "start": { "line": 283, @@ -12823,8 +12823,8 @@ }, "object": { "type": "MemberExpression", - "start": 10668, - "end": 10681, + "start": 10680, + "end": 10693, "loc": { "start": { "line": 283, @@ -12837,8 +12837,8 @@ }, "object": { "type": "ThisExpression", - "start": 10668, - "end": 10672, + "start": 10680, + "end": 10684, "loc": { "start": { "line": 283, @@ -12852,8 +12852,8 @@ }, "property": { "type": "Identifier", - "start": 10673, - "end": 10681, + "start": 10685, + "end": 10693, "loc": { "start": { "line": 283, @@ -12871,8 +12871,8 @@ }, "property": { "type": "Identifier", - "start": 10682, - "end": 10688, + "start": 10694, + "end": 10700, "loc": { "start": { "line": 283, @@ -12891,8 +12891,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 10691, - "end": 10692, + "start": 10703, + "end": 10704, "loc": { "start": { "line": 283, @@ -12913,8 +12913,8 @@ }, { "type": "NumericLiteral", - "start": 10694, - "end": 10695, + "start": 10706, + "end": 10707, "loc": { "start": { "line": 283, @@ -12933,8 +12933,8 @@ }, { "type": "BinaryExpression", - "start": 10697, - "end": 10732, + "start": 10709, + "end": 10744, "loc": { "start": { "line": 283, @@ -12947,8 +12947,8 @@ }, "left": { "type": "MemberExpression", - "start": 10697, - "end": 10709, + "start": 10709, + "end": 10721, "loc": { "start": { "line": 283, @@ -12961,8 +12961,8 @@ }, "object": { "type": "Identifier", - "start": 10697, - "end": 10704, + "start": 10709, + "end": 10716, "loc": { "start": { "line": 283, @@ -12978,8 +12978,8 @@ }, "property": { "type": "Identifier", - "start": 10705, - "end": 10709, + "start": 10717, + "end": 10721, "loc": { "start": { "line": 283, @@ -12998,8 +12998,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 10712, - "end": 10732, + "start": 10724, + "end": 10744, "loc": { "start": { "line": 283, @@ -13012,8 +13012,8 @@ }, "object": { "type": "MemberExpression", - "start": 10712, - "end": 10725, + "start": 10724, + "end": 10737, "loc": { "start": { "line": 283, @@ -13026,8 +13026,8 @@ }, "object": { "type": "ThisExpression", - "start": 10712, - "end": 10716, + "start": 10724, + "end": 10728, "loc": { "start": { "line": 283, @@ -13041,8 +13041,8 @@ }, "property": { "type": "Identifier", - "start": 10717, - "end": 10725, + "start": 10729, + "end": 10737, "loc": { "start": { "line": 283, @@ -13060,8 +13060,8 @@ }, "property": { "type": "Identifier", - "start": 10726, - "end": 10732, + "start": 10738, + "end": 10744, "loc": { "start": { "line": 283, @@ -13086,9 +13086,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Get the end time tile", - "start": 10739, - "end": 10763, + "value": " Get the end tile", + "start": 10751, + "end": 10770, "loc": { "start": { "line": 284, @@ -13096,7 +13096,7 @@ }, "end": { "line": 284, - "column": 27 + "column": 22 } } } @@ -13104,8 +13104,8 @@ }, { "type": "VariableDeclaration", - "start": 10768, - "end": 10852, + "start": 10775, + "end": 10859, "loc": { "start": { "line": 285, @@ -13119,8 +13119,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10774, - "end": 10851, + "start": 10781, + "end": 10858, "loc": { "start": { "line": 285, @@ -13133,8 +13133,8 @@ }, "id": { "type": "Identifier", - "start": 10774, - "end": 10789, + "start": 10781, + "end": 10796, "loc": { "start": { "line": 285, @@ -13151,8 +13151,8 @@ }, "init": { "type": "CallExpression", - "start": 10792, - "end": 10851, + "start": 10799, + "end": 10858, "loc": { "start": { "line": 285, @@ -13165,8 +13165,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10792, - "end": 10812, + "start": 10799, + "end": 10819, "loc": { "start": { "line": 285, @@ -13179,8 +13179,8 @@ }, "object": { "type": "MemberExpression", - "start": 10792, - "end": 10800, + "start": 10799, + "end": 10807, "loc": { "start": { "line": 285, @@ -13193,8 +13193,8 @@ }, "object": { "type": "Identifier", - "start": 10792, - "end": 10796, + "start": 10799, + "end": 10803, "loc": { "start": { "line": 285, @@ -13210,8 +13210,8 @@ }, "property": { "type": "Identifier", - "start": 10797, - "end": 10800, + "start": 10804, + "end": 10807, "loc": { "start": { "line": 285, @@ -13229,8 +13229,8 @@ }, "property": { "type": "Identifier", - "start": 10801, - "end": 10812, + "start": 10808, + "end": 10819, "loc": { "start": { "line": 285, @@ -13249,8 +13249,8 @@ "arguments": [ { "type": "Identifier", - "start": 10813, - "end": 10821, + "start": 10820, + "end": 10828, "loc": { "start": { "line": 285, @@ -13266,8 +13266,8 @@ }, { "type": "Identifier", - "start": 10823, - "end": 10831, + "start": 10830, + "end": 10838, "loc": { "start": { "line": 285, @@ -13283,8 +13283,8 @@ }, { "type": "MemberExpression", - "start": 10833, - "end": 10850, + "start": 10840, + "end": 10857, "loc": { "start": { "line": 285, @@ -13297,8 +13297,8 @@ }, "object": { "type": "Identifier", - "start": 10833, - "end": 10842, + "start": 10840, + "end": 10849, "loc": { "start": { "line": 285, @@ -13314,8 +13314,8 @@ }, "property": { "type": "Identifier", - "start": 10843, - "end": 10850, + "start": 10850, + "end": 10857, "loc": { "start": { "line": 285, @@ -13340,9 +13340,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " Get the end time tile", - "start": 10739, - "end": 10763, + "value": " Get the end tile", + "start": 10751, + "end": 10770, "loc": { "start": { "line": 284, @@ -13350,7 +13350,7 @@ }, "end": { "line": 284, - "column": 27 + "column": 22 } } } @@ -13359,8 +13359,8 @@ { "type": "CommentLine", "value": " Make sure these have resolved to actual tiles.", - "start": 10862, - "end": 10911, + "start": 10869, + "end": 10918, "loc": { "start": { "line": 287, @@ -13376,8 +13376,8 @@ }, { "type": "IfStatement", - "start": 10916, - "end": 11887, + "start": 10923, + "end": 11933, "loc": { "start": { "line": 288, @@ -13390,8 +13390,8 @@ }, "test": { "type": "LogicalExpression", - "start": 10920, - "end": 10949, + "start": 10927, + "end": 10956, "loc": { "start": { "line": 288, @@ -13404,8 +13404,8 @@ }, "left": { "type": "Identifier", - "start": 10920, - "end": 10930, + "start": 10927, + "end": 10937, "loc": { "start": { "line": 288, @@ -13423,8 +13423,8 @@ "operator": "&&", "right": { "type": "Identifier", - "start": 10934, - "end": 10949, + "start": 10941, + "end": 10956, "loc": { "start": { "line": 288, @@ -13442,8 +13442,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 10951, - "end": 11760, + "start": 10958, + "end": 11806, "loc": { "start": { "line": 288, @@ -13457,11 +13457,11 @@ "body": [ { "type": "IfStatement", - "start": 10958, - "end": 11754, + "start": 11021, + "end": 11800, "loc": { "start": { - "line": 289, + "line": 290, "column": 4 }, "end": { @@ -13471,92 +13471,94 @@ }, "test": { "type": "LogicalExpression", - "start": 10962, - "end": 11063, + "start": 11025, + "end": 11126, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 109 } }, "left": { "type": "CallExpression", - "start": 10962, - "end": 11008, + "start": 11025, + "end": 11071, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 54 } }, "callee": { "type": "MemberExpression", - "start": 10962, - "end": 10983, + "start": 11025, + "end": 11046, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 10962, - "end": 10966, + "start": 11025, + "end": 11029, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 12 } - } + }, + "leadingComments": null }, "property": { "type": "Identifier", - "start": 10967, - "end": 10983, + "start": 11030, + "end": 11046, "loc": { "start": { - "line": 289, + "line": 290, "column": 13 }, "end": { - "line": 289, + "line": 290, "column": 29 }, "identifierName": "isTileAccessible" }, "name": "isTileAccessible" }, - "computed": false + "computed": false, + "leadingComments": null }, "arguments": [ { "type": "Identifier", - "start": 10984, - "end": 10994, + "start": 11047, + "end": 11057, "loc": { "start": { - "line": 289, + "line": 290, "column": 30 }, "end": { - "line": 289, + "line": 290, "column": 40 }, "identifierName": "originTile" @@ -13565,78 +13567,79 @@ }, { "type": "Identifier", - "start": 10996, - "end": 11007, + "start": 11059, + "end": 11070, "loc": { "start": { - "line": 289, + "line": 290, "column": 42 }, "end": { - "line": 289, + "line": 290, "column": 53 }, "identifierName": "excludeList" }, "name": "excludeList" } - ] + ], + "leadingComments": null }, "operator": "&&", "right": { "type": "CallExpression", - "start": 11012, - "end": 11063, + "start": 11075, + "end": 11126, "loc": { "start": { - "line": 289, + "line": 290, "column": 58 }, "end": { - "line": 289, + "line": 290, "column": 109 } }, "callee": { "type": "MemberExpression", - "start": 11012, - "end": 11033, + "start": 11075, + "end": 11096, "loc": { "start": { - "line": 289, + "line": 290, "column": 58 }, "end": { - "line": 289, + "line": 290, "column": 79 } }, "object": { "type": "ThisExpression", - "start": 11012, - "end": 11016, + "start": 11075, + "end": 11079, "loc": { "start": { - "line": 289, + "line": 290, "column": 58 }, "end": { - "line": 289, + "line": 290, "column": 62 } } }, "property": { "type": "Identifier", - "start": 11017, - "end": 11033, + "start": 11080, + "end": 11096, "loc": { "start": { - "line": 289, + "line": 290, "column": 63 }, "end": { - "line": 289, + "line": 290, "column": 79 }, "identifierName": "isTileAccessible" @@ -13648,15 +13651,15 @@ "arguments": [ { "type": "Identifier", - "start": 11034, - "end": 11049, + "start": 11097, + "end": 11112, "loc": { "start": { - "line": 289, + "line": 290, "column": 80 }, "end": { - "line": 289, + "line": 290, "column": 95 }, "identifierName": "destinationTile" @@ -13665,15 +13668,15 @@ }, { "type": "Identifier", - "start": 11051, - "end": 11062, + "start": 11114, + "end": 11125, "loc": { "start": { - "line": 289, + "line": 290, "column": 97 }, "end": { - "line": 289, + "line": 290, "column": 108 }, "identifierName": "excludeList" @@ -13681,63 +13684,64 @@ "name": "excludeList" } ] - } + }, + "leadingComments": null }, "consequent": { "type": "BlockStatement", - "start": 11065, - "end": 11531, + "start": 11128, + "end": 11594, "loc": { "start": { - "line": 289, + "line": 290, "column": 111 }, "end": { - "line": 299, + "line": 300, "column": 5 } }, "body": [ { "type": "VariableDeclaration", - "start": 11121, - "end": 11165, + "start": 11184, + "end": 11228, "loc": { "start": { - "line": 291, + "line": 292, "column": 5 }, "end": { - "line": 291, + "line": 292, "column": 49 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 11125, - "end": 11164, + "start": 11188, + "end": 11227, "loc": { "start": { - "line": 291, + "line": 292, "column": 9 }, "end": { - "line": 291, + "line": 292, "column": 48 } }, "id": { "type": "Identifier", - "start": 11125, - "end": 11134, + "start": 11188, + "end": 11197, "loc": { "start": { - "line": 291, + "line": 292, "column": 9 }, "end": { - "line": 291, + "line": 292, "column": 18 }, "identifierName": "startNode" @@ -13747,58 +13751,58 @@ }, "init": { "type": "CallExpression", - "start": 11137, - "end": 11164, + "start": 11200, + "end": 11227, "loc": { "start": { - "line": 291, + "line": 292, "column": 21 }, "end": { - "line": 291, + "line": 292, "column": 48 } }, "callee": { "type": "MemberExpression", - "start": 11137, - "end": 11152, + "start": 11200, + "end": 11215, "loc": { "start": { - "line": 291, + "line": 292, "column": 21 }, "end": { - "line": 291, + "line": 292, "column": 36 } }, "object": { "type": "ThisExpression", - "start": 11137, - "end": 11141, + "start": 11200, + "end": 11204, "loc": { "start": { - "line": 291, + "line": 292, "column": 21 }, "end": { - "line": 291, + "line": 292, "column": 25 } } }, "property": { "type": "Identifier", - "start": 11142, - "end": 11152, + "start": 11205, + "end": 11215, "loc": { "start": { - "line": 291, + "line": 292, "column": 26 }, "end": { - "line": 291, + "line": 292, "column": 36 }, "identifierName": "tileToNode" @@ -13810,15 +13814,15 @@ "arguments": [ { "type": "Identifier", - "start": 11153, - "end": 11163, + "start": 11216, + "end": 11226, "loc": { "start": { - "line": 291, + "line": 292, "column": 37 }, "end": { - "line": 291, + "line": 292, "column": 47 }, "identifierName": "originTile" @@ -13835,15 +13839,15 @@ { "type": "CommentLine", "value": " Get the start node from the originTile", - "start": 11073, - "end": 11114, + "start": 11136, + "end": 11177, "loc": { "start": { - "line": 290, + "line": 291, "column": 5 }, "end": { - "line": 290, + "line": 291, "column": 46 } } @@ -13853,15 +13857,15 @@ { "type": "CommentLine", "value": " Get the end node from the destinationTile", - "start": 11179, - "end": 11223, + "start": 11242, + "end": 11286, "loc": { "start": { - "line": 293, + "line": 294, "column": 5 }, "end": { - "line": 293, + "line": 294, "column": 49 } } @@ -13870,44 +13874,44 @@ }, { "type": "VariableDeclaration", - "start": 11230, - "end": 11277, + "start": 11293, + "end": 11340, "loc": { "start": { - "line": 294, + "line": 295, "column": 5 }, "end": { - "line": 294, + "line": 295, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 11234, - "end": 11276, + "start": 11297, + "end": 11339, "loc": { "start": { - "line": 294, + "line": 295, "column": 9 }, "end": { - "line": 294, + "line": 295, "column": 51 } }, "id": { "type": "Identifier", - "start": 11234, - "end": 11241, + "start": 11297, + "end": 11304, "loc": { "start": { - "line": 294, + "line": 295, "column": 9 }, "end": { - "line": 294, + "line": 295, "column": 16 }, "identifierName": "endNode" @@ -13917,58 +13921,58 @@ }, "init": { "type": "CallExpression", - "start": 11244, - "end": 11276, + "start": 11307, + "end": 11339, "loc": { "start": { - "line": 294, + "line": 295, "column": 19 }, "end": { - "line": 294, + "line": 295, "column": 51 } }, "callee": { "type": "MemberExpression", - "start": 11244, - "end": 11259, + "start": 11307, + "end": 11322, "loc": { "start": { - "line": 294, + "line": 295, "column": 19 }, "end": { - "line": 294, + "line": 295, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 11244, - "end": 11248, + "start": 11307, + "end": 11311, "loc": { "start": { - "line": 294, + "line": 295, "column": 19 }, "end": { - "line": 294, + "line": 295, "column": 23 } } }, "property": { "type": "Identifier", - "start": 11249, - "end": 11259, + "start": 11312, + "end": 11322, "loc": { "start": { - "line": 294, + "line": 295, "column": 24 }, "end": { - "line": 294, + "line": 295, "column": 34 }, "identifierName": "tileToNode" @@ -13980,15 +13984,15 @@ "arguments": [ { "type": "Identifier", - "start": 11260, - "end": 11275, + "start": 11323, + "end": 11338, "loc": { "start": { - "line": 294, + "line": 295, "column": 35 }, "end": { - "line": 294, + "line": 295, "column": 50 }, "identifierName": "destinationTile" @@ -14005,15 +14009,15 @@ { "type": "CommentLine", "value": " Get the end node from the destinationTile", - "start": 11179, - "end": 11223, + "start": 11242, + "end": 11286, "loc": { "start": { - "line": 293, + "line": 294, "column": 5 }, "end": { - "line": 293, + "line": 294, "column": 49 } } @@ -14023,15 +14027,15 @@ { "type": "CommentLine", "value": " Generate the path for the player", - "start": 11286, - "end": 11321, + "start": 11349, + "end": 11384, "loc": { "start": { - "line": 296, + "line": 297, "column": 5 }, "end": { - "line": 296, + "line": 297, "column": 40 } } @@ -14040,57 +14044,57 @@ }, { "type": "ExpressionStatement", - "start": 11328, - "end": 11420, + "start": 11391, + "end": 11483, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 97 } }, "expression": { "type": "CallExpression", - "start": 11328, - "end": 11419, + "start": 11391, + "end": 11482, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 96 } }, "callee": { "type": "MemberExpression", - "start": 11328, - "end": 11340, + "start": 11391, + "end": 11403, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 11328, - "end": 11332, + "start": 11391, + "end": 11395, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 9 } }, @@ -14098,15 +14102,15 @@ }, "property": { "type": "Identifier", - "start": 11333, - "end": 11340, + "start": 11396, + "end": 11403, "loc": { "start": { - "line": 297, + "line": 298, "column": 10 }, "end": { - "line": 297, + "line": 298, "column": 17 }, "identifierName": "getPath" @@ -14119,15 +14123,15 @@ "arguments": [ { "type": "Identifier", - "start": 11341, - "end": 11350, + "start": 11404, + "end": 11413, "loc": { "start": { - "line": 297, + "line": 298, "column": 18 }, "end": { - "line": 297, + "line": 298, "column": 27 }, "identifierName": "pInstance" @@ -14136,30 +14140,30 @@ }, { "type": "ObjectExpression", - "start": 11352, - "end": 11386, + "start": 11415, + "end": 11449, "loc": { "start": { - "line": 297, + "line": 298, "column": 29 }, "end": { - "line": 297, + "line": 298, "column": 63 } }, "properties": [ { "type": "ObjectProperty", - "start": 11354, - "end": 11368, + "start": 11417, + "end": 11431, "loc": { "start": { - "line": 297, + "line": 298, "column": 31 }, "end": { - "line": 297, + "line": 298, "column": 45 } }, @@ -14168,15 +14172,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11354, - "end": 11355, + "start": 11417, + "end": 11418, "loc": { "start": { - "line": 297, + "line": 298, "column": 31 }, "end": { - "line": 297, + "line": 298, "column": 32 }, "identifierName": "x" @@ -14185,29 +14189,29 @@ }, "value": { "type": "MemberExpression", - "start": 11357, - "end": 11368, + "start": 11420, + "end": 11431, "loc": { "start": { - "line": 297, + "line": 298, "column": 34 }, "end": { - "line": 297, + "line": 298, "column": 45 } }, "object": { "type": "Identifier", - "start": 11357, - "end": 11366, + "start": 11420, + "end": 11429, "loc": { "start": { - "line": 297, + "line": 298, "column": 34 }, "end": { - "line": 297, + "line": 298, "column": 43 }, "identifierName": "startNode" @@ -14216,15 +14220,15 @@ }, "property": { "type": "Identifier", - "start": 11367, - "end": 11368, + "start": 11430, + "end": 11431, "loc": { "start": { - "line": 297, + "line": 298, "column": 44 }, "end": { - "line": 297, + "line": 298, "column": 45 }, "identifierName": "x" @@ -14236,15 +14240,15 @@ }, { "type": "ObjectProperty", - "start": 11370, - "end": 11384, + "start": 11433, + "end": 11447, "loc": { "start": { - "line": 297, + "line": 298, "column": 47 }, "end": { - "line": 297, + "line": 298, "column": 61 } }, @@ -14253,15 +14257,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11370, - "end": 11371, + "start": 11433, + "end": 11434, "loc": { "start": { - "line": 297, + "line": 298, "column": 47 }, "end": { - "line": 297, + "line": 298, "column": 48 }, "identifierName": "y" @@ -14270,29 +14274,29 @@ }, "value": { "type": "MemberExpression", - "start": 11373, - "end": 11384, + "start": 11436, + "end": 11447, "loc": { "start": { - "line": 297, + "line": 298, "column": 50 }, "end": { - "line": 297, + "line": 298, "column": 61 } }, "object": { "type": "Identifier", - "start": 11373, - "end": 11382, + "start": 11436, + "end": 11445, "loc": { "start": { - "line": 297, + "line": 298, "column": 50 }, "end": { - "line": 297, + "line": 298, "column": 59 }, "identifierName": "startNode" @@ -14301,15 +14305,15 @@ }, "property": { "type": "Identifier", - "start": 11383, - "end": 11384, + "start": 11446, + "end": 11447, "loc": { "start": { - "line": 297, + "line": 298, "column": 60 }, "end": { - "line": 297, + "line": 298, "column": 61 }, "identifierName": "y" @@ -14323,30 +14327,30 @@ }, { "type": "ObjectExpression", - "start": 11388, - "end": 11418, + "start": 11451, + "end": 11481, "loc": { "start": { - "line": 297, + "line": 298, "column": 65 }, "end": { - "line": 297, + "line": 298, "column": 95 } }, "properties": [ { "type": "ObjectProperty", - "start": 11390, - "end": 11402, + "start": 11453, + "end": 11465, "loc": { "start": { - "line": 297, + "line": 298, "column": 67 }, "end": { - "line": 297, + "line": 298, "column": 79 } }, @@ -14355,15 +14359,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11390, - "end": 11391, + "start": 11453, + "end": 11454, "loc": { "start": { - "line": 297, + "line": 298, "column": 67 }, "end": { - "line": 297, + "line": 298, "column": 68 }, "identifierName": "x" @@ -14372,29 +14376,29 @@ }, "value": { "type": "MemberExpression", - "start": 11393, - "end": 11402, + "start": 11456, + "end": 11465, "loc": { "start": { - "line": 297, + "line": 298, "column": 70 }, "end": { - "line": 297, + "line": 298, "column": 79 } }, "object": { "type": "Identifier", - "start": 11393, - "end": 11400, + "start": 11456, + "end": 11463, "loc": { "start": { - "line": 297, + "line": 298, "column": 70 }, "end": { - "line": 297, + "line": 298, "column": 77 }, "identifierName": "endNode" @@ -14403,15 +14407,15 @@ }, "property": { "type": "Identifier", - "start": 11401, - "end": 11402, + "start": 11464, + "end": 11465, "loc": { "start": { - "line": 297, + "line": 298, "column": 78 }, "end": { - "line": 297, + "line": 298, "column": 79 }, "identifierName": "x" @@ -14423,15 +14427,15 @@ }, { "type": "ObjectProperty", - "start": 11404, - "end": 11416, + "start": 11467, + "end": 11479, "loc": { "start": { - "line": 297, + "line": 298, "column": 81 }, "end": { - "line": 297, + "line": 298, "column": 93 } }, @@ -14440,15 +14444,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11404, - "end": 11405, + "start": 11467, + "end": 11468, "loc": { "start": { - "line": 297, + "line": 298, "column": 81 }, "end": { - "line": 297, + "line": 298, "column": 82 }, "identifierName": "y" @@ -14457,29 +14461,29 @@ }, "value": { "type": "MemberExpression", - "start": 11407, - "end": 11416, + "start": 11470, + "end": 11479, "loc": { "start": { - "line": 297, + "line": 298, "column": 84 }, "end": { - "line": 297, + "line": 298, "column": 93 } }, "object": { "type": "Identifier", - "start": 11407, - "end": 11414, + "start": 11470, + "end": 11477, "loc": { "start": { - "line": 297, + "line": 298, "column": 84 }, "end": { - "line": 297, + "line": 298, "column": 91 }, "identifierName": "endNode" @@ -14488,15 +14492,15 @@ }, "property": { "type": "Identifier", - "start": 11415, - "end": 11416, + "start": 11478, + "end": 11479, "loc": { "start": { - "line": 297, + "line": 298, "column": 92 }, "end": { - "line": 297, + "line": 298, "column": 93 }, "identifierName": "y" @@ -14515,15 +14519,15 @@ { "type": "CommentLine", "value": " Generate the path for the player", - "start": 11286, - "end": 11321, + "start": 11349, + "end": 11384, "loc": { "start": { - "line": 296, + "line": 297, "column": 5 }, "end": { - "line": 296, + "line": 297, "column": 40 } } @@ -14533,15 +14537,15 @@ { "type": "CommentLine", "value": " If the origin tile or end tile is not accessible to be walked on then return no path found.", - "start": 11430, - "end": 11524, + "start": 11493, + "end": 11587, "loc": { "start": { - "line": 298, + "line": 299, "column": 4 }, "end": { - "line": 298, + "line": 299, "column": 98 } } @@ -14553,11 +14557,11 @@ }, "alternate": { "type": "BlockStatement", - "start": 11537, - "end": 11754, + "start": 11600, + "end": 11800, "loc": { "start": { - "line": 299, + "line": 300, "column": 11 }, "end": { @@ -14568,43 +14572,43 @@ "body": [ { "type": "IfStatement", - "start": 11589, - "end": 11706, + "start": 11649, + "end": 11766, "loc": { "start": { - "line": 301, + "line": 302, "column": 5 }, "end": { - "line": 303, + "line": 304, "column": 6 } }, "test": { "type": "BinaryExpression", - "start": 11593, - "end": 11650, + "start": 11653, + "end": 11710, "loc": { "start": { - "line": 301, + "line": 302, "column": 9 }, "end": { - "line": 301, + "line": 302, "column": 66 } }, "left": { "type": "UnaryExpression", - "start": 11593, - "end": 11635, + "start": 11653, + "end": 11695, "loc": { "start": { - "line": 301, + "line": 302, "column": 9 }, "end": { - "line": 301, + "line": 302, "column": 51 } }, @@ -14612,43 +14616,43 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 11600, - "end": 11634, + "start": 11660, + "end": 11694, "loc": { "start": { - "line": 301, + "line": 302, "column": 16 }, "end": { - "line": 301, + "line": 302, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 11600, - "end": 11619, + "start": 11660, + "end": 11679, "loc": { "start": { - "line": 301, + "line": 302, "column": 16 }, "end": { - "line": 301, + "line": 302, "column": 35 } }, "object": { "type": "Identifier", - "start": 11600, - "end": 11612, + "start": 11660, + "end": 11672, "loc": { "start": { - "line": 301, + "line": 302, "column": 16 }, "end": { - "line": 301, + "line": 302, "column": 28 }, "identifierName": "instanceData" @@ -14658,15 +14662,15 @@ }, "property": { "type": "Identifier", - "start": 11613, - "end": 11619, + "start": 11673, + "end": 11679, "loc": { "start": { - "line": 301, + "line": 302, "column": 29 }, "end": { - "line": 301, + "line": 302, "column": 35 }, "identifierName": "events" @@ -14678,15 +14682,15 @@ }, "property": { "type": "Identifier", - "start": 11620, - "end": 11634, + "start": 11680, + "end": 11694, "loc": { "start": { - "line": 301, + "line": 302, "column": 36 }, "end": { - "line": 301, + "line": 302, "column": 50 }, "identifierName": "onPathNotFound" @@ -14697,7 +14701,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 11599 + "parenStart": 11659 } }, "extra": { @@ -14708,15 +14712,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 11640, - "end": 11650, + "start": 11700, + "end": 11710, "loc": { "start": { - "line": 301, + "line": 302, "column": 56 }, "end": { - "line": 301, + "line": 302, "column": 66 } }, @@ -14730,86 +14734,86 @@ }, "consequent": { "type": "BlockStatement", - "start": 11652, - "end": 11706, + "start": 11712, + "end": 11766, "loc": { "start": { - "line": 301, + "line": 302, "column": 68 }, "end": { - "line": 303, + "line": 304, "column": 6 } }, "body": [ { "type": "ExpressionStatement", - "start": 11661, - "end": 11698, + "start": 11721, + "end": 11758, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 43 } }, "expression": { "type": "CallExpression", - "start": 11661, - "end": 11697, + "start": 11721, + "end": 11757, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 42 } }, "callee": { "type": "MemberExpression", - "start": 11661, - "end": 11695, + "start": 11721, + "end": 11755, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 11661, - "end": 11680, + "start": 11721, + "end": 11740, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 25 } }, "object": { "type": "Identifier", - "start": 11661, - "end": 11673, + "start": 11721, + "end": 11733, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 18 }, "identifierName": "instanceData" @@ -14818,15 +14822,15 @@ }, "property": { "type": "Identifier", - "start": 11674, - "end": 11680, + "start": 11734, + "end": 11740, "loc": { "start": { - "line": 302, + "line": 303, "column": 19 }, "end": { - "line": 302, + "line": 303, "column": 25 }, "identifierName": "events" @@ -14837,15 +14841,15 @@ }, "property": { "type": "Identifier", - "start": 11681, - "end": 11695, + "start": 11741, + "end": 11755, "loc": { "start": { - "line": 302, + "line": 303, "column": 26 }, "end": { - "line": 302, + "line": 303, "column": 40 }, "identifierName": "onPathNotFound" @@ -14864,17 +14868,17 @@ "leadingComments": [ { "type": "CommentLine", - "value": " So fire the path not found event.\t", - "start": 11545, - "end": 11582, + "value": " Fire the path not found event.\t", + "start": 11608, + "end": 11642, "loc": { "start": { - "line": 300, + "line": 301, "column": 5 }, "end": { - "line": 300, - "column": 42 + "line": 301, + "column": 39 } } } @@ -14882,72 +14886,72 @@ }, { "type": "ExpressionStatement", - "start": 11713, - "end": 11733, + "start": 11773, + "end": 11793, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 25 } }, "expression": { "type": "CallExpression", - "start": 11713, - "end": 11732, + "start": 11773, + "end": 11792, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 24 } }, "callee": { "type": "MemberExpression", - "start": 11713, - "end": 11721, + "start": 11773, + "end": 11781, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 13 } }, "object": { "type": "ThisExpression", - "start": 11713, - "end": 11717, + "start": 11773, + "end": 11777, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 9 } } }, "property": { "type": "Identifier", - "start": 11718, - "end": 11721, + "start": 11778, + "end": 11781, "loc": { "start": { - "line": 304, + "line": 305, "column": 10 }, "end": { - "line": 304, + "line": 305, "column": 13 }, "identifierName": "end" @@ -14959,15 +14963,15 @@ "arguments": [ { "type": "Identifier", - "start": 11722, - "end": 11731, + "start": 11782, + "end": 11791, "loc": { "start": { - "line": 304, + "line": 305, "column": 14 }, "end": { - "line": 304, + "line": 305, "column": 23 }, "identifierName": "pInstance" @@ -14976,34 +14980,36 @@ } ] } - }, - { - "type": "ReturnStatement", - "start": 11740, - "end": 11747, - "loc": { - "start": { - "line": 305, - "column": 5 - }, - "end": { - "line": 305, - "column": 12 - } - }, - "argument": null } ], "directives": [] - } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Check if the origin and end tile are accessible", + "start": 10965, + "end": 11015, + "loc": { + "start": { + "line": 289, + "column": 4 + }, + "end": { + "line": 289, + "column": 54 + } + } + } + ] } ], "directives": [] }, "alternate": { "type": "BlockStatement", - "start": 11766, - "end": 11887, + "start": 11812, + "end": 11933, "loc": { "start": { "line": 307, @@ -15017,8 +15023,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11773, - "end": 11868, + "start": 11819, + "end": 11914, "loc": { "start": { "line": 308, @@ -15031,8 +15037,8 @@ }, "expression": { "type": "CallExpression", - "start": 11773, - "end": 11867, + "start": 11819, + "end": 11913, "loc": { "start": { "line": 308, @@ -15045,8 +15051,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11773, - "end": 11815, + "start": 11819, + "end": 11861, "loc": { "start": { "line": 308, @@ -15059,8 +15065,8 @@ }, "object": { "type": "CallExpression", - "start": 11773, - "end": 11809, + "start": 11819, + "end": 11855, "loc": { "start": { "line": 308, @@ -15073,8 +15079,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11773, - "end": 11791, + "start": 11819, + "end": 11837, "loc": { "start": { "line": 308, @@ -15087,8 +15093,8 @@ }, "object": { "type": "MemberExpression", - "start": 11773, - "end": 11784, + "start": 11819, + "end": 11830, "loc": { "start": { "line": 308, @@ -15101,8 +15107,8 @@ }, "object": { "type": "ThisExpression", - "start": 11773, - "end": 11777, + "start": 11819, + "end": 11823, "loc": { "start": { "line": 308, @@ -15116,8 +15122,8 @@ }, "property": { "type": "Identifier", - "start": 11778, - "end": 11784, + "start": 11824, + "end": 11830, "loc": { "start": { "line": 308, @@ -15135,8 +15141,8 @@ }, "property": { "type": "Identifier", - "start": 11785, - "end": 11791, + "start": 11831, + "end": 11837, "loc": { "start": { "line": 308, @@ -15155,8 +15161,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11792, - "end": 11808, + "start": 11838, + "end": 11854, "loc": { "start": { "line": 308, @@ -15177,8 +15183,8 @@ }, "property": { "type": "Identifier", - "start": 11810, - "end": 11815, + "start": 11856, + "end": 11861, "loc": { "start": { "line": 308, @@ -15197,8 +15203,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11816, - "end": 11866, + "start": 11862, + "end": 11912, "loc": { "start": { "line": 308, @@ -15220,8 +15226,8 @@ }, { "type": "ReturnStatement", - "start": 11874, - "end": 11881, + "start": 11920, + "end": 11927, "loc": { "start": { "line": 309, @@ -15241,8 +15247,8 @@ { "type": "CommentLine", "value": " Make sure these have resolved to actual tiles.", - "start": 10862, - "end": 10911, + "start": 10869, + "end": 10918, "loc": { "start": { "line": 287, @@ -15261,8 +15267,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 11898, - "end": 12011, + "start": 11944, + "end": 12057, "loc": { "start": { "line": 311, @@ -15276,8 +15282,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11904, - "end": 12006, + "start": 11950, + "end": 12052, "loc": { "start": { "line": 312, @@ -15290,8 +15296,8 @@ }, "expression": { "type": "CallExpression", - "start": 11904, - "end": 12005, + "start": 11950, + "end": 12051, "loc": { "start": { "line": 312, @@ -15304,8 +15310,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11904, - "end": 11946, + "start": 11950, + "end": 11992, "loc": { "start": { "line": 312, @@ -15318,8 +15324,8 @@ }, "object": { "type": "CallExpression", - "start": 11904, - "end": 11940, + "start": 11950, + "end": 11986, "loc": { "start": { "line": 312, @@ -15332,8 +15338,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11904, - "end": 11922, + "start": 11950, + "end": 11968, "loc": { "start": { "line": 312, @@ -15346,8 +15352,8 @@ }, "object": { "type": "MemberExpression", - "start": 11904, - "end": 11915, + "start": 11950, + "end": 11961, "loc": { "start": { "line": 312, @@ -15360,8 +15366,8 @@ }, "object": { "type": "ThisExpression", - "start": 11904, - "end": 11908, + "start": 11950, + "end": 11954, "loc": { "start": { "line": 312, @@ -15375,8 +15381,8 @@ }, "property": { "type": "Identifier", - "start": 11909, - "end": 11915, + "start": 11955, + "end": 11961, "loc": { "start": { "line": 312, @@ -15394,8 +15400,8 @@ }, "property": { "type": "Identifier", - "start": 11916, - "end": 11922, + "start": 11962, + "end": 11968, "loc": { "start": { "line": 312, @@ -15414,8 +15420,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11923, - "end": 11939, + "start": 11969, + "end": 11985, "loc": { "start": { "line": 312, @@ -15436,8 +15442,8 @@ }, "property": { "type": "Identifier", - "start": 11941, - "end": 11946, + "start": 11987, + "end": 11992, "loc": { "start": { "line": 312, @@ -15456,8 +15462,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11947, - "end": 12004, + "start": 11993, + "end": 12050, "loc": { "start": { "line": 312, @@ -15507,8 +15513,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t ", - "start": 12018, - "end": 12134, + "start": 12064, + "end": 12180, "loc": { "start": { "line": 315, @@ -15524,8 +15530,8 @@ }, { "type": "ClassMethod", - "start": 12137, - "end": 12300, + "start": 12183, + "end": 12346, "loc": { "start": { "line": 320, @@ -15540,8 +15546,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 12137, - "end": 12142, + "start": 12183, + "end": 12188, "loc": { "start": { "line": 320, @@ -15564,8 +15570,8 @@ "params": [ { "type": "Identifier", - "start": 12143, - "end": 12152, + "start": 12189, + "end": 12198, "loc": { "start": { "line": 320, @@ -15582,8 +15588,8 @@ ], "body": { "type": "BlockStatement", - "start": 12154, - "end": 12300, + "start": 12200, + "end": 12346, "loc": { "start": { "line": 320, @@ -15597,8 +15603,8 @@ "body": [ { "type": "IfStatement", - "start": 12201, - "end": 12296, + "start": 12247, + "end": 12342, "loc": { "start": { "line": 322, @@ -15611,8 +15617,8 @@ }, "test": { "type": "UnaryExpression", - "start": 12205, - "end": 12246, + "start": 12251, + "end": 12292, "loc": { "start": { "line": 322, @@ -15627,8 +15633,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 12206, - "end": 12246, + "start": 12252, + "end": 12292, "loc": { "start": { "line": 322, @@ -15641,8 +15647,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12206, - "end": 12235, + "start": 12252, + "end": 12281, "loc": { "start": { "line": 322, @@ -15655,8 +15661,8 @@ }, "object": { "type": "MemberExpression", - "start": 12206, - "end": 12226, + "start": 12252, + "end": 12272, "loc": { "start": { "line": 322, @@ -15669,8 +15675,8 @@ }, "object": { "type": "ThisExpression", - "start": 12206, - "end": 12210, + "start": 12252, + "end": 12256, "loc": { "start": { "line": 322, @@ -15685,8 +15691,8 @@ }, "property": { "type": "Identifier", - "start": 12211, - "end": 12226, + "start": 12257, + "end": 12272, "loc": { "start": { "line": 322, @@ -15705,8 +15711,8 @@ }, "property": { "type": "Identifier", - "start": 12227, - "end": 12235, + "start": 12273, + "end": 12281, "loc": { "start": { "line": 322, @@ -15726,8 +15732,8 @@ "arguments": [ { "type": "Identifier", - "start": 12236, - "end": 12245, + "start": 12282, + "end": 12291, "loc": { "start": { "line": 322, @@ -15751,8 +15757,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 12248, - "end": 12296, + "start": 12294, + "end": 12342, "loc": { "start": { "line": 322, @@ -15766,8 +15772,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 12254, - "end": 12291, + "start": 12300, + "end": 12337, "loc": { "start": { "line": 323, @@ -15780,8 +15786,8 @@ }, "expression": { "type": "CallExpression", - "start": 12254, - "end": 12290, + "start": 12300, + "end": 12336, "loc": { "start": { "line": 323, @@ -15794,8 +15800,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12254, - "end": 12279, + "start": 12300, + "end": 12325, "loc": { "start": { "line": 323, @@ -15808,8 +15814,8 @@ }, "object": { "type": "MemberExpression", - "start": 12254, - "end": 12274, + "start": 12300, + "end": 12320, "loc": { "start": { "line": 323, @@ -15822,8 +15828,8 @@ }, "object": { "type": "ThisExpression", - "start": 12254, - "end": 12258, + "start": 12300, + "end": 12304, "loc": { "start": { "line": 323, @@ -15837,8 +15843,8 @@ }, "property": { "type": "Identifier", - "start": 12259, - "end": 12274, + "start": 12305, + "end": 12320, "loc": { "start": { "line": 323, @@ -15856,8 +15862,8 @@ }, "property": { "type": "Identifier", - "start": 12275, - "end": 12279, + "start": 12321, + "end": 12325, "loc": { "start": { "line": 323, @@ -15876,8 +15882,8 @@ "arguments": [ { "type": "Identifier", - "start": 12280, - "end": 12289, + "start": 12326, + "end": 12335, "loc": { "start": { "line": 323, @@ -15902,8 +15908,8 @@ { "type": "CommentLine", "value": " Add this instance to being tracked.", - "start": 12159, - "end": 12197, + "start": 12205, + "end": 12243, "loc": { "start": { "line": 321, @@ -15925,8 +15931,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t ", - "start": 12018, - "end": 12134, + "start": 12064, + "end": 12180, "loc": { "start": { "line": 315, @@ -15943,8 +15949,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t ", - "start": 12303, - "end": 12448, + "start": 12349, + "end": 12494, "loc": { "start": { "line": 326, @@ -15960,8 +15966,8 @@ }, { "type": "ClassMethod", - "start": 12451, - "end": 12655, + "start": 12497, + "end": 12701, "loc": { "start": { "line": 331, @@ -15976,8 +15982,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 12451, - "end": 12458, + "start": 12497, + "end": 12504, "loc": { "start": { "line": 331, @@ -16000,8 +16006,8 @@ "params": [ { "type": "Identifier", - "start": 12459, - "end": 12468, + "start": 12505, + "end": 12514, "loc": { "start": { "line": 331, @@ -16018,8 +16024,8 @@ ], "body": { "type": "BlockStatement", - "start": 12470, - "end": 12655, + "start": 12516, + "end": 12701, "loc": { "start": { "line": 331, @@ -16033,8 +16039,8 @@ "body": [ { "type": "IfStatement", - "start": 12522, - "end": 12651, + "start": 12568, + "end": 12697, "loc": { "start": { "line": 333, @@ -16047,8 +16053,8 @@ }, "test": { "type": "CallExpression", - "start": 12526, - "end": 12566, + "start": 12572, + "end": 12612, "loc": { "start": { "line": 333, @@ -16061,8 +16067,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12526, - "end": 12555, + "start": 12572, + "end": 12601, "loc": { "start": { "line": 333, @@ -16075,8 +16081,8 @@ }, "object": { "type": "MemberExpression", - "start": 12526, - "end": 12546, + "start": 12572, + "end": 12592, "loc": { "start": { "line": 333, @@ -16089,8 +16095,8 @@ }, "object": { "type": "ThisExpression", - "start": 12526, - "end": 12530, + "start": 12572, + "end": 12576, "loc": { "start": { "line": 333, @@ -16105,8 +16111,8 @@ }, "property": { "type": "Identifier", - "start": 12531, - "end": 12546, + "start": 12577, + "end": 12592, "loc": { "start": { "line": 333, @@ -16125,8 +16131,8 @@ }, "property": { "type": "Identifier", - "start": 12547, - "end": 12555, + "start": 12593, + "end": 12601, "loc": { "start": { "line": 333, @@ -16146,8 +16152,8 @@ "arguments": [ { "type": "Identifier", - "start": 12556, - "end": 12565, + "start": 12602, + "end": 12611, "loc": { "start": { "line": 333, @@ -16166,8 +16172,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 12568, - "end": 12651, + "start": 12614, + "end": 12697, "loc": { "start": { "line": 333, @@ -16181,8 +16187,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 12574, - "end": 12646, + "start": 12620, + "end": 12692, "loc": { "start": { "line": 334, @@ -16195,8 +16201,8 @@ }, "expression": { "type": "CallExpression", - "start": 12574, - "end": 12645, + "start": 12620, + "end": 12691, "loc": { "start": { "line": 334, @@ -16209,8 +16215,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12574, - "end": 12601, + "start": 12620, + "end": 12647, "loc": { "start": { "line": 334, @@ -16223,8 +16229,8 @@ }, "object": { "type": "MemberExpression", - "start": 12574, - "end": 12594, + "start": 12620, + "end": 12640, "loc": { "start": { "line": 334, @@ -16237,8 +16243,8 @@ }, "object": { "type": "ThisExpression", - "start": 12574, - "end": 12578, + "start": 12620, + "end": 12624, "loc": { "start": { "line": 334, @@ -16252,8 +16258,8 @@ }, "property": { "type": "Identifier", - "start": 12579, - "end": 12594, + "start": 12625, + "end": 12640, "loc": { "start": { "line": 334, @@ -16271,8 +16277,8 @@ }, "property": { "type": "Identifier", - "start": 12595, - "end": 12601, + "start": 12641, + "end": 12647, "loc": { "start": { "line": 334, @@ -16291,8 +16297,8 @@ "arguments": [ { "type": "CallExpression", - "start": 12602, - "end": 12641, + "start": 12648, + "end": 12687, "loc": { "start": { "line": 334, @@ -16305,8 +16311,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12602, - "end": 12630, + "start": 12648, + "end": 12676, "loc": { "start": { "line": 334, @@ -16319,8 +16325,8 @@ }, "object": { "type": "MemberExpression", - "start": 12602, - "end": 12622, + "start": 12648, + "end": 12668, "loc": { "start": { "line": 334, @@ -16333,8 +16339,8 @@ }, "object": { "type": "ThisExpression", - "start": 12602, - "end": 12606, + "start": 12648, + "end": 12652, "loc": { "start": { "line": 334, @@ -16348,8 +16354,8 @@ }, "property": { "type": "Identifier", - "start": 12607, - "end": 12622, + "start": 12653, + "end": 12668, "loc": { "start": { "line": 334, @@ -16367,8 +16373,8 @@ }, "property": { "type": "Identifier", - "start": 12623, - "end": 12630, + "start": 12669, + "end": 12676, "loc": { "start": { "line": 334, @@ -16387,8 +16393,8 @@ "arguments": [ { "type": "Identifier", - "start": 12631, - "end": 12640, + "start": 12677, + "end": 12686, "loc": { "start": { "line": 334, @@ -16406,8 +16412,8 @@ }, { "type": "NumericLiteral", - "start": 12643, - "end": 12644, + "start": 12689, + "end": 12690, "loc": { "start": { "line": 334, @@ -16435,8 +16441,8 @@ { "type": "CommentLine", "value": " Remove this instance from being tracked.", - "start": 12475, - "end": 12518, + "start": 12521, + "end": 12564, "loc": { "start": { "line": 332, @@ -16458,8 +16464,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t ", - "start": 12303, - "end": 12448, + "start": 12349, + "end": 12494, "loc": { "start": { "line": 326, @@ -16476,8 +16482,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t ", - "start": 12658, - "end": 12791, + "start": 12704, + "end": 12837, "loc": { "start": { "line": 337, @@ -16493,8 +16499,8 @@ }, { "type": "ClassMethod", - "start": 12794, - "end": 14700, + "start": 12840, + "end": 14743, "loc": { "start": { "line": 341, @@ -16509,8 +16515,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 12794, - "end": 12797, + "start": 12840, + "end": 12843, "loc": { "start": { "line": 341, @@ -16533,8 +16539,8 @@ "params": [ { "type": "Identifier", - "start": 12798, - "end": 12807, + "start": 12844, + "end": 12853, "loc": { "start": { "line": 341, @@ -16551,8 +16557,8 @@ ], "body": { "type": "BlockStatement", - "start": 12809, - "end": 14700, + "start": 12855, + "end": 14743, "loc": { "start": { "line": 341, @@ -16566,8 +16572,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 12860, - "end": 12917, + "start": 12906, + "end": 12963, "loc": { "start": { "line": 343, @@ -16581,8 +16587,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 12866, - "end": 12916, + "start": 12912, + "end": 12962, "loc": { "start": { "line": 343, @@ -16595,8 +16601,8 @@ }, "id": { "type": "Identifier", - "start": 12866, - "end": 12878, + "start": 12912, + "end": 12924, "loc": { "start": { "line": 343, @@ -16613,8 +16619,8 @@ }, "init": { "type": "CallExpression", - "start": 12881, - "end": 12916, + "start": 12927, + "end": 12962, "loc": { "start": { "line": 343, @@ -16627,8 +16633,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12881, - "end": 12905, + "start": 12927, + "end": 12951, "loc": { "start": { "line": 343, @@ -16641,8 +16647,8 @@ }, "object": { "type": "MemberExpression", - "start": 12881, - "end": 12901, + "start": 12927, + "end": 12947, "loc": { "start": { "line": 343, @@ -16655,8 +16661,8 @@ }, "object": { "type": "ThisExpression", - "start": 12881, - "end": 12885, + "start": 12927, + "end": 12931, "loc": { "start": { "line": 343, @@ -16670,8 +16676,8 @@ }, "property": { "type": "Identifier", - "start": 12886, - "end": 12901, + "start": 12932, + "end": 12947, "loc": { "start": { "line": 343, @@ -16689,8 +16695,8 @@ }, "property": { "type": "Identifier", - "start": 12902, - "end": 12905, + "start": 12948, + "end": 12951, "loc": { "start": { "line": 343, @@ -16709,8 +16715,8 @@ "arguments": [ { "type": "Identifier", - "start": 12906, - "end": 12915, + "start": 12952, + "end": 12961, "loc": { "start": { "line": 343, @@ -16734,8 +16740,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 12814, - "end": 12856, + "start": 12860, + "end": 12902, "loc": { "start": { "line": 342, @@ -16751,8 +16757,8 @@ }, { "type": "IfStatement", - "start": 12921, - "end": 14696, + "start": 12967, + "end": 14739, "loc": { "start": { "line": 344, @@ -16765,8 +16771,8 @@ }, "test": { "type": "Identifier", - "start": 12925, - "end": 12937, + "start": 12971, + "end": 12983, "loc": { "start": { "line": 344, @@ -16782,8 +16788,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 12939, - "end": 14549, + "start": 12985, + "end": 14592, "loc": { "start": { "line": 344, @@ -16797,8 +16803,8 @@ "body": [ { "type": "IfStatement", - "start": 13061, - "end": 13186, + "start": 13107, + "end": 13232, "loc": { "start": { "line": 346, @@ -16811,8 +16817,8 @@ }, "test": { "type": "MemberExpression", - "start": 13065, - "end": 13084, + "start": 13111, + "end": 13130, "loc": { "start": { "line": 346, @@ -16825,8 +16831,8 @@ }, "object": { "type": "Identifier", - "start": 13065, - "end": 13077, + "start": 13111, + "end": 13123, "loc": { "start": { "line": 346, @@ -16843,8 +16849,8 @@ }, "property": { "type": "Identifier", - "start": 13078, - "end": 13084, + "start": 13124, + "end": 13130, "loc": { "start": { "line": 346, @@ -16863,8 +16869,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 13086, - "end": 13186, + "start": 13132, + "end": 13232, "loc": { "start": { "line": 346, @@ -16878,8 +16884,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 13093, - "end": 13147, + "start": 13139, + "end": 13193, "loc": { "start": { "line": 347, @@ -16892,8 +16898,8 @@ }, "expression": { "type": "CallExpression", - "start": 13093, - "end": 13146, + "start": 13139, + "end": 13192, "loc": { "start": { "line": 347, @@ -16906,8 +16912,8 @@ }, "callee": { "type": "MemberExpression", - "start": 13093, - "end": 13125, + "start": 13139, + "end": 13171, "loc": { "start": { "line": 347, @@ -16920,8 +16926,8 @@ }, "object": { "type": "MemberExpression", - "start": 13093, - "end": 13114, + "start": 13139, + "end": 13160, "loc": { "start": { "line": 347, @@ -16934,8 +16940,8 @@ }, "object": { "type": "Identifier", - "start": 13093, - "end": 13105, + "start": 13139, + "end": 13151, "loc": { "start": { "line": 347, @@ -16951,8 +16957,8 @@ }, "property": { "type": "Identifier", - "start": 13106, - "end": 13114, + "start": 13152, + "end": 13160, "loc": { "start": { "line": 347, @@ -16970,8 +16976,8 @@ }, "property": { "type": "Identifier", - "start": 13115, - "end": 13125, + "start": 13161, + "end": 13171, "loc": { "start": { "line": 347, @@ -16990,8 +16996,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 13126, - "end": 13145, + "start": 13172, + "end": 13191, "loc": { "start": { "line": 347, @@ -17004,8 +17010,8 @@ }, "object": { "type": "Identifier", - "start": 13126, - "end": 13138, + "start": 13172, + "end": 13184, "loc": { "start": { "line": 347, @@ -17021,8 +17027,8 @@ }, "property": { "type": "Identifier", - "start": 13139, - "end": 13145, + "start": 13185, + "end": 13191, "loc": { "start": { "line": 347, @@ -17043,8 +17049,8 @@ }, { "type": "ExpressionStatement", - "start": 13153, - "end": 13180, + "start": 13199, + "end": 13226, "loc": { "start": { "line": 348, @@ -17057,8 +17063,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13153, - "end": 13179, + "start": 13199, + "end": 13225, "loc": { "start": { "line": 348, @@ -17072,8 +17078,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13153, - "end": 13172, + "start": 13199, + "end": 13218, "loc": { "start": { "line": 348, @@ -17086,8 +17092,8 @@ }, "object": { "type": "Identifier", - "start": 13153, - "end": 13165, + "start": 13199, + "end": 13211, "loc": { "start": { "line": 348, @@ -17103,8 +17109,8 @@ }, "property": { "type": "Identifier", - "start": 13166, - "end": 13172, + "start": 13212, + "end": 13218, "loc": { "start": { "line": 348, @@ -17122,8 +17128,8 @@ }, "right": { "type": "NullLiteral", - "start": 13175, - "end": 13179, + "start": 13221, + "end": 13225, "loc": { "start": { "line": 348, @@ -17146,8 +17152,8 @@ { "type": "CommentLine", "value": " We are ending the pathfinding. So we get the path ID so we can cancel calculations being made for this path.", - "start": 12945, - "end": 13056, + "start": 12991, + "end": 13102, "loc": { "start": { "line": 345, @@ -17164,8 +17170,8 @@ { "type": "CommentLine", "value": " Disable diagonals in the event they were enabled in a previous call", - "start": 13191, - "end": 13261, + "start": 13237, + "end": 13307, "loc": { "start": { "line": 350, @@ -17181,8 +17187,8 @@ }, { "type": "ExpressionStatement", - "start": 13266, - "end": 13307, + "start": 13312, + "end": 13353, "loc": { "start": { "line": 351, @@ -17195,8 +17201,8 @@ }, "expression": { "type": "CallExpression", - "start": 13266, - "end": 13306, + "start": 13312, + "end": 13352, "loc": { "start": { "line": 351, @@ -17209,8 +17215,8 @@ }, "callee": { "type": "MemberExpression", - "start": 13266, - "end": 13304, + "start": 13312, + "end": 13350, "loc": { "start": { "line": 351, @@ -17223,8 +17229,8 @@ }, "object": { "type": "MemberExpression", - "start": 13266, - "end": 13287, + "start": 13312, + "end": 13333, "loc": { "start": { "line": 351, @@ -17237,8 +17243,8 @@ }, "object": { "type": "Identifier", - "start": 13266, - "end": 13278, + "start": 13312, + "end": 13324, "loc": { "start": { "line": 351, @@ -17255,8 +17261,8 @@ }, "property": { "type": "Identifier", - "start": 13279, - "end": 13287, + "start": 13325, + "end": 13333, "loc": { "start": { "line": 351, @@ -17275,8 +17281,8 @@ }, "property": { "type": "Identifier", - "start": 13288, - "end": 13304, + "start": 13334, + "end": 13350, "loc": { "start": { "line": 351, @@ -17300,8 +17306,8 @@ { "type": "CommentLine", "value": " Disable diagonals in the event they were enabled in a previous call", - "start": 13191, - "end": 13261, + "start": 13237, + "end": 13307, "loc": { "start": { "line": 350, @@ -17318,8 +17324,8 @@ { "type": "CommentLine", "value": " Disable corner cutting in the event it was enabled in a previous call", - "start": 13312, - "end": 13384, + "start": 13358, + "end": 13430, "loc": { "start": { "line": 352, @@ -17335,8 +17341,8 @@ }, { "type": "ExpressionStatement", - "start": 13389, - "end": 13434, + "start": 13435, + "end": 13480, "loc": { "start": { "line": 353, @@ -17349,8 +17355,8 @@ }, "expression": { "type": "CallExpression", - "start": 13389, - "end": 13433, + "start": 13435, + "end": 13479, "loc": { "start": { "line": 353, @@ -17363,8 +17369,8 @@ }, "callee": { "type": "MemberExpression", - "start": 13389, - "end": 13431, + "start": 13435, + "end": 13477, "loc": { "start": { "line": 353, @@ -17377,8 +17383,8 @@ }, "object": { "type": "MemberExpression", - "start": 13389, - "end": 13410, + "start": 13435, + "end": 13456, "loc": { "start": { "line": 353, @@ -17391,8 +17397,8 @@ }, "object": { "type": "Identifier", - "start": 13389, - "end": 13401, + "start": 13435, + "end": 13447, "loc": { "start": { "line": 353, @@ -17409,8 +17415,8 @@ }, "property": { "type": "Identifier", - "start": 13402, - "end": 13410, + "start": 13448, + "end": 13456, "loc": { "start": { "line": 353, @@ -17429,8 +17435,8 @@ }, "property": { "type": "Identifier", - "start": 13411, - "end": 13431, + "start": 13457, + "end": 13477, "loc": { "start": { "line": 353, @@ -17454,8 +17460,8 @@ { "type": "CommentLine", "value": " Disable corner cutting in the event it was enabled in a previous call", - "start": 13312, - "end": 13384, + "start": 13358, + "end": 13430, "loc": { "start": { "line": 352, @@ -17472,8 +17478,8 @@ { "type": "CommentLine", "value": " Reset trajectory data", - "start": 13439, - "end": 13463, + "start": 13485, + "end": 13509, "loc": { "start": { "line": 354, @@ -17489,8 +17495,8 @@ }, { "type": "ExpressionStatement", - "start": 13468, - "end": 13498, + "start": 13514, + "end": 13544, "loc": { "start": { "line": 355, @@ -17503,8 +17509,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13468, - "end": 13497, + "start": 13514, + "end": 13543, "loc": { "start": { "line": 355, @@ -17518,8 +17524,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13468, - "end": 13493, + "start": 13514, + "end": 13539, "loc": { "start": { "line": 355, @@ -17532,8 +17538,8 @@ }, "object": { "type": "MemberExpression", - "start": 13468, - "end": 13491, + "start": 13514, + "end": 13537, "loc": { "start": { "line": 355, @@ -17546,8 +17552,8 @@ }, "object": { "type": "Identifier", - "start": 13468, - "end": 13480, + "start": 13514, + "end": 13526, "loc": { "start": { "line": 355, @@ -17564,8 +17570,8 @@ }, "property": { "type": "Identifier", - "start": 13481, - "end": 13491, + "start": 13527, + "end": 13537, "loc": { "start": { "line": 355, @@ -17584,8 +17590,8 @@ }, "property": { "type": "Identifier", - "start": 13492, - "end": 13493, + "start": 13538, + "end": 13539, "loc": { "start": { "line": 355, @@ -17604,8 +17610,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13496, - "end": 13497, + "start": 13542, + "end": 13543, "loc": { "start": { "line": 355, @@ -17628,8 +17634,8 @@ { "type": "CommentLine", "value": " Reset trajectory data", - "start": 13439, - "end": 13463, + "start": 13485, + "end": 13509, "loc": { "start": { "line": 354, @@ -17645,8 +17651,8 @@ }, { "type": "ExpressionStatement", - "start": 13503, - "end": 13533, + "start": 13549, + "end": 13579, "loc": { "start": { "line": 356, @@ -17659,8 +17665,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13503, - "end": 13532, + "start": 13549, + "end": 13578, "loc": { "start": { "line": 356, @@ -17674,8 +17680,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13503, - "end": 13528, + "start": 13549, + "end": 13574, "loc": { "start": { "line": 356, @@ -17688,8 +17694,8 @@ }, "object": { "type": "MemberExpression", - "start": 13503, - "end": 13526, + "start": 13549, + "end": 13572, "loc": { "start": { "line": 356, @@ -17702,8 +17708,8 @@ }, "object": { "type": "Identifier", - "start": 13503, - "end": 13515, + "start": 13549, + "end": 13561, "loc": { "start": { "line": 356, @@ -17719,8 +17725,8 @@ }, "property": { "type": "Identifier", - "start": 13516, - "end": 13526, + "start": 13562, + "end": 13572, "loc": { "start": { "line": 356, @@ -17738,8 +17744,8 @@ }, "property": { "type": "Identifier", - "start": 13527, - "end": 13528, + "start": 13573, + "end": 13574, "loc": { "start": { "line": 356, @@ -17757,8 +17763,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13531, - "end": 13532, + "start": 13577, + "end": 13578, "loc": { "start": { "line": 356, @@ -17779,8 +17785,8 @@ }, { "type": "ExpressionStatement", - "start": 13538, - "end": 13572, + "start": 13584, + "end": 13618, "loc": { "start": { "line": 357, @@ -17793,8 +17799,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13538, - "end": 13571, + "start": 13584, + "end": 13617, "loc": { "start": { "line": 357, @@ -17808,8 +17814,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13538, - "end": 13567, + "start": 13584, + "end": 13613, "loc": { "start": { "line": 357, @@ -17822,8 +17828,8 @@ }, "object": { "type": "MemberExpression", - "start": 13538, - "end": 13561, + "start": 13584, + "end": 13607, "loc": { "start": { "line": 357, @@ -17836,8 +17842,8 @@ }, "object": { "type": "Identifier", - "start": 13538, - "end": 13550, + "start": 13584, + "end": 13596, "loc": { "start": { "line": 357, @@ -17853,8 +17859,8 @@ }, "property": { "type": "Identifier", - "start": 13551, - "end": 13561, + "start": 13597, + "end": 13607, "loc": { "start": { "line": 357, @@ -17872,8 +17878,8 @@ }, "property": { "type": "Identifier", - "start": 13562, - "end": 13567, + "start": 13608, + "end": 13613, "loc": { "start": { "line": 357, @@ -17891,8 +17897,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13570, - "end": 13571, + "start": 13616, + "end": 13617, "loc": { "start": { "line": 357, @@ -17913,8 +17919,8 @@ }, { "type": "ExpressionStatement", - "start": 13577, - "end": 13620, + "start": 13623, + "end": 13666, "loc": { "start": { "line": 358, @@ -17927,8 +17933,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13577, - "end": 13619, + "start": 13623, + "end": 13665, "loc": { "start": { "line": 358, @@ -17942,8 +17948,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13577, - "end": 13612, + "start": 13623, + "end": 13658, "loc": { "start": { "line": 358, @@ -17956,8 +17962,8 @@ }, "object": { "type": "MemberExpression", - "start": 13577, - "end": 13600, + "start": 13623, + "end": 13646, "loc": { "start": { "line": 358, @@ -17970,8 +17976,8 @@ }, "object": { "type": "Identifier", - "start": 13577, - "end": 13589, + "start": 13623, + "end": 13635, "loc": { "start": { "line": 358, @@ -17987,8 +17993,8 @@ }, "property": { "type": "Identifier", - "start": 13590, - "end": 13600, + "start": 13636, + "end": 13646, "loc": { "start": { "line": 358, @@ -18006,8 +18012,8 @@ }, "property": { "type": "Identifier", - "start": 13601, - "end": 13612, + "start": 13647, + "end": 13658, "loc": { "start": { "line": 358, @@ -18025,8 +18031,8 @@ }, "right": { "type": "NullLiteral", - "start": 13615, - "end": 13619, + "start": 13661, + "end": 13665, "loc": { "start": { "line": 358, @@ -18043,8 +18049,8 @@ { "type": "CommentLine", "value": " Reset events", - "start": 13625, - "end": 13640, + "start": 13671, + "end": 13686, "loc": { "start": { "line": 359, @@ -18060,8 +18066,8 @@ }, { "type": "ExpressionStatement", - "start": 13645, - "end": 13684, + "start": 13691, + "end": 13730, "loc": { "start": { "line": 360, @@ -18074,8 +18080,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13645, - "end": 13683, + "start": 13691, + "end": 13729, "loc": { "start": { "line": 360, @@ -18089,8 +18095,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13645, - "end": 13676, + "start": 13691, + "end": 13722, "loc": { "start": { "line": 360, @@ -18103,8 +18109,8 @@ }, "object": { "type": "MemberExpression", - "start": 13645, - "end": 13664, + "start": 13691, + "end": 13710, "loc": { "start": { "line": 360, @@ -18117,8 +18123,8 @@ }, "object": { "type": "Identifier", - "start": 13645, - "end": 13657, + "start": 13691, + "end": 13703, "loc": { "start": { "line": 360, @@ -18135,8 +18141,8 @@ }, "property": { "type": "Identifier", - "start": 13658, - "end": 13664, + "start": 13704, + "end": 13710, "loc": { "start": { "line": 360, @@ -18155,8 +18161,8 @@ }, "property": { "type": "Identifier", - "start": 13665, - "end": 13676, + "start": 13711, + "end": 13722, "loc": { "start": { "line": 360, @@ -18175,8 +18181,8 @@ }, "right": { "type": "NullLiteral", - "start": 13679, - "end": 13683, + "start": 13725, + "end": 13729, "loc": { "start": { "line": 360, @@ -18194,8 +18200,8 @@ { "type": "CommentLine", "value": " Reset events", - "start": 13625, - "end": 13640, + "start": 13671, + "end": 13686, "loc": { "start": { "line": 359, @@ -18211,8 +18217,8 @@ }, { "type": "ExpressionStatement", - "start": 13689, - "end": 13731, + "start": 13735, + "end": 13777, "loc": { "start": { "line": 361, @@ -18225,8 +18231,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13689, - "end": 13730, + "start": 13735, + "end": 13776, "loc": { "start": { "line": 361, @@ -18240,8 +18246,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13689, - "end": 13723, + "start": 13735, + "end": 13769, "loc": { "start": { "line": 361, @@ -18254,8 +18260,8 @@ }, "object": { "type": "MemberExpression", - "start": 13689, - "end": 13708, + "start": 13735, + "end": 13754, "loc": { "start": { "line": 361, @@ -18268,8 +18274,8 @@ }, "object": { "type": "Identifier", - "start": 13689, - "end": 13701, + "start": 13735, + "end": 13747, "loc": { "start": { "line": 361, @@ -18285,8 +18291,8 @@ }, "property": { "type": "Identifier", - "start": 13702, - "end": 13708, + "start": 13748, + "end": 13754, "loc": { "start": { "line": 361, @@ -18304,8 +18310,8 @@ }, "property": { "type": "Identifier", - "start": 13709, - "end": 13723, + "start": 13755, + "end": 13769, "loc": { "start": { "line": 361, @@ -18323,8 +18329,8 @@ }, "right": { "type": "NullLiteral", - "start": 13726, - "end": 13730, + "start": 13772, + "end": 13776, "loc": { "start": { "line": 361, @@ -18340,8 +18346,8 @@ }, { "type": "ExpressionStatement", - "start": 13736, - "end": 13775, + "start": 13782, + "end": 13821, "loc": { "start": { "line": 362, @@ -18354,8 +18360,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13736, - "end": 13774, + "start": 13782, + "end": 13820, "loc": { "start": { "line": 362, @@ -18369,8 +18375,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13736, - "end": 13767, + "start": 13782, + "end": 13813, "loc": { "start": { "line": 362, @@ -18383,8 +18389,8 @@ }, "object": { "type": "MemberExpression", - "start": 13736, - "end": 13755, + "start": 13782, + "end": 13801, "loc": { "start": { "line": 362, @@ -18397,8 +18403,8 @@ }, "object": { "type": "Identifier", - "start": 13736, - "end": 13748, + "start": 13782, + "end": 13794, "loc": { "start": { "line": 362, @@ -18414,8 +18420,8 @@ }, "property": { "type": "Identifier", - "start": 13749, - "end": 13755, + "start": 13795, + "end": 13801, "loc": { "start": { "line": 362, @@ -18433,8 +18439,8 @@ }, "property": { "type": "Identifier", - "start": 13756, - "end": 13767, + "start": 13802, + "end": 13813, "loc": { "start": { "line": 362, @@ -18452,8 +18458,8 @@ }, "right": { "type": "NullLiteral", - "start": 13770, - "end": 13774, + "start": 13816, + "end": 13820, "loc": { "start": { "line": 362, @@ -18469,8 +18475,8 @@ }, { "type": "ExpressionStatement", - "start": 13780, - "end": 13822, + "start": 13826, + "end": 13868, "loc": { "start": { "line": 363, @@ -18483,8 +18489,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13780, - "end": 13821, + "start": 13826, + "end": 13867, "loc": { "start": { "line": 363, @@ -18498,8 +18504,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13780, - "end": 13814, + "start": 13826, + "end": 13860, "loc": { "start": { "line": 363, @@ -18512,8 +18518,8 @@ }, "object": { "type": "MemberExpression", - "start": 13780, - "end": 13799, + "start": 13826, + "end": 13845, "loc": { "start": { "line": 363, @@ -18526,8 +18532,8 @@ }, "object": { "type": "Identifier", - "start": 13780, - "end": 13792, + "start": 13826, + "end": 13838, "loc": { "start": { "line": 363, @@ -18543,8 +18549,8 @@ }, "property": { "type": "Identifier", - "start": 13793, - "end": 13799, + "start": 13839, + "end": 13845, "loc": { "start": { "line": 363, @@ -18562,8 +18568,8 @@ }, "property": { "type": "Identifier", - "start": 13800, - "end": 13814, + "start": 13846, + "end": 13860, "loc": { "start": { "line": 363, @@ -18581,8 +18587,8 @@ }, "right": { "type": "NullLiteral", - "start": 13817, - "end": 13821, + "start": 13863, + "end": 13867, "loc": { "start": { "line": 363, @@ -18599,8 +18605,8 @@ { "type": "CommentLine", "value": " Reset stuck counter", - "start": 13827, - "end": 13849, + "start": 13873, + "end": 13895, "loc": { "start": { "line": 364, @@ -18616,8 +18622,8 @@ }, { "type": "ExpressionStatement", - "start": 13854, - "end": 13884, + "start": 13900, + "end": 13930, "loc": { "start": { "line": 365, @@ -18630,8 +18636,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13854, - "end": 13883, + "start": 13900, + "end": 13929, "loc": { "start": { "line": 365, @@ -18645,8 +18651,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13854, - "end": 13879, + "start": 13900, + "end": 13925, "loc": { "start": { "line": 365, @@ -18659,8 +18665,8 @@ }, "object": { "type": "Identifier", - "start": 13854, - "end": 13866, + "start": 13900, + "end": 13912, "loc": { "start": { "line": 365, @@ -18677,8 +18683,8 @@ }, "property": { "type": "Identifier", - "start": 13867, - "end": 13879, + "start": 13913, + "end": 13925, "loc": { "start": { "line": 365, @@ -18697,8 +18703,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13882, - "end": 13883, + "start": 13928, + "end": 13929, "loc": { "start": { "line": 365, @@ -18721,8 +18727,8 @@ { "type": "CommentLine", "value": " Reset stuck counter", - "start": 13827, - "end": 13849, + "start": 13873, + "end": 13895, "loc": { "start": { "line": 364, @@ -18739,8 +18745,8 @@ { "type": "CommentLine", "value": " Reset the max stuck counter", - "start": 13889, - "end": 13919, + "start": 13935, + "end": 13965, "loc": { "start": { "line": 366, @@ -18756,8 +18762,8 @@ }, { "type": "ExpressionStatement", - "start": 13924, - "end": 13990, + "start": 13970, + "end": 14036, "loc": { "start": { "line": 367, @@ -18770,8 +18776,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13924, - "end": 13989, + "start": 13970, + "end": 14035, "loc": { "start": { "line": 367, @@ -18785,8 +18791,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13924, - "end": 13952, + "start": 13970, + "end": 13998, "loc": { "start": { "line": 367, @@ -18799,8 +18805,8 @@ }, "object": { "type": "Identifier", - "start": 13924, - "end": 13936, + "start": 13970, + "end": 13982, "loc": { "start": { "line": 367, @@ -18817,8 +18823,8 @@ }, "property": { "type": "Identifier", - "start": 13937, - "end": 13952, + "start": 13983, + "end": 13998, "loc": { "start": { "line": 367, @@ -18837,8 +18843,8 @@ }, "right": { "type": "MemberExpression", - "start": 13955, - "end": 13989, + "start": 14001, + "end": 14035, "loc": { "start": { "line": 367, @@ -18851,8 +18857,8 @@ }, "object": { "type": "Identifier", - "start": 13955, - "end": 13971, + "start": 14001, + "end": 14017, "loc": { "start": { "line": 367, @@ -18868,8 +18874,8 @@ }, "property": { "type": "Identifier", - "start": 13972, - "end": 13989, + "start": 14018, + "end": 14035, "loc": { "start": { "line": 367, @@ -18891,8 +18897,8 @@ { "type": "CommentLine", "value": " Reset the max stuck counter", - "start": 13889, - "end": 13919, + "start": 13935, + "end": 13965, "loc": { "start": { "line": 366, @@ -18908,9 +18914,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Empty path(s) array", - "start": 13995, - "end": 14017, + "value": " Empty path array", + "start": 14041, + "end": 14060, "loc": { "start": { "line": 368, @@ -18918,7 +18924,7 @@ }, "end": { "line": 368, - "column": 25 + "column": 22 } } } @@ -18926,8 +18932,8 @@ }, { "type": "ExpressionStatement", - "start": 14022, - "end": 14051, + "start": 14065, + "end": 14094, "loc": { "start": { "line": 369, @@ -18940,8 +18946,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14022, - "end": 14050, + "start": 14065, + "end": 14093, "loc": { "start": { "line": 369, @@ -18955,8 +18961,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14022, - "end": 14046, + "start": 14065, + "end": 14089, "loc": { "start": { "line": 369, @@ -18969,8 +18975,8 @@ }, "object": { "type": "MemberExpression", - "start": 14022, - "end": 14039, + "start": 14065, + "end": 14082, "loc": { "start": { "line": 369, @@ -18983,8 +18989,8 @@ }, "object": { "type": "Identifier", - "start": 14022, - "end": 14034, + "start": 14065, + "end": 14077, "loc": { "start": { "line": 369, @@ -19001,8 +19007,8 @@ }, "property": { "type": "Identifier", - "start": 14035, - "end": 14039, + "start": 14078, + "end": 14082, "loc": { "start": { "line": 369, @@ -19021,8 +19027,8 @@ }, "property": { "type": "Identifier", - "start": 14040, - "end": 14046, + "start": 14083, + "end": 14089, "loc": { "start": { "line": 369, @@ -19041,8 +19047,8 @@ }, "right": { "type": "NumericLiteral", - "start": 14049, - "end": 14050, + "start": 14092, + "end": 14093, "loc": { "start": { "line": 369, @@ -19064,9 +19070,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " Empty path(s) array", - "start": 13995, - "end": 14017, + "value": " Empty path array", + "start": 14041, + "end": 14060, "loc": { "start": { "line": 368, @@ -19074,7 +19080,7 @@ }, "end": { "line": 368, - "column": 25 + "column": 22 } } } @@ -19083,8 +19089,8 @@ { "type": "CommentLine", "value": " Reset it to not being moved.", - "start": 14056, - "end": 14087, + "start": 14099, + "end": 14130, "loc": { "start": { "line": 370, @@ -19100,8 +19106,8 @@ }, { "type": "ExpressionStatement", - "start": 14092, - "end": 14120, + "start": 14135, + "end": 14163, "loc": { "start": { "line": 371, @@ -19114,8 +19120,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14092, - "end": 14119, + "start": 14135, + "end": 14162, "loc": { "start": { "line": 371, @@ -19129,8 +19135,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14092, - "end": 14111, + "start": 14135, + "end": 14154, "loc": { "start": { "line": 371, @@ -19143,8 +19149,8 @@ }, "object": { "type": "Identifier", - "start": 14092, - "end": 14104, + "start": 14135, + "end": 14147, "loc": { "start": { "line": 371, @@ -19161,8 +19167,8 @@ }, "property": { "type": "Identifier", - "start": 14105, - "end": 14111, + "start": 14148, + "end": 14154, "loc": { "start": { "line": 371, @@ -19181,8 +19187,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 14114, - "end": 14119, + "start": 14157, + "end": 14162, "loc": { "start": { "line": 371, @@ -19201,8 +19207,8 @@ { "type": "CommentLine", "value": " Reset it to not being moved.", - "start": 14056, - "end": 14087, + "start": 14099, + "end": 14130, "loc": { "start": { "line": 370, @@ -19219,8 +19225,8 @@ { "type": "CommentLine", "value": " Reset the mode", - "start": 14125, - "end": 14142, + "start": 14168, + "end": 14185, "loc": { "start": { "line": 372, @@ -19236,8 +19242,8 @@ }, { "type": "ExpressionStatement", - "start": 14147, - "end": 14179, + "start": 14190, + "end": 14222, "loc": { "start": { "line": 373, @@ -19250,8 +19256,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14147, - "end": 14178, + "start": 14190, + "end": 14221, "loc": { "start": { "line": 373, @@ -19265,8 +19271,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14147, - "end": 14164, + "start": 14190, + "end": 14207, "loc": { "start": { "line": 373, @@ -19279,8 +19285,8 @@ }, "object": { "type": "Identifier", - "start": 14147, - "end": 14159, + "start": 14190, + "end": 14202, "loc": { "start": { "line": 373, @@ -19297,8 +19303,8 @@ }, "property": { "type": "Identifier", - "start": 14160, - "end": 14164, + "start": 14203, + "end": 14207, "loc": { "start": { "line": 373, @@ -19317,8 +19323,8 @@ }, "right": { "type": "StringLiteral", - "start": 14167, - "end": 14178, + "start": 14210, + "end": 14221, "loc": { "start": { "line": 373, @@ -19341,8 +19347,8 @@ { "type": "CommentLine", "value": " Reset the mode", - "start": 14125, - "end": 14142, + "start": 14168, + "end": 14185, "loc": { "start": { "line": 372, @@ -19359,8 +19365,8 @@ { "type": "CommentLine", "value": " Reset the pixels per second.", - "start": 14184, - "end": 14215, + "start": 14227, + "end": 14258, "loc": { "start": { "line": 374, @@ -19376,8 +19382,8 @@ }, { "type": "ExpressionStatement", - "start": 14220, - "end": 14294, + "start": 14263, + "end": 14337, "loc": { "start": { "line": 375, @@ -19390,8 +19396,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14220, - "end": 14293, + "start": 14263, + "end": 14336, "loc": { "start": { "line": 375, @@ -19405,8 +19411,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14220, - "end": 14248, + "start": 14263, + "end": 14291, "loc": { "start": { "line": 375, @@ -19419,8 +19425,8 @@ }, "object": { "type": "Identifier", - "start": 14220, - "end": 14232, + "start": 14263, + "end": 14275, "loc": { "start": { "line": 375, @@ -19437,8 +19443,8 @@ }, "property": { "type": "Identifier", - "start": 14233, - "end": 14248, + "start": 14276, + "end": 14291, "loc": { "start": { "line": 375, @@ -19457,8 +19463,8 @@ }, "right": { "type": "MemberExpression", - "start": 14251, - "end": 14293, + "start": 14294, + "end": 14336, "loc": { "start": { "line": 375, @@ -19471,8 +19477,8 @@ }, "object": { "type": "Identifier", - "start": 14251, - "end": 14267, + "start": 14294, + "end": 14310, "loc": { "start": { "line": 375, @@ -19488,8 +19494,8 @@ }, "property": { "type": "Identifier", - "start": 14268, - "end": 14293, + "start": 14311, + "end": 14336, "loc": { "start": { "line": 375, @@ -19511,8 +19517,8 @@ { "type": "CommentLine", "value": " Reset the pixels per second.", - "start": 14184, - "end": 14215, + "start": 14227, + "end": 14258, "loc": { "start": { "line": 374, @@ -19529,8 +19535,8 @@ { "type": "CommentLine", "value": " Reset the min distance", - "start": 14299, - "end": 14324, + "start": 14342, + "end": 14367, "loc": { "start": { "line": 376, @@ -19546,8 +19552,8 @@ }, { "type": "ExpressionStatement", - "start": 14329, - "end": 14398, + "start": 14372, + "end": 14441, "loc": { "start": { "line": 377, @@ -19560,8 +19566,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14329, - "end": 14397, + "start": 14372, + "end": 14440, "loc": { "start": { "line": 377, @@ -19575,8 +19581,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14329, - "end": 14353, + "start": 14372, + "end": 14396, "loc": { "start": { "line": 377, @@ -19589,8 +19595,8 @@ }, "object": { "type": "Identifier", - "start": 14329, - "end": 14341, + "start": 14372, + "end": 14384, "loc": { "start": { "line": 377, @@ -19607,8 +19613,8 @@ }, "property": { "type": "Identifier", - "start": 14342, - "end": 14353, + "start": 14385, + "end": 14396, "loc": { "start": { "line": 377, @@ -19627,8 +19633,8 @@ }, "right": { "type": "MemberExpression", - "start": 14356, - "end": 14397, + "start": 14399, + "end": 14440, "loc": { "start": { "line": 377, @@ -19641,8 +19647,8 @@ }, "object": { "type": "Identifier", - "start": 14356, - "end": 14372, + "start": 14399, + "end": 14415, "loc": { "start": { "line": 377, @@ -19658,8 +19664,8 @@ }, "property": { "type": "Identifier", - "start": 14373, - "end": 14397, + "start": 14416, + "end": 14440, "loc": { "start": { "line": 377, @@ -19681,8 +19687,8 @@ { "type": "CommentLine", "value": " Reset the min distance", - "start": 14299, - "end": 14324, + "start": 14342, + "end": 14367, "loc": { "start": { "line": 376, @@ -19699,8 +19705,8 @@ { "type": "CommentLine", "value": " Stop instance from moving via VYLO API.", - "start": 14403, - "end": 14445, + "start": 14446, + "end": 14488, "loc": { "start": { "line": 378, @@ -19716,8 +19722,8 @@ }, { "type": "ExpressionStatement", - "start": 14450, - "end": 14467, + "start": 14493, + "end": 14510, "loc": { "start": { "line": 379, @@ -19730,8 +19736,8 @@ }, "expression": { "type": "CallExpression", - "start": 14450, - "end": 14466, + "start": 14493, + "end": 14509, "loc": { "start": { "line": 379, @@ -19744,8 +19750,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14450, - "end": 14464, + "start": 14493, + "end": 14507, "loc": { "start": { "line": 379, @@ -19758,8 +19764,8 @@ }, "object": { "type": "Identifier", - "start": 14450, - "end": 14459, + "start": 14493, + "end": 14502, "loc": { "start": { "line": 379, @@ -19776,8 +19782,8 @@ }, "property": { "type": "Identifier", - "start": 14460, - "end": 14464, + "start": 14503, + "end": 14507, "loc": { "start": { "line": 379, @@ -19801,8 +19807,8 @@ { "type": "CommentLine", "value": " Stop instance from moving via VYLO API.", - "start": 14403, - "end": 14445, + "start": 14446, + "end": 14488, "loc": { "start": { "line": 378, @@ -19819,8 +19825,8 @@ { "type": "CommentLine", "value": " Untrack pInstance as an active instance.", - "start": 14472, - "end": 14515, + "start": 14515, + "end": 14558, "loc": { "start": { "line": 380, @@ -19836,8 +19842,8 @@ }, { "type": "ExpressionStatement", - "start": 14520, - "end": 14544, + "start": 14563, + "end": 14587, "loc": { "start": { "line": 381, @@ -19850,8 +19856,8 @@ }, "expression": { "type": "CallExpression", - "start": 14520, - "end": 14543, + "start": 14563, + "end": 14586, "loc": { "start": { "line": 381, @@ -19864,8 +19870,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14520, - "end": 14532, + "start": 14563, + "end": 14575, "loc": { "start": { "line": 381, @@ -19878,8 +19884,8 @@ }, "object": { "type": "ThisExpression", - "start": 14520, - "end": 14524, + "start": 14563, + "end": 14567, "loc": { "start": { "line": 381, @@ -19894,8 +19900,8 @@ }, "property": { "type": "Identifier", - "start": 14525, - "end": 14532, + "start": 14568, + "end": 14575, "loc": { "start": { "line": 381, @@ -19915,8 +19921,8 @@ "arguments": [ { "type": "Identifier", - "start": 14533, - "end": 14542, + "start": 14576, + "end": 14585, "loc": { "start": { "line": 381, @@ -19937,8 +19943,8 @@ { "type": "CommentLine", "value": " Untrack pInstance as an active instance.", - "start": 14472, - "end": 14515, + "start": 14515, + "end": 14558, "loc": { "start": { "line": 380, @@ -19957,8 +19963,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 14555, - "end": 14696, + "start": 14598, + "end": 14739, "loc": { "start": { "line": 382, @@ -19972,8 +19978,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 14561, - "end": 14691, + "start": 14604, + "end": 14734, "loc": { "start": { "line": 383, @@ -19986,8 +19992,8 @@ }, "expression": { "type": "CallExpression", - "start": 14561, - "end": 14690, + "start": 14604, + "end": 14733, "loc": { "start": { "line": 383, @@ -20000,8 +20006,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14561, - "end": 14603, + "start": 14604, + "end": 14646, "loc": { "start": { "line": 383, @@ -20014,8 +20020,8 @@ }, "object": { "type": "CallExpression", - "start": 14561, - "end": 14597, + "start": 14604, + "end": 14640, "loc": { "start": { "line": 383, @@ -20028,8 +20034,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14561, - "end": 14579, + "start": 14604, + "end": 14622, "loc": { "start": { "line": 383, @@ -20042,8 +20048,8 @@ }, "object": { "type": "MemberExpression", - "start": 14561, - "end": 14572, + "start": 14604, + "end": 14615, "loc": { "start": { "line": 383, @@ -20056,8 +20062,8 @@ }, "object": { "type": "ThisExpression", - "start": 14561, - "end": 14565, + "start": 14604, + "end": 14608, "loc": { "start": { "line": 383, @@ -20071,8 +20077,8 @@ }, "property": { "type": "Identifier", - "start": 14566, - "end": 14572, + "start": 14609, + "end": 14615, "loc": { "start": { "line": 383, @@ -20090,8 +20096,8 @@ }, "property": { "type": "Identifier", - "start": 14573, - "end": 14579, + "start": 14616, + "end": 14622, "loc": { "start": { "line": 383, @@ -20110,8 +20116,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 14580, - "end": 14596, + "start": 14623, + "end": 14639, "loc": { "start": { "line": 383, @@ -20132,8 +20138,8 @@ }, "property": { "type": "Identifier", - "start": 14598, - "end": 14603, + "start": 14641, + "end": 14646, "loc": { "start": { "line": 383, @@ -20152,8 +20158,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 14604, - "end": 14689, + "start": 14647, + "end": 14732, "loc": { "start": { "line": 383, @@ -20185,8 +20191,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t ", - "start": 12658, - "end": 12791, + "start": 12704, + "end": 12837, "loc": { "start": { "line": 337, @@ -20203,8 +20209,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t ", - "start": 14703, - "end": 14965, + "start": 14746, + "end": 15008, "loc": { "start": { "line": 386, @@ -20220,8 +20226,8 @@ }, { "type": "ClassMethod", - "start": 14968, - "end": 15347, + "start": 15011, + "end": 15390, "loc": { "start": { "line": 392, @@ -20236,8 +20242,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 14968, - "end": 14991, + "start": 15011, + "end": 15034, "loc": { "start": { "line": 392, @@ -20260,8 +20266,8 @@ "params": [ { "type": "Identifier", - "start": 14992, - "end": 15001, + "start": 15035, + "end": 15044, "loc": { "start": { "line": 392, @@ -20278,8 +20284,8 @@ ], "body": { "type": "BlockStatement", - "start": 15003, - "end": 15347, + "start": 15046, + "end": 15390, "loc": { "start": { "line": 392, @@ -20293,8 +20299,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 15008, - "end": 15065, + "start": 15051, + "end": 15108, "loc": { "start": { "line": 393, @@ -20308,8 +20314,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 15014, - "end": 15064, + "start": 15057, + "end": 15107, "loc": { "start": { "line": 393, @@ -20322,8 +20328,8 @@ }, "id": { "type": "Identifier", - "start": 15014, - "end": 15026, + "start": 15057, + "end": 15069, "loc": { "start": { "line": 393, @@ -20339,8 +20345,8 @@ }, "init": { "type": "CallExpression", - "start": 15029, - "end": 15064, + "start": 15072, + "end": 15107, "loc": { "start": { "line": 393, @@ -20353,8 +20359,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15029, - "end": 15053, + "start": 15072, + "end": 15096, "loc": { "start": { "line": 393, @@ -20367,8 +20373,8 @@ }, "object": { "type": "MemberExpression", - "start": 15029, - "end": 15049, + "start": 15072, + "end": 15092, "loc": { "start": { "line": 393, @@ -20381,8 +20387,8 @@ }, "object": { "type": "ThisExpression", - "start": 15029, - "end": 15033, + "start": 15072, + "end": 15076, "loc": { "start": { "line": 393, @@ -20396,8 +20402,8 @@ }, "property": { "type": "Identifier", - "start": 15034, - "end": 15049, + "start": 15077, + "end": 15092, "loc": { "start": { "line": 393, @@ -20415,8 +20421,8 @@ }, "property": { "type": "Identifier", - "start": 15050, - "end": 15053, + "start": 15093, + "end": 15096, "loc": { "start": { "line": 393, @@ -20435,8 +20441,8 @@ "arguments": [ { "type": "Identifier", - "start": 15054, - "end": 15063, + "start": 15097, + "end": 15106, "loc": { "start": { "line": 393, @@ -20458,8 +20464,8 @@ }, { "type": "IfStatement", - "start": 15069, - "end": 15343, + "start": 15112, + "end": 15386, "loc": { "start": { "line": 394, @@ -20472,8 +20478,8 @@ }, "test": { "type": "Identifier", - "start": 15073, - "end": 15085, + "start": 15116, + "end": 15128, "loc": { "start": { "line": 394, @@ -20489,8 +20495,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 15087, - "end": 15343, + "start": 15130, + "end": 15386, "loc": { "start": { "line": 394, @@ -20504,8 +20510,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 15093, - "end": 15192, + "start": 15136, + "end": 15235, "loc": { "start": { "line": 395, @@ -20518,8 +20524,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15093, - "end": 15191, + "start": 15136, + "end": 15234, "loc": { "start": { "line": 395, @@ -20533,8 +20539,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15093, - "end": 15123, + "start": 15136, + "end": 15166, "loc": { "start": { "line": 395, @@ -20547,8 +20553,8 @@ }, "object": { "type": "MemberExpression", - "start": 15093, - "end": 15121, + "start": 15136, + "end": 15164, "loc": { "start": { "line": 395, @@ -20561,8 +20567,8 @@ }, "object": { "type": "Identifier", - "start": 15093, - "end": 15105, + "start": 15136, + "end": 15148, "loc": { "start": { "line": 395, @@ -20578,8 +20584,8 @@ }, "property": { "type": "Identifier", - "start": 15106, - "end": 15121, + "start": 15149, + "end": 15164, "loc": { "start": { "line": 395, @@ -20597,8 +20603,8 @@ }, "property": { "type": "Identifier", - "start": 15122, - "end": 15123, + "start": 15165, + "end": 15166, "loc": { "start": { "line": 395, @@ -20616,8 +20622,8 @@ }, "right": { "type": "CallExpression", - "start": 15126, - "end": 15191, + "start": 15169, + "end": 15234, "loc": { "start": { "line": 395, @@ -20630,8 +20636,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15126, - "end": 15136, + "start": 15169, + "end": 15179, "loc": { "start": { "line": 395, @@ -20644,8 +20650,8 @@ }, "object": { "type": "Identifier", - "start": 15126, - "end": 15130, + "start": 15169, + "end": 15173, "loc": { "start": { "line": 395, @@ -20661,8 +20667,8 @@ }, "property": { "type": "Identifier", - "start": 15131, - "end": 15136, + "start": 15174, + "end": 15179, "loc": { "start": { "line": 395, @@ -20681,8 +20687,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 15137, - "end": 15190, + "start": 15180, + "end": 15233, "loc": { "start": { "line": 395, @@ -20695,8 +20701,8 @@ }, "left": { "type": "BinaryExpression", - "start": 15137, - "end": 15168, + "start": 15180, + "end": 15211, "loc": { "start": { "line": 395, @@ -20709,8 +20715,8 @@ }, "left": { "type": "MemberExpression", - "start": 15137, - "end": 15148, + "start": 15180, + "end": 15191, "loc": { "start": { "line": 395, @@ -20723,8 +20729,8 @@ }, "object": { "type": "Identifier", - "start": 15137, - "end": 15146, + "start": 15180, + "end": 15189, "loc": { "start": { "line": 395, @@ -20740,8 +20746,8 @@ }, "property": { "type": "Identifier", - "start": 15147, - "end": 15148, + "start": 15190, + "end": 15191, "loc": { "start": { "line": 395, @@ -20760,8 +20766,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 15151, - "end": 15168, + "start": 15194, + "end": 15211, "loc": { "start": { "line": 395, @@ -20774,8 +20780,8 @@ }, "object": { "type": "Identifier", - "start": 15151, - "end": 15160, + "start": 15194, + "end": 15203, "loc": { "start": { "line": 395, @@ -20791,8 +20797,8 @@ }, "property": { "type": "Identifier", - "start": 15161, - "end": 15168, + "start": 15204, + "end": 15211, "loc": { "start": { "line": 395, @@ -20812,8 +20818,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 15171, - "end": 15190, + "start": 15214, + "end": 15233, "loc": { "start": { "line": 395, @@ -20826,8 +20832,8 @@ }, "left": { "type": "MemberExpression", - "start": 15171, - "end": 15186, + "start": 15214, + "end": 15229, "loc": { "start": { "line": 395, @@ -20840,8 +20846,8 @@ }, "object": { "type": "Identifier", - "start": 15171, - "end": 15180, + "start": 15214, + "end": 15223, "loc": { "start": { "line": 395, @@ -20857,8 +20863,8 @@ }, "property": { "type": "Identifier", - "start": 15181, - "end": 15186, + "start": 15224, + "end": 15229, "loc": { "start": { "line": 395, @@ -20877,8 +20883,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 15189, - "end": 15190, + "start": 15232, + "end": 15233, "loc": { "start": { "line": 395, @@ -20903,8 +20909,8 @@ }, { "type": "ExpressionStatement", - "start": 15197, - "end": 15297, + "start": 15240, + "end": 15340, "loc": { "start": { "line": 396, @@ -20917,8 +20923,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15197, - "end": 15296, + "start": 15240, + "end": 15339, "loc": { "start": { "line": 396, @@ -20932,8 +20938,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15197, - "end": 15227, + "start": 15240, + "end": 15270, "loc": { "start": { "line": 396, @@ -20946,8 +20952,8 @@ }, "object": { "type": "MemberExpression", - "start": 15197, - "end": 15225, + "start": 15240, + "end": 15268, "loc": { "start": { "line": 396, @@ -20960,8 +20966,8 @@ }, "object": { "type": "Identifier", - "start": 15197, - "end": 15209, + "start": 15240, + "end": 15252, "loc": { "start": { "line": 396, @@ -20977,8 +20983,8 @@ }, "property": { "type": "Identifier", - "start": 15210, - "end": 15225, + "start": 15253, + "end": 15268, "loc": { "start": { "line": 396, @@ -20996,8 +21002,8 @@ }, "property": { "type": "Identifier", - "start": 15226, - "end": 15227, + "start": 15269, + "end": 15270, "loc": { "start": { "line": 396, @@ -21015,8 +21021,8 @@ }, "right": { "type": "CallExpression", - "start": 15230, - "end": 15296, + "start": 15273, + "end": 15339, "loc": { "start": { "line": 396, @@ -21029,8 +21035,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15230, - "end": 15240, + "start": 15273, + "end": 15283, "loc": { "start": { "line": 396, @@ -21043,8 +21049,8 @@ }, "object": { "type": "Identifier", - "start": 15230, - "end": 15234, + "start": 15273, + "end": 15277, "loc": { "start": { "line": 396, @@ -21060,8 +21066,8 @@ }, "property": { "type": "Identifier", - "start": 15235, - "end": 15240, + "start": 15278, + "end": 15283, "loc": { "start": { "line": 396, @@ -21080,8 +21086,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 15241, - "end": 15295, + "start": 15284, + "end": 15338, "loc": { "start": { "line": 396, @@ -21094,8 +21100,8 @@ }, "left": { "type": "BinaryExpression", - "start": 15241, - "end": 15272, + "start": 15284, + "end": 15315, "loc": { "start": { "line": 396, @@ -21108,8 +21114,8 @@ }, "left": { "type": "MemberExpression", - "start": 15241, - "end": 15252, + "start": 15284, + "end": 15295, "loc": { "start": { "line": 396, @@ -21122,8 +21128,8 @@ }, "object": { "type": "Identifier", - "start": 15241, - "end": 15250, + "start": 15284, + "end": 15293, "loc": { "start": { "line": 396, @@ -21139,8 +21145,8 @@ }, "property": { "type": "Identifier", - "start": 15251, - "end": 15252, + "start": 15294, + "end": 15295, "loc": { "start": { "line": 396, @@ -21159,8 +21165,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 15255, - "end": 15272, + "start": 15298, + "end": 15315, "loc": { "start": { "line": 396, @@ -21173,8 +21179,8 @@ }, "object": { "type": "Identifier", - "start": 15255, - "end": 15264, + "start": 15298, + "end": 15307, "loc": { "start": { "line": 396, @@ -21190,8 +21196,8 @@ }, "property": { "type": "Identifier", - "start": 15265, - "end": 15272, + "start": 15308, + "end": 15315, "loc": { "start": { "line": 396, @@ -21211,8 +21217,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 15275, - "end": 15295, + "start": 15318, + "end": 15338, "loc": { "start": { "line": 396, @@ -21225,8 +21231,8 @@ }, "left": { "type": "MemberExpression", - "start": 15275, - "end": 15291, + "start": 15318, + "end": 15334, "loc": { "start": { "line": 396, @@ -21239,8 +21245,8 @@ }, "object": { "type": "Identifier", - "start": 15275, - "end": 15284, + "start": 15318, + "end": 15327, "loc": { "start": { "line": 396, @@ -21256,8 +21262,8 @@ }, "property": { "type": "Identifier", - "start": 15285, - "end": 15291, + "start": 15328, + "end": 15334, "loc": { "start": { "line": 396, @@ -21276,8 +21282,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 15294, - "end": 15295, + "start": 15337, + "end": 15338, "loc": { "start": { "line": 396, @@ -21302,8 +21308,8 @@ }, { "type": "ReturnStatement", - "start": 15302, - "end": 15338, + "start": 15345, + "end": 15381, "loc": { "start": { "line": 397, @@ -21316,8 +21322,8 @@ }, "argument": { "type": "MemberExpression", - "start": 15309, - "end": 15337, + "start": 15352, + "end": 15380, "loc": { "start": { "line": 397, @@ -21330,8 +21336,8 @@ }, "object": { "type": "Identifier", - "start": 15309, - "end": 15321, + "start": 15352, + "end": 15364, "loc": { "start": { "line": 397, @@ -21347,8 +21353,8 @@ }, "property": { "type": "Identifier", - "start": 15322, - "end": 15337, + "start": 15365, + "end": 15380, "loc": { "start": { "line": 397, @@ -21378,8 +21384,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t ", - "start": 14703, - "end": 14965, + "start": 14746, + "end": 15008, "loc": { "start": { "line": 386, @@ -21396,8 +21402,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t ", - "start": 15350, - "end": 15422, + "start": 15393, + "end": 15465, "loc": { "start": { "line": 400, @@ -21413,8 +21419,8 @@ }, { "type": "ClassMethod", - "start": 15425, - "end": 20625, + "start": 15468, + "end": 20668, "loc": { "start": { "line": 404, @@ -21429,8 +21435,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 15425, - "end": 15431, + "start": 15468, + "end": 15474, "loc": { "start": { "line": 404, @@ -21453,8 +21459,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 15434, - "end": 20625, + "start": 15477, + "end": 20668, "loc": { "start": { "line": 404, @@ -21468,8 +21474,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 15467, - "end": 15490, + "start": 15510, + "end": 15533, "loc": { "start": { "line": 406, @@ -21483,8 +21489,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 15473, - "end": 15489, + "start": 15516, + "end": 15532, "loc": { "start": { "line": 406, @@ -21497,8 +21503,8 @@ }, "id": { "type": "Identifier", - "start": 15473, - "end": 15476, + "start": 15516, + "end": 15519, "loc": { "start": { "line": 406, @@ -21515,8 +21521,8 @@ }, "init": { "type": "CallExpression", - "start": 15479, - "end": 15489, + "start": 15522, + "end": 15532, "loc": { "start": { "line": 406, @@ -21529,8 +21535,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15479, - "end": 15487, + "start": 15522, + "end": 15530, "loc": { "start": { "line": 406, @@ -21543,8 +21549,8 @@ }, "object": { "type": "Identifier", - "start": 15479, - "end": 15483, + "start": 15522, + "end": 15526, "loc": { "start": { "line": 406, @@ -21560,8 +21566,8 @@ }, "property": { "type": "Identifier", - "start": 15484, - "end": 15487, + "start": 15527, + "end": 15530, "loc": { "start": { "line": 406, @@ -21587,8 +21593,8 @@ { "type": "CommentLine", "value": " Get current timestamp", - "start": 15439, - "end": 15463, + "start": 15482, + "end": 15506, "loc": { "start": { "line": 405, @@ -21605,8 +21611,8 @@ { "type": "CommentLine", "value": " Get the elapsed ms from the last tick", - "start": 15494, - "end": 15534, + "start": 15537, + "end": 15577, "loc": { "start": { "line": 407, @@ -21622,8 +21628,8 @@ }, { "type": "ExpressionStatement", - "start": 15538, - "end": 15575, + "start": 15581, + "end": 15618, "loc": { "start": { "line": 408, @@ -21636,8 +21642,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15538, - "end": 15574, + "start": 15581, + "end": 15617, "loc": { "start": { "line": 408, @@ -21651,8 +21657,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15538, - "end": 15552, + "start": 15581, + "end": 15595, "loc": { "start": { "line": 408, @@ -21665,8 +21671,8 @@ }, "object": { "type": "ThisExpression", - "start": 15538, - "end": 15542, + "start": 15581, + "end": 15585, "loc": { "start": { "line": 408, @@ -21681,8 +21687,8 @@ }, "property": { "type": "Identifier", - "start": 15543, - "end": 15552, + "start": 15586, + "end": 15595, "loc": { "start": { "line": 408, @@ -21701,8 +21707,8 @@ }, "right": { "type": "BinaryExpression", - "start": 15555, - "end": 15574, + "start": 15598, + "end": 15617, "loc": { "start": { "line": 408, @@ -21715,8 +21721,8 @@ }, "left": { "type": "Identifier", - "start": 15555, - "end": 15558, + "start": 15598, + "end": 15601, "loc": { "start": { "line": 408, @@ -21733,8 +21739,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 15561, - "end": 15574, + "start": 15604, + "end": 15617, "loc": { "start": { "line": 408, @@ -21747,8 +21753,8 @@ }, "object": { "type": "ThisExpression", - "start": 15561, - "end": 15565, + "start": 15604, + "end": 15608, "loc": { "start": { "line": 408, @@ -21762,8 +21768,8 @@ }, "property": { "type": "Identifier", - "start": 15566, - "end": 15574, + "start": 15609, + "end": 15617, "loc": { "start": { "line": 408, @@ -21786,8 +21792,8 @@ { "type": "CommentLine", "value": " Get the elapsed ms from the last tick", - "start": 15494, - "end": 15534, + "start": 15537, + "end": 15577, "loc": { "start": { "line": 407, @@ -21804,8 +21810,8 @@ { "type": "CommentLine", "value": " Get the delta time between the last tick", - "start": 15579, - "end": 15622, + "start": 15622, + "end": 15665, "loc": { "start": { "line": 409, @@ -21821,8 +21827,8 @@ }, { "type": "ExpressionStatement", - "start": 15626, - "end": 15667, + "start": 15669, + "end": 15710, "loc": { "start": { "line": 410, @@ -21835,8 +21841,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15626, - "end": 15666, + "start": 15669, + "end": 15709, "loc": { "start": { "line": 410, @@ -21850,8 +21856,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15626, - "end": 15640, + "start": 15669, + "end": 15683, "loc": { "start": { "line": 410, @@ -21864,8 +21870,8 @@ }, "object": { "type": "ThisExpression", - "start": 15626, - "end": 15630, + "start": 15669, + "end": 15673, "loc": { "start": { "line": 410, @@ -21880,8 +21886,8 @@ }, "property": { "type": "Identifier", - "start": 15631, - "end": 15640, + "start": 15674, + "end": 15683, "loc": { "start": { "line": 410, @@ -21900,8 +21906,8 @@ }, "right": { "type": "BinaryExpression", - "start": 15644, - "end": 15665, + "start": 15687, + "end": 15708, "loc": { "start": { "line": 410, @@ -21914,8 +21920,8 @@ }, "left": { "type": "MemberExpression", - "start": 15644, - "end": 15658, + "start": 15687, + "end": 15701, "loc": { "start": { "line": 410, @@ -21928,8 +21934,8 @@ }, "object": { "type": "ThisExpression", - "start": 15644, - "end": 15648, + "start": 15687, + "end": 15691, "loc": { "start": { "line": 410, @@ -21943,8 +21949,8 @@ }, "property": { "type": "Identifier", - "start": 15649, - "end": 15658, + "start": 15692, + "end": 15701, "loc": { "start": { "line": 410, @@ -21963,8 +21969,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 15661, - "end": 15665, + "start": 15704, + "end": 15708, "loc": { "start": { "line": 410, @@ -21983,7 +21989,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 15643 + "parenStart": 15686 } }, "leadingComments": null @@ -21992,8 +21998,8 @@ { "type": "CommentLine", "value": " Get the delta time between the last tick", - "start": 15579, - "end": 15622, + "start": 15622, + "end": 15665, "loc": { "start": { "line": 409, @@ -22010,8 +22016,8 @@ { "type": "CommentLine", "value": " If the delta time grows too large, we clamp it", - "start": 15671, - "end": 15720, + "start": 15714, + "end": 15763, "loc": { "start": { "line": 411, @@ -22027,8 +22033,8 @@ }, { "type": "IfStatement", - "start": 15724, - "end": 15839, + "start": 15767, + "end": 15882, "loc": { "start": { "line": 412, @@ -22041,8 +22047,8 @@ }, "test": { "type": "BinaryExpression", - "start": 15728, - "end": 15777, + "start": 15771, + "end": 15820, "loc": { "start": { "line": 412, @@ -22055,8 +22061,8 @@ }, "left": { "type": "MemberExpression", - "start": 15728, - "end": 15742, + "start": 15771, + "end": 15785, "loc": { "start": { "line": 412, @@ -22069,8 +22075,8 @@ }, "object": { "type": "ThisExpression", - "start": 15728, - "end": 15732, + "start": 15771, + "end": 15775, "loc": { "start": { "line": 412, @@ -22085,8 +22091,8 @@ }, "property": { "type": "Identifier", - "start": 15733, - "end": 15742, + "start": 15776, + "end": 15785, "loc": { "start": { "line": 412, @@ -22106,8 +22112,8 @@ "operator": ">=", "right": { "type": "MemberExpression", - "start": 15746, - "end": 15777, + "start": 15789, + "end": 15820, "loc": { "start": { "line": 412, @@ -22120,8 +22126,8 @@ }, "object": { "type": "Identifier", - "start": 15746, - "end": 15762, + "start": 15789, + "end": 15805, "loc": { "start": { "line": 412, @@ -22137,8 +22143,8 @@ }, "property": { "type": "Identifier", - "start": 15763, - "end": 15777, + "start": 15806, + "end": 15820, "loc": { "start": { "line": 412, @@ -22158,8 +22164,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 15779, - "end": 15839, + "start": 15822, + "end": 15882, "loc": { "start": { "line": 412, @@ -22173,8 +22179,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 15785, - "end": 15834, + "start": 15828, + "end": 15877, "loc": { "start": { "line": 413, @@ -22187,8 +22193,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15785, - "end": 15833, + "start": 15828, + "end": 15876, "loc": { "start": { "line": 413, @@ -22202,8 +22208,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15785, - "end": 15799, + "start": 15828, + "end": 15842, "loc": { "start": { "line": 413, @@ -22216,8 +22222,8 @@ }, "object": { "type": "ThisExpression", - "start": 15785, - "end": 15789, + "start": 15828, + "end": 15832, "loc": { "start": { "line": 413, @@ -22231,8 +22237,8 @@ }, "property": { "type": "Identifier", - "start": 15790, - "end": 15799, + "start": 15833, + "end": 15842, "loc": { "start": { "line": 413, @@ -22250,8 +22256,8 @@ }, "right": { "type": "MemberExpression", - "start": 15802, - "end": 15833, + "start": 15845, + "end": 15876, "loc": { "start": { "line": 413, @@ -22264,8 +22270,8 @@ }, "object": { "type": "Identifier", - "start": 15802, - "end": 15818, + "start": 15845, + "end": 15861, "loc": { "start": { "line": 413, @@ -22281,8 +22287,8 @@ }, "property": { "type": "Identifier", - "start": 15819, - "end": 15833, + "start": 15862, + "end": 15876, "loc": { "start": { "line": 413, @@ -22309,8 +22315,8 @@ { "type": "CommentLine", "value": " If the delta time grows too large, we clamp it", - "start": 15671, - "end": 15720, + "start": 15714, + "end": 15763, "loc": { "start": { "line": 411, @@ -22327,8 +22333,8 @@ { "type": "CommentLine", "value": " Loop active instances and update.", - "start": 15843, - "end": 15879, + "start": 15886, + "end": 15922, "loc": { "start": { "line": 415, @@ -22344,8 +22350,8 @@ }, { "type": "ExpressionStatement", - "start": 15883, - "end": 20568, + "start": 15926, + "end": 20611, "loc": { "start": { "line": 416, @@ -22358,8 +22364,8 @@ }, "expression": { "type": "CallExpression", - "start": 15883, - "end": 20567, + "start": 15926, + "end": 20610, "loc": { "start": { "line": 416, @@ -22372,8 +22378,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15883, - "end": 15911, + "start": 15926, + "end": 15954, "loc": { "start": { "line": 416, @@ -22386,8 +22392,8 @@ }, "object": { "type": "MemberExpression", - "start": 15883, - "end": 15903, + "start": 15926, + "end": 15946, "loc": { "start": { "line": 416, @@ -22400,8 +22406,8 @@ }, "object": { "type": "ThisExpression", - "start": 15883, - "end": 15887, + "start": 15926, + "end": 15930, "loc": { "start": { "line": 416, @@ -22416,8 +22422,8 @@ }, "property": { "type": "Identifier", - "start": 15888, - "end": 15903, + "start": 15931, + "end": 15946, "loc": { "start": { "line": 416, @@ -22436,8 +22442,8 @@ }, "property": { "type": "Identifier", - "start": 15904, - "end": 15911, + "start": 15947, + "end": 15954, "loc": { "start": { "line": 416, @@ -22457,8 +22463,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 15912, - "end": 20566, + "start": 15955, + "end": 20609, "loc": { "start": { "line": 416, @@ -22476,8 +22482,8 @@ "params": [ { "type": "Identifier", - "start": 15913, - "end": 15922, + "start": 15956, + "end": 15965, "loc": { "start": { "line": 416, @@ -22494,8 +22500,8 @@ ], "body": { "type": "BlockStatement", - "start": 15927, - "end": 20566, + "start": 15970, + "end": 20609, "loc": { "start": { "line": 416, @@ -22509,8 +22515,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 15980, - "end": 16037, + "start": 16023, + "end": 16080, "loc": { "start": { "line": 418, @@ -22524,8 +22530,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 15986, - "end": 16036, + "start": 16029, + "end": 16079, "loc": { "start": { "line": 418, @@ -22538,8 +22544,8 @@ }, "id": { "type": "Identifier", - "start": 15986, - "end": 15998, + "start": 16029, + "end": 16041, "loc": { "start": { "line": 418, @@ -22556,8 +22562,8 @@ }, "init": { "type": "CallExpression", - "start": 16001, - "end": 16036, + "start": 16044, + "end": 16079, "loc": { "start": { "line": 418, @@ -22570,8 +22576,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16001, - "end": 16025, + "start": 16044, + "end": 16068, "loc": { "start": { "line": 418, @@ -22584,8 +22590,8 @@ }, "object": { "type": "MemberExpression", - "start": 16001, - "end": 16021, + "start": 16044, + "end": 16064, "loc": { "start": { "line": 418, @@ -22598,8 +22604,8 @@ }, "object": { "type": "ThisExpression", - "start": 16001, - "end": 16005, + "start": 16044, + "end": 16048, "loc": { "start": { "line": 418, @@ -22613,8 +22619,8 @@ }, "property": { "type": "Identifier", - "start": 16006, - "end": 16021, + "start": 16049, + "end": 16064, "loc": { "start": { "line": 418, @@ -22632,8 +22638,8 @@ }, "property": { "type": "Identifier", - "start": 16022, - "end": 16025, + "start": 16065, + "end": 16068, "loc": { "start": { "line": 418, @@ -22652,8 +22658,8 @@ "arguments": [ { "type": "Identifier", - "start": 16026, - "end": 16035, + "start": 16069, + "end": 16078, "loc": { "start": { "line": 418, @@ -22677,8 +22683,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 15933, - "end": 15975, + "start": 15976, + "end": 16018, "loc": { "start": { "line": 417, @@ -22694,8 +22700,8 @@ }, { "type": "IfStatement", - "start": 16042, - "end": 20561, + "start": 16085, + "end": 20604, "loc": { "start": { "line": 419, @@ -22708,8 +22714,8 @@ }, "test": { "type": "Identifier", - "start": 16046, - "end": 16058, + "start": 16089, + "end": 16101, "loc": { "start": { "line": 419, @@ -22725,8 +22731,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 16060, - "end": 20561, + "start": 16103, + "end": 20604, "loc": { "start": { "line": 419, @@ -22740,8 +22746,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 16094, - "end": 16128, + "start": 16137, + "end": 16171, "loc": { "start": { "line": 421, @@ -22754,8 +22760,8 @@ }, "expression": { "type": "CallExpression", - "start": 16094, - "end": 16127, + "start": 16137, + "end": 16170, "loc": { "start": { "line": 421, @@ -22768,8 +22774,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16094, - "end": 16125, + "start": 16137, + "end": 16168, "loc": { "start": { "line": 421, @@ -22782,8 +22788,8 @@ }, "object": { "type": "MemberExpression", - "start": 16094, - "end": 16115, + "start": 16137, + "end": 16158, "loc": { "start": { "line": 421, @@ -22796,8 +22802,8 @@ }, "object": { "type": "Identifier", - "start": 16094, - "end": 16106, + "start": 16137, + "end": 16149, "loc": { "start": { "line": 421, @@ -22814,8 +22820,8 @@ }, "property": { "type": "Identifier", - "start": 16107, - "end": 16115, + "start": 16150, + "end": 16158, "loc": { "start": { "line": 421, @@ -22834,8 +22840,8 @@ }, "property": { "type": "Identifier", - "start": 16116, - "end": 16125, + "start": 16159, + "end": 16168, "loc": { "start": { "line": 421, @@ -22859,8 +22865,8 @@ { "type": "CommentLine", "value": " Calculate the path", - "start": 16067, - "end": 16088, + "start": 16110, + "end": 16131, "loc": { "start": { "line": 420, @@ -22877,8 +22883,8 @@ { "type": "CommentLine", "value": " If this instance is being moved", - "start": 16136, - "end": 16170, + "start": 16179, + "end": 16213, "loc": { "start": { "line": 423, @@ -22894,8 +22900,8 @@ }, { "type": "IfStatement", - "start": 16176, - "end": 20555, + "start": 16219, + "end": 20598, "loc": { "start": { "line": 424, @@ -22908,8 +22914,8 @@ }, "test": { "type": "LogicalExpression", - "start": 16180, - "end": 16265, + "start": 16223, + "end": 16308, "loc": { "start": { "line": 424, @@ -22922,8 +22928,8 @@ }, "left": { "type": "CallExpression", - "start": 16180, - "end": 16212, + "start": 16223, + "end": 16255, "loc": { "start": { "line": 424, @@ -22936,8 +22942,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16180, - "end": 16193, + "start": 16223, + "end": 16236, "loc": { "start": { "line": 424, @@ -22950,8 +22956,8 @@ }, "object": { "type": "Identifier", - "start": 16180, - "end": 16185, + "start": 16223, + "end": 16228, "loc": { "start": { "line": 424, @@ -22968,8 +22974,8 @@ }, "property": { "type": "Identifier", - "start": 16186, - "end": 16193, + "start": 16229, + "end": 16236, "loc": { "start": { "line": 424, @@ -22989,8 +22995,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 16194, - "end": 16211, + "start": 16237, + "end": 16254, "loc": { "start": { "line": 424, @@ -23003,8 +23009,8 @@ }, "object": { "type": "Identifier", - "start": 16194, - "end": 16206, + "start": 16237, + "end": 16249, "loc": { "start": { "line": 424, @@ -23020,8 +23026,8 @@ }, "property": { "type": "Identifier", - "start": 16207, - "end": 16211, + "start": 16250, + "end": 16254, "loc": { "start": { "line": 424, @@ -23043,8 +23049,8 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 16217, - "end": 16264, + "start": 16260, + "end": 16307, "loc": { "start": { "line": 424, @@ -23057,8 +23063,8 @@ }, "left": { "type": "MemberExpression", - "start": 16217, - "end": 16241, + "start": 16260, + "end": 16284, "loc": { "start": { "line": 424, @@ -23071,8 +23077,8 @@ }, "object": { "type": "MemberExpression", - "start": 16217, - "end": 16234, + "start": 16260, + "end": 16277, "loc": { "start": { "line": 424, @@ -23085,8 +23091,8 @@ }, "object": { "type": "Identifier", - "start": 16217, - "end": 16229, + "start": 16260, + "end": 16272, "loc": { "start": { "line": 424, @@ -23102,8 +23108,8 @@ }, "property": { "type": "Identifier", - "start": 16230, - "end": 16234, + "start": 16273, + "end": 16277, "loc": { "start": { "line": 424, @@ -23121,8 +23127,8 @@ }, "property": { "type": "Identifier", - "start": 16235, - "end": 16241, + "start": 16278, + "end": 16284, "loc": { "start": { "line": 424, @@ -23141,8 +23147,8 @@ "operator": "||", "right": { "type": "MemberExpression", - "start": 16245, - "end": 16264, + "start": 16288, + "end": 16307, "loc": { "start": { "line": 424, @@ -23155,8 +23161,8 @@ }, "object": { "type": "Identifier", - "start": 16245, - "end": 16257, + "start": 16288, + "end": 16300, "loc": { "start": { "line": 424, @@ -23172,8 +23178,8 @@ }, "property": { "type": "Identifier", - "start": 16258, - "end": 16264, + "start": 16301, + "end": 16307, "loc": { "start": { "line": 424, @@ -23191,15 +23197,15 @@ }, "extra": { "parenthesized": true, - "parenStart": 16216 + "parenStart": 16259 } }, "leadingComments": null }, "consequent": { "type": "BlockStatement", - "start": 16267, - "end": 20555, + "start": 16310, + "end": 20598, "loc": { "start": { "line": 424, @@ -23213,8 +23219,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 16317, - "end": 16382, + "start": 16360, + "end": 16425, "loc": { "start": { "line": 426, @@ -23228,8 +23234,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 16323, - "end": 16381, + "start": 16366, + "end": 16424, "loc": { "start": { "line": 426, @@ -23242,8 +23248,8 @@ }, "id": { "type": "Identifier", - "start": 16323, - "end": 16339, + "start": 16366, + "end": 16382, "loc": { "start": { "line": 426, @@ -23260,8 +23266,8 @@ }, "init": { "type": "CallExpression", - "start": 16342, - "end": 16381, + "start": 16385, + "end": 16424, "loc": { "start": { "line": 426, @@ -23274,8 +23280,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16342, - "end": 16370, + "start": 16385, + "end": 16413, "loc": { "start": { "line": 426, @@ -23288,8 +23294,8 @@ }, "object": { "type": "ThisExpression", - "start": 16342, - "end": 16346, + "start": 16385, + "end": 16389, "loc": { "start": { "line": 426, @@ -23303,8 +23309,8 @@ }, "property": { "type": "Identifier", - "start": 16347, - "end": 16370, + "start": 16390, + "end": 16413, "loc": { "start": { "line": 426, @@ -23323,8 +23329,8 @@ "arguments": [ { "type": "Identifier", - "start": 16371, - "end": 16380, + "start": 16414, + "end": 16423, "loc": { "start": { "line": 426, @@ -23348,8 +23354,8 @@ { "type": "CommentLine", "value": " Get the position of the instance", - "start": 16275, - "end": 16310, + "start": 16318, + "end": 16353, "loc": { "start": { "line": 425, @@ -23366,8 +23372,8 @@ { "type": "CommentLine", "value": " If the instance is not moving", - "start": 16389, - "end": 16421, + "start": 16432, + "end": 16464, "loc": { "start": { "line": 427, @@ -23383,8 +23389,8 @@ }, { "type": "IfStatement", - "start": 16428, - "end": 19728, + "start": 16471, + "end": 19771, "loc": { "start": { "line": 428, @@ -23397,8 +23403,8 @@ }, "test": { "type": "UnaryExpression", - "start": 16432, - "end": 16452, + "start": 16475, + "end": 16495, "loc": { "start": { "line": 428, @@ -23413,8 +23419,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 16433, - "end": 16452, + "start": 16476, + "end": 16495, "loc": { "start": { "line": 428, @@ -23427,8 +23433,8 @@ }, "object": { "type": "Identifier", - "start": 16433, - "end": 16445, + "start": 16476, + "end": 16488, "loc": { "start": { "line": 428, @@ -23445,8 +23451,8 @@ }, "property": { "type": "Identifier", - "start": 16446, - "end": 16452, + "start": 16489, + "end": 16495, "loc": { "start": { "line": 428, @@ -23470,8 +23476,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 16454, - "end": 18039, + "start": 16497, + "end": 18082, "loc": { "start": { "line": 428, @@ -23485,8 +23491,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 16505, - "end": 16544, + "start": 16548, + "end": 16587, "loc": { "start": { "line": 430, @@ -23500,8 +23506,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 16511, - "end": 16543, + "start": 16554, + "end": 16586, "loc": { "start": { "line": 430, @@ -23514,8 +23520,8 @@ }, "id": { "type": "Identifier", - "start": 16511, - "end": 16515, + "start": 16554, + "end": 16558, "loc": { "start": { "line": 430, @@ -23532,8 +23538,8 @@ }, "init": { "type": "CallExpression", - "start": 16518, - "end": 16543, + "start": 16561, + "end": 16586, "loc": { "start": { "line": 430, @@ -23546,8 +23552,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16518, - "end": 16541, + "start": 16561, + "end": 16584, "loc": { "start": { "line": 430, @@ -23560,8 +23566,8 @@ }, "object": { "type": "MemberExpression", - "start": 16518, - "end": 16535, + "start": 16561, + "end": 16578, "loc": { "start": { "line": 430, @@ -23574,8 +23580,8 @@ }, "object": { "type": "Identifier", - "start": 16518, - "end": 16530, + "start": 16561, + "end": 16573, "loc": { "start": { "line": 430, @@ -23591,8 +23597,8 @@ }, "property": { "type": "Identifier", - "start": 16531, - "end": 16535, + "start": 16574, + "end": 16578, "loc": { "start": { "line": 430, @@ -23610,8 +23616,8 @@ }, "property": { "type": "Identifier", - "start": 16536, - "end": 16541, + "start": 16579, + "end": 16584, "loc": { "start": { "line": 430, @@ -23637,8 +23643,8 @@ { "type": "CommentLine", "value": " Get the next node to travel to.", - "start": 16463, - "end": 16497, + "start": 16506, + "end": 16540, "loc": { "start": { "line": 429, @@ -23655,8 +23661,8 @@ { "type": "CommentLine", "value": " Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.", - "start": 16552, - "end": 16686, + "start": 16595, + "end": 16729, "loc": { "start": { "line": 431, @@ -23672,8 +23678,8 @@ }, { "type": "VariableDeclaration", - "start": 16694, - "end": 16863, + "start": 16737, + "end": 16906, "loc": { "start": { "line": 432, @@ -23687,8 +23693,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 16700, - "end": 16862, + "start": 16743, + "end": 16905, "loc": { "start": { "line": 432, @@ -23701,8 +23707,8 @@ }, "id": { "type": "Identifier", - "start": 16700, - "end": 16707, + "start": 16743, + "end": 16750, "loc": { "start": { "line": 432, @@ -23719,8 +23725,8 @@ }, "init": { "type": "ObjectExpression", - "start": 16710, - "end": 16862, + "start": 16753, + "end": 16905, "loc": { "start": { "line": 432, @@ -23734,8 +23740,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 16721, - "end": 16780, + "start": 16764, + "end": 16823, "loc": { "start": { "line": 433, @@ -23751,8 +23757,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 16721, - "end": 16722, + "start": 16764, + "end": 16765, "loc": { "start": { "line": 433, @@ -23768,8 +23774,8 @@ }, "value": { "type": "BinaryExpression", - "start": 16724, - "end": 16780, + "start": 16767, + "end": 16823, "loc": { "start": { "line": 433, @@ -23782,8 +23788,8 @@ }, "left": { "type": "BinaryExpression", - "start": 16725, - "end": 16753, + "start": 16768, + "end": 16796, "loc": { "start": { "line": 433, @@ -23796,8 +23802,8 @@ }, "left": { "type": "MemberExpression", - "start": 16725, - "end": 16731, + "start": 16768, + "end": 16774, "loc": { "start": { "line": 433, @@ -23810,8 +23816,8 @@ }, "object": { "type": "Identifier", - "start": 16725, - "end": 16729, + "start": 16768, + "end": 16772, "loc": { "start": { "line": 433, @@ -23827,8 +23833,8 @@ }, "property": { "type": "Identifier", - "start": 16730, - "end": 16731, + "start": 16773, + "end": 16774, "loc": { "start": { "line": 433, @@ -23847,8 +23853,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 16734, - "end": 16753, + "start": 16777, + "end": 16796, "loc": { "start": { "line": 433, @@ -23861,8 +23867,8 @@ }, "object": { "type": "MemberExpression", - "start": 16734, - "end": 16747, + "start": 16777, + "end": 16790, "loc": { "start": { "line": 433, @@ -23875,8 +23881,8 @@ }, "object": { "type": "ThisExpression", - "start": 16734, - "end": 16738, + "start": 16777, + "end": 16781, "loc": { "start": { "line": 433, @@ -23890,8 +23896,8 @@ }, "property": { "type": "Identifier", - "start": 16739, - "end": 16747, + "start": 16782, + "end": 16790, "loc": { "start": { "line": 433, @@ -23909,8 +23915,8 @@ }, "property": { "type": "Identifier", - "start": 16748, - "end": 16753, + "start": 16791, + "end": 16796, "loc": { "start": { "line": 433, @@ -23928,14 +23934,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 16724 + "parenStart": 16767 } }, "operator": "-", "right": { "type": "BinaryExpression", - "start": 16757, - "end": 16780, + "start": 16800, + "end": 16823, "loc": { "start": { "line": 433, @@ -23948,8 +23954,8 @@ }, "left": { "type": "MemberExpression", - "start": 16757, - "end": 16776, + "start": 16800, + "end": 16819, "loc": { "start": { "line": 433, @@ -23962,8 +23968,8 @@ }, "object": { "type": "MemberExpression", - "start": 16757, - "end": 16770, + "start": 16800, + "end": 16813, "loc": { "start": { "line": 433, @@ -23976,8 +23982,8 @@ }, "object": { "type": "ThisExpression", - "start": 16757, - "end": 16761, + "start": 16800, + "end": 16804, "loc": { "start": { "line": 433, @@ -23991,8 +23997,8 @@ }, "property": { "type": "Identifier", - "start": 16762, - "end": 16770, + "start": 16805, + "end": 16813, "loc": { "start": { "line": 433, @@ -24010,8 +24016,8 @@ }, "property": { "type": "Identifier", - "start": 16771, - "end": 16776, + "start": 16814, + "end": 16819, "loc": { "start": { "line": 433, @@ -24030,8 +24036,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 16779, - "end": 16780, + "start": 16822, + "end": 16823, "loc": { "start": { "line": 433, @@ -24053,8 +24059,8 @@ }, { "type": "ObjectProperty", - "start": 16791, - "end": 16852, + "start": 16834, + "end": 16895, "loc": { "start": { "line": 434, @@ -24070,8 +24076,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 16791, - "end": 16792, + "start": 16834, + "end": 16835, "loc": { "start": { "line": 434, @@ -24087,8 +24093,8 @@ }, "value": { "type": "BinaryExpression", - "start": 16794, - "end": 16852, + "start": 16837, + "end": 16895, "loc": { "start": { "line": 434, @@ -24101,8 +24107,8 @@ }, "left": { "type": "BinaryExpression", - "start": 16795, - "end": 16824, + "start": 16838, + "end": 16867, "loc": { "start": { "line": 434, @@ -24115,8 +24121,8 @@ }, "left": { "type": "MemberExpression", - "start": 16795, - "end": 16801, + "start": 16838, + "end": 16844, "loc": { "start": { "line": 434, @@ -24129,8 +24135,8 @@ }, "object": { "type": "Identifier", - "start": 16795, - "end": 16799, + "start": 16838, + "end": 16842, "loc": { "start": { "line": 434, @@ -24146,8 +24152,8 @@ }, "property": { "type": "Identifier", - "start": 16800, - "end": 16801, + "start": 16843, + "end": 16844, "loc": { "start": { "line": 434, @@ -24166,8 +24172,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 16804, - "end": 16824, + "start": 16847, + "end": 16867, "loc": { "start": { "line": 434, @@ -24180,8 +24186,8 @@ }, "object": { "type": "MemberExpression", - "start": 16804, - "end": 16817, + "start": 16847, + "end": 16860, "loc": { "start": { "line": 434, @@ -24194,8 +24200,8 @@ }, "object": { "type": "ThisExpression", - "start": 16804, - "end": 16808, + "start": 16847, + "end": 16851, "loc": { "start": { "line": 434, @@ -24209,8 +24215,8 @@ }, "property": { "type": "Identifier", - "start": 16809, - "end": 16817, + "start": 16852, + "end": 16860, "loc": { "start": { "line": 434, @@ -24228,8 +24234,8 @@ }, "property": { "type": "Identifier", - "start": 16818, - "end": 16824, + "start": 16861, + "end": 16867, "loc": { "start": { "line": 434, @@ -24247,14 +24253,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 16794 + "parenStart": 16837 } }, "operator": "-", "right": { "type": "BinaryExpression", - "start": 16828, - "end": 16852, + "start": 16871, + "end": 16895, "loc": { "start": { "line": 434, @@ -24267,8 +24273,8 @@ }, "left": { "type": "MemberExpression", - "start": 16828, - "end": 16848, + "start": 16871, + "end": 16891, "loc": { "start": { "line": 434, @@ -24281,8 +24287,8 @@ }, "object": { "type": "MemberExpression", - "start": 16828, - "end": 16841, + "start": 16871, + "end": 16884, "loc": { "start": { "line": 434, @@ -24295,8 +24301,8 @@ }, "object": { "type": "ThisExpression", - "start": 16828, - "end": 16832, + "start": 16871, + "end": 16875, "loc": { "start": { "line": 434, @@ -24310,8 +24316,8 @@ }, "property": { "type": "Identifier", - "start": 16833, - "end": 16841, + "start": 16876, + "end": 16884, "loc": { "start": { "line": 434, @@ -24329,8 +24335,8 @@ }, "property": { "type": "Identifier", - "start": 16842, - "end": 16848, + "start": 16885, + "end": 16891, "loc": { "start": { "line": 434, @@ -24349,8 +24355,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 16851, - "end": 16852, + "start": 16894, + "end": 16895, "loc": { "start": { "line": 434, @@ -24380,8 +24386,8 @@ { "type": "CommentLine", "value": " Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.", - "start": 16552, - "end": 16686, + "start": 16595, + "end": 16729, "loc": { "start": { "line": 431, @@ -24398,8 +24404,8 @@ { "type": "CommentLine", "value": " Store the next node position", - "start": 16871, - "end": 16902, + "start": 16914, + "end": 16945, "loc": { "start": { "line": 436, @@ -24415,8 +24421,8 @@ }, { "type": "ExpressionStatement", - "start": 16910, - "end": 16956, + "start": 16953, + "end": 16999, "loc": { "start": { "line": 437, @@ -24429,8 +24435,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 16910, - "end": 16955, + "start": 16953, + "end": 16998, "loc": { "start": { "line": 437, @@ -24444,8 +24450,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 16910, - "end": 16945, + "start": 16953, + "end": 16988, "loc": { "start": { "line": 437, @@ -24458,8 +24464,8 @@ }, "object": { "type": "MemberExpression", - "start": 16910, - "end": 16933, + "start": 16953, + "end": 16976, "loc": { "start": { "line": 437, @@ -24472,8 +24478,8 @@ }, "object": { "type": "Identifier", - "start": 16910, - "end": 16922, + "start": 16953, + "end": 16965, "loc": { "start": { "line": 437, @@ -24490,8 +24496,8 @@ }, "property": { "type": "Identifier", - "start": 16923, - "end": 16933, + "start": 16966, + "end": 16976, "loc": { "start": { "line": 437, @@ -24510,8 +24516,8 @@ }, "property": { "type": "Identifier", - "start": 16934, - "end": 16945, + "start": 16977, + "end": 16988, "loc": { "start": { "line": 437, @@ -24530,8 +24536,8 @@ }, "right": { "type": "Identifier", - "start": 16948, - "end": 16955, + "start": 16991, + "end": 16998, "loc": { "start": { "line": 437, @@ -24551,8 +24557,8 @@ { "type": "CommentLine", "value": " Store the next node position", - "start": 16871, - "end": 16902, + "start": 16914, + "end": 16945, "loc": { "start": { "line": 436, @@ -24569,8 +24575,8 @@ { "type": "CommentLine", "value": " Get the angle from the instance's position to the next node", - "start": 16964, - "end": 17026, + "start": 17007, + "end": 17069, "loc": { "start": { "line": 438, @@ -24586,8 +24592,8 @@ }, { "type": "ExpressionStatement", - "start": 17034, - "end": 17137, + "start": 17077, + "end": 17180, "loc": { "start": { "line": 439, @@ -24600,8 +24606,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17034, - "end": 17136, + "start": 17077, + "end": 17179, "loc": { "start": { "line": 439, @@ -24615,8 +24621,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17034, - "end": 17063, + "start": 17077, + "end": 17106, "loc": { "start": { "line": 439, @@ -24629,8 +24635,8 @@ }, "object": { "type": "MemberExpression", - "start": 17034, - "end": 17057, + "start": 17077, + "end": 17100, "loc": { "start": { "line": 439, @@ -24643,8 +24649,8 @@ }, "object": { "type": "Identifier", - "start": 17034, - "end": 17046, + "start": 17077, + "end": 17089, "loc": { "start": { "line": 439, @@ -24661,8 +24667,8 @@ }, "property": { "type": "Identifier", - "start": 17047, - "end": 17057, + "start": 17090, + "end": 17100, "loc": { "start": { "line": 439, @@ -24681,8 +24687,8 @@ }, "property": { "type": "Identifier", - "start": 17058, - "end": 17063, + "start": 17101, + "end": 17106, "loc": { "start": { "line": 439, @@ -24701,8 +24707,8 @@ }, "right": { "type": "CallExpression", - "start": 17066, - "end": 17136, + "start": 17109, + "end": 17179, "loc": { "start": { "line": 439, @@ -24715,8 +24721,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17066, - "end": 17081, + "start": 17109, + "end": 17124, "loc": { "start": { "line": 439, @@ -24729,8 +24735,8 @@ }, "object": { "type": "Identifier", - "start": 17066, - "end": 17071, + "start": 17109, + "end": 17114, "loc": { "start": { "line": 439, @@ -24746,8 +24752,8 @@ }, "property": { "type": "Identifier", - "start": 17072, - "end": 17081, + "start": 17115, + "end": 17124, "loc": { "start": { "line": 439, @@ -24766,8 +24772,8 @@ "arguments": [ { "type": "Identifier", - "start": 17082, - "end": 17098, + "start": 17125, + "end": 17141, "loc": { "start": { "line": 439, @@ -24783,8 +24789,8 @@ }, { "type": "MemberExpression", - "start": 17100, - "end": 17135, + "start": 17143, + "end": 17178, "loc": { "start": { "line": 439, @@ -24797,8 +24803,8 @@ }, "object": { "type": "MemberExpression", - "start": 17100, - "end": 17123, + "start": 17143, + "end": 17166, "loc": { "start": { "line": 439, @@ -24811,8 +24817,8 @@ }, "object": { "type": "Identifier", - "start": 17100, - "end": 17112, + "start": 17143, + "end": 17155, "loc": { "start": { "line": 439, @@ -24828,8 +24834,8 @@ }, "property": { "type": "Identifier", - "start": 17113, - "end": 17123, + "start": 17156, + "end": 17166, "loc": { "start": { "line": 439, @@ -24847,8 +24853,8 @@ }, "property": { "type": "Identifier", - "start": 17124, - "end": 17135, + "start": 17167, + "end": 17178, "loc": { "start": { "line": 439, @@ -24872,8 +24878,8 @@ { "type": "CommentLine", "value": " Get the angle from the instance's position to the next node", - "start": 16964, - "end": 17026, + "start": 17007, + "end": 17069, "loc": { "start": { "line": 438, @@ -24890,8 +24896,8 @@ { "type": "CommentLine", "value": " Get the trajectory of where to move the instance based on the angle", - "start": 17145, - "end": 17215, + "start": 17188, + "end": 17258, "loc": { "start": { "line": 440, @@ -24907,8 +24913,8 @@ }, { "type": "ExpressionStatement", - "start": 17223, - "end": 17291, + "start": 17266, + "end": 17334, "loc": { "start": { "line": 441, @@ -24921,8 +24927,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17223, - "end": 17290, + "start": 17266, + "end": 17333, "loc": { "start": { "line": 441, @@ -24936,8 +24942,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17223, - "end": 17248, + "start": 17266, + "end": 17291, "loc": { "start": { "line": 441, @@ -24950,8 +24956,8 @@ }, "object": { "type": "MemberExpression", - "start": 17223, - "end": 17246, + "start": 17266, + "end": 17289, "loc": { "start": { "line": 441, @@ -24964,8 +24970,8 @@ }, "object": { "type": "Identifier", - "start": 17223, - "end": 17235, + "start": 17266, + "end": 17278, "loc": { "start": { "line": 441, @@ -24982,8 +24988,8 @@ }, "property": { "type": "Identifier", - "start": 17236, - "end": 17246, + "start": 17279, + "end": 17289, "loc": { "start": { "line": 441, @@ -25002,8 +25008,8 @@ }, "property": { "type": "Identifier", - "start": 17247, - "end": 17248, + "start": 17290, + "end": 17291, "loc": { "start": { "line": 441, @@ -25022,8 +25028,8 @@ }, "right": { "type": "CallExpression", - "start": 17251, - "end": 17290, + "start": 17294, + "end": 17333, "loc": { "start": { "line": 441, @@ -25036,8 +25042,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17251, - "end": 17259, + "start": 17294, + "end": 17302, "loc": { "start": { "line": 441, @@ -25050,8 +25056,8 @@ }, "object": { "type": "Identifier", - "start": 17251, - "end": 17255, + "start": 17294, + "end": 17298, "loc": { "start": { "line": 441, @@ -25067,8 +25073,8 @@ }, "property": { "type": "Identifier", - "start": 17256, - "end": 17259, + "start": 17299, + "end": 17302, "loc": { "start": { "line": 441, @@ -25087,8 +25093,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17260, - "end": 17289, + "start": 17303, + "end": 17332, "loc": { "start": { "line": 441, @@ -25101,8 +25107,8 @@ }, "object": { "type": "MemberExpression", - "start": 17260, - "end": 17283, + "start": 17303, + "end": 17326, "loc": { "start": { "line": 441, @@ -25115,8 +25121,8 @@ }, "object": { "type": "Identifier", - "start": 17260, - "end": 17272, + "start": 17303, + "end": 17315, "loc": { "start": { "line": 441, @@ -25132,8 +25138,8 @@ }, "property": { "type": "Identifier", - "start": 17273, - "end": 17283, + "start": 17316, + "end": 17326, "loc": { "start": { "line": 441, @@ -25151,8 +25157,8 @@ }, "property": { "type": "Identifier", - "start": 17284, - "end": 17289, + "start": 17327, + "end": 17332, "loc": { "start": { "line": 441, @@ -25176,8 +25182,8 @@ { "type": "CommentLine", "value": " Get the trajectory of where to move the instance based on the angle", - "start": 17145, - "end": 17215, + "start": 17188, + "end": 17258, "loc": { "start": { "line": 440, @@ -25193,8 +25199,8 @@ }, { "type": "ExpressionStatement", - "start": 17299, - "end": 17368, + "start": 17342, + "end": 17411, "loc": { "start": { "line": 442, @@ -25207,8 +25213,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17299, - "end": 17367, + "start": 17342, + "end": 17410, "loc": { "start": { "line": 442, @@ -25222,8 +25228,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17299, - "end": 17324, + "start": 17342, + "end": 17367, "loc": { "start": { "line": 442, @@ -25236,8 +25242,8 @@ }, "object": { "type": "MemberExpression", - "start": 17299, - "end": 17322, + "start": 17342, + "end": 17365, "loc": { "start": { "line": 442, @@ -25250,8 +25256,8 @@ }, "object": { "type": "Identifier", - "start": 17299, - "end": 17311, + "start": 17342, + "end": 17354, "loc": { "start": { "line": 442, @@ -25267,8 +25273,8 @@ }, "property": { "type": "Identifier", - "start": 17312, - "end": 17322, + "start": 17355, + "end": 17365, "loc": { "start": { "line": 442, @@ -25286,8 +25292,8 @@ }, "property": { "type": "Identifier", - "start": 17323, - "end": 17324, + "start": 17366, + "end": 17367, "loc": { "start": { "line": 442, @@ -25305,8 +25311,8 @@ }, "right": { "type": "UnaryExpression", - "start": 17327, - "end": 17367, + "start": 17370, + "end": 17410, "loc": { "start": { "line": 442, @@ -25321,8 +25327,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 17328, - "end": 17367, + "start": 17371, + "end": 17410, "loc": { "start": { "line": 442, @@ -25335,8 +25341,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17328, - "end": 17336, + "start": 17371, + "end": 17379, "loc": { "start": { "line": 442, @@ -25349,8 +25355,8 @@ }, "object": { "type": "Identifier", - "start": 17328, - "end": 17332, + "start": 17371, + "end": 17375, "loc": { "start": { "line": 442, @@ -25366,8 +25372,8 @@ }, "property": { "type": "Identifier", - "start": 17333, - "end": 17336, + "start": 17376, + "end": 17379, "loc": { "start": { "line": 442, @@ -25386,8 +25392,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17337, - "end": 17366, + "start": 17380, + "end": 17409, "loc": { "start": { "line": 442, @@ -25400,8 +25406,8 @@ }, "object": { "type": "MemberExpression", - "start": 17337, - "end": 17360, + "start": 17380, + "end": 17403, "loc": { "start": { "line": 442, @@ -25414,8 +25420,8 @@ }, "object": { "type": "Identifier", - "start": 17337, - "end": 17349, + "start": 17380, + "end": 17392, "loc": { "start": { "line": 442, @@ -25431,8 +25437,8 @@ }, "property": { "type": "Identifier", - "start": 17350, - "end": 17360, + "start": 17393, + "end": 17403, "loc": { "start": { "line": 442, @@ -25450,8 +25456,8 @@ }, "property": { "type": "Identifier", - "start": 17361, - "end": 17366, + "start": 17404, + "end": 17409, "loc": { "start": { "line": 442, @@ -25478,8 +25484,8 @@ { "type": "CommentLine", "value": " Update the direction of the instance based on the angle to the next node", - "start": 17376, - "end": 17451, + "start": 17419, + "end": 17494, "loc": { "start": { "line": 443, @@ -25495,8 +25501,8 @@ }, { "type": "ExpressionStatement", - "start": 17459, - "end": 17525, + "start": 17502, + "end": 17568, "loc": { "start": { "line": 444, @@ -25509,8 +25515,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17459, - "end": 17524, + "start": 17502, + "end": 17567, "loc": { "start": { "line": 444, @@ -25524,8 +25530,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17459, - "end": 17472, + "start": 17502, + "end": 17515, "loc": { "start": { "line": 444, @@ -25538,8 +25544,8 @@ }, "object": { "type": "Identifier", - "start": 17459, - "end": 17468, + "start": 17502, + "end": 17511, "loc": { "start": { "line": 444, @@ -25556,8 +25562,8 @@ }, "property": { "type": "Identifier", - "start": 17469, - "end": 17472, + "start": 17512, + "end": 17515, "loc": { "start": { "line": 444, @@ -25576,8 +25582,8 @@ }, "right": { "type": "CallExpression", - "start": 17475, - "end": 17524, + "start": 17518, + "end": 17567, "loc": { "start": { "line": 444, @@ -25590,8 +25596,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17475, - "end": 17493, + "start": 17518, + "end": 17536, "loc": { "start": { "line": 444, @@ -25604,8 +25610,8 @@ }, "object": { "type": "Identifier", - "start": 17475, - "end": 17480, + "start": 17518, + "end": 17523, "loc": { "start": { "line": 444, @@ -25621,8 +25627,8 @@ }, "property": { "type": "Identifier", - "start": 17481, - "end": 17493, + "start": 17524, + "end": 17536, "loc": { "start": { "line": 444, @@ -25641,8 +25647,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17494, - "end": 17523, + "start": 17537, + "end": 17566, "loc": { "start": { "line": 444, @@ -25655,8 +25661,8 @@ }, "object": { "type": "MemberExpression", - "start": 17494, - "end": 17517, + "start": 17537, + "end": 17560, "loc": { "start": { "line": 444, @@ -25669,8 +25675,8 @@ }, "object": { "type": "Identifier", - "start": 17494, - "end": 17506, + "start": 17537, + "end": 17549, "loc": { "start": { "line": 444, @@ -25686,8 +25692,8 @@ }, "property": { "type": "Identifier", - "start": 17507, - "end": 17517, + "start": 17550, + "end": 17560, "loc": { "start": { "line": 444, @@ -25705,8 +25711,8 @@ }, "property": { "type": "Identifier", - "start": 17518, - "end": 17523, + "start": 17561, + "end": 17566, "loc": { "start": { "line": 444, @@ -25730,8 +25736,8 @@ { "type": "CommentLine", "value": " Update the direction of the instance based on the angle to the next node", - "start": 17376, - "end": 17451, + "start": 17419, + "end": 17494, "loc": { "start": { "line": 443, @@ -25748,8 +25754,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 17533, - "end": 17592, + "start": 17576, + "end": 17635, "loc": { "start": { "line": 445, @@ -25765,8 +25771,8 @@ }, { "type": "IfStatement", - "start": 17600, - "end": 17996, + "start": 17643, + "end": 18039, "loc": { "start": { "line": 446, @@ -25779,8 +25785,8 @@ }, "test": { "type": "BinaryExpression", - "start": 17604, - "end": 17637, + "start": 17647, + "end": 17680, "loc": { "start": { "line": 446, @@ -25793,8 +25799,8 @@ }, "left": { "type": "MemberExpression", - "start": 17604, - "end": 17621, + "start": 17647, + "end": 17664, "loc": { "start": { "line": 446, @@ -25807,8 +25813,8 @@ }, "object": { "type": "Identifier", - "start": 17604, - "end": 17616, + "start": 17647, + "end": 17659, "loc": { "start": { "line": 446, @@ -25825,8 +25831,8 @@ }, "property": { "type": "Identifier", - "start": 17617, - "end": 17621, + "start": 17660, + "end": 17664, "loc": { "start": { "line": 446, @@ -25846,8 +25852,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 17626, - "end": 17637, + "start": 17669, + "end": 17680, "loc": { "start": { "line": 446, @@ -25868,8 +25874,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 17639, - "end": 17730, + "start": 17682, + "end": 17773, "loc": { "start": { "line": 446, @@ -25883,8 +25889,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 17649, - "end": 17721, + "start": 17692, + "end": 17764, "loc": { "start": { "line": 447, @@ -25897,8 +25903,8 @@ }, "expression": { "type": "CallExpression", - "start": 17649, - "end": 17720, + "start": 17692, + "end": 17763, "loc": { "start": { "line": 447, @@ -25911,8 +25917,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17649, - "end": 17666, + "start": 17692, + "end": 17709, "loc": { "start": { "line": 447, @@ -25925,8 +25931,8 @@ }, "object": { "type": "Identifier", - "start": 17649, - "end": 17658, + "start": 17692, + "end": 17701, "loc": { "start": { "line": 447, @@ -25942,8 +25948,8 @@ }, "property": { "type": "Identifier", - "start": 17659, - "end": 17666, + "start": 17702, + "end": 17709, "loc": { "start": { "line": 447, @@ -25962,8 +25968,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17667, - "end": 17692, + "start": 17710, + "end": 17735, "loc": { "start": { "line": 447, @@ -25976,8 +25982,8 @@ }, "object": { "type": "MemberExpression", - "start": 17667, - "end": 17690, + "start": 17710, + "end": 17733, "loc": { "start": { "line": 447, @@ -25990,8 +25996,8 @@ }, "object": { "type": "Identifier", - "start": 17667, - "end": 17679, + "start": 17710, + "end": 17722, "loc": { "start": { "line": 447, @@ -26007,8 +26013,8 @@ }, "property": { "type": "Identifier", - "start": 17680, - "end": 17690, + "start": 17723, + "end": 17733, "loc": { "start": { "line": 447, @@ -26026,8 +26032,8 @@ }, "property": { "type": "Identifier", - "start": 17691, - "end": 17692, + "start": 17734, + "end": 17735, "loc": { "start": { "line": 447, @@ -26045,8 +26051,8 @@ }, { "type": "MemberExpression", - "start": 17694, - "end": 17719, + "start": 17737, + "end": 17762, "loc": { "start": { "line": 447, @@ -26059,8 +26065,8 @@ }, "object": { "type": "MemberExpression", - "start": 17694, - "end": 17717, + "start": 17737, + "end": 17760, "loc": { "start": { "line": 447, @@ -26073,8 +26079,8 @@ }, "object": { "type": "Identifier", - "start": 17694, - "end": 17706, + "start": 17737, + "end": 17749, "loc": { "start": { "line": 447, @@ -26090,8 +26096,8 @@ }, "property": { "type": "Identifier", - "start": 17707, - "end": 17717, + "start": 17750, + "end": 17760, "loc": { "start": { "line": 447, @@ -26109,8 +26115,8 @@ }, "property": { "type": "Identifier", - "start": 17718, - "end": 17719, + "start": 17761, + "end": 17762, "loc": { "start": { "line": 447, @@ -26134,8 +26140,8 @@ }, "alternate": { "type": "IfStatement", - "start": 17736, - "end": 17996, + "start": 17779, + "end": 18039, "loc": { "start": { "line": 448, @@ -26148,8 +26154,8 @@ }, "test": { "type": "BinaryExpression", - "start": 17740, - "end": 17772, + "start": 17783, + "end": 17815, "loc": { "start": { "line": 448, @@ -26162,8 +26168,8 @@ }, "left": { "type": "MemberExpression", - "start": 17740, - "end": 17757, + "start": 17783, + "end": 17800, "loc": { "start": { "line": 448, @@ -26176,8 +26182,8 @@ }, "object": { "type": "Identifier", - "start": 17740, - "end": 17752, + "start": 17783, + "end": 17795, "loc": { "start": { "line": 448, @@ -26193,8 +26199,8 @@ }, "property": { "type": "Identifier", - "start": 17753, - "end": 17757, + "start": 17796, + "end": 17800, "loc": { "start": { "line": 448, @@ -26213,8 +26219,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 17762, - "end": 17772, + "start": 17805, + "end": 17815, "loc": { "start": { "line": 448, @@ -26234,8 +26240,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 17774, - "end": 17996, + "start": 17817, + "end": 18039, "loc": { "start": { "line": 448, @@ -26249,8 +26255,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 17784, - "end": 17844, + "start": 17827, + "end": 17887, "loc": { "start": { "line": 449, @@ -26264,8 +26270,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 17790, - "end": 17843, + "start": 17833, + "end": 17886, "loc": { "start": { "line": 449, @@ -26278,8 +26284,8 @@ }, "id": { "type": "Identifier", - "start": 17790, - "end": 17795, + "start": 17833, + "end": 17838, "loc": { "start": { "line": 449, @@ -26295,8 +26301,8 @@ }, "init": { "type": "BinaryExpression", - "start": 17798, - "end": 17843, + "start": 17841, + "end": 17886, "loc": { "start": { "line": 449, @@ -26309,8 +26315,8 @@ }, "left": { "type": "MemberExpression", - "start": 17798, - "end": 17826, + "start": 17841, + "end": 17869, "loc": { "start": { "line": 449, @@ -26323,8 +26329,8 @@ }, "object": { "type": "Identifier", - "start": 17798, - "end": 17810, + "start": 17841, + "end": 17853, "loc": { "start": { "line": 449, @@ -26340,8 +26346,8 @@ }, "property": { "type": "Identifier", - "start": 17811, - "end": 17826, + "start": 17854, + "end": 17869, "loc": { "start": { "line": 449, @@ -26360,8 +26366,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 17829, - "end": 17843, + "start": 17872, + "end": 17886, "loc": { "start": { "line": 449, @@ -26374,8 +26380,8 @@ }, "object": { "type": "ThisExpression", - "start": 17829, - "end": 17833, + "start": 17872, + "end": 17876, "loc": { "start": { "line": 449, @@ -26389,8 +26395,8 @@ }, "property": { "type": "Identifier", - "start": 17834, - "end": 17843, + "start": 17877, + "end": 17886, "loc": { "start": { "line": 449, @@ -26413,8 +26419,8 @@ }, { "type": "ExpressionStatement", - "start": 17853, - "end": 17987, + "start": 17896, + "end": 18030, "loc": { "start": { "line": 450, @@ -26427,8 +26433,8 @@ }, "expression": { "type": "CallExpression", - "start": 17853, - "end": 17986, + "start": 17896, + "end": 18029, "loc": { "start": { "line": 450, @@ -26441,8 +26447,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17853, - "end": 17869, + "start": 17896, + "end": 17912, "loc": { "start": { "line": 450, @@ -26455,8 +26461,8 @@ }, "object": { "type": "Identifier", - "start": 17853, - "end": 17862, + "start": 17896, + "end": 17905, "loc": { "start": { "line": 450, @@ -26472,8 +26478,8 @@ }, "property": { "type": "Identifier", - "start": 17863, - "end": 17869, + "start": 17906, + "end": 17912, "loc": { "start": { "line": 450, @@ -26492,8 +26498,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 17870, - "end": 17917, + "start": 17913, + "end": 17960, "loc": { "start": { "line": 450, @@ -26506,8 +26512,8 @@ }, "left": { "type": "MemberExpression", - "start": 17870, - "end": 17881, + "start": 17913, + "end": 17924, "loc": { "start": { "line": 450, @@ -26520,8 +26526,8 @@ }, "object": { "type": "Identifier", - "start": 17870, - "end": 17879, + "start": 17913, + "end": 17922, "loc": { "start": { "line": 450, @@ -26537,8 +26543,8 @@ }, "property": { "type": "Identifier", - "start": 17880, - "end": 17881, + "start": 17923, + "end": 17924, "loc": { "start": { "line": 450, @@ -26557,8 +26563,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 17884, - "end": 17917, + "start": 17927, + "end": 17960, "loc": { "start": { "line": 450, @@ -26571,8 +26577,8 @@ }, "left": { "type": "Identifier", - "start": 17884, - "end": 17889, + "start": 17927, + "end": 17932, "loc": { "start": { "line": 450, @@ -26589,8 +26595,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 17892, - "end": 17917, + "start": 17935, + "end": 17960, "loc": { "start": { "line": 450, @@ -26603,8 +26609,8 @@ }, "object": { "type": "MemberExpression", - "start": 17892, - "end": 17915, + "start": 17935, + "end": 17958, "loc": { "start": { "line": 450, @@ -26617,8 +26623,8 @@ }, "object": { "type": "Identifier", - "start": 17892, - "end": 17904, + "start": 17935, + "end": 17947, "loc": { "start": { "line": 450, @@ -26634,8 +26640,8 @@ }, "property": { "type": "Identifier", - "start": 17905, - "end": 17915, + "start": 17948, + "end": 17958, "loc": { "start": { "line": 450, @@ -26653,8 +26659,8 @@ }, "property": { "type": "Identifier", - "start": 17916, - "end": 17917, + "start": 17959, + "end": 17960, "loc": { "start": { "line": 450, @@ -26674,8 +26680,8 @@ }, { "type": "BinaryExpression", - "start": 17919, - "end": 17966, + "start": 17962, + "end": 18009, "loc": { "start": { "line": 450, @@ -26688,8 +26694,8 @@ }, "left": { "type": "MemberExpression", - "start": 17919, - "end": 17930, + "start": 17962, + "end": 17973, "loc": { "start": { "line": 450, @@ -26702,8 +26708,8 @@ }, "object": { "type": "Identifier", - "start": 17919, - "end": 17928, + "start": 17962, + "end": 17971, "loc": { "start": { "line": 450, @@ -26719,8 +26725,8 @@ }, "property": { "type": "Identifier", - "start": 17929, - "end": 17930, + "start": 17972, + "end": 17973, "loc": { "start": { "line": 450, @@ -26739,8 +26745,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 17933, - "end": 17966, + "start": 17976, + "end": 18009, "loc": { "start": { "line": 450, @@ -26753,8 +26759,8 @@ }, "left": { "type": "Identifier", - "start": 17933, - "end": 17938, + "start": 17976, + "end": 17981, "loc": { "start": { "line": 450, @@ -26771,8 +26777,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 17941, - "end": 17966, + "start": 17984, + "end": 18009, "loc": { "start": { "line": 450, @@ -26785,8 +26791,8 @@ }, "object": { "type": "MemberExpression", - "start": 17941, - "end": 17964, + "start": 17984, + "end": 18007, "loc": { "start": { "line": 450, @@ -26799,8 +26805,8 @@ }, "object": { "type": "Identifier", - "start": 17941, - "end": 17953, + "start": 17984, + "end": 17996, "loc": { "start": { "line": 450, @@ -26816,8 +26822,8 @@ }, "property": { "type": "Identifier", - "start": 17954, - "end": 17964, + "start": 17997, + "end": 18007, "loc": { "start": { "line": 450, @@ -26835,8 +26841,8 @@ }, "property": { "type": "Identifier", - "start": 17965, - "end": 17966, + "start": 18008, + "end": 18009, "loc": { "start": { "line": 450, @@ -26856,8 +26862,8 @@ }, { "type": "MemberExpression", - "start": 17968, - "end": 17985, + "start": 18011, + "end": 18028, "loc": { "start": { "line": 450, @@ -26870,8 +26876,8 @@ }, "object": { "type": "Identifier", - "start": 17968, - "end": 17977, + "start": 18011, + "end": 18020, "loc": { "start": { "line": 450, @@ -26887,8 +26893,8 @@ }, "property": { "type": "Identifier", - "start": 17978, - "end": 17985, + "start": 18021, + "end": 18028, "loc": { "start": { "line": 450, @@ -26916,8 +26922,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 17533, - "end": 17592, + "start": 17576, + "end": 17635, "loc": { "start": { "line": 445, @@ -26933,8 +26939,8 @@ }, { "type": "ExpressionStatement", - "start": 18004, - "end": 18031, + "start": 18047, + "end": 18074, "loc": { "start": { "line": 452, @@ -26947,8 +26953,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18004, - "end": 18030, + "start": 18047, + "end": 18073, "loc": { "start": { "line": 452, @@ -26962,8 +26968,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18004, - "end": 18023, + "start": 18047, + "end": 18066, "loc": { "start": { "line": 452, @@ -26976,8 +26982,8 @@ }, "object": { "type": "Identifier", - "start": 18004, - "end": 18016, + "start": 18047, + "end": 18059, "loc": { "start": { "line": 452, @@ -26993,8 +26999,8 @@ }, "property": { "type": "Identifier", - "start": 18017, - "end": 18023, + "start": 18060, + "end": 18066, "loc": { "start": { "line": 452, @@ -27012,8 +27018,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 18026, - "end": 18030, + "start": 18069, + "end": 18073, "loc": { "start": { "line": 452, @@ -27033,8 +27039,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 18045, - "end": 19728, + "start": 18088, + "end": 19771, "loc": { "start": { "line": 453, @@ -27048,8 +27054,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 18139, - "end": 18229, + "start": 18182, + "end": 18272, "loc": { "start": { "line": 455, @@ -27063,8 +27069,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 18145, - "end": 18228, + "start": 18188, + "end": 18271, "loc": { "start": { "line": 455, @@ -27077,8 +27083,8 @@ }, "id": { "type": "Identifier", - "start": 18145, - "end": 18153, + "start": 18188, + "end": 18196, "loc": { "start": { "line": 455, @@ -27095,8 +27101,8 @@ }, "init": { "type": "CallExpression", - "start": 18156, - "end": 18228, + "start": 18199, + "end": 18271, "loc": { "start": { "line": 455, @@ -27109,8 +27115,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18156, - "end": 18173, + "start": 18199, + "end": 18216, "loc": { "start": { "line": 455, @@ -27123,8 +27129,8 @@ }, "object": { "type": "Identifier", - "start": 18156, - "end": 18161, + "start": 18199, + "end": 18204, "loc": { "start": { "line": 455, @@ -27140,8 +27146,8 @@ }, "property": { "type": "Identifier", - "start": 18162, - "end": 18173, + "start": 18205, + "end": 18216, "loc": { "start": { "line": 455, @@ -27160,8 +27166,8 @@ "arguments": [ { "type": "Identifier", - "start": 18174, - "end": 18190, + "start": 18217, + "end": 18233, "loc": { "start": { "line": 455, @@ -27177,8 +27183,8 @@ }, { "type": "MemberExpression", - "start": 18192, - "end": 18227, + "start": 18235, + "end": 18270, "loc": { "start": { "line": 455, @@ -27191,8 +27197,8 @@ }, "object": { "type": "MemberExpression", - "start": 18192, - "end": 18215, + "start": 18235, + "end": 18258, "loc": { "start": { "line": 455, @@ -27205,8 +27211,8 @@ }, "object": { "type": "Identifier", - "start": 18192, - "end": 18204, + "start": 18235, + "end": 18247, "loc": { "start": { "line": 455, @@ -27222,8 +27228,8 @@ }, "property": { "type": "Identifier", - "start": 18205, - "end": 18215, + "start": 18248, + "end": 18258, "loc": { "start": { "line": 455, @@ -27241,8 +27247,8 @@ }, "property": { "type": "Identifier", - "start": 18216, - "end": 18227, + "start": 18259, + "end": 18270, "loc": { "start": { "line": 455, @@ -27268,8 +27274,8 @@ { "type": "CommentLine", "value": " Get the distance from the instance's position to the next node's position.", - "start": 18054, - "end": 18131, + "start": 18097, + "end": 18174, "loc": { "start": { "line": 454, @@ -27286,8 +27292,8 @@ { "type": "CommentLine", "value": " Stop moving when you are this close distance.", - "start": 18237, - "end": 18285, + "start": 18280, + "end": 18328, "loc": { "start": { "line": 456, @@ -27303,8 +27309,8 @@ }, { "type": "IfStatement", - "start": 18293, - "end": 19720, + "start": 18336, + "end": 19763, "loc": { "start": { "line": 457, @@ -27317,8 +27323,8 @@ }, "test": { "type": "BinaryExpression", - "start": 18297, - "end": 18333, + "start": 18340, + "end": 18376, "loc": { "start": { "line": 457, @@ -27331,8 +27337,8 @@ }, "left": { "type": "Identifier", - "start": 18297, - "end": 18305, + "start": 18340, + "end": 18348, "loc": { "start": { "line": 457, @@ -27350,8 +27356,8 @@ "operator": "<=", "right": { "type": "MemberExpression", - "start": 18309, - "end": 18333, + "start": 18352, + "end": 18376, "loc": { "start": { "line": 457, @@ -27364,8 +27370,8 @@ }, "object": { "type": "Identifier", - "start": 18309, - "end": 18321, + "start": 18352, + "end": 18364, "loc": { "start": { "line": 457, @@ -27381,8 +27387,8 @@ }, "property": { "type": "Identifier", - "start": 18322, - "end": 18333, + "start": 18365, + "end": 18376, "loc": { "start": { "line": 457, @@ -27402,8 +27408,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 18335, - "end": 18848, + "start": 18378, + "end": 18891, "loc": { "start": { "line": 457, @@ -27417,8 +27423,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 18368, - "end": 18396, + "start": 18411, + "end": 18439, "loc": { "start": { "line": 459, @@ -27431,8 +27437,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18368, - "end": 18395, + "start": 18411, + "end": 18438, "loc": { "start": { "line": 459, @@ -27446,8 +27452,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18368, - "end": 18387, + "start": 18411, + "end": 18430, "loc": { "start": { "line": 459, @@ -27460,8 +27466,8 @@ }, "object": { "type": "Identifier", - "start": 18368, - "end": 18380, + "start": 18411, + "end": 18423, "loc": { "start": { "line": 459, @@ -27478,8 +27484,8 @@ }, "property": { "type": "Identifier", - "start": 18381, - "end": 18387, + "start": 18424, + "end": 18430, "loc": { "start": { "line": 459, @@ -27498,8 +27504,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 18390, - "end": 18395, + "start": 18433, + "end": 18438, "loc": { "start": { "line": 459, @@ -27518,8 +27524,8 @@ { "type": "CommentLine", "value": " Stop moving", - "start": 18345, - "end": 18359, + "start": 18388, + "end": 18402, "loc": { "start": { "line": 458, @@ -27536,8 +27542,8 @@ { "type": "CommentLine", "value": " Reset stuck counter when moving has \"stopped\".", - "start": 18405, - "end": 18454, + "start": 18448, + "end": 18497, "loc": { "start": { "line": 460, @@ -27553,8 +27559,8 @@ }, { "type": "ExpressionStatement", - "start": 18463, - "end": 18493, + "start": 18506, + "end": 18536, "loc": { "start": { "line": 461, @@ -27567,8 +27573,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18463, - "end": 18492, + "start": 18506, + "end": 18535, "loc": { "start": { "line": 461, @@ -27582,8 +27588,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18463, - "end": 18488, + "start": 18506, + "end": 18531, "loc": { "start": { "line": 461, @@ -27596,8 +27602,8 @@ }, "object": { "type": "Identifier", - "start": 18463, - "end": 18475, + "start": 18506, + "end": 18518, "loc": { "start": { "line": 461, @@ -27614,8 +27620,8 @@ }, "property": { "type": "Identifier", - "start": 18476, - "end": 18488, + "start": 18519, + "end": 18531, "loc": { "start": { "line": 461, @@ -27634,8 +27640,8 @@ }, "right": { "type": "NumericLiteral", - "start": 18491, - "end": 18492, + "start": 18534, + "end": 18535, "loc": { "start": { "line": 461, @@ -27658,8 +27664,8 @@ { "type": "CommentLine", "value": " Reset stuck counter when moving has \"stopped\".", - "start": 18405, - "end": 18454, + "start": 18448, + "end": 18497, "loc": { "start": { "line": 460, @@ -27676,8 +27682,8 @@ { "type": "CommentLine", "value": " If there is no more nodes left in the path", - "start": 18502, - "end": 18547, + "start": 18545, + "end": 18590, "loc": { "start": { "line": 462, @@ -27693,8 +27699,8 @@ }, { "type": "IfStatement", - "start": 18556, - "end": 18839, + "start": 18599, + "end": 18882, "loc": { "start": { "line": 463, @@ -27707,8 +27713,8 @@ }, "test": { "type": "UnaryExpression", - "start": 18560, - "end": 18585, + "start": 18603, + "end": 18628, "loc": { "start": { "line": 463, @@ -27723,8 +27729,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 18561, - "end": 18585, + "start": 18604, + "end": 18628, "loc": { "start": { "line": 463, @@ -27737,8 +27743,8 @@ }, "object": { "type": "MemberExpression", - "start": 18561, - "end": 18578, + "start": 18604, + "end": 18621, "loc": { "start": { "line": 463, @@ -27751,8 +27757,8 @@ }, "object": { "type": "Identifier", - "start": 18561, - "end": 18573, + "start": 18604, + "end": 18616, "loc": { "start": { "line": 463, @@ -27769,8 +27775,8 @@ }, "property": { "type": "Identifier", - "start": 18574, - "end": 18578, + "start": 18617, + "end": 18621, "loc": { "start": { "line": 463, @@ -27789,8 +27795,8 @@ }, "property": { "type": "Identifier", - "start": 18579, - "end": 18585, + "start": 18622, + "end": 18628, "loc": { "start": { "line": 463, @@ -27814,8 +27820,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 18587, - "end": 18839, + "start": 18630, + "end": 18882, "loc": { "start": { "line": 463, @@ -27829,8 +27835,8 @@ "body": [ { "type": "IfStatement", - "start": 18676, - "end": 18799, + "start": 18719, + "end": 18842, "loc": { "start": { "line": 465, @@ -27843,8 +27849,8 @@ }, "test": { "type": "BinaryExpression", - "start": 18680, - "end": 18737, + "start": 18723, + "end": 18780, "loc": { "start": { "line": 465, @@ -27857,8 +27863,8 @@ }, "left": { "type": "UnaryExpression", - "start": 18680, - "end": 18722, + "start": 18723, + "end": 18765, "loc": { "start": { "line": 465, @@ -27873,8 +27879,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 18687, - "end": 18721, + "start": 18730, + "end": 18764, "loc": { "start": { "line": 465, @@ -27887,8 +27893,8 @@ }, "object": { "type": "MemberExpression", - "start": 18687, - "end": 18706, + "start": 18730, + "end": 18749, "loc": { "start": { "line": 465, @@ -27901,8 +27907,8 @@ }, "object": { "type": "Identifier", - "start": 18687, - "end": 18699, + "start": 18730, + "end": 18742, "loc": { "start": { "line": 465, @@ -27919,8 +27925,8 @@ }, "property": { "type": "Identifier", - "start": 18700, - "end": 18706, + "start": 18743, + "end": 18749, "loc": { "start": { "line": 465, @@ -27939,8 +27945,8 @@ }, "property": { "type": "Identifier", - "start": 18707, - "end": 18721, + "start": 18750, + "end": 18764, "loc": { "start": { "line": 465, @@ -27958,7 +27964,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 18686 + "parenStart": 18729 } }, "extra": { @@ -27969,8 +27975,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 18727, - "end": 18737, + "start": 18770, + "end": 18780, "loc": { "start": { "line": 465, @@ -27991,8 +27997,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 18739, - "end": 18799, + "start": 18782, + "end": 18842, "loc": { "start": { "line": 465, @@ -28006,8 +28012,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 18751, - "end": 18788, + "start": 18794, + "end": 18831, "loc": { "start": { "line": 466, @@ -28020,8 +28026,8 @@ }, "expression": { "type": "CallExpression", - "start": 18751, - "end": 18787, + "start": 18794, + "end": 18830, "loc": { "start": { "line": 466, @@ -28034,8 +28040,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18751, - "end": 18785, + "start": 18794, + "end": 18828, "loc": { "start": { "line": 466, @@ -28048,8 +28054,8 @@ }, "object": { "type": "MemberExpression", - "start": 18751, - "end": 18770, + "start": 18794, + "end": 18813, "loc": { "start": { "line": 466, @@ -28062,8 +28068,8 @@ }, "object": { "type": "Identifier", - "start": 18751, - "end": 18763, + "start": 18794, + "end": 18806, "loc": { "start": { "line": 466, @@ -28079,8 +28085,8 @@ }, "property": { "type": "Identifier", - "start": 18764, - "end": 18770, + "start": 18807, + "end": 18813, "loc": { "start": { "line": 466, @@ -28098,8 +28104,8 @@ }, "property": { "type": "Identifier", - "start": 18771, - "end": 18785, + "start": 18814, + "end": 18828, "loc": { "start": { "line": 466, @@ -28126,8 +28132,8 @@ { "type": "CommentLine", "value": " You have completed the path. Call the event function if supplied.", - "start": 18598, - "end": 18666, + "start": 18641, + "end": 18709, "loc": { "start": { "line": 464, @@ -28143,8 +28149,8 @@ }, { "type": "ExpressionStatement", - "start": 18809, - "end": 18829, + "start": 18852, + "end": 18872, "loc": { "start": { "line": 468, @@ -28157,8 +28163,8 @@ }, "expression": { "type": "CallExpression", - "start": 18809, - "end": 18828, + "start": 18852, + "end": 18871, "loc": { "start": { "line": 468, @@ -28171,8 +28177,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18809, - "end": 18817, + "start": 18852, + "end": 18860, "loc": { "start": { "line": 468, @@ -28185,8 +28191,8 @@ }, "object": { "type": "ThisExpression", - "start": 18809, - "end": 18813, + "start": 18852, + "end": 18856, "loc": { "start": { "line": 468, @@ -28200,8 +28206,8 @@ }, "property": { "type": "Identifier", - "start": 18814, - "end": 18817, + "start": 18857, + "end": 18860, "loc": { "start": { "line": 468, @@ -28220,8 +28226,8 @@ "arguments": [ { "type": "Identifier", - "start": 18818, - "end": 18827, + "start": 18861, + "end": 18870, "loc": { "start": { "line": 468, @@ -28246,8 +28252,8 @@ { "type": "CommentLine", "value": " If there is no more nodes left in the path", - "start": 18502, - "end": 18547, + "start": 18545, + "end": 18590, "loc": { "start": { "line": 462, @@ -28266,8 +28272,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 18854, - "end": 19720, + "start": 18897, + "end": 19763, "loc": { "start": { "line": 470, @@ -28281,8 +28287,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 18864, - "end": 18967, + "start": 18907, + "end": 19010, "loc": { "start": { "line": 471, @@ -28295,8 +28301,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18864, - "end": 18966, + "start": 18907, + "end": 19009, "loc": { "start": { "line": 471, @@ -28310,8 +28316,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18864, - "end": 18893, + "start": 18907, + "end": 18936, "loc": { "start": { "line": 471, @@ -28324,8 +28330,8 @@ }, "object": { "type": "MemberExpression", - "start": 18864, - "end": 18887, + "start": 18907, + "end": 18930, "loc": { "start": { "line": 471, @@ -28338,8 +28344,8 @@ }, "object": { "type": "Identifier", - "start": 18864, - "end": 18876, + "start": 18907, + "end": 18919, "loc": { "start": { "line": 471, @@ -28355,8 +28361,8 @@ }, "property": { "type": "Identifier", - "start": 18877, - "end": 18887, + "start": 18920, + "end": 18930, "loc": { "start": { "line": 471, @@ -28374,8 +28380,8 @@ }, "property": { "type": "Identifier", - "start": 18888, - "end": 18893, + "start": 18931, + "end": 18936, "loc": { "start": { "line": 471, @@ -28393,8 +28399,8 @@ }, "right": { "type": "CallExpression", - "start": 18896, - "end": 18966, + "start": 18939, + "end": 19009, "loc": { "start": { "line": 471, @@ -28407,8 +28413,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18896, - "end": 18911, + "start": 18939, + "end": 18954, "loc": { "start": { "line": 471, @@ -28421,8 +28427,8 @@ }, "object": { "type": "Identifier", - "start": 18896, - "end": 18901, + "start": 18939, + "end": 18944, "loc": { "start": { "line": 471, @@ -28438,8 +28444,8 @@ }, "property": { "type": "Identifier", - "start": 18902, - "end": 18911, + "start": 18945, + "end": 18954, "loc": { "start": { "line": 471, @@ -28458,8 +28464,8 @@ "arguments": [ { "type": "Identifier", - "start": 18912, - "end": 18928, + "start": 18955, + "end": 18971, "loc": { "start": { "line": 471, @@ -28475,8 +28481,8 @@ }, { "type": "MemberExpression", - "start": 18930, - "end": 18965, + "start": 18973, + "end": 19008, "loc": { "start": { "line": 471, @@ -28489,8 +28495,8 @@ }, "object": { "type": "MemberExpression", - "start": 18930, - "end": 18953, + "start": 18973, + "end": 18996, "loc": { "start": { "line": 471, @@ -28503,8 +28509,8 @@ }, "object": { "type": "Identifier", - "start": 18930, - "end": 18942, + "start": 18973, + "end": 18985, "loc": { "start": { "line": 471, @@ -28520,8 +28526,8 @@ }, "property": { "type": "Identifier", - "start": 18943, - "end": 18953, + "start": 18986, + "end": 18996, "loc": { "start": { "line": 471, @@ -28539,8 +28545,8 @@ }, "property": { "type": "Identifier", - "start": 18954, - "end": 18965, + "start": 18997, + "end": 19008, "loc": { "start": { "line": 471, @@ -28562,8 +28568,8 @@ }, { "type": "ExpressionStatement", - "start": 18976, - "end": 19044, + "start": 19019, + "end": 19087, "loc": { "start": { "line": 472, @@ -28576,8 +28582,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18976, - "end": 19043, + "start": 19019, + "end": 19086, "loc": { "start": { "line": 472, @@ -28591,8 +28597,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18976, - "end": 19001, + "start": 19019, + "end": 19044, "loc": { "start": { "line": 472, @@ -28605,8 +28611,8 @@ }, "object": { "type": "MemberExpression", - "start": 18976, - "end": 18999, + "start": 19019, + "end": 19042, "loc": { "start": { "line": 472, @@ -28619,8 +28625,8 @@ }, "object": { "type": "Identifier", - "start": 18976, - "end": 18988, + "start": 19019, + "end": 19031, "loc": { "start": { "line": 472, @@ -28636,8 +28642,8 @@ }, "property": { "type": "Identifier", - "start": 18989, - "end": 18999, + "start": 19032, + "end": 19042, "loc": { "start": { "line": 472, @@ -28655,8 +28661,8 @@ }, "property": { "type": "Identifier", - "start": 19000, - "end": 19001, + "start": 19043, + "end": 19044, "loc": { "start": { "line": 472, @@ -28674,8 +28680,8 @@ }, "right": { "type": "CallExpression", - "start": 19004, - "end": 19043, + "start": 19047, + "end": 19086, "loc": { "start": { "line": 472, @@ -28688,8 +28694,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19004, - "end": 19012, + "start": 19047, + "end": 19055, "loc": { "start": { "line": 472, @@ -28702,8 +28708,8 @@ }, "object": { "type": "Identifier", - "start": 19004, - "end": 19008, + "start": 19047, + "end": 19051, "loc": { "start": { "line": 472, @@ -28719,8 +28725,8 @@ }, "property": { "type": "Identifier", - "start": 19009, - "end": 19012, + "start": 19052, + "end": 19055, "loc": { "start": { "line": 472, @@ -28739,8 +28745,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19013, - "end": 19042, + "start": 19056, + "end": 19085, "loc": { "start": { "line": 472, @@ -28753,8 +28759,8 @@ }, "object": { "type": "MemberExpression", - "start": 19013, - "end": 19036, + "start": 19056, + "end": 19079, "loc": { "start": { "line": 472, @@ -28767,8 +28773,8 @@ }, "object": { "type": "Identifier", - "start": 19013, - "end": 19025, + "start": 19056, + "end": 19068, "loc": { "start": { "line": 472, @@ -28784,8 +28790,8 @@ }, "property": { "type": "Identifier", - "start": 19026, - "end": 19036, + "start": 19069, + "end": 19079, "loc": { "start": { "line": 472, @@ -28803,8 +28809,8 @@ }, "property": { "type": "Identifier", - "start": 19037, - "end": 19042, + "start": 19080, + "end": 19085, "loc": { "start": { "line": 472, @@ -28826,8 +28832,8 @@ }, { "type": "ExpressionStatement", - "start": 19053, - "end": 19122, + "start": 19096, + "end": 19165, "loc": { "start": { "line": 473, @@ -28840,8 +28846,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 19053, - "end": 19121, + "start": 19096, + "end": 19164, "loc": { "start": { "line": 473, @@ -28855,8 +28861,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 19053, - "end": 19078, + "start": 19096, + "end": 19121, "loc": { "start": { "line": 473, @@ -28869,8 +28875,8 @@ }, "object": { "type": "MemberExpression", - "start": 19053, - "end": 19076, + "start": 19096, + "end": 19119, "loc": { "start": { "line": 473, @@ -28883,8 +28889,8 @@ }, "object": { "type": "Identifier", - "start": 19053, - "end": 19065, + "start": 19096, + "end": 19108, "loc": { "start": { "line": 473, @@ -28900,8 +28906,8 @@ }, "property": { "type": "Identifier", - "start": 19066, - "end": 19076, + "start": 19109, + "end": 19119, "loc": { "start": { "line": 473, @@ -28919,8 +28925,8 @@ }, "property": { "type": "Identifier", - "start": 19077, - "end": 19078, + "start": 19120, + "end": 19121, "loc": { "start": { "line": 473, @@ -28938,8 +28944,8 @@ }, "right": { "type": "UnaryExpression", - "start": 19081, - "end": 19121, + "start": 19124, + "end": 19164, "loc": { "start": { "line": 473, @@ -28954,8 +28960,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 19082, - "end": 19121, + "start": 19125, + "end": 19164, "loc": { "start": { "line": 473, @@ -28968,8 +28974,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19082, - "end": 19090, + "start": 19125, + "end": 19133, "loc": { "start": { "line": 473, @@ -28982,8 +28988,8 @@ }, "object": { "type": "Identifier", - "start": 19082, - "end": 19086, + "start": 19125, + "end": 19129, "loc": { "start": { "line": 473, @@ -28999,8 +29005,8 @@ }, "property": { "type": "Identifier", - "start": 19087, - "end": 19090, + "start": 19130, + "end": 19133, "loc": { "start": { "line": 473, @@ -29019,8 +29025,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19091, - "end": 19120, + "start": 19134, + "end": 19163, "loc": { "start": { "line": 473, @@ -29033,8 +29039,8 @@ }, "object": { "type": "MemberExpression", - "start": 19091, - "end": 19114, + "start": 19134, + "end": 19157, "loc": { "start": { "line": 473, @@ -29047,8 +29053,8 @@ }, "object": { "type": "Identifier", - "start": 19091, - "end": 19103, + "start": 19134, + "end": 19146, "loc": { "start": { "line": 473, @@ -29064,8 +29070,8 @@ }, "property": { "type": "Identifier", - "start": 19104, - "end": 19114, + "start": 19147, + "end": 19157, "loc": { "start": { "line": 473, @@ -29083,8 +29089,8 @@ }, "property": { "type": "Identifier", - "start": 19115, - "end": 19120, + "start": 19158, + "end": 19163, "loc": { "start": { "line": 473, @@ -29110,8 +29116,8 @@ }, { "type": "ExpressionStatement", - "start": 19131, - "end": 19197, + "start": 19174, + "end": 19240, "loc": { "start": { "line": 474, @@ -29124,8 +29130,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 19131, - "end": 19196, + "start": 19174, + "end": 19239, "loc": { "start": { "line": 474, @@ -29139,8 +29145,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 19131, - "end": 19144, + "start": 19174, + "end": 19187, "loc": { "start": { "line": 474, @@ -29153,8 +29159,8 @@ }, "object": { "type": "Identifier", - "start": 19131, - "end": 19140, + "start": 19174, + "end": 19183, "loc": { "start": { "line": 474, @@ -29170,8 +29176,8 @@ }, "property": { "type": "Identifier", - "start": 19141, - "end": 19144, + "start": 19184, + "end": 19187, "loc": { "start": { "line": 474, @@ -29189,8 +29195,8 @@ }, "right": { "type": "CallExpression", - "start": 19147, - "end": 19196, + "start": 19190, + "end": 19239, "loc": { "start": { "line": 474, @@ -29203,8 +29209,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19147, - "end": 19165, + "start": 19190, + "end": 19208, "loc": { "start": { "line": 474, @@ -29217,8 +29223,8 @@ }, "object": { "type": "Identifier", - "start": 19147, - "end": 19152, + "start": 19190, + "end": 19195, "loc": { "start": { "line": 474, @@ -29234,8 +29240,8 @@ }, "property": { "type": "Identifier", - "start": 19153, - "end": 19165, + "start": 19196, + "end": 19208, "loc": { "start": { "line": 474, @@ -29254,8 +29260,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19166, - "end": 19195, + "start": 19209, + "end": 19238, "loc": { "start": { "line": 474, @@ -29268,8 +29274,8 @@ }, "object": { "type": "MemberExpression", - "start": 19166, - "end": 19189, + "start": 19209, + "end": 19232, "loc": { "start": { "line": 474, @@ -29282,8 +29288,8 @@ }, "object": { "type": "Identifier", - "start": 19166, - "end": 19178, + "start": 19209, + "end": 19221, "loc": { "start": { "line": 474, @@ -29299,8 +29305,8 @@ }, "property": { "type": "Identifier", - "start": 19179, - "end": 19189, + "start": 19222, + "end": 19232, "loc": { "start": { "line": 474, @@ -29318,8 +29324,8 @@ }, "property": { "type": "Identifier", - "start": 19190, - "end": 19195, + "start": 19233, + "end": 19238, "loc": { "start": { "line": 474, @@ -29342,8 +29348,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 19206, - "end": 19265, + "start": 19249, + "end": 19308, "loc": { "start": { "line": 475, @@ -29359,8 +29365,8 @@ }, { "type": "IfStatement", - "start": 19274, - "end": 19675, + "start": 19317, + "end": 19718, "loc": { "start": { "line": 476, @@ -29373,8 +29379,8 @@ }, "test": { "type": "BinaryExpression", - "start": 19278, - "end": 19311, + "start": 19321, + "end": 19354, "loc": { "start": { "line": 476, @@ -29387,8 +29393,8 @@ }, "left": { "type": "MemberExpression", - "start": 19278, - "end": 19295, + "start": 19321, + "end": 19338, "loc": { "start": { "line": 476, @@ -29401,8 +29407,8 @@ }, "object": { "type": "Identifier", - "start": 19278, - "end": 19290, + "start": 19321, + "end": 19333, "loc": { "start": { "line": 476, @@ -29419,8 +29425,8 @@ }, "property": { "type": "Identifier", - "start": 19291, - "end": 19295, + "start": 19334, + "end": 19338, "loc": { "start": { "line": 476, @@ -29440,8 +29446,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 19300, - "end": 19311, + "start": 19343, + "end": 19354, "loc": { "start": { "line": 476, @@ -29462,8 +29468,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 19313, - "end": 19406, + "start": 19356, + "end": 19449, "loc": { "start": { "line": 476, @@ -29477,8 +29483,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 19324, - "end": 19396, + "start": 19367, + "end": 19439, "loc": { "start": { "line": 477, @@ -29491,8 +29497,8 @@ }, "expression": { "type": "CallExpression", - "start": 19324, - "end": 19395, + "start": 19367, + "end": 19438, "loc": { "start": { "line": 477, @@ -29505,8 +29511,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19324, - "end": 19341, + "start": 19367, + "end": 19384, "loc": { "start": { "line": 477, @@ -29519,8 +29525,8 @@ }, "object": { "type": "Identifier", - "start": 19324, - "end": 19333, + "start": 19367, + "end": 19376, "loc": { "start": { "line": 477, @@ -29536,8 +29542,8 @@ }, "property": { "type": "Identifier", - "start": 19334, - "end": 19341, + "start": 19377, + "end": 19384, "loc": { "start": { "line": 477, @@ -29556,8 +29562,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19342, - "end": 19367, + "start": 19385, + "end": 19410, "loc": { "start": { "line": 477, @@ -29570,8 +29576,8 @@ }, "object": { "type": "MemberExpression", - "start": 19342, - "end": 19365, + "start": 19385, + "end": 19408, "loc": { "start": { "line": 477, @@ -29584,8 +29590,8 @@ }, "object": { "type": "Identifier", - "start": 19342, - "end": 19354, + "start": 19385, + "end": 19397, "loc": { "start": { "line": 477, @@ -29601,8 +29607,8 @@ }, "property": { "type": "Identifier", - "start": 19355, - "end": 19365, + "start": 19398, + "end": 19408, "loc": { "start": { "line": 477, @@ -29620,8 +29626,8 @@ }, "property": { "type": "Identifier", - "start": 19366, - "end": 19367, + "start": 19409, + "end": 19410, "loc": { "start": { "line": 477, @@ -29639,8 +29645,8 @@ }, { "type": "MemberExpression", - "start": 19369, - "end": 19394, + "start": 19412, + "end": 19437, "loc": { "start": { "line": 477, @@ -29653,8 +29659,8 @@ }, "object": { "type": "MemberExpression", - "start": 19369, - "end": 19392, + "start": 19412, + "end": 19435, "loc": { "start": { "line": 477, @@ -29667,8 +29673,8 @@ }, "object": { "type": "Identifier", - "start": 19369, - "end": 19381, + "start": 19412, + "end": 19424, "loc": { "start": { "line": 477, @@ -29684,8 +29690,8 @@ }, "property": { "type": "Identifier", - "start": 19382, - "end": 19392, + "start": 19425, + "end": 19435, "loc": { "start": { "line": 477, @@ -29703,8 +29709,8 @@ }, "property": { "type": "Identifier", - "start": 19393, - "end": 19394, + "start": 19436, + "end": 19437, "loc": { "start": { "line": 477, @@ -29728,8 +29734,8 @@ }, "alternate": { "type": "IfStatement", - "start": 19412, - "end": 19675, + "start": 19455, + "end": 19718, "loc": { "start": { "line": 478, @@ -29742,8 +29748,8 @@ }, "test": { "type": "BinaryExpression", - "start": 19416, - "end": 19448, + "start": 19459, + "end": 19491, "loc": { "start": { "line": 478, @@ -29756,8 +29762,8 @@ }, "left": { "type": "MemberExpression", - "start": 19416, - "end": 19433, + "start": 19459, + "end": 19476, "loc": { "start": { "line": 478, @@ -29770,8 +29776,8 @@ }, "object": { "type": "Identifier", - "start": 19416, - "end": 19428, + "start": 19459, + "end": 19471, "loc": { "start": { "line": 478, @@ -29787,8 +29793,8 @@ }, "property": { "type": "Identifier", - "start": 19429, - "end": 19433, + "start": 19472, + "end": 19476, "loc": { "start": { "line": 478, @@ -29807,8 +29813,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 19438, - "end": 19448, + "start": 19481, + "end": 19491, "loc": { "start": { "line": 478, @@ -29828,8 +29834,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 19450, - "end": 19675, + "start": 19493, + "end": 19718, "loc": { "start": { "line": 478, @@ -29843,8 +29849,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 19461, - "end": 19521, + "start": 19504, + "end": 19564, "loc": { "start": { "line": 479, @@ -29858,8 +29864,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 19467, - "end": 19520, + "start": 19510, + "end": 19563, "loc": { "start": { "line": 479, @@ -29872,8 +29878,8 @@ }, "id": { "type": "Identifier", - "start": 19467, - "end": 19472, + "start": 19510, + "end": 19515, "loc": { "start": { "line": 479, @@ -29889,8 +29895,8 @@ }, "init": { "type": "BinaryExpression", - "start": 19475, - "end": 19520, + "start": 19518, + "end": 19563, "loc": { "start": { "line": 479, @@ -29903,8 +29909,8 @@ }, "left": { "type": "MemberExpression", - "start": 19475, - "end": 19503, + "start": 19518, + "end": 19546, "loc": { "start": { "line": 479, @@ -29917,8 +29923,8 @@ }, "object": { "type": "Identifier", - "start": 19475, - "end": 19487, + "start": 19518, + "end": 19530, "loc": { "start": { "line": 479, @@ -29934,8 +29940,8 @@ }, "property": { "type": "Identifier", - "start": 19488, - "end": 19503, + "start": 19531, + "end": 19546, "loc": { "start": { "line": 479, @@ -29954,8 +29960,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 19506, - "end": 19520, + "start": 19549, + "end": 19563, "loc": { "start": { "line": 479, @@ -29968,8 +29974,8 @@ }, "object": { "type": "ThisExpression", - "start": 19506, - "end": 19510, + "start": 19549, + "end": 19553, "loc": { "start": { "line": 479, @@ -29983,8 +29989,8 @@ }, "property": { "type": "Identifier", - "start": 19511, - "end": 19520, + "start": 19554, + "end": 19563, "loc": { "start": { "line": 479, @@ -30007,8 +30013,8 @@ }, { "type": "ExpressionStatement", - "start": 19531, - "end": 19665, + "start": 19574, + "end": 19708, "loc": { "start": { "line": 480, @@ -30021,8 +30027,8 @@ }, "expression": { "type": "CallExpression", - "start": 19531, - "end": 19664, + "start": 19574, + "end": 19707, "loc": { "start": { "line": 480, @@ -30035,8 +30041,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19531, - "end": 19547, + "start": 19574, + "end": 19590, "loc": { "start": { "line": 480, @@ -30049,8 +30055,8 @@ }, "object": { "type": "Identifier", - "start": 19531, - "end": 19540, + "start": 19574, + "end": 19583, "loc": { "start": { "line": 480, @@ -30066,8 +30072,8 @@ }, "property": { "type": "Identifier", - "start": 19541, - "end": 19547, + "start": 19584, + "end": 19590, "loc": { "start": { "line": 480, @@ -30086,8 +30092,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 19548, - "end": 19595, + "start": 19591, + "end": 19638, "loc": { "start": { "line": 480, @@ -30100,8 +30106,8 @@ }, "left": { "type": "MemberExpression", - "start": 19548, - "end": 19559, + "start": 19591, + "end": 19602, "loc": { "start": { "line": 480, @@ -30114,8 +30120,8 @@ }, "object": { "type": "Identifier", - "start": 19548, - "end": 19557, + "start": 19591, + "end": 19600, "loc": { "start": { "line": 480, @@ -30131,8 +30137,8 @@ }, "property": { "type": "Identifier", - "start": 19558, - "end": 19559, + "start": 19601, + "end": 19602, "loc": { "start": { "line": 480, @@ -30151,8 +30157,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 19562, - "end": 19595, + "start": 19605, + "end": 19638, "loc": { "start": { "line": 480, @@ -30165,8 +30171,8 @@ }, "left": { "type": "Identifier", - "start": 19562, - "end": 19567, + "start": 19605, + "end": 19610, "loc": { "start": { "line": 480, @@ -30183,8 +30189,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 19570, - "end": 19595, + "start": 19613, + "end": 19638, "loc": { "start": { "line": 480, @@ -30197,8 +30203,8 @@ }, "object": { "type": "MemberExpression", - "start": 19570, - "end": 19593, + "start": 19613, + "end": 19636, "loc": { "start": { "line": 480, @@ -30211,8 +30217,8 @@ }, "object": { "type": "Identifier", - "start": 19570, - "end": 19582, + "start": 19613, + "end": 19625, "loc": { "start": { "line": 480, @@ -30228,8 +30234,8 @@ }, "property": { "type": "Identifier", - "start": 19583, - "end": 19593, + "start": 19626, + "end": 19636, "loc": { "start": { "line": 480, @@ -30247,8 +30253,8 @@ }, "property": { "type": "Identifier", - "start": 19594, - "end": 19595, + "start": 19637, + "end": 19638, "loc": { "start": { "line": 480, @@ -30268,8 +30274,8 @@ }, { "type": "BinaryExpression", - "start": 19597, - "end": 19644, + "start": 19640, + "end": 19687, "loc": { "start": { "line": 480, @@ -30282,8 +30288,8 @@ }, "left": { "type": "MemberExpression", - "start": 19597, - "end": 19608, + "start": 19640, + "end": 19651, "loc": { "start": { "line": 480, @@ -30296,8 +30302,8 @@ }, "object": { "type": "Identifier", - "start": 19597, - "end": 19606, + "start": 19640, + "end": 19649, "loc": { "start": { "line": 480, @@ -30313,8 +30319,8 @@ }, "property": { "type": "Identifier", - "start": 19607, - "end": 19608, + "start": 19650, + "end": 19651, "loc": { "start": { "line": 480, @@ -30333,8 +30339,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 19611, - "end": 19644, + "start": 19654, + "end": 19687, "loc": { "start": { "line": 480, @@ -30347,8 +30353,8 @@ }, "left": { "type": "Identifier", - "start": 19611, - "end": 19616, + "start": 19654, + "end": 19659, "loc": { "start": { "line": 480, @@ -30365,8 +30371,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 19619, - "end": 19644, + "start": 19662, + "end": 19687, "loc": { "start": { "line": 480, @@ -30379,8 +30385,8 @@ }, "object": { "type": "MemberExpression", - "start": 19619, - "end": 19642, + "start": 19662, + "end": 19685, "loc": { "start": { "line": 480, @@ -30393,8 +30399,8 @@ }, "object": { "type": "Identifier", - "start": 19619, - "end": 19631, + "start": 19662, + "end": 19674, "loc": { "start": { "line": 480, @@ -30410,8 +30416,8 @@ }, "property": { "type": "Identifier", - "start": 19632, - "end": 19642, + "start": 19675, + "end": 19685, "loc": { "start": { "line": 480, @@ -30429,8 +30435,8 @@ }, "property": { "type": "Identifier", - "start": 19643, - "end": 19644, + "start": 19686, + "end": 19687, "loc": { "start": { "line": 480, @@ -30450,8 +30456,8 @@ }, { "type": "MemberExpression", - "start": 19646, - "end": 19663, + "start": 19689, + "end": 19706, "loc": { "start": { "line": 480, @@ -30464,8 +30470,8 @@ }, "object": { "type": "Identifier", - "start": 19646, - "end": 19655, + "start": 19689, + "end": 19698, "loc": { "start": { "line": 480, @@ -30481,8 +30487,8 @@ }, "property": { "type": "Identifier", - "start": 19656, - "end": 19663, + "start": 19699, + "end": 19706, "loc": { "start": { "line": 480, @@ -30510,8 +30516,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 19206, - "end": 19265, + "start": 19249, + "end": 19308, "loc": { "start": { "line": 475, @@ -30527,8 +30533,8 @@ }, { "type": "ExpressionStatement", - "start": 19684, - "end": 19711, + "start": 19727, + "end": 19754, "loc": { "start": { "line": 482, @@ -30541,8 +30547,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 19684, - "end": 19710, + "start": 19727, + "end": 19753, "loc": { "start": { "line": 482, @@ -30556,8 +30562,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 19684, - "end": 19703, + "start": 19727, + "end": 19746, "loc": { "start": { "line": 482, @@ -30570,8 +30576,8 @@ }, "object": { "type": "Identifier", - "start": 19684, - "end": 19696, + "start": 19727, + "end": 19739, "loc": { "start": { "line": 482, @@ -30587,8 +30593,8 @@ }, "property": { "type": "Identifier", - "start": 19697, - "end": 19703, + "start": 19740, + "end": 19746, "loc": { "start": { "line": 482, @@ -30606,8 +30612,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 19706, - "end": 19710, + "start": 19749, + "end": 19753, "loc": { "start": { "line": 482, @@ -30629,8 +30635,8 @@ { "type": "CommentLine", "value": " Stop moving when you are this close distance.", - "start": 18237, - "end": 18285, + "start": 18280, + "end": 18328, "loc": { "start": { "line": 456, @@ -30652,8 +30658,8 @@ { "type": "CommentLine", "value": " If the instance is not moving", - "start": 16389, - "end": 16421, + "start": 16432, + "end": 16464, "loc": { "start": { "line": 427, @@ -30670,8 +30676,8 @@ { "type": "CommentLine", "value": " If the instance's position is in the same spot it was in the last tick", - "start": 19735, - "end": 19808, + "start": 19778, + "end": 19851, "loc": { "start": { "line": 485, @@ -30687,8 +30693,8 @@ }, { "type": "IfStatement", - "start": 19815, - "end": 20426, + "start": 19858, + "end": 20469, "loc": { "start": { "line": 486, @@ -30701,8 +30707,8 @@ }, "test": { "type": "LogicalExpression", - "start": 19819, - "end": 19931, + "start": 19862, + "end": 19974, "loc": { "start": { "line": 486, @@ -30715,8 +30721,8 @@ }, "left": { "type": "BinaryExpression", - "start": 19819, - "end": 19873, + "start": 19862, + "end": 19916, "loc": { "start": { "line": 486, @@ -30729,8 +30735,8 @@ }, "left": { "type": "MemberExpression", - "start": 19819, - "end": 19837, + "start": 19862, + "end": 19880, "loc": { "start": { "line": 486, @@ -30743,8 +30749,8 @@ }, "object": { "type": "Identifier", - "start": 19819, - "end": 19835, + "start": 19862, + "end": 19878, "loc": { "start": { "line": 486, @@ -30761,8 +30767,8 @@ }, "property": { "type": "Identifier", - "start": 19836, - "end": 19837, + "start": 19879, + "end": 19880, "loc": { "start": { "line": 486, @@ -30782,8 +30788,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 19842, - "end": 19873, + "start": 19885, + "end": 19916, "loc": { "start": { "line": 486, @@ -30796,8 +30802,8 @@ }, "object": { "type": "MemberExpression", - "start": 19842, - "end": 19871, + "start": 19885, + "end": 19914, "loc": { "start": { "line": 486, @@ -30810,8 +30816,8 @@ }, "object": { "type": "Identifier", - "start": 19842, - "end": 19854, + "start": 19885, + "end": 19897, "loc": { "start": { "line": 486, @@ -30827,8 +30833,8 @@ }, "property": { "type": "Identifier", - "start": 19855, - "end": 19871, + "start": 19898, + "end": 19914, "loc": { "start": { "line": 486, @@ -30846,8 +30852,8 @@ }, "property": { "type": "Identifier", - "start": 19872, - "end": 19873, + "start": 19915, + "end": 19916, "loc": { "start": { "line": 486, @@ -30868,8 +30874,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 19877, - "end": 19931, + "start": 19920, + "end": 19974, "loc": { "start": { "line": 486, @@ -30882,8 +30888,8 @@ }, "left": { "type": "MemberExpression", - "start": 19877, - "end": 19895, + "start": 19920, + "end": 19938, "loc": { "start": { "line": 486, @@ -30896,8 +30902,8 @@ }, "object": { "type": "Identifier", - "start": 19877, - "end": 19893, + "start": 19920, + "end": 19936, "loc": { "start": { "line": 486, @@ -30913,8 +30919,8 @@ }, "property": { "type": "Identifier", - "start": 19894, - "end": 19895, + "start": 19937, + "end": 19938, "loc": { "start": { "line": 486, @@ -30933,8 +30939,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 19900, - "end": 19931, + "start": 19943, + "end": 19974, "loc": { "start": { "line": 486, @@ -30947,8 +30953,8 @@ }, "object": { "type": "MemberExpression", - "start": 19900, - "end": 19929, + "start": 19943, + "end": 19972, "loc": { "start": { "line": 486, @@ -30961,8 +30967,8 @@ }, "object": { "type": "Identifier", - "start": 19900, - "end": 19912, + "start": 19943, + "end": 19955, "loc": { "start": { "line": 486, @@ -30978,8 +30984,8 @@ }, "property": { "type": "Identifier", - "start": 19913, - "end": 19929, + "start": 19956, + "end": 19972, "loc": { "start": { "line": 486, @@ -30997,8 +31003,8 @@ }, "property": { "type": "Identifier", - "start": 19930, - "end": 19931, + "start": 19973, + "end": 19974, "loc": { "start": { "line": 486, @@ -31019,8 +31025,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 19933, - "end": 20426, + "start": 19976, + "end": 20469, "loc": { "start": { "line": 486, @@ -31034,8 +31040,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 19980, - "end": 20008, + "start": 20023, + "end": 20051, "loc": { "start": { "line": 488, @@ -31048,8 +31054,8 @@ }, "expression": { "type": "UpdateExpression", - "start": 19980, - "end": 20007, + "start": 20023, + "end": 20050, "loc": { "start": { "line": 488, @@ -31064,8 +31070,8 @@ "prefix": false, "argument": { "type": "MemberExpression", - "start": 19980, - "end": 20005, + "start": 20023, + "end": 20048, "loc": { "start": { "line": 488, @@ -31078,8 +31084,8 @@ }, "object": { "type": "Identifier", - "start": 19980, - "end": 19992, + "start": 20023, + "end": 20035, "loc": { "start": { "line": 488, @@ -31096,8 +31102,8 @@ }, "property": { "type": "Identifier", - "start": 19993, - "end": 20005, + "start": 20036, + "end": 20048, "loc": { "start": { "line": 488, @@ -31120,8 +31126,8 @@ { "type": "CommentLine", "value": " Increment the stuck counter", - "start": 19942, - "end": 19972, + "start": 19985, + "end": 20015, "loc": { "start": { "line": 487, @@ -31138,8 +31144,8 @@ { "type": "CommentLine", "value": " Chekck if the stuck counter is greater or equal to the max stuck counter", - "start": 20016, - "end": 20091, + "start": 20059, + "end": 20134, "loc": { "start": { "line": 489, @@ -31155,8 +31161,8 @@ }, { "type": "IfStatement", - "start": 20099, - "end": 20418, + "start": 20142, + "end": 20461, "loc": { "start": { "line": 490, @@ -31169,8 +31175,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20103, - "end": 20160, + "start": 20146, + "end": 20203, "loc": { "start": { "line": 490, @@ -31183,8 +31189,8 @@ }, "left": { "type": "MemberExpression", - "start": 20103, - "end": 20128, + "start": 20146, + "end": 20171, "loc": { "start": { "line": 490, @@ -31197,8 +31203,8 @@ }, "object": { "type": "Identifier", - "start": 20103, - "end": 20115, + "start": 20146, + "end": 20158, "loc": { "start": { "line": 490, @@ -31215,8 +31221,8 @@ }, "property": { "type": "Identifier", - "start": 20116, - "end": 20128, + "start": 20159, + "end": 20171, "loc": { "start": { "line": 490, @@ -31236,8 +31242,8 @@ "operator": ">=", "right": { "type": "MemberExpression", - "start": 20132, - "end": 20160, + "start": 20175, + "end": 20203, "loc": { "start": { "line": 490, @@ -31250,8 +31256,8 @@ }, "object": { "type": "Identifier", - "start": 20132, - "end": 20144, + "start": 20175, + "end": 20187, "loc": { "start": { "line": 490, @@ -31267,8 +31273,8 @@ }, "property": { "type": "Identifier", - "start": 20145, - "end": 20160, + "start": 20188, + "end": 20203, "loc": { "start": { "line": 490, @@ -31288,8 +31294,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20162, - "end": 20418, + "start": 20205, + "end": 20461, "loc": { "start": { "line": 490, @@ -31303,8 +31309,8 @@ "body": [ { "type": "IfStatement", - "start": 20216, - "end": 20331, + "start": 20259, + "end": 20374, "loc": { "start": { "line": 492, @@ -31317,8 +31323,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20220, - "end": 20274, + "start": 20263, + "end": 20317, "loc": { "start": { "line": 492, @@ -31331,8 +31337,8 @@ }, "left": { "type": "UnaryExpression", - "start": 20220, - "end": 20259, + "start": 20263, + "end": 20302, "loc": { "start": { "line": 492, @@ -31347,8 +31353,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 20227, - "end": 20258, + "start": 20270, + "end": 20301, "loc": { "start": { "line": 492, @@ -31361,8 +31367,8 @@ }, "object": { "type": "MemberExpression", - "start": 20227, - "end": 20246, + "start": 20270, + "end": 20289, "loc": { "start": { "line": 492, @@ -31375,8 +31381,8 @@ }, "object": { "type": "Identifier", - "start": 20227, - "end": 20239, + "start": 20270, + "end": 20282, "loc": { "start": { "line": 492, @@ -31393,8 +31399,8 @@ }, "property": { "type": "Identifier", - "start": 20240, - "end": 20246, + "start": 20283, + "end": 20289, "loc": { "start": { "line": 492, @@ -31413,8 +31419,8 @@ }, "property": { "type": "Identifier", - "start": 20247, - "end": 20258, + "start": 20290, + "end": 20301, "loc": { "start": { "line": 492, @@ -31432,7 +31438,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 20226 + "parenStart": 20269 } }, "extra": { @@ -31443,8 +31449,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 20264, - "end": 20274, + "start": 20307, + "end": 20317, "loc": { "start": { "line": 492, @@ -31465,8 +31471,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20276, - "end": 20331, + "start": 20319, + "end": 20374, "loc": { "start": { "line": 492, @@ -31480,8 +31486,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 20287, - "end": 20321, + "start": 20330, + "end": 20364, "loc": { "start": { "line": 493, @@ -31494,8 +31500,8 @@ }, "expression": { "type": "CallExpression", - "start": 20287, - "end": 20320, + "start": 20330, + "end": 20363, "loc": { "start": { "line": 493, @@ -31508,8 +31514,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20287, - "end": 20318, + "start": 20330, + "end": 20361, "loc": { "start": { "line": 493, @@ -31522,8 +31528,8 @@ }, "object": { "type": "MemberExpression", - "start": 20287, - "end": 20306, + "start": 20330, + "end": 20349, "loc": { "start": { "line": 493, @@ -31536,8 +31542,8 @@ }, "object": { "type": "Identifier", - "start": 20287, - "end": 20299, + "start": 20330, + "end": 20342, "loc": { "start": { "line": 493, @@ -31553,8 +31559,8 @@ }, "property": { "type": "Identifier", - "start": 20300, - "end": 20306, + "start": 20343, + "end": 20349, "loc": { "start": { "line": 493, @@ -31572,8 +31578,8 @@ }, "property": { "type": "Identifier", - "start": 20307, - "end": 20318, + "start": 20350, + "end": 20361, "loc": { "start": { "line": 493, @@ -31601,8 +31607,8 @@ { "type": "CommentLine", "value": " Call the stuck event if defined.", - "start": 20172, - "end": 20207, + "start": 20215, + "end": 20250, "loc": { "start": { "line": 491, @@ -31619,8 +31625,8 @@ { "type": "CommentLine", "value": " End this pathfinding.", - "start": 20340, - "end": 20364, + "start": 20383, + "end": 20407, "loc": { "start": { "line": 495, @@ -31636,8 +31642,8 @@ }, { "type": "ExpressionStatement", - "start": 20373, - "end": 20393, + "start": 20416, + "end": 20436, "loc": { "start": { "line": 496, @@ -31650,8 +31656,8 @@ }, "expression": { "type": "CallExpression", - "start": 20373, - "end": 20392, + "start": 20416, + "end": 20435, "loc": { "start": { "line": 496, @@ -31664,8 +31670,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20373, - "end": 20381, + "start": 20416, + "end": 20424, "loc": { "start": { "line": 496, @@ -31678,8 +31684,8 @@ }, "object": { "type": "ThisExpression", - "start": 20373, - "end": 20377, + "start": 20416, + "end": 20420, "loc": { "start": { "line": 496, @@ -31694,8 +31700,8 @@ }, "property": { "type": "Identifier", - "start": 20378, - "end": 20381, + "start": 20421, + "end": 20424, "loc": { "start": { "line": 496, @@ -31715,8 +31721,8 @@ "arguments": [ { "type": "Identifier", - "start": 20382, - "end": 20391, + "start": 20425, + "end": 20434, "loc": { "start": { "line": 496, @@ -31737,8 +31743,8 @@ { "type": "CommentLine", "value": " End this pathfinding.", - "start": 20340, - "end": 20364, + "start": 20383, + "end": 20407, "loc": { "start": { "line": 495, @@ -31754,8 +31760,8 @@ }, { "type": "ReturnStatement", - "start": 20402, - "end": 20409, + "start": 20445, + "end": 20452, "loc": { "start": { "line": 497, @@ -31776,8 +31782,8 @@ { "type": "CommentLine", "value": " Chekck if the stuck counter is greater or equal to the max stuck counter", - "start": 20016, - "end": 20091, + "start": 20059, + "end": 20134, "loc": { "start": { "line": 489, @@ -31800,8 +31806,8 @@ { "type": "CommentLine", "value": " If the instance's position is in the same spot it was in the last tick", - "start": 19735, - "end": 19808, + "start": 19778, + "end": 19851, "loc": { "start": { "line": 485, @@ -31818,8 +31824,8 @@ { "type": "CommentLine", "value": " Store the previous position as the position of this tick", - "start": 20433, - "end": 20492, + "start": 20476, + "end": 20535, "loc": { "start": { "line": 500, @@ -31835,8 +31841,8 @@ }, { "type": "ExpressionStatement", - "start": 20499, - "end": 20548, + "start": 20542, + "end": 20591, "loc": { "start": { "line": 501, @@ -31849,8 +31855,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 20499, - "end": 20547, + "start": 20542, + "end": 20590, "loc": { "start": { "line": 501, @@ -31864,8 +31870,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 20499, - "end": 20528, + "start": 20542, + "end": 20571, "loc": { "start": { "line": 501, @@ -31878,8 +31884,8 @@ }, "object": { "type": "Identifier", - "start": 20499, - "end": 20511, + "start": 20542, + "end": 20554, "loc": { "start": { "line": 501, @@ -31896,8 +31902,8 @@ }, "property": { "type": "Identifier", - "start": 20512, - "end": 20528, + "start": 20555, + "end": 20571, "loc": { "start": { "line": 501, @@ -31916,8 +31922,8 @@ }, "right": { "type": "Identifier", - "start": 20531, - "end": 20547, + "start": 20574, + "end": 20590, "loc": { "start": { "line": 501, @@ -31937,8 +31943,8 @@ { "type": "CommentLine", "value": " Store the previous position as the position of this tick", - "start": 20433, - "end": 20492, + "start": 20476, + "end": 20535, "loc": { "start": { "line": 500, @@ -31960,8 +31966,8 @@ { "type": "CommentLine", "value": " If this instance is being moved", - "start": 16136, - "end": 16170, + "start": 16179, + "end": 16213, "loc": { "start": { "line": 423, @@ -31991,8 +31997,8 @@ { "type": "CommentLine", "value": " Loop active instances and update.", - "start": 15843, - "end": 15879, + "start": 15886, + "end": 15922, "loc": { "start": { "line": 415, @@ -32009,8 +32015,8 @@ { "type": "CommentLine", "value": " Store this tick's time", - "start": 20572, - "end": 20597, + "start": 20615, + "end": 20640, "loc": { "start": { "line": 505, @@ -32026,8 +32032,8 @@ }, { "type": "ExpressionStatement", - "start": 20601, - "end": 20621, + "start": 20644, + "end": 20664, "loc": { "start": { "line": 506, @@ -32040,8 +32046,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 20601, - "end": 20620, + "start": 20644, + "end": 20663, "loc": { "start": { "line": 506, @@ -32055,8 +32061,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 20601, - "end": 20614, + "start": 20644, + "end": 20657, "loc": { "start": { "line": 506, @@ -32069,8 +32075,8 @@ }, "object": { "type": "ThisExpression", - "start": 20601, - "end": 20605, + "start": 20644, + "end": 20648, "loc": { "start": { "line": 506, @@ -32085,8 +32091,8 @@ }, "property": { "type": "Identifier", - "start": 20606, - "end": 20614, + "start": 20649, + "end": 20657, "loc": { "start": { "line": 506, @@ -32105,8 +32111,8 @@ }, "right": { "type": "Identifier", - "start": 20617, - "end": 20620, + "start": 20660, + "end": 20663, "loc": { "start": { "line": 506, @@ -32126,8 +32132,8 @@ { "type": "CommentLine", "value": " Store this tick's time", - "start": 20572, - "end": 20597, + "start": 20615, + "end": 20640, "loc": { "start": { "line": 505, @@ -32149,8 +32155,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t ", - "start": 15350, - "end": 15422, + "start": 15393, + "end": 15465, "loc": { "start": { "line": 400, @@ -32167,8 +32173,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t ", - "start": 20628, - "end": 20735, + "start": 20671, + "end": 20778, "loc": { "start": { "line": 508, @@ -32184,8 +32190,8 @@ }, { "type": "ClassMethod", - "start": 20738, - "end": 21313, + "start": 20781, + "end": 21356, "loc": { "start": { "line": 512, @@ -32200,8 +32206,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20738, - "end": 20749, + "start": 20781, + "end": 20792, "loc": { "start": { "line": 512, @@ -32224,8 +32230,8 @@ "params": [ { "type": "Identifier", - "start": 20750, - "end": 20759, + "start": 20793, + "end": 20802, "loc": { "start": { "line": 512, @@ -32242,8 +32248,8 @@ ], "body": { "type": "BlockStatement", - "start": 20761, - "end": 21313, + "start": 20804, + "end": 21356, "loc": { "start": { "line": 512, @@ -32257,8 +32263,8 @@ "body": [ { "type": "IfStatement", - "start": 20766, - "end": 21309, + "start": 20809, + "end": 21352, "loc": { "start": { "line": 513, @@ -32271,8 +32277,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20770, - "end": 20800, + "start": 20813, + "end": 20843, "loc": { "start": { "line": 513, @@ -32285,8 +32291,8 @@ }, "left": { "type": "UnaryExpression", - "start": 20770, - "end": 20787, + "start": 20813, + "end": 20830, "loc": { "start": { "line": 513, @@ -32301,8 +32307,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 20777, - "end": 20786, + "start": 20820, + "end": 20829, "loc": { "start": { "line": 513, @@ -32317,7 +32323,7 @@ "name": "pTileSize", "extra": { "parenthesized": true, - "parenStart": 20776 + "parenStart": 20819 } }, "extra": { @@ -32327,8 +32333,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 20792, - "end": 20800, + "start": 20835, + "end": 20843, "loc": { "start": { "line": 513, @@ -32348,8 +32354,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20802, - "end": 20869, + "start": 20845, + "end": 20912, "loc": { "start": { "line": 513, @@ -32363,8 +32369,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 20808, - "end": 20864, + "start": 20851, + "end": 20907, "loc": { "start": { "line": 514, @@ -32377,8 +32383,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 20808, - "end": 20863, + "start": 20851, + "end": 20906, "loc": { "start": { "line": 514, @@ -32392,8 +32398,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 20808, - "end": 20821, + "start": 20851, + "end": 20864, "loc": { "start": { "line": 514, @@ -32406,8 +32412,8 @@ }, "object": { "type": "ThisExpression", - "start": 20808, - "end": 20812, + "start": 20851, + "end": 20855, "loc": { "start": { "line": 514, @@ -32421,8 +32427,8 @@ }, "property": { "type": "Identifier", - "start": 20813, - "end": 20821, + "start": 20856, + "end": 20864, "loc": { "start": { "line": 514, @@ -32440,8 +32446,8 @@ }, "right": { "type": "ObjectExpression", - "start": 20824, - "end": 20863, + "start": 20867, + "end": 20906, "loc": { "start": { "line": 514, @@ -32455,8 +32461,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 20826, - "end": 20842, + "start": 20869, + "end": 20885, "loc": { "start": { "line": 514, @@ -32472,8 +32478,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20826, - "end": 20831, + "start": 20869, + "end": 20874, "loc": { "start": { "line": 514, @@ -32489,8 +32495,8 @@ }, "value": { "type": "Identifier", - "start": 20833, - "end": 20842, + "start": 20876, + "end": 20885, "loc": { "start": { "line": 514, @@ -32507,8 +32513,8 @@ }, { "type": "ObjectProperty", - "start": 20844, - "end": 20861, + "start": 20887, + "end": 20904, "loc": { "start": { "line": 514, @@ -32524,8 +32530,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20844, - "end": 20850, + "start": 20887, + "end": 20893, "loc": { "start": { "line": 514, @@ -32541,8 +32547,8 @@ }, "value": { "type": "Identifier", - "start": 20852, - "end": 20861, + "start": 20895, + "end": 20904, "loc": { "start": { "line": 514, @@ -32566,8 +32572,8 @@ }, "alternate": { "type": "IfStatement", - "start": 20875, - "end": 21309, + "start": 20918, + "end": 21352, "loc": { "start": { "line": 515, @@ -32580,8 +32586,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20878, - "end": 20908, + "start": 20921, + "end": 20951, "loc": { "start": { "line": 515, @@ -32594,8 +32600,8 @@ }, "left": { "type": "UnaryExpression", - "start": 20878, - "end": 20895, + "start": 20921, + "end": 20938, "loc": { "start": { "line": 515, @@ -32610,8 +32616,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 20885, - "end": 20894, + "start": 20928, + "end": 20937, "loc": { "start": { "line": 515, @@ -32626,7 +32632,7 @@ "name": "pTileSize", "extra": { "parenthesized": true, - "parenStart": 20884 + "parenStart": 20927 } }, "extra": { @@ -32636,8 +32642,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 20900, - "end": 20908, + "start": 20943, + "end": 20951, "loc": { "start": { "line": 515, @@ -32657,8 +32663,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20910, - "end": 21214, + "start": 20953, + "end": 21257, "loc": { "start": { "line": 515, @@ -32672,8 +32678,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 20916, - "end": 20946, + "start": 20959, + "end": 20989, "loc": { "start": { "line": 516, @@ -32687,8 +32693,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 20922, - "end": 20945, + "start": 20965, + "end": 20988, "loc": { "start": { "line": 516, @@ -32701,8 +32707,8 @@ }, "id": { "type": "Identifier", - "start": 20922, - "end": 20927, + "start": 20965, + "end": 20970, "loc": { "start": { "line": 516, @@ -32718,8 +32724,8 @@ }, "init": { "type": "MemberExpression", - "start": 20930, - "end": 20945, + "start": 20973, + "end": 20988, "loc": { "start": { "line": 516, @@ -32732,8 +32738,8 @@ }, "object": { "type": "Identifier", - "start": 20930, - "end": 20939, + "start": 20973, + "end": 20982, "loc": { "start": { "line": 516, @@ -32749,8 +32755,8 @@ }, "property": { "type": "Identifier", - "start": 20940, - "end": 20945, + "start": 20983, + "end": 20988, "loc": { "start": { "line": 516, @@ -32772,8 +32778,8 @@ }, { "type": "VariableDeclaration", - "start": 20951, - "end": 20983, + "start": 20994, + "end": 21026, "loc": { "start": { "line": 517, @@ -32787,8 +32793,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 20957, - "end": 20982, + "start": 21000, + "end": 21025, "loc": { "start": { "line": 517, @@ -32801,8 +32807,8 @@ }, "id": { "type": "Identifier", - "start": 20957, - "end": 20963, + "start": 21000, + "end": 21006, "loc": { "start": { "line": 517, @@ -32818,8 +32824,8 @@ }, "init": { "type": "MemberExpression", - "start": 20966, - "end": 20982, + "start": 21009, + "end": 21025, "loc": { "start": { "line": 517, @@ -32832,8 +32838,8 @@ }, "object": { "type": "Identifier", - "start": 20966, - "end": 20975, + "start": 21009, + "end": 21018, "loc": { "start": { "line": 517, @@ -32849,8 +32855,8 @@ }, "property": { "type": "Identifier", - "start": 20976, - "end": 20982, + "start": 21019, + "end": 21025, "loc": { "start": { "line": 517, @@ -32873,8 +32879,8 @@ { "type": "CommentLine", "value": " Assign the tilesize width", - "start": 20988, - "end": 21016, + "start": 21031, + "end": 21059, "loc": { "start": { "line": 518, @@ -32890,8 +32896,8 @@ }, { "type": "IfStatement", - "start": 21021, - "end": 21094, + "start": 21064, + "end": 21137, "loc": { "start": { "line": 519, @@ -32904,8 +32910,8 @@ }, "test": { "type": "BinaryExpression", - "start": 21025, - "end": 21051, + "start": 21068, + "end": 21094, "loc": { "start": { "line": 519, @@ -32918,8 +32924,8 @@ }, "left": { "type": "UnaryExpression", - "start": 21025, - "end": 21038, + "start": 21068, + "end": 21081, "loc": { "start": { "line": 519, @@ -32934,8 +32940,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 21032, - "end": 21037, + "start": 21075, + "end": 21080, "loc": { "start": { "line": 519, @@ -32951,7 +32957,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 21031 + "parenStart": 21074 } }, "extra": { @@ -32962,8 +32968,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 21043, - "end": 21051, + "start": 21086, + "end": 21094, "loc": { "start": { "line": 519, @@ -32984,8 +32990,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 21053, - "end": 21094, + "start": 21096, + "end": 21137, "loc": { "start": { "line": 519, @@ -32999,8 +33005,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 21060, - "end": 21088, + "start": 21103, + "end": 21131, "loc": { "start": { "line": 520, @@ -33013,8 +33019,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 21060, - "end": 21087, + "start": 21103, + "end": 21130, "loc": { "start": { "line": 520, @@ -33028,8 +33034,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 21060, - "end": 21079, + "start": 21103, + "end": 21122, "loc": { "start": { "line": 520, @@ -33042,8 +33048,8 @@ }, "object": { "type": "MemberExpression", - "start": 21060, - "end": 21073, + "start": 21103, + "end": 21116, "loc": { "start": { "line": 520, @@ -33056,8 +33062,8 @@ }, "object": { "type": "ThisExpression", - "start": 21060, - "end": 21064, + "start": 21103, + "end": 21107, "loc": { "start": { "line": 520, @@ -33071,8 +33077,8 @@ }, "property": { "type": "Identifier", - "start": 21065, - "end": 21073, + "start": 21108, + "end": 21116, "loc": { "start": { "line": 520, @@ -33090,8 +33096,8 @@ }, "property": { "type": "Identifier", - "start": 21074, - "end": 21079, + "start": 21117, + "end": 21122, "loc": { "start": { "line": 520, @@ -33109,8 +33115,8 @@ }, "right": { "type": "Identifier", - "start": 21082, - "end": 21087, + "start": 21125, + "end": 21130, "loc": { "start": { "line": 520, @@ -33135,8 +33141,8 @@ { "type": "CommentLine", "value": " Assign the tilesize width", - "start": 20988, - "end": 21016, + "start": 21031, + "end": 21059, "loc": { "start": { "line": 518, @@ -33153,8 +33159,8 @@ { "type": "CommentLine", "value": " Assign the tilesize height", - "start": 21099, - "end": 21128, + "start": 21142, + "end": 21171, "loc": { "start": { "line": 522, @@ -33170,8 +33176,8 @@ }, { "type": "IfStatement", - "start": 21133, - "end": 21209, + "start": 21176, + "end": 21252, "loc": { "start": { "line": 523, @@ -33184,8 +33190,8 @@ }, "test": { "type": "BinaryExpression", - "start": 21137, - "end": 21164, + "start": 21180, + "end": 21207, "loc": { "start": { "line": 523, @@ -33198,8 +33204,8 @@ }, "left": { "type": "UnaryExpression", - "start": 21137, - "end": 21151, + "start": 21180, + "end": 21194, "loc": { "start": { "line": 523, @@ -33214,8 +33220,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 21144, - "end": 21150, + "start": 21187, + "end": 21193, "loc": { "start": { "line": 523, @@ -33231,7 +33237,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 21143 + "parenStart": 21186 } }, "extra": { @@ -33242,8 +33248,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 21156, - "end": 21164, + "start": 21199, + "end": 21207, "loc": { "start": { "line": 523, @@ -33264,8 +33270,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 21166, - "end": 21209, + "start": 21209, + "end": 21252, "loc": { "start": { "line": 523, @@ -33279,8 +33285,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 21173, - "end": 21203, + "start": 21216, + "end": 21246, "loc": { "start": { "line": 524, @@ -33293,8 +33299,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 21173, - "end": 21202, + "start": 21216, + "end": 21245, "loc": { "start": { "line": 524, @@ -33308,8 +33314,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 21173, - "end": 21193, + "start": 21216, + "end": 21236, "loc": { "start": { "line": 524, @@ -33322,8 +33328,8 @@ }, "object": { "type": "MemberExpression", - "start": 21173, - "end": 21186, + "start": 21216, + "end": 21229, "loc": { "start": { "line": 524, @@ -33336,8 +33342,8 @@ }, "object": { "type": "ThisExpression", - "start": 21173, - "end": 21177, + "start": 21216, + "end": 21220, "loc": { "start": { "line": 524, @@ -33351,8 +33357,8 @@ }, "property": { "type": "Identifier", - "start": 21178, - "end": 21186, + "start": 21221, + "end": 21229, "loc": { "start": { "line": 524, @@ -33370,8 +33376,8 @@ }, "property": { "type": "Identifier", - "start": 21187, - "end": 21193, + "start": 21230, + "end": 21236, "loc": { "start": { "line": 524, @@ -33389,8 +33395,8 @@ }, "right": { "type": "Identifier", - "start": 21196, - "end": 21202, + "start": 21239, + "end": 21245, "loc": { "start": { "line": 524, @@ -33414,8 +33420,8 @@ { "type": "CommentLine", "value": " Assign the tilesize height", - "start": 21099, - "end": 21128, + "start": 21142, + "end": 21171, "loc": { "start": { "line": 522, @@ -33434,8 +33440,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 21220, - "end": 21309, + "start": 21263, + "end": 21352, "loc": { "start": { "line": 526, @@ -33449,8 +33455,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 21226, - "end": 21304, + "start": 21269, + "end": 21347, "loc": { "start": { "line": 527, @@ -33463,8 +33469,8 @@ }, "expression": { "type": "CallExpression", - "start": 21226, - "end": 21303, + "start": 21269, + "end": 21346, "loc": { "start": { "line": 527, @@ -33477,8 +33483,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21226, - "end": 21268, + "start": 21269, + "end": 21311, "loc": { "start": { "line": 527, @@ -33491,8 +33497,8 @@ }, "object": { "type": "CallExpression", - "start": 21226, - "end": 21262, + "start": 21269, + "end": 21305, "loc": { "start": { "line": 527, @@ -33505,8 +33511,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21226, - "end": 21244, + "start": 21269, + "end": 21287, "loc": { "start": { "line": 527, @@ -33519,8 +33525,8 @@ }, "object": { "type": "MemberExpression", - "start": 21226, - "end": 21237, + "start": 21269, + "end": 21280, "loc": { "start": { "line": 527, @@ -33533,8 +33539,8 @@ }, "object": { "type": "ThisExpression", - "start": 21226, - "end": 21230, + "start": 21269, + "end": 21273, "loc": { "start": { "line": 527, @@ -33548,8 +33554,8 @@ }, "property": { "type": "Identifier", - "start": 21231, - "end": 21237, + "start": 21274, + "end": 21280, "loc": { "start": { "line": 527, @@ -33567,8 +33573,8 @@ }, "property": { "type": "Identifier", - "start": 21238, - "end": 21244, + "start": 21281, + "end": 21287, "loc": { "start": { "line": 527, @@ -33587,8 +33593,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 21245, - "end": 21261, + "start": 21288, + "end": 21304, "loc": { "start": { "line": 527, @@ -33609,8 +33615,8 @@ }, "property": { "type": "Identifier", - "start": 21263, - "end": 21268, + "start": 21306, + "end": 21311, "loc": { "start": { "line": 527, @@ -33629,8 +33635,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 21269, - "end": 21302, + "start": 21312, + "end": 21345, "loc": { "start": { "line": 527, @@ -33663,8 +33669,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t ", - "start": 20628, - "end": 20735, + "start": 20671, + "end": 20778, "loc": { "start": { "line": 508, @@ -33681,8 +33687,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t ", - "start": 21316, - "end": 21588, + "start": 21359, + "end": 21631, "loc": { "start": { "line": 530, @@ -33698,8 +33704,8 @@ }, { "type": "ClassMethod", - "start": 21591, - "end": 22708, + "start": 21634, + "end": 22751, "loc": { "start": { "line": 537, @@ -33714,8 +33720,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 21591, - "end": 21607, + "start": 21634, + "end": 21650, "loc": { "start": { "line": 537, @@ -33738,8 +33744,8 @@ "params": [ { "type": "Identifier", - "start": 21608, - "end": 21613, + "start": 21651, + "end": 21656, "loc": { "start": { "line": 537, @@ -33755,8 +33761,8 @@ }, { "type": "Identifier", - "start": 21615, - "end": 21629, + "start": 21658, + "end": 21672, "loc": { "start": { "line": 537, @@ -33773,8 +33779,8 @@ ], "body": { "type": "BlockStatement", - "start": 21631, - "end": 22708, + "start": 21674, + "end": 22751, "loc": { "start": { "line": 537, @@ -33788,8 +33794,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 21899, - "end": 21968, + "start": 21942, + "end": 22011, "loc": { "start": { "line": 540, @@ -33803,8 +33809,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 21905, - "end": 21967, + "start": 21948, + "end": 22010, "loc": { "start": { "line": 540, @@ -33817,8 +33823,8 @@ }, "id": { "type": "Identifier", - "start": 21905, - "end": 21915, + "start": 21948, + "end": 21958, "loc": { "start": { "line": 540, @@ -33835,8 +33841,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 21918, - "end": 21967, + "start": 21961, + "end": 22010, "loc": { "start": { "line": 540, @@ -33854,8 +33860,8 @@ "params": [ { "type": "Identifier", - "start": 21919, - "end": 21928, + "start": 21962, + "end": 21971, "loc": { "start": { "line": 540, @@ -33872,8 +33878,8 @@ ], "body": { "type": "CallExpression", - "start": 21933, - "end": 21967, + "start": 21976, + "end": 22010, "loc": { "start": { "line": 540, @@ -33886,8 +33892,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21933, - "end": 21956, + "start": 21976, + "end": 21999, "loc": { "start": { "line": 540, @@ -33900,8 +33906,8 @@ }, "object": { "type": "Identifier", - "start": 21933, - "end": 21947, + "start": 21976, + "end": 21990, "loc": { "start": { "line": 540, @@ -33917,8 +33923,8 @@ }, "property": { "type": "Identifier", - "start": 21948, - "end": 21956, + "start": 21991, + "end": 21999, "loc": { "start": { "line": 540, @@ -33937,8 +33943,8 @@ "arguments": [ { "type": "Identifier", - "start": 21957, - "end": 21966, + "start": 22000, + "end": 22009, "loc": { "start": { "line": 540, @@ -33963,8 +33969,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is accessible. This prevents the tile's contents from being searched. ", - "start": 21636, - "end": 21762, + "start": 21679, + "end": 21805, "loc": { "start": { "line": 538, @@ -33979,8 +33985,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 21766, - "end": 21895, + "start": 21809, + "end": 21938, "loc": { "start": { "line": 539, @@ -33997,8 +34003,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 21972, - "end": 22092, + "start": 22015, + "end": 22135, "loc": { "start": { "line": 541, @@ -34014,8 +34020,8 @@ }, { "type": "VariableDeclaration", - "start": 22096, - "end": 22312, + "start": 22139, + "end": 22355, "loc": { "start": { "line": 542, @@ -34029,8 +34035,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 22102, - "end": 22311, + "start": 22145, + "end": 22354, "loc": { "start": { "line": 542, @@ -34043,8 +34049,8 @@ }, "id": { "type": "Identifier", - "start": 22102, - "end": 22114, + "start": 22145, + "end": 22157, "loc": { "start": { "line": 542, @@ -34061,8 +34067,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 22117, - "end": 22311, + "start": 22160, + "end": 22354, "loc": { "start": { "line": 542, @@ -34080,8 +34086,8 @@ "params": [ { "type": "Identifier", - "start": 22118, - "end": 22127, + "start": 22161, + "end": 22170, "loc": { "start": { "line": 542, @@ -34098,8 +34104,8 @@ ], "body": { "type": "LogicalExpression", - "start": 22132, - "end": 22311, + "start": 22175, + "end": 22354, "loc": { "start": { "line": 542, @@ -34112,8 +34118,8 @@ }, "left": { "type": "BinaryExpression", - "start": 22133, - "end": 22195, + "start": 22176, + "end": 22238, "loc": { "start": { "line": 542, @@ -34126,8 +34132,8 @@ }, "left": { "type": "MemberExpression", - "start": 22133, - "end": 22156, + "start": 22176, + "end": 22199, "loc": { "start": { "line": 542, @@ -34140,8 +34146,8 @@ }, "object": { "type": "Identifier", - "start": 22133, - "end": 22142, + "start": 22176, + "end": 22185, "loc": { "start": { "line": 542, @@ -34157,8 +34163,8 @@ }, "property": { "type": "Identifier", - "start": 22143, - "end": 22156, + "start": 22186, + "end": 22199, "loc": { "start": { "line": 542, @@ -34177,8 +34183,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 22161, - "end": 22195, + "start": 22204, + "end": 22238, "loc": { "start": { "line": 542, @@ -34191,8 +34197,8 @@ }, "object": { "type": "Identifier", - "start": 22161, - "end": 22177, + "start": 22204, + "end": 22220, "loc": { "start": { "line": 542, @@ -34208,8 +34214,8 @@ }, "property": { "type": "Identifier", - "start": 22178, - "end": 22195, + "start": 22221, + "end": 22238, "loc": { "start": { "line": 542, @@ -34227,14 +34233,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 22132 + "parenStart": 22175 } }, "operator": "||", "right": { "type": "LogicalExpression", - "start": 22200, - "end": 22311, + "start": 22243, + "end": 22354, "loc": { "start": { "line": 542, @@ -34247,8 +34253,8 @@ }, "left": { "type": "MemberExpression", - "start": 22200, - "end": 22217, + "start": 22243, + "end": 22260, "loc": { "start": { "line": 542, @@ -34261,8 +34267,8 @@ }, "object": { "type": "Identifier", - "start": 22200, - "end": 22209, + "start": 22243, + "end": 22252, "loc": { "start": { "line": 542, @@ -34278,8 +34284,8 @@ }, "property": { "type": "Identifier", - "start": 22210, - "end": 22217, + "start": 22253, + "end": 22260, "loc": { "start": { "line": 542, @@ -34298,8 +34304,8 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 22222, - "end": 22310, + "start": 22265, + "end": 22353, "loc": { "start": { "line": 542, @@ -34312,8 +34318,8 @@ }, "left": { "type": "UnaryExpression", - "start": 22222, - "end": 22246, + "start": 22265, + "end": 22289, "loc": { "start": { "line": 542, @@ -34328,8 +34334,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 22223, - "end": 22246, + "start": 22266, + "end": 22289, "loc": { "start": { "line": 542, @@ -34342,8 +34348,8 @@ }, "object": { "type": "Identifier", - "start": 22223, - "end": 22232, + "start": 22266, + "end": 22275, "loc": { "start": { "line": 542, @@ -34359,8 +34365,8 @@ }, "property": { "type": "Identifier", - "start": 22233, - "end": 22246, + "start": 22276, + "end": 22289, "loc": { "start": { "line": 542, @@ -34383,8 +34389,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 22250, - "end": 22310, + "start": 22293, + "end": 22353, "loc": { "start": { "line": 542, @@ -34397,8 +34403,8 @@ }, "left": { "type": "MemberExpression", - "start": 22250, - "end": 22273, + "start": 22293, + "end": 22316, "loc": { "start": { "line": 542, @@ -34411,8 +34417,8 @@ }, "object": { "type": "Identifier", - "start": 22250, - "end": 22259, + "start": 22293, + "end": 22302, "loc": { "start": { "line": 542, @@ -34428,8 +34434,8 @@ }, "property": { "type": "Identifier", - "start": 22260, - "end": 22273, + "start": 22303, + "end": 22316, "loc": { "start": { "line": 542, @@ -34448,8 +34454,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 22278, - "end": 22310, + "start": 22321, + "end": 22353, "loc": { "start": { "line": 542, @@ -34462,8 +34468,8 @@ }, "object": { "type": "Identifier", - "start": 22278, - "end": 22294, + "start": 22321, + "end": 22337, "loc": { "start": { "line": 542, @@ -34479,8 +34485,8 @@ }, "property": { "type": "Identifier", - "start": 22295, - "end": 22310, + "start": 22338, + "end": 22353, "loc": { "start": { "line": 542, @@ -34499,7 +34505,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 22221 + "parenStart": 22264 } } } @@ -34513,8 +34519,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 21972, - "end": 22092, + "start": 22015, + "end": 22135, "loc": { "start": { "line": 541, @@ -34531,8 +34537,8 @@ { "type": "CommentLine", "value": " If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.", - "start": 22316, - "end": 22455, + "start": 22359, + "end": 22498, "loc": { "start": { "line": 543, @@ -34548,8 +34554,8 @@ }, { "type": "VariableDeclaration", - "start": 22459, - "end": 22617, + "start": 22502, + "end": 22660, "loc": { "start": { "line": 544, @@ -34563,8 +34569,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 22465, - "end": 22616, + "start": 22508, + "end": 22659, "loc": { "start": { "line": 544, @@ -34577,8 +34583,8 @@ }, "id": { "type": "Identifier", - "start": 22465, - "end": 22485, + "start": 22508, + "end": 22528, "loc": { "start": { "line": 544, @@ -34595,8 +34601,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 22488, - "end": 22616, + "start": 22531, + "end": 22659, "loc": { "start": { "line": 544, @@ -34614,8 +34620,8 @@ "params": [ { "type": "Identifier", - "start": 22489, - "end": 22498, + "start": 22532, + "end": 22541, "loc": { "start": { "line": 544, @@ -34632,8 +34638,8 @@ ], "body": { "type": "CallExpression", - "start": 22503, - "end": 22616, + "start": 22546, + "end": 22659, "loc": { "start": { "line": 544, @@ -34646,8 +34652,8 @@ }, "callee": { "type": "MemberExpression", - "start": 22503, - "end": 22531, + "start": 22546, + "end": 22574, "loc": { "start": { "line": 544, @@ -34660,8 +34666,8 @@ }, "object": { "type": "CallExpression", - "start": 22503, - "end": 22526, + "start": 22546, + "end": 22569, "loc": { "start": { "line": 544, @@ -34674,8 +34680,8 @@ }, "callee": { "type": "MemberExpression", - "start": 22503, - "end": 22524, + "start": 22546, + "end": 22567, "loc": { "start": { "line": 544, @@ -34688,8 +34694,8 @@ }, "object": { "type": "Identifier", - "start": 22503, - "end": 22512, + "start": 22546, + "end": 22555, "loc": { "start": { "line": 544, @@ -34705,8 +34711,8 @@ }, "property": { "type": "Identifier", - "start": 22513, - "end": 22524, + "start": 22556, + "end": 22567, "loc": { "start": { "line": 544, @@ -34726,8 +34732,8 @@ }, "property": { "type": "Identifier", - "start": 22527, - "end": 22531, + "start": 22570, + "end": 22574, "loc": { "start": { "line": 544, @@ -34746,8 +34752,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 22532, - "end": 22615, + "start": 22575, + "end": 22658, "loc": { "start": { "line": 544, @@ -34765,8 +34771,8 @@ "params": [ { "type": "Identifier", - "start": 22533, - "end": 22542, + "start": 22576, + "end": 22585, "loc": { "start": { "line": 544, @@ -34783,8 +34789,8 @@ ], "body": { "type": "BlockStatement", - "start": 22547, - "end": 22615, + "start": 22590, + "end": 22658, "loc": { "start": { "line": 544, @@ -34798,8 +34804,8 @@ "body": [ { "type": "ReturnStatement", - "start": 22553, - "end": 22610, + "start": 22596, + "end": 22653, "loc": { "start": { "line": 545, @@ -34812,8 +34818,8 @@ }, "argument": { "type": "LogicalExpression", - "start": 22560, - "end": 22609, + "start": 22603, + "end": 22652, "loc": { "start": { "line": 545, @@ -34826,8 +34832,8 @@ }, "left": { "type": "CallExpression", - "start": 22560, - "end": 22583, + "start": 22603, + "end": 22626, "loc": { "start": { "line": 545, @@ -34840,8 +34846,8 @@ }, "callee": { "type": "Identifier", - "start": 22560, - "end": 22572, + "start": 22603, + "end": 22615, "loc": { "start": { "line": 545, @@ -34858,8 +34864,8 @@ "arguments": [ { "type": "Identifier", - "start": 22573, - "end": 22582, + "start": 22616, + "end": 22625, "loc": { "start": { "line": 545, @@ -34878,8 +34884,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 22587, - "end": 22609, + "start": 22630, + "end": 22652, "loc": { "start": { "line": 545, @@ -34894,8 +34900,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 22588, - "end": 22609, + "start": 22631, + "end": 22652, "loc": { "start": { "line": 545, @@ -34908,8 +34914,8 @@ }, "callee": { "type": "Identifier", - "start": 22588, - "end": 22598, + "start": 22631, + "end": 22641, "loc": { "start": { "line": 545, @@ -34926,8 +34932,8 @@ "arguments": [ { "type": "Identifier", - "start": 22599, - "end": 22608, + "start": 22642, + "end": 22651, "loc": { "start": { "line": 545, @@ -34964,8 +34970,8 @@ { "type": "CommentLine", "value": " If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.", - "start": 22316, - "end": 22455, + "start": 22359, + "end": 22498, "loc": { "start": { "line": 543, @@ -34981,8 +34987,8 @@ }, { "type": "ReturnStatement", - "start": 22621, - "end": 22704, + "start": 22664, + "end": 22747, "loc": { "start": { "line": 547, @@ -34995,8 +35001,8 @@ }, "argument": { "type": "LogicalExpression", - "start": 22628, - "end": 22703, + "start": 22671, + "end": 22746, "loc": { "start": { "line": 547, @@ -35009,8 +35015,8 @@ }, "left": { "type": "CallExpression", - "start": 22628, - "end": 22645, + "start": 22671, + "end": 22688, "loc": { "start": { "line": 547, @@ -35023,8 +35029,8 @@ }, "callee": { "type": "Identifier", - "start": 22628, - "end": 22638, + "start": 22671, + "end": 22681, "loc": { "start": { "line": 547, @@ -35041,8 +35047,8 @@ "arguments": [ { "type": "Identifier", - "start": 22639, - "end": 22644, + "start": 22682, + "end": 22687, "loc": { "start": { "line": 547, @@ -35061,8 +35067,8 @@ "operator": "||", "right": { "type": "LogicalExpression", - "start": 22650, - "end": 22702, + "start": 22693, + "end": 22745, "loc": { "start": { "line": 547, @@ -35075,8 +35081,8 @@ }, "left": { "type": "UnaryExpression", - "start": 22650, - "end": 22670, + "start": 22693, + "end": 22713, "loc": { "start": { "line": 547, @@ -35091,8 +35097,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 22651, - "end": 22670, + "start": 22694, + "end": 22713, "loc": { "start": { "line": 547, @@ -35105,8 +35111,8 @@ }, "callee": { "type": "Identifier", - "start": 22651, - "end": 22663, + "start": 22694, + "end": 22706, "loc": { "start": { "line": 547, @@ -35123,8 +35129,8 @@ "arguments": [ { "type": "Identifier", - "start": 22664, - "end": 22669, + "start": 22707, + "end": 22712, "loc": { "start": { "line": 547, @@ -35147,8 +35153,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 22674, - "end": 22702, + "start": 22717, + "end": 22745, "loc": { "start": { "line": 547, @@ -35163,8 +35169,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 22675, - "end": 22702, + "start": 22718, + "end": 22745, "loc": { "start": { "line": 547, @@ -35177,8 +35183,8 @@ }, "callee": { "type": "Identifier", - "start": 22675, - "end": 22695, + "start": 22718, + "end": 22738, "loc": { "start": { "line": 547, @@ -35195,8 +35201,8 @@ "arguments": [ { "type": "Identifier", - "start": 22696, - "end": 22701, + "start": 22739, + "end": 22744, "loc": { "start": { "line": 547, @@ -35218,7 +35224,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 22649 + "parenStart": 22692 } } } @@ -35231,8 +35237,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t ", - "start": 21316, - "end": 21588, + "start": 21359, + "end": 21631, "loc": { "start": { "line": 530, @@ -35249,8 +35255,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t ", - "start": 22711, - "end": 23306, + "start": 22754, + "end": 23349, "loc": { "start": { "line": 549, @@ -35266,8 +35272,8 @@ }, { "type": "ClassMethod", - "start": 23309, - "end": 24745, + "start": 23352, + "end": 24788, "loc": { "start": { "line": 560, @@ -35282,8 +35288,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 23309, - "end": 23316, + "start": 23352, + "end": 23359, "loc": { "start": { "line": 560, @@ -35306,8 +35312,8 @@ "params": [ { "type": "Identifier", - "start": 23317, - "end": 23326, + "start": 23360, + "end": 23369, "loc": { "start": { "line": 560, @@ -35323,8 +35329,8 @@ }, { "type": "Identifier", - "start": 23328, - "end": 23335, + "start": 23371, + "end": 23378, "loc": { "start": { "line": 560, @@ -35340,8 +35346,8 @@ }, { "type": "Identifier", - "start": 23337, - "end": 23349, + "start": 23380, + "end": 23392, "loc": { "start": { "line": 560, @@ -35358,8 +35364,8 @@ ], "body": { "type": "BlockStatement", - "start": 23351, - "end": 24745, + "start": 23394, + "end": 24788, "loc": { "start": { "line": 560, @@ -35373,8 +35379,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 23384, - "end": 23441, + "start": 23427, + "end": 23484, "loc": { "start": { "line": 562, @@ -35388,8 +35394,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 23390, - "end": 23440, + "start": 23433, + "end": 23483, "loc": { "start": { "line": 562, @@ -35402,8 +35408,8 @@ }, "id": { "type": "Identifier", - "start": 23390, - "end": 23402, + "start": 23433, + "end": 23445, "loc": { "start": { "line": 562, @@ -35420,8 +35426,8 @@ }, "init": { "type": "CallExpression", - "start": 23405, - "end": 23440, + "start": 23448, + "end": 23483, "loc": { "start": { "line": 562, @@ -35434,8 +35440,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23405, - "end": 23429, + "start": 23448, + "end": 23472, "loc": { "start": { "line": 562, @@ -35448,8 +35454,8 @@ }, "object": { "type": "MemberExpression", - "start": 23405, - "end": 23425, + "start": 23448, + "end": 23468, "loc": { "start": { "line": 562, @@ -35462,8 +35468,8 @@ }, "object": { "type": "ThisExpression", - "start": 23405, - "end": 23409, + "start": 23448, + "end": 23452, "loc": { "start": { "line": 562, @@ -35477,8 +35483,8 @@ }, "property": { "type": "Identifier", - "start": 23410, - "end": 23425, + "start": 23453, + "end": 23468, "loc": { "start": { "line": 562, @@ -35496,8 +35502,8 @@ }, "property": { "type": "Identifier", - "start": 23426, - "end": 23429, + "start": 23469, + "end": 23472, "loc": { "start": { "line": 562, @@ -35516,8 +35522,8 @@ "arguments": [ { "type": "Identifier", - "start": 23430, - "end": 23439, + "start": 23473, + "end": 23482, "loc": { "start": { "line": 562, @@ -35541,8 +35547,8 @@ { "type": "CommentLine", "value": " Get the instance data", - "start": 23356, - "end": 23380, + "start": 23399, + "end": 23423, "loc": { "start": { "line": 561, @@ -35558,8 +35564,8 @@ }, { "type": "IfStatement", - "start": 23445, - "end": 23558, + "start": 23488, + "end": 23601, "loc": { "start": { "line": 563, @@ -35572,8 +35578,8 @@ }, "test": { "type": "UnaryExpression", - "start": 23449, - "end": 23462, + "start": 23492, + "end": 23505, "loc": { "start": { "line": 563, @@ -35588,8 +35594,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 23450, - "end": 23462, + "start": 23493, + "end": 23505, "loc": { "start": { "line": 563, @@ -35609,8 +35615,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 23464, - "end": 23558, + "start": 23507, + "end": 23601, "loc": { "start": { "line": 563, @@ -35624,8 +35630,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 23470, - "end": 23541, + "start": 23513, + "end": 23584, "loc": { "start": { "line": 564, @@ -35638,8 +35644,8 @@ }, "expression": { "type": "CallExpression", - "start": 23470, - "end": 23540, + "start": 23513, + "end": 23583, "loc": { "start": { "line": 564, @@ -35652,8 +35658,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23470, - "end": 23512, + "start": 23513, + "end": 23555, "loc": { "start": { "line": 564, @@ -35666,8 +35672,8 @@ }, "object": { "type": "CallExpression", - "start": 23470, - "end": 23506, + "start": 23513, + "end": 23549, "loc": { "start": { "line": 564, @@ -35680,8 +35686,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23470, - "end": 23488, + "start": 23513, + "end": 23531, "loc": { "start": { "line": 564, @@ -35694,8 +35700,8 @@ }, "object": { "type": "MemberExpression", - "start": 23470, - "end": 23481, + "start": 23513, + "end": 23524, "loc": { "start": { "line": 564, @@ -35708,8 +35714,8 @@ }, "object": { "type": "ThisExpression", - "start": 23470, - "end": 23474, + "start": 23513, + "end": 23517, "loc": { "start": { "line": 564, @@ -35723,8 +35729,8 @@ }, "property": { "type": "Identifier", - "start": 23475, - "end": 23481, + "start": 23518, + "end": 23524, "loc": { "start": { "line": 564, @@ -35742,8 +35748,8 @@ }, "property": { "type": "Identifier", - "start": 23482, - "end": 23488, + "start": 23525, + "end": 23531, "loc": { "start": { "line": 564, @@ -35762,8 +35768,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 23489, - "end": 23505, + "start": 23532, + "end": 23548, "loc": { "start": { "line": 564, @@ -35784,8 +35790,8 @@ }, "property": { "type": "Identifier", - "start": 23507, - "end": 23512, + "start": 23550, + "end": 23555, "loc": { "start": { "line": 564, @@ -35804,8 +35810,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 23513, - "end": 23539, + "start": 23556, + "end": 23582, "loc": { "start": { "line": 564, @@ -35827,8 +35833,8 @@ }, { "type": "ReturnStatement", - "start": 23546, - "end": 23553, + "start": 23589, + "end": 23596, "loc": { "start": { "line": 565, @@ -35850,8 +35856,8 @@ { "type": "CommentLine", "value": " Find the path", - "start": 23566, - "end": 23582, + "start": 23609, + "end": 23625, "loc": { "start": { "line": 568, @@ -35867,8 +35873,8 @@ }, { "type": "VariableDeclaration", - "start": 23586, - "end": 24670, + "start": 23629, + "end": 24713, "loc": { "start": { "line": 569, @@ -35882,8 +35888,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 23592, - "end": 24669, + "start": 23635, + "end": 24712, "loc": { "start": { "line": 569, @@ -35896,8 +35902,8 @@ }, "id": { "type": "Identifier", - "start": 23592, - "end": 23598, + "start": 23635, + "end": 23641, "loc": { "start": { "line": 569, @@ -35914,8 +35920,8 @@ }, "init": { "type": "CallExpression", - "start": 23601, - "end": 24669, + "start": 23644, + "end": 24712, "loc": { "start": { "line": 569, @@ -35928,8 +35934,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23601, - "end": 23631, + "start": 23644, + "end": 23674, "loc": { "start": { "line": 569, @@ -35942,8 +35948,8 @@ }, "object": { "type": "MemberExpression", - "start": 23601, - "end": 23622, + "start": 23644, + "end": 23665, "loc": { "start": { "line": 569, @@ -35956,8 +35962,8 @@ }, "object": { "type": "Identifier", - "start": 23601, - "end": 23613, + "start": 23644, + "end": 23656, "loc": { "start": { "line": 569, @@ -35973,8 +35979,8 @@ }, "property": { "type": "Identifier", - "start": 23614, - "end": 23622, + "start": 23657, + "end": 23665, "loc": { "start": { "line": 569, @@ -35992,8 +35998,8 @@ }, "property": { "type": "Identifier", - "start": 23623, - "end": 23631, + "start": 23666, + "end": 23674, "loc": { "start": { "line": 569, @@ -36012,8 +36018,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 23632, - "end": 23641, + "start": 23675, + "end": 23684, "loc": { "start": { "line": 569, @@ -36026,8 +36032,8 @@ }, "object": { "type": "Identifier", - "start": 23632, - "end": 23639, + "start": 23675, + "end": 23682, "loc": { "start": { "line": 569, @@ -36043,8 +36049,8 @@ }, "property": { "type": "Identifier", - "start": 23640, - "end": 23641, + "start": 23683, + "end": 23684, "loc": { "start": { "line": 569, @@ -36062,8 +36068,8 @@ }, { "type": "MemberExpression", - "start": 23643, - "end": 23652, + "start": 23686, + "end": 23695, "loc": { "start": { "line": 569, @@ -36076,8 +36082,8 @@ }, "object": { "type": "Identifier", - "start": 23643, - "end": 23650, + "start": 23686, + "end": 23693, "loc": { "start": { "line": 569, @@ -36093,8 +36099,8 @@ }, "property": { "type": "Identifier", - "start": 23651, - "end": 23652, + "start": 23694, + "end": 23695, "loc": { "start": { "line": 569, @@ -36112,8 +36118,8 @@ }, { "type": "MemberExpression", - "start": 23654, - "end": 23668, + "start": 23697, + "end": 23711, "loc": { "start": { "line": 569, @@ -36126,8 +36132,8 @@ }, "object": { "type": "Identifier", - "start": 23654, - "end": 23666, + "start": 23697, + "end": 23709, "loc": { "start": { "line": 569, @@ -36143,8 +36149,8 @@ }, "property": { "type": "Identifier", - "start": 23667, - "end": 23668, + "start": 23710, + "end": 23711, "loc": { "start": { "line": 569, @@ -36162,8 +36168,8 @@ }, { "type": "MemberExpression", - "start": 23670, - "end": 23684, + "start": 23713, + "end": 23727, "loc": { "start": { "line": 569, @@ -36176,8 +36182,8 @@ }, "object": { "type": "Identifier", - "start": 23670, - "end": 23682, + "start": 23713, + "end": 23725, "loc": { "start": { "line": 569, @@ -36193,8 +36199,8 @@ }, "property": { "type": "Identifier", - "start": 23683, - "end": 23684, + "start": 23726, + "end": 23727, "loc": { "start": { "line": 569, @@ -36212,8 +36218,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 23686, - "end": 24668, + "start": 23729, + "end": 24711, "loc": { "start": { "line": 569, @@ -36231,8 +36237,8 @@ "params": [ { "type": "Identifier", - "start": 23687, - "end": 23692, + "start": 23730, + "end": 23735, "loc": { "start": { "line": 569, @@ -36249,8 +36255,8 @@ ], "body": { "type": "BlockStatement", - "start": 23697, - "end": 24668, + "start": 23740, + "end": 24711, "loc": { "start": { "line": 569, @@ -36264,8 +36270,8 @@ "body": [ { "type": "IfStatement", - "start": 23738, - "end": 24663, + "start": 23781, + "end": 24706, "loc": { "start": { "line": 571, @@ -36278,8 +36284,8 @@ }, "test": { "type": "LogicalExpression", - "start": 23742, - "end": 23778, + "start": 23785, + "end": 23821, "loc": { "start": { "line": 571, @@ -36292,8 +36298,8 @@ }, "left": { "type": "CallExpression", - "start": 23742, - "end": 23762, + "start": 23785, + "end": 23805, "loc": { "start": { "line": 571, @@ -36306,8 +36312,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23742, - "end": 23755, + "start": 23785, + "end": 23798, "loc": { "start": { "line": 571, @@ -36320,8 +36326,8 @@ }, "object": { "type": "Identifier", - "start": 23742, - "end": 23747, + "start": 23785, + "end": 23790, "loc": { "start": { "line": 571, @@ -36338,8 +36344,8 @@ }, "property": { "type": "Identifier", - "start": 23748, - "end": 23755, + "start": 23791, + "end": 23798, "loc": { "start": { "line": 571, @@ -36359,8 +36365,8 @@ "arguments": [ { "type": "Identifier", - "start": 23756, - "end": 23761, + "start": 23799, + "end": 23804, "loc": { "start": { "line": 571, @@ -36380,8 +36386,8 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 23766, - "end": 23778, + "start": 23809, + "end": 23821, "loc": { "start": { "line": 571, @@ -36394,8 +36400,8 @@ }, "object": { "type": "Identifier", - "start": 23766, - "end": 23771, + "start": 23809, + "end": 23814, "loc": { "start": { "line": 571, @@ -36411,8 +36417,8 @@ }, "property": { "type": "Identifier", - "start": 23772, - "end": 23778, + "start": 23815, + "end": 23821, "loc": { "start": { "line": 571, @@ -36432,8 +36438,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 23780, - "end": 24388, + "start": 23823, + "end": 24431, "loc": { "start": { "line": 571, @@ -36447,8 +36453,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 23872, - "end": 23881, + "start": 23915, + "end": 23924, "loc": { "start": { "line": 577, @@ -36462,8 +36468,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 23876, - "end": 23880, + "start": 23919, + "end": 23923, "loc": { "start": { "line": 577, @@ -36476,8 +36482,8 @@ }, "id": { "type": "Identifier", - "start": 23876, - "end": 23880, + "start": 23919, + "end": 23923, "loc": { "start": { "line": 577, @@ -36501,8 +36507,8 @@ { "type": "CommentBlock", "value": "*\r\n\t\t\t\t * The path generated.\r\n\t\t\t\t * @private\r\n\t\t\t\t * @type {Array}\r\n\t\t\t\t ", - "start": 23787, - "end": 23866, + "start": 23830, + "end": 23909, "loc": { "start": { "line": 572, @@ -36519,8 +36525,8 @@ { "type": "CommentLine", "value": " Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.", - "start": 23887, - "end": 23955, + "start": 23930, + "end": 23998, "loc": { "start": { "line": 578, @@ -36536,8 +36542,8 @@ }, { "type": "ExpressionStatement", - "start": 23961, - "end": 24049, + "start": 24004, + "end": 24092, "loc": { "start": { "line": 579, @@ -36550,8 +36556,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 23961, - "end": 24048, + "start": 24004, + "end": 24091, "loc": { "start": { "line": 579, @@ -36565,8 +36571,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 23961, - "end": 23965, + "start": 24004, + "end": 24008, "loc": { "start": { "line": 579, @@ -36583,8 +36589,8 @@ }, "right": { "type": "CallExpression", - "start": 23968, - "end": 24048, + "start": 24011, + "end": 24091, "loc": { "start": { "line": 579, @@ -36597,8 +36603,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23968, - "end": 23977, + "start": 24011, + "end": 24020, "loc": { "start": { "line": 579, @@ -36611,8 +36617,8 @@ }, "object": { "type": "Identifier", - "start": 23968, - "end": 23973, + "start": 24011, + "end": 24016, "loc": { "start": { "line": 579, @@ -36628,8 +36634,8 @@ }, "property": { "type": "Identifier", - "start": 23974, - "end": 23977, + "start": 24017, + "end": 24020, "loc": { "start": { "line": 579, @@ -36648,8 +36654,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 23978, - "end": 24047, + "start": 24021, + "end": 24090, "loc": { "start": { "line": 579, @@ -36667,8 +36673,8 @@ "params": [ { "type": "Identifier", - "start": 23979, - "end": 23987, + "start": 24022, + "end": 24030, "loc": { "start": { "line": 579, @@ -36685,8 +36691,8 @@ ], "body": { "type": "ObjectExpression", - "start": 23993, - "end": 24046, + "start": 24036, + "end": 24089, "loc": { "start": { "line": 579, @@ -36700,8 +36706,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 24001, - "end": 24016, + "start": 24044, + "end": 24059, "loc": { "start": { "line": 580, @@ -36717,8 +36723,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 24001, - "end": 24002, + "start": 24044, + "end": 24045, "loc": { "start": { "line": 580, @@ -36734,8 +36740,8 @@ }, "value": { "type": "UpdateExpression", - "start": 24004, - "end": 24016, + "start": 24047, + "end": 24059, "loc": { "start": { "line": 580, @@ -36750,8 +36756,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24006, - "end": 24016, + "start": 24049, + "end": 24059, "loc": { "start": { "line": 580, @@ -36764,8 +36770,8 @@ }, "object": { "type": "Identifier", - "start": 24006, - "end": 24014, + "start": 24049, + "end": 24057, "loc": { "start": { "line": 580, @@ -36781,8 +36787,8 @@ }, "property": { "type": "Identifier", - "start": 24015, - "end": 24016, + "start": 24058, + "end": 24059, "loc": { "start": { "line": 580, @@ -36805,8 +36811,8 @@ }, { "type": "ObjectProperty", - "start": 24024, - "end": 24039, + "start": 24067, + "end": 24082, "loc": { "start": { "line": 581, @@ -36822,8 +36828,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 24024, - "end": 24025, + "start": 24067, + "end": 24068, "loc": { "start": { "line": 581, @@ -36839,8 +36845,8 @@ }, "value": { "type": "UpdateExpression", - "start": 24027, - "end": 24039, + "start": 24070, + "end": 24082, "loc": { "start": { "line": 581, @@ -36855,8 +36861,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24029, - "end": 24039, + "start": 24072, + "end": 24082, "loc": { "start": { "line": 581, @@ -36869,8 +36875,8 @@ }, "object": { "type": "Identifier", - "start": 24029, - "end": 24037, + "start": 24072, + "end": 24080, "loc": { "start": { "line": 581, @@ -36886,8 +36892,8 @@ }, "property": { "type": "Identifier", - "start": 24038, - "end": 24039, + "start": 24081, + "end": 24082, "loc": { "start": { "line": 581, @@ -36911,7 +36917,7 @@ ], "extra": { "parenthesized": true, - "parenStart": 23992 + "parenStart": 24035 } } } @@ -36923,8 +36929,8 @@ { "type": "CommentLine", "value": " Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.", - "start": 23887, - "end": 23955, + "start": 23930, + "end": 23998, "loc": { "start": { "line": 578, @@ -36941,8 +36947,8 @@ { "type": "CommentLine", "value": " Remove the node you start on.", - "start": 24055, - "end": 24087, + "start": 24098, + "end": 24130, "loc": { "start": { "line": 583, @@ -36958,8 +36964,8 @@ }, { "type": "ExpressionStatement", - "start": 24093, - "end": 24106, + "start": 24136, + "end": 24149, "loc": { "start": { "line": 584, @@ -36972,8 +36978,8 @@ }, "expression": { "type": "CallExpression", - "start": 24093, - "end": 24105, + "start": 24136, + "end": 24148, "loc": { "start": { "line": 584, @@ -36986,8 +36992,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24093, - "end": 24103, + "start": 24136, + "end": 24146, "loc": { "start": { "line": 584, @@ -37000,8 +37006,8 @@ }, "object": { "type": "Identifier", - "start": 24093, - "end": 24097, + "start": 24136, + "end": 24140, "loc": { "start": { "line": 584, @@ -37018,8 +37024,8 @@ }, "property": { "type": "Identifier", - "start": 24098, - "end": 24103, + "start": 24141, + "end": 24146, "loc": { "start": { "line": 584, @@ -37043,8 +37049,8 @@ { "type": "CommentLine", "value": " Remove the node you start on.", - "start": 24055, - "end": 24087, + "start": 24098, + "end": 24130, "loc": { "start": { "line": 583, @@ -37061,8 +37067,8 @@ { "type": "CommentLine", "value": " Store the path", - "start": 24112, - "end": 24129, + "start": 24155, + "end": 24172, "loc": { "start": { "line": 585, @@ -37078,8 +37084,8 @@ }, { "type": "ExpressionStatement", - "start": 24135, - "end": 24160, + "start": 24178, + "end": 24203, "loc": { "start": { "line": 586, @@ -37092,8 +37098,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 24135, - "end": 24159, + "start": 24178, + "end": 24202, "loc": { "start": { "line": 586, @@ -37107,8 +37113,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 24135, - "end": 24152, + "start": 24178, + "end": 24195, "loc": { "start": { "line": 586, @@ -37121,8 +37127,8 @@ }, "object": { "type": "Identifier", - "start": 24135, - "end": 24147, + "start": 24178, + "end": 24190, "loc": { "start": { "line": 586, @@ -37139,8 +37145,8 @@ }, "property": { "type": "Identifier", - "start": 24148, - "end": 24152, + "start": 24191, + "end": 24195, "loc": { "start": { "line": 586, @@ -37159,8 +37165,8 @@ }, "right": { "type": "Identifier", - "start": 24155, - "end": 24159, + "start": 24198, + "end": 24202, "loc": { "start": { "line": 586, @@ -37180,8 +37186,8 @@ { "type": "CommentLine", "value": " Store the path", - "start": 24112, - "end": 24129, + "start": 24155, + "end": 24172, "loc": { "start": { "line": 585, @@ -37198,8 +37204,8 @@ { "type": "CommentLine", "value": " Store the pathID", - "start": 24166, - "end": 24185, + "start": 24209, + "end": 24228, "loc": { "start": { "line": 587, @@ -37215,8 +37221,8 @@ }, { "type": "ExpressionStatement", - "start": 24191, - "end": 24220, + "start": 24234, + "end": 24263, "loc": { "start": { "line": 588, @@ -37229,8 +37235,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 24191, - "end": 24219, + "start": 24234, + "end": 24262, "loc": { "start": { "line": 588, @@ -37244,8 +37250,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 24191, - "end": 24210, + "start": 24234, + "end": 24253, "loc": { "start": { "line": 588, @@ -37258,8 +37264,8 @@ }, "object": { "type": "Identifier", - "start": 24191, - "end": 24203, + "start": 24234, + "end": 24246, "loc": { "start": { "line": 588, @@ -37276,8 +37282,8 @@ }, "property": { "type": "Identifier", - "start": 24204, - "end": 24210, + "start": 24247, + "end": 24253, "loc": { "start": { "line": 588, @@ -37296,8 +37302,8 @@ }, "right": { "type": "Identifier", - "start": 24213, - "end": 24219, + "start": 24256, + "end": 24262, "loc": { "start": { "line": 588, @@ -37317,8 +37323,8 @@ { "type": "CommentLine", "value": " Store the pathID", - "start": 24166, - "end": 24185, + "start": 24209, + "end": 24228, "loc": { "start": { "line": 587, @@ -37335,8 +37341,8 @@ { "type": "CommentLine", "value": " Call event when path is found", - "start": 24226, - "end": 24258, + "start": 24269, + "end": 24301, "loc": { "start": { "line": 589, @@ -37352,8 +37358,8 @@ }, { "type": "IfStatement", - "start": 24264, - "end": 24382, + "start": 24307, + "end": 24425, "loc": { "start": { "line": 590, @@ -37366,8 +37372,8 @@ }, "test": { "type": "BinaryExpression", - "start": 24268, - "end": 24322, + "start": 24311, + "end": 24365, "loc": { "start": { "line": 590, @@ -37380,8 +37386,8 @@ }, "left": { "type": "UnaryExpression", - "start": 24268, - "end": 24307, + "start": 24311, + "end": 24350, "loc": { "start": { "line": 590, @@ -37396,8 +37402,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24275, - "end": 24306, + "start": 24318, + "end": 24349, "loc": { "start": { "line": 590, @@ -37410,8 +37416,8 @@ }, "object": { "type": "MemberExpression", - "start": 24275, - "end": 24294, + "start": 24318, + "end": 24337, "loc": { "start": { "line": 590, @@ -37424,8 +37430,8 @@ }, "object": { "type": "Identifier", - "start": 24275, - "end": 24287, + "start": 24318, + "end": 24330, "loc": { "start": { "line": 590, @@ -37442,8 +37448,8 @@ }, "property": { "type": "Identifier", - "start": 24288, - "end": 24294, + "start": 24331, + "end": 24337, "loc": { "start": { "line": 590, @@ -37462,8 +37468,8 @@ }, "property": { "type": "Identifier", - "start": 24295, - "end": 24306, + "start": 24338, + "end": 24349, "loc": { "start": { "line": 590, @@ -37481,7 +37487,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 24274 + "parenStart": 24317 } }, "extra": { @@ -37492,8 +37498,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 24312, - "end": 24322, + "start": 24355, + "end": 24365, "loc": { "start": { "line": 590, @@ -37514,8 +37520,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 24324, - "end": 24382, + "start": 24367, + "end": 24425, "loc": { "start": { "line": 590, @@ -37529,8 +37535,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 24332, - "end": 24375, + "start": 24375, + "end": 24418, "loc": { "start": { "line": 591, @@ -37543,8 +37549,8 @@ }, "expression": { "type": "CallExpression", - "start": 24332, - "end": 24374, + "start": 24375, + "end": 24417, "loc": { "start": { "line": 591, @@ -37557,8 +37563,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24332, - "end": 24363, + "start": 24375, + "end": 24406, "loc": { "start": { "line": 591, @@ -37571,8 +37577,8 @@ }, "object": { "type": "MemberExpression", - "start": 24332, - "end": 24351, + "start": 24375, + "end": 24394, "loc": { "start": { "line": 591, @@ -37585,8 +37591,8 @@ }, "object": { "type": "Identifier", - "start": 24332, - "end": 24344, + "start": 24375, + "end": 24387, "loc": { "start": { "line": 591, @@ -37602,8 +37608,8 @@ }, "property": { "type": "Identifier", - "start": 24345, - "end": 24351, + "start": 24388, + "end": 24394, "loc": { "start": { "line": 591, @@ -37621,8 +37627,8 @@ }, "property": { "type": "Identifier", - "start": 24352, - "end": 24363, + "start": 24395, + "end": 24406, "loc": { "start": { "line": 591, @@ -37641,8 +37647,8 @@ "arguments": [ { "type": "ArrayExpression", - "start": 24364, - "end": 24373, + "start": 24407, + "end": 24416, "loc": { "start": { "line": 591, @@ -37656,8 +37662,8 @@ "elements": [ { "type": "SpreadElement", - "start": 24365, - "end": 24372, + "start": 24408, + "end": 24415, "loc": { "start": { "line": 591, @@ -37670,8 +37676,8 @@ }, "argument": { "type": "Identifier", - "start": 24368, - "end": 24372, + "start": 24411, + "end": 24415, "loc": { "start": { "line": 591, @@ -37699,8 +37705,8 @@ { "type": "CommentLine", "value": " Call event when path is found", - "start": 24226, - "end": 24258, + "start": 24269, + "end": 24301, "loc": { "start": { "line": 589, @@ -37719,8 +37725,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 24394, - "end": 24663, + "start": 24437, + "end": 24706, "loc": { "start": { "line": 593, @@ -37734,8 +37740,8 @@ "body": [ { "type": "IfStatement", - "start": 24442, - "end": 24557, + "start": 24485, + "end": 24600, "loc": { "start": { "line": 595, @@ -37748,8 +37754,8 @@ }, "test": { "type": "BinaryExpression", - "start": 24446, - "end": 24503, + "start": 24489, + "end": 24546, "loc": { "start": { "line": 595, @@ -37762,8 +37768,8 @@ }, "left": { "type": "UnaryExpression", - "start": 24446, - "end": 24488, + "start": 24489, + "end": 24531, "loc": { "start": { "line": 595, @@ -37778,8 +37784,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24453, - "end": 24487, + "start": 24496, + "end": 24530, "loc": { "start": { "line": 595, @@ -37792,8 +37798,8 @@ }, "object": { "type": "MemberExpression", - "start": 24453, - "end": 24472, + "start": 24496, + "end": 24515, "loc": { "start": { "line": 595, @@ -37806,8 +37812,8 @@ }, "object": { "type": "Identifier", - "start": 24453, - "end": 24465, + "start": 24496, + "end": 24508, "loc": { "start": { "line": 595, @@ -37824,8 +37830,8 @@ }, "property": { "type": "Identifier", - "start": 24466, - "end": 24472, + "start": 24509, + "end": 24515, "loc": { "start": { "line": 595, @@ -37844,8 +37850,8 @@ }, "property": { "type": "Identifier", - "start": 24473, - "end": 24487, + "start": 24516, + "end": 24530, "loc": { "start": { "line": 595, @@ -37863,7 +37869,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 24452 + "parenStart": 24495 } }, "extra": { @@ -37874,8 +37880,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 24493, - "end": 24503, + "start": 24536, + "end": 24546, "loc": { "start": { "line": 595, @@ -37896,8 +37902,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 24505, - "end": 24557, + "start": 24548, + "end": 24600, "loc": { "start": { "line": 595, @@ -37911,8 +37917,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 24513, - "end": 24550, + "start": 24556, + "end": 24593, "loc": { "start": { "line": 596, @@ -37925,8 +37931,8 @@ }, "expression": { "type": "CallExpression", - "start": 24513, - "end": 24549, + "start": 24556, + "end": 24592, "loc": { "start": { "line": 596, @@ -37939,8 +37945,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24513, - "end": 24547, + "start": 24556, + "end": 24590, "loc": { "start": { "line": 596, @@ -37953,8 +37959,8 @@ }, "object": { "type": "MemberExpression", - "start": 24513, - "end": 24532, + "start": 24556, + "end": 24575, "loc": { "start": { "line": 596, @@ -37967,8 +37973,8 @@ }, "object": { "type": "Identifier", - "start": 24513, - "end": 24525, + "start": 24556, + "end": 24568, "loc": { "start": { "line": 596, @@ -37984,8 +37990,8 @@ }, "property": { "type": "Identifier", - "start": 24526, - "end": 24532, + "start": 24569, + "end": 24575, "loc": { "start": { "line": 596, @@ -38003,8 +38009,8 @@ }, "property": { "type": "Identifier", - "start": 24533, - "end": 24547, + "start": 24576, + "end": 24590, "loc": { "start": { "line": 596, @@ -38032,8 +38038,8 @@ { "type": "CommentLine", "value": " Call event when no path is found", - "start": 24401, - "end": 24436, + "start": 24444, + "end": 24479, "loc": { "start": { "line": 594, @@ -38050,8 +38056,8 @@ { "type": "CommentLine", "value": " If no path is found then we end the pathfinding on this instance.", - "start": 24563, - "end": 24631, + "start": 24606, + "end": 24674, "loc": { "start": { "line": 598, @@ -38067,8 +38073,8 @@ }, { "type": "ExpressionStatement", - "start": 24637, - "end": 24657, + "start": 24680, + "end": 24700, "loc": { "start": { "line": 599, @@ -38081,8 +38087,8 @@ }, "expression": { "type": "CallExpression", - "start": 24637, - "end": 24656, + "start": 24680, + "end": 24699, "loc": { "start": { "line": 599, @@ -38095,8 +38101,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24637, - "end": 24645, + "start": 24680, + "end": 24688, "loc": { "start": { "line": 599, @@ -38109,8 +38115,8 @@ }, "object": { "type": "ThisExpression", - "start": 24637, - "end": 24641, + "start": 24680, + "end": 24684, "loc": { "start": { "line": 599, @@ -38125,8 +38131,8 @@ }, "property": { "type": "Identifier", - "start": 24642, - "end": 24645, + "start": 24685, + "end": 24688, "loc": { "start": { "line": 599, @@ -38146,8 +38152,8 @@ "arguments": [ { "type": "Identifier", - "start": 24646, - "end": 24655, + "start": 24689, + "end": 24698, "loc": { "start": { "line": 599, @@ -38168,8 +38174,8 @@ { "type": "CommentLine", "value": " If no path is found then we end the pathfinding on this instance.", - "start": 24563, - "end": 24631, + "start": 24606, + "end": 24674, "loc": { "start": { "line": 598, @@ -38190,8 +38196,8 @@ { "type": "CommentLine", "value": " Check if the path is valid.", - "start": 23703, - "end": 23733, + "start": 23746, + "end": 23776, "loc": { "start": { "line": 570, @@ -38219,8 +38225,8 @@ { "type": "CommentLine", "value": " Find the path", - "start": 23566, - "end": 23582, + "start": 23609, + "end": 23625, "loc": { "start": { "line": 568, @@ -38237,8 +38243,8 @@ { "type": "CommentLine", "value": " Track pInstance as an active instance.", - "start": 24674, - "end": 24715, + "start": 24717, + "end": 24758, "loc": { "start": { "line": 602, @@ -38254,8 +38260,8 @@ }, { "type": "ExpressionStatement", - "start": 24719, - "end": 24741, + "start": 24762, + "end": 24784, "loc": { "start": { "line": 603, @@ -38268,8 +38274,8 @@ }, "expression": { "type": "CallExpression", - "start": 24719, - "end": 24740, + "start": 24762, + "end": 24783, "loc": { "start": { "line": 603, @@ -38282,8 +38288,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24719, - "end": 24729, + "start": 24762, + "end": 24772, "loc": { "start": { "line": 603, @@ -38296,8 +38302,8 @@ }, "object": { "type": "ThisExpression", - "start": 24719, - "end": 24723, + "start": 24762, + "end": 24766, "loc": { "start": { "line": 603, @@ -38312,8 +38318,8 @@ }, "property": { "type": "Identifier", - "start": 24724, - "end": 24729, + "start": 24767, + "end": 24772, "loc": { "start": { "line": 603, @@ -38333,8 +38339,8 @@ "arguments": [ { "type": "Identifier", - "start": 24730, - "end": 24739, + "start": 24773, + "end": 24782, "loc": { "start": { "line": 603, @@ -38355,8 +38361,8 @@ { "type": "CommentLine", "value": " Track pInstance as an active instance.", - "start": 24674, - "end": 24715, + "start": 24717, + "end": 24758, "loc": { "start": { "line": 602, @@ -38378,8 +38384,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t ", - "start": 22711, - "end": 23306, + "start": 22754, + "end": 23349, "loc": { "start": { "line": 549, @@ -38396,8 +38402,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t ", - "start": 24748, - "end": 24980, + "start": 24791, + "end": 25023, "loc": { "start": { "line": 605, @@ -38413,8 +38419,8 @@ }, { "type": "ClassMethod", - "start": 24983, - "end": 25184, + "start": 25026, + "end": 25227, "loc": { "start": { "line": 612, @@ -38429,8 +38435,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 24983, - "end": 25004, + "start": 25026, + "end": 25047, "loc": { "start": { "line": 612, @@ -38453,8 +38459,8 @@ "params": [ { "type": "Identifier", - "start": 25005, - "end": 25011, + "start": 25048, + "end": 25054, "loc": { "start": { "line": 612, @@ -38470,8 +38476,8 @@ }, { "type": "Identifier", - "start": 25013, - "end": 25030, + "start": 25056, + "end": 25073, "loc": { "start": { "line": 612, @@ -38488,8 +38494,8 @@ ], "body": { "type": "BlockStatement", - "start": 25032, - "end": 25184, + "start": 25075, + "end": 25227, "loc": { "start": { "line": 612, @@ -38503,8 +38509,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 25037, - "end": 25047, + "start": 25080, + "end": 25090, "loc": { "start": { "line": 613, @@ -38518,8 +38524,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25041, - "end": 25046, + "start": 25084, + "end": 25089, "loc": { "start": { "line": 613, @@ -38532,8 +38538,8 @@ }, "id": { "type": "Identifier", - "start": 25041, - "end": 25042, + "start": 25084, + "end": 25085, "loc": { "start": { "line": 613, @@ -38549,8 +38555,8 @@ }, "init": { "type": "NumericLiteral", - "start": 25045, - "end": 25046, + "start": 25088, + "end": 25089, "loc": { "start": { "line": 613, @@ -38573,8 +38579,8 @@ }, { "type": "VariableDeclaration", - "start": 25051, - "end": 25069, + "start": 25094, + "end": 25112, "loc": { "start": { "line": 614, @@ -38588,8 +38594,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25057, - "end": 25068, + "start": 25100, + "end": 25111, "loc": { "start": { "line": 614, @@ -38602,8 +38608,8 @@ }, "id": { "type": "Identifier", - "start": 25057, - "end": 25063, + "start": 25100, + "end": 25106, "loc": { "start": { "line": 614, @@ -38619,8 +38625,8 @@ }, "init": { "type": "ArrayExpression", - "start": 25066, - "end": 25068, + "start": 25109, + "end": 25111, "loc": { "start": { "line": 614, @@ -38639,8 +38645,8 @@ }, { "type": "WhileStatement", - "start": 25073, - "end": 25162, + "start": 25116, + "end": 25205, "loc": { "start": { "line": 615, @@ -38653,8 +38659,8 @@ }, "test": { "type": "BinaryExpression", - "start": 25080, - "end": 25097, + "start": 25123, + "end": 25140, "loc": { "start": { "line": 615, @@ -38667,8 +38673,8 @@ }, "left": { "type": "Identifier", - "start": 25080, - "end": 25081, + "start": 25123, + "end": 25124, "loc": { "start": { "line": 615, @@ -38685,8 +38691,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 25084, - "end": 25097, + "start": 25127, + "end": 25140, "loc": { "start": { "line": 615, @@ -38699,8 +38705,8 @@ }, "object": { "type": "Identifier", - "start": 25084, - "end": 25090, + "start": 25127, + "end": 25133, "loc": { "start": { "line": 615, @@ -38716,8 +38722,8 @@ }, "property": { "type": "Identifier", - "start": 25091, - "end": 25097, + "start": 25134, + "end": 25140, "loc": { "start": { "line": 615, @@ -38736,8 +38742,8 @@ }, "body": { "type": "BlockStatement", - "start": 25099, - "end": 25162, + "start": 25142, + "end": 25205, "loc": { "start": { "line": 615, @@ -38751,8 +38757,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 25105, - "end": 25157, + "start": 25148, + "end": 25200, "loc": { "start": { "line": 616, @@ -38765,8 +38771,8 @@ }, "expression": { "type": "CallExpression", - "start": 25105, - "end": 25156, + "start": 25148, + "end": 25199, "loc": { "start": { "line": 616, @@ -38779,8 +38785,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25105, - "end": 25116, + "start": 25148, + "end": 25159, "loc": { "start": { "line": 616, @@ -38793,8 +38799,8 @@ }, "object": { "type": "Identifier", - "start": 25105, - "end": 25111, + "start": 25148, + "end": 25154, "loc": { "start": { "line": 616, @@ -38810,8 +38816,8 @@ }, "property": { "type": "Identifier", - "start": 25112, - "end": 25116, + "start": 25155, + "end": 25159, "loc": { "start": { "line": 616, @@ -38830,8 +38836,8 @@ "arguments": [ { "type": "CallExpression", - "start": 25117, - "end": 25155, + "start": 25160, + "end": 25198, "loc": { "start": { "line": 616, @@ -38844,8 +38850,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25117, - "end": 25129, + "start": 25160, + "end": 25172, "loc": { "start": { "line": 616, @@ -38858,8 +38864,8 @@ }, "object": { "type": "Identifier", - "start": 25117, - "end": 25123, + "start": 25160, + "end": 25166, "loc": { "start": { "line": 616, @@ -38875,8 +38881,8 @@ }, "property": { "type": "Identifier", - "start": 25124, - "end": 25129, + "start": 25167, + "end": 25172, "loc": { "start": { "line": 616, @@ -38895,8 +38901,8 @@ "arguments": [ { "type": "Identifier", - "start": 25130, - "end": 25131, + "start": 25173, + "end": 25174, "loc": { "start": { "line": 616, @@ -38912,8 +38918,8 @@ }, { "type": "AssignmentExpression", - "start": 25133, - "end": 25154, + "start": 25176, + "end": 25197, "loc": { "start": { "line": 616, @@ -38927,8 +38933,8 @@ "operator": "+=", "left": { "type": "Identifier", - "start": 25133, - "end": 25134, + "start": 25176, + "end": 25177, "loc": { "start": { "line": 616, @@ -38944,8 +38950,8 @@ }, "right": { "type": "Identifier", - "start": 25137, - "end": 25154, + "start": 25180, + "end": 25197, "loc": { "start": { "line": 616, @@ -38971,8 +38977,8 @@ }, { "type": "ReturnStatement", - "start": 25166, - "end": 25180, + "start": 25209, + "end": 25223, "loc": { "start": { "line": 618, @@ -38985,8 +38991,8 @@ }, "argument": { "type": "Identifier", - "start": 25173, - "end": 25179, + "start": 25216, + "end": 25222, "loc": { "start": { "line": 618, @@ -39009,8 +39015,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t ", - "start": 24748, - "end": 24980, + "start": 24791, + "end": 25023, "loc": { "start": { "line": 605, @@ -39027,8 +39033,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t ", - "start": 25187, - "end": 25356, + "start": 25230, + "end": 25399, "loc": { "start": { "line": 620, @@ -39044,8 +39050,8 @@ }, { "type": "ClassMethod", - "start": 25359, - "end": 25885, + "start": 25402, + "end": 25928, "loc": { "start": { "line": 626, @@ -39060,8 +39066,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 25359, - "end": 25369, + "start": 25402, + "end": 25412, "loc": { "start": { "line": 626, @@ -39084,8 +39090,8 @@ "params": [ { "type": "Identifier", - "start": 25370, - "end": 25375, + "start": 25413, + "end": 25418, "loc": { "start": { "line": 626, @@ -39102,8 +39108,8 @@ ], "body": { "type": "BlockStatement", - "start": 25377, - "end": 25885, + "start": 25420, + "end": 25928, "loc": { "start": { "line": 626, @@ -39117,8 +39123,8 @@ "body": [ { "type": "IfStatement", - "start": 25382, - "end": 25881, + "start": 25425, + "end": 25924, "loc": { "start": { "line": 627, @@ -39131,8 +39137,8 @@ }, "test": { "type": "BinaryExpression", - "start": 25386, - "end": 25420, + "start": 25429, + "end": 25463, "loc": { "start": { "line": 627, @@ -39145,8 +39151,8 @@ }, "left": { "type": "UnaryExpression", - "start": 25386, - "end": 25407, + "start": 25429, + "end": 25450, "loc": { "start": { "line": 627, @@ -39161,8 +39167,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 25393, - "end": 25406, + "start": 25436, + "end": 25449, "loc": { "start": { "line": 627, @@ -39175,8 +39181,8 @@ }, "object": { "type": "Identifier", - "start": 25393, - "end": 25398, + "start": 25436, + "end": 25441, "loc": { "start": { "line": 627, @@ -39192,8 +39198,8 @@ }, "property": { "type": "Identifier", - "start": 25399, - "end": 25406, + "start": 25442, + "end": 25449, "loc": { "start": { "line": 627, @@ -39210,7 +39216,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 25392 + "parenStart": 25435 } }, "extra": { @@ -39220,8 +39226,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 25412, - "end": 25420, + "start": 25455, + "end": 25463, "loc": { "start": { "line": 627, @@ -39241,8 +39247,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 25422, - "end": 25787, + "start": 25465, + "end": 25830, "loc": { "start": { "line": 627, @@ -39256,8 +39262,8 @@ "body": [ { "type": "IfStatement", - "start": 25428, - "end": 25782, + "start": 25471, + "end": 25825, "loc": { "start": { "line": 628, @@ -39270,8 +39276,8 @@ }, "test": { "type": "MemberExpression", - "start": 25432, - "end": 25478, + "start": 25475, + "end": 25521, "loc": { "start": { "line": 628, @@ -39284,8 +39290,8 @@ }, "object": { "type": "MemberExpression", - "start": 25432, - "end": 25463, + "start": 25475, + "end": 25506, "loc": { "start": { "line": 628, @@ -39298,8 +39304,8 @@ }, "object": { "type": "Identifier", - "start": 25432, - "end": 25448, + "start": 25475, + "end": 25491, "loc": { "start": { "line": 628, @@ -39315,8 +39321,8 @@ }, "property": { "type": "Identifier", - "start": 25449, - "end": 25463, + "start": 25492, + "end": 25506, "loc": { "start": { "line": 628, @@ -39334,8 +39340,8 @@ }, "property": { "type": "MemberExpression", - "start": 25464, - "end": 25477, + "start": 25507, + "end": 25520, "loc": { "start": { "line": 628, @@ -39348,8 +39354,8 @@ }, "object": { "type": "Identifier", - "start": 25464, - "end": 25469, + "start": 25507, + "end": 25512, "loc": { "start": { "line": 628, @@ -39365,8 +39371,8 @@ }, "property": { "type": "Identifier", - "start": 25470, - "end": 25477, + "start": 25513, + "end": 25520, "loc": { "start": { "line": 628, @@ -39386,8 +39392,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 25480, - "end": 25659, + "start": 25523, + "end": 25702, "loc": { "start": { "line": 628, @@ -39401,8 +39407,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 25487, - "end": 25587, + "start": 25530, + "end": 25630, "loc": { "start": { "line": 629, @@ -39416,8 +39422,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25493, - "end": 25586, + "start": 25536, + "end": 25629, "loc": { "start": { "line": 629, @@ -39430,8 +39436,8 @@ }, "id": { "type": "Identifier", - "start": 25493, - "end": 25498, + "start": 25536, + "end": 25541, "loc": { "start": { "line": 629, @@ -39447,8 +39453,8 @@ }, "init": { "type": "CallExpression", - "start": 25501, - "end": 25586, + "start": 25544, + "end": 25629, "loc": { "start": { "line": 629, @@ -39461,8 +39467,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25501, - "end": 25523, + "start": 25544, + "end": 25566, "loc": { "start": { "line": 629, @@ -39475,8 +39481,8 @@ }, "object": { "type": "ThisExpression", - "start": 25501, - "end": 25505, + "start": 25544, + "end": 25548, "loc": { "start": { "line": 629, @@ -39490,8 +39496,8 @@ }, "property": { "type": "Identifier", - "start": 25506, - "end": 25523, + "start": 25549, + "end": 25566, "loc": { "start": { "line": 629, @@ -39510,8 +39516,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 25524, - "end": 25578, + "start": 25567, + "end": 25621, "loc": { "start": { "line": 629, @@ -39524,8 +39530,8 @@ }, "object": { "type": "MemberExpression", - "start": 25524, - "end": 25570, + "start": 25567, + "end": 25613, "loc": { "start": { "line": 629, @@ -39538,8 +39544,8 @@ }, "object": { "type": "MemberExpression", - "start": 25524, - "end": 25555, + "start": 25567, + "end": 25598, "loc": { "start": { "line": 629, @@ -39552,8 +39558,8 @@ }, "object": { "type": "Identifier", - "start": 25524, - "end": 25540, + "start": 25567, + "end": 25583, "loc": { "start": { "line": 629, @@ -39569,8 +39575,8 @@ }, "property": { "type": "Identifier", - "start": 25541, - "end": 25555, + "start": 25584, + "end": 25598, "loc": { "start": { "line": 629, @@ -39588,8 +39594,8 @@ }, "property": { "type": "MemberExpression", - "start": 25556, - "end": 25569, + "start": 25599, + "end": 25612, "loc": { "start": { "line": 629, @@ -39602,8 +39608,8 @@ }, "object": { "type": "Identifier", - "start": 25556, - "end": 25561, + "start": 25599, + "end": 25604, "loc": { "start": { "line": 629, @@ -39619,8 +39625,8 @@ }, "property": { "type": "Identifier", - "start": 25562, - "end": 25569, + "start": 25605, + "end": 25612, "loc": { "start": { "line": 629, @@ -39640,8 +39646,8 @@ }, "property": { "type": "Identifier", - "start": 25571, - "end": 25578, + "start": 25614, + "end": 25621, "loc": { "start": { "line": 629, @@ -39659,8 +39665,8 @@ }, { "type": "Identifier", - "start": 25580, - "end": 25585, + "start": 25623, + "end": 25628, "loc": { "start": { "line": 629, @@ -39682,8 +39688,8 @@ }, { "type": "VariableDeclaration", - "start": 25593, - "end": 25635, + "start": 25636, + "end": 25678, "loc": { "start": { "line": 630, @@ -39697,8 +39703,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25599, - "end": 25634, + "start": 25642, + "end": 25677, "loc": { "start": { "line": 630, @@ -39711,8 +39717,8 @@ }, "id": { "type": "Identifier", - "start": 25599, - "end": 25603, + "start": 25642, + "end": 25646, "loc": { "start": { "line": 630, @@ -39728,8 +39734,8 @@ }, "init": { "type": "ObjectExpression", - "start": 25606, - "end": 25634, + "start": 25649, + "end": 25677, "loc": { "start": { "line": 630, @@ -39743,8 +39749,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 25608, - "end": 25619, + "start": 25651, + "end": 25662, "loc": { "start": { "line": 630, @@ -39760,8 +39766,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 25608, - "end": 25609, + "start": 25651, + "end": 25652, "loc": { "start": { "line": 630, @@ -39777,8 +39783,8 @@ }, "value": { "type": "MemberExpression", - "start": 25611, - "end": 25619, + "start": 25654, + "end": 25662, "loc": { "start": { "line": 630, @@ -39791,8 +39797,8 @@ }, "object": { "type": "Identifier", - "start": 25611, - "end": 25616, + "start": 25654, + "end": 25659, "loc": { "start": { "line": 630, @@ -39808,8 +39814,8 @@ }, "property": { "type": "NumericLiteral", - "start": 25617, - "end": 25618, + "start": 25660, + "end": 25661, "loc": { "start": { "line": 630, @@ -39831,8 +39837,8 @@ }, { "type": "ObjectProperty", - "start": 25621, - "end": 25632, + "start": 25664, + "end": 25675, "loc": { "start": { "line": 630, @@ -39848,8 +39854,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 25621, - "end": 25622, + "start": 25664, + "end": 25665, "loc": { "start": { "line": 630, @@ -39865,8 +39871,8 @@ }, "value": { "type": "MemberExpression", - "start": 25624, - "end": 25632, + "start": 25667, + "end": 25675, "loc": { "start": { "line": 630, @@ -39879,8 +39885,8 @@ }, "object": { "type": "Identifier", - "start": 25624, - "end": 25629, + "start": 25667, + "end": 25672, "loc": { "start": { "line": 630, @@ -39896,8 +39902,8 @@ }, "property": { "type": "NumericLiteral", - "start": 25630, - "end": 25631, + "start": 25673, + "end": 25674, "loc": { "start": { "line": 630, @@ -39925,8 +39931,8 @@ }, { "type": "ReturnStatement", - "start": 25641, - "end": 25653, + "start": 25684, + "end": 25696, "loc": { "start": { "line": 631, @@ -39939,8 +39945,8 @@ }, "argument": { "type": "Identifier", - "start": 25648, - "end": 25652, + "start": 25691, + "end": 25695, "loc": { "start": { "line": 631, @@ -39960,8 +39966,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 25665, - "end": 25782, + "start": 25708, + "end": 25825, "loc": { "start": { "line": 632, @@ -39975,8 +39981,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 25672, - "end": 25776, + "start": 25715, + "end": 25819, "loc": { "start": { "line": 633, @@ -39989,8 +39995,8 @@ }, "expression": { "type": "CallExpression", - "start": 25672, - "end": 25775, + "start": 25715, + "end": 25818, "loc": { "start": { "line": 633, @@ -40003,8 +40009,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25672, - "end": 25714, + "start": 25715, + "end": 25757, "loc": { "start": { "line": 633, @@ -40017,8 +40023,8 @@ }, "object": { "type": "CallExpression", - "start": 25672, - "end": 25708, + "start": 25715, + "end": 25751, "loc": { "start": { "line": 633, @@ -40031,8 +40037,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25672, - "end": 25690, + "start": 25715, + "end": 25733, "loc": { "start": { "line": 633, @@ -40045,8 +40051,8 @@ }, "object": { "type": "MemberExpression", - "start": 25672, - "end": 25683, + "start": 25715, + "end": 25726, "loc": { "start": { "line": 633, @@ -40059,8 +40065,8 @@ }, "object": { "type": "ThisExpression", - "start": 25672, - "end": 25676, + "start": 25715, + "end": 25719, "loc": { "start": { "line": 633, @@ -40074,8 +40080,8 @@ }, "property": { "type": "Identifier", - "start": 25677, - "end": 25683, + "start": 25720, + "end": 25726, "loc": { "start": { "line": 633, @@ -40093,8 +40099,8 @@ }, "property": { "type": "Identifier", - "start": 25684, - "end": 25690, + "start": 25727, + "end": 25733, "loc": { "start": { "line": 633, @@ -40113,8 +40119,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25691, - "end": 25707, + "start": 25734, + "end": 25750, "loc": { "start": { "line": 633, @@ -40135,8 +40141,8 @@ }, "property": { "type": "Identifier", - "start": 25709, - "end": 25714, + "start": 25752, + "end": 25757, "loc": { "start": { "line": 633, @@ -40155,8 +40161,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25715, - "end": 25774, + "start": 25758, + "end": 25817, "loc": { "start": { "line": 633, @@ -40185,8 +40191,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 25793, - "end": 25881, + "start": 25836, + "end": 25924, "loc": { "start": { "line": 635, @@ -40200,8 +40206,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 25799, - "end": 25876, + "start": 25842, + "end": 25919, "loc": { "start": { "line": 636, @@ -40214,8 +40220,8 @@ }, "expression": { "type": "CallExpression", - "start": 25799, - "end": 25875, + "start": 25842, + "end": 25918, "loc": { "start": { "line": 636, @@ -40228,8 +40234,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25799, - "end": 25841, + "start": 25842, + "end": 25884, "loc": { "start": { "line": 636, @@ -40242,8 +40248,8 @@ }, "object": { "type": "CallExpression", - "start": 25799, - "end": 25835, + "start": 25842, + "end": 25878, "loc": { "start": { "line": 636, @@ -40256,8 +40262,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25799, - "end": 25817, + "start": 25842, + "end": 25860, "loc": { "start": { "line": 636, @@ -40270,8 +40276,8 @@ }, "object": { "type": "MemberExpression", - "start": 25799, - "end": 25810, + "start": 25842, + "end": 25853, "loc": { "start": { "line": 636, @@ -40284,8 +40290,8 @@ }, "object": { "type": "ThisExpression", - "start": 25799, - "end": 25803, + "start": 25842, + "end": 25846, "loc": { "start": { "line": 636, @@ -40299,8 +40305,8 @@ }, "property": { "type": "Identifier", - "start": 25804, - "end": 25810, + "start": 25847, + "end": 25853, "loc": { "start": { "line": 636, @@ -40318,8 +40324,8 @@ }, "property": { "type": "Identifier", - "start": 25811, - "end": 25817, + "start": 25854, + "end": 25860, "loc": { "start": { "line": 636, @@ -40338,8 +40344,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25818, - "end": 25834, + "start": 25861, + "end": 25877, "loc": { "start": { "line": 636, @@ -40360,8 +40366,8 @@ }, "property": { "type": "Identifier", - "start": 25836, - "end": 25841, + "start": 25879, + "end": 25884, "loc": { "start": { "line": 636, @@ -40380,8 +40386,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25842, - "end": 25874, + "start": 25885, + "end": 25917, "loc": { "start": { "line": 636, @@ -40413,8 +40419,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t ", - "start": 25187, - "end": 25356, + "start": 25230, + "end": 25399, "loc": { "start": { "line": 620, @@ -40431,8 +40437,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t ", - "start": 25888, - "end": 26208, + "start": 25931, + "end": 26251, "loc": { "start": { "line": 639, @@ -40448,8 +40454,8 @@ }, { "type": "ClassMethod", - "start": 26211, - "end": 26395, + "start": 26254, + "end": 26438, "loc": { "start": { "line": 646, @@ -40464,8 +40470,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 26211, - "end": 26228, + "start": 26254, + "end": 26271, "loc": { "start": { "line": 646, @@ -40488,8 +40494,8 @@ "params": [ { "type": "Identifier", - "start": 26229, - "end": 26235, + "start": 26272, + "end": 26278, "loc": { "start": { "line": 646, @@ -40505,8 +40511,8 @@ }, { "type": "Identifier", - "start": 26237, - "end": 26243, + "start": 26280, + "end": 26286, "loc": { "start": { "line": 646, @@ -40523,8 +40529,8 @@ ], "body": { "type": "BlockStatement", - "start": 26245, - "end": 26395, + "start": 26288, + "end": 26438, "loc": { "start": { "line": 646, @@ -40538,8 +40544,8 @@ "body": [ { "type": "ForStatement", - "start": 26250, - "end": 26391, + "start": 26293, + "end": 26434, "loc": { "start": { "line": 647, @@ -40552,8 +40558,8 @@ }, "init": { "type": "VariableDeclaration", - "start": 26255, - "end": 26264, + "start": 26298, + "end": 26307, "loc": { "start": { "line": 647, @@ -40567,8 +40573,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 26259, - "end": 26264, + "start": 26302, + "end": 26307, "loc": { "start": { "line": 647, @@ -40581,8 +40587,8 @@ }, "id": { "type": "Identifier", - "start": 26259, - "end": 26260, + "start": 26302, + "end": 26303, "loc": { "start": { "line": 647, @@ -40598,8 +40604,8 @@ }, "init": { "type": "NumericLiteral", - "start": 26263, - "end": 26264, + "start": 26306, + "end": 26307, "loc": { "start": { "line": 647, @@ -40622,8 +40628,8 @@ }, "test": { "type": "BinaryExpression", - "start": 26266, - "end": 26283, + "start": 26309, + "end": 26326, "loc": { "start": { "line": 647, @@ -40636,8 +40642,8 @@ }, "left": { "type": "Identifier", - "start": 26266, - "end": 26267, + "start": 26309, + "end": 26310, "loc": { "start": { "line": 647, @@ -40654,8 +40660,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 26270, - "end": 26283, + "start": 26313, + "end": 26326, "loc": { "start": { "line": 647, @@ -40668,8 +40674,8 @@ }, "object": { "type": "Identifier", - "start": 26270, - "end": 26276, + "start": 26313, + "end": 26319, "loc": { "start": { "line": 647, @@ -40685,8 +40691,8 @@ }, "property": { "type": "Identifier", - "start": 26277, - "end": 26283, + "start": 26320, + "end": 26326, "loc": { "start": { "line": 647, @@ -40705,8 +40711,8 @@ }, "update": { "type": "UpdateExpression", - "start": 26285, - "end": 26288, + "start": 26328, + "end": 26331, "loc": { "start": { "line": 647, @@ -40721,8 +40727,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 26285, - "end": 26286, + "start": 26328, + "end": 26329, "loc": { "start": { "line": 647, @@ -40739,8 +40745,8 @@ }, "body": { "type": "BlockStatement", - "start": 26290, - "end": 26391, + "start": 26333, + "end": 26434, "loc": { "start": { "line": 647, @@ -40754,8 +40760,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 26296, - "end": 26334, + "start": 26339, + "end": 26377, "loc": { "start": { "line": 648, @@ -40769,8 +40775,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 26300, - "end": 26333, + "start": 26343, + "end": 26376, "loc": { "start": { "line": 648, @@ -40783,8 +40789,8 @@ }, "id": { "type": "Identifier", - "start": 26300, - "end": 26305, + "start": 26343, + "end": 26348, "loc": { "start": { "line": 648, @@ -40800,8 +40806,8 @@ }, "init": { "type": "CallExpression", - "start": 26308, - "end": 26333, + "start": 26351, + "end": 26376, "loc": { "start": { "line": 648, @@ -40814,8 +40820,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26308, - "end": 26325, + "start": 26351, + "end": 26368, "loc": { "start": { "line": 648, @@ -40828,8 +40834,8 @@ }, "object": { "type": "MemberExpression", - "start": 26308, - "end": 26317, + "start": 26351, + "end": 26360, "loc": { "start": { "line": 648, @@ -40842,8 +40848,8 @@ }, "object": { "type": "Identifier", - "start": 26308, - "end": 26314, + "start": 26351, + "end": 26357, "loc": { "start": { "line": 648, @@ -40859,8 +40865,8 @@ }, "property": { "type": "Identifier", - "start": 26315, - "end": 26316, + "start": 26358, + "end": 26359, "loc": { "start": { "line": 648, @@ -40878,8 +40884,8 @@ }, "property": { "type": "Identifier", - "start": 26318, - "end": 26325, + "start": 26361, + "end": 26368, "loc": { "start": { "line": 648, @@ -40898,8 +40904,8 @@ "arguments": [ { "type": "Identifier", - "start": 26326, - "end": 26332, + "start": 26369, + "end": 26375, "loc": { "start": { "line": 648, @@ -40921,8 +40927,8 @@ }, { "type": "IfStatement", - "start": 26339, - "end": 26386, + "start": 26382, + "end": 26429, "loc": { "start": { "line": 649, @@ -40935,8 +40941,8 @@ }, "test": { "type": "BinaryExpression", - "start": 26343, - "end": 26353, + "start": 26386, + "end": 26396, "loc": { "start": { "line": 649, @@ -40949,8 +40955,8 @@ }, "left": { "type": "Identifier", - "start": 26343, - "end": 26348, + "start": 26386, + "end": 26391, "loc": { "start": { "line": 649, @@ -40967,8 +40973,8 @@ "operator": ">", "right": { "type": "UnaryExpression", - "start": 26351, - "end": 26353, + "start": 26394, + "end": 26396, "loc": { "start": { "line": 649, @@ -40983,8 +40989,8 @@ "prefix": true, "argument": { "type": "NumericLiteral", - "start": 26352, - "end": 26353, + "start": 26395, + "end": 26396, "loc": { "start": { "line": 649, @@ -41008,8 +41014,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 26355, - "end": 26386, + "start": 26398, + "end": 26429, "loc": { "start": { "line": 649, @@ -41023,8 +41029,8 @@ "body": [ { "type": "ReturnStatement", - "start": 26362, - "end": 26380, + "start": 26405, + "end": 26423, "loc": { "start": { "line": 650, @@ -41037,8 +41043,8 @@ }, "argument": { "type": "ArrayExpression", - "start": 26369, - "end": 26379, + "start": 26412, + "end": 26422, "loc": { "start": { "line": 650, @@ -41052,8 +41058,8 @@ "elements": [ { "type": "Identifier", - "start": 26370, - "end": 26371, + "start": 26413, + "end": 26414, "loc": { "start": { "line": 650, @@ -41069,8 +41075,8 @@ }, { "type": "Identifier", - "start": 26373, - "end": 26378, + "start": 26416, + "end": 26421, "loc": { "start": { "line": 650, @@ -41104,8 +41110,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t ", - "start": 25888, - "end": 26208, + "start": 25931, + "end": 26251, "loc": { "start": { "line": 639, @@ -41122,8 +41128,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t ", - "start": 26398, - "end": 26779, + "start": 26441, + "end": 26822, "loc": { "start": { "line": 654, @@ -41139,8 +41145,8 @@ }, { "type": "ClassMethod", - "start": 26782, - "end": 30525, + "start": 26825, + "end": 30568, "loc": { "start": { "line": 661, @@ -41155,8 +41161,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 26782, - "end": 26796, + "start": 26825, + "end": 26839, "loc": { "start": { "line": 661, @@ -41179,8 +41185,8 @@ "params": [ { "type": "Identifier", - "start": 26797, - "end": 26805, + "start": 26840, + "end": 26848, "loc": { "start": { "line": 661, @@ -41196,8 +41202,8 @@ }, { "type": "Identifier", - "start": 26807, - "end": 26821, + "start": 26850, + "end": 26864, "loc": { "start": { "line": 661, @@ -41214,8 +41220,8 @@ ], "body": { "type": "BlockStatement", - "start": 26823, - "end": 30525, + "start": 26866, + "end": 30568, "loc": { "start": { "line": 661, @@ -41229,8 +41235,8 @@ "body": [ { "type": "IfStatement", - "start": 26828, - "end": 30521, + "start": 26871, + "end": 30564, "loc": { "start": { "line": 662, @@ -41243,8 +41249,8 @@ }, "test": { "type": "BinaryExpression", - "start": 26832, - "end": 26861, + "start": 26875, + "end": 26904, "loc": { "start": { "line": 662, @@ -41257,8 +41263,8 @@ }, "left": { "type": "UnaryExpression", - "start": 26832, - "end": 26848, + "start": 26875, + "end": 26891, "loc": { "start": { "line": 662, @@ -41273,8 +41279,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 26839, - "end": 26847, + "start": 26882, + "end": 26890, "loc": { "start": { "line": 662, @@ -41289,7 +41295,7 @@ "name": "pMapName", "extra": { "parenthesized": true, - "parenStart": 26838 + "parenStart": 26881 } }, "extra": { @@ -41299,8 +41305,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 26853, - "end": 26861, + "start": 26896, + "end": 26904, "loc": { "start": { "line": 662, @@ -41320,8 +41326,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 26863, - "end": 30431, + "start": 26906, + "end": 30474, "loc": { "start": { "line": 662, @@ -41335,8 +41341,8 @@ "body": [ { "type": "IfStatement", - "start": 26869, - "end": 30426, + "start": 26912, + "end": 30469, "loc": { "start": { "line": 663, @@ -41349,8 +41355,8 @@ }, "test": { "type": "CallExpression", - "start": 26873, - "end": 26902, + "start": 26916, + "end": 26945, "loc": { "start": { "line": 663, @@ -41363,8 +41369,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26873, - "end": 26886, + "start": 26916, + "end": 26929, "loc": { "start": { "line": 663, @@ -41377,8 +41383,8 @@ }, "object": { "type": "Identifier", - "start": 26873, - "end": 26878, + "start": 26916, + "end": 26921, "loc": { "start": { "line": 663, @@ -41394,8 +41400,8 @@ }, "property": { "type": "Identifier", - "start": 26879, - "end": 26886, + "start": 26922, + "end": 26929, "loc": { "start": { "line": 663, @@ -41414,8 +41420,8 @@ "arguments": [ { "type": "Identifier", - "start": 26887, - "end": 26901, + "start": 26930, + "end": 26944, "loc": { "start": { "line": 663, @@ -41433,8 +41439,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 26904, - "end": 30328, + "start": 26947, + "end": 30371, "loc": { "start": { "line": 663, @@ -41448,8 +41454,8 @@ "body": [ { "type": "IfStatement", - "start": 26970, - "end": 30322, + "start": 27013, + "end": 30365, "loc": { "start": { "line": 665, @@ -41462,8 +41468,8 @@ }, "test": { "type": "CallExpression", - "start": 26974, - "end": 27011, + "start": 27017, + "end": 27054, "loc": { "start": { "line": 665, @@ -41476,8 +41482,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26974, - "end": 27001, + "start": 27017, + "end": 27044, "loc": { "start": { "line": 665, @@ -41490,8 +41496,8 @@ }, "object": { "type": "CallExpression", - "start": 26974, - "end": 26992, + "start": 27017, + "end": 27035, "loc": { "start": { "line": 665, @@ -41504,8 +41510,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26974, - "end": 26990, + "start": 27017, + "end": 27033, "loc": { "start": { "line": 665, @@ -41518,8 +41524,8 @@ }, "object": { "type": "MemberExpression", - "start": 26974, - "end": 26982, + "start": 27017, + "end": 27025, "loc": { "start": { "line": 665, @@ -41532,8 +41538,8 @@ }, "object": { "type": "Identifier", - "start": 26974, - "end": 26978, + "start": 27017, + "end": 27021, "loc": { "start": { "line": 665, @@ -41550,8 +41556,8 @@ }, "property": { "type": "Identifier", - "start": 26979, - "end": 26982, + "start": 27022, + "end": 27025, "loc": { "start": { "line": 665, @@ -41570,8 +41576,8 @@ }, "property": { "type": "Identifier", - "start": 26983, - "end": 26990, + "start": 27026, + "end": 27033, "loc": { "start": { "line": 665, @@ -41593,8 +41599,8 @@ }, "property": { "type": "Identifier", - "start": 26993, - "end": 27001, + "start": 27036, + "end": 27044, "loc": { "start": { "line": 665, @@ -41614,8 +41620,8 @@ "arguments": [ { "type": "Identifier", - "start": 27002, - "end": 27010, + "start": 27045, + "end": 27053, "loc": { "start": { "line": 665, @@ -41634,8 +41640,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 27013, - "end": 30209, + "start": 27056, + "end": 30252, "loc": { "start": { "line": 665, @@ -41649,8 +41655,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 27073, - "end": 27088, + "start": 27116, + "end": 27131, "loc": { "start": { "line": 667, @@ -41664,8 +41670,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27077, - "end": 27087, + "start": 27120, + "end": 27130, "loc": { "start": { "line": 667, @@ -41678,8 +41684,8 @@ }, "id": { "type": "Identifier", - "start": 27077, - "end": 27087, + "start": 27120, + "end": 27130, "loc": { "start": { "line": 667, @@ -41703,8 +41709,8 @@ { "type": "CommentLine", "value": " An array of tiles that we get from the map", - "start": 27021, - "end": 27066, + "start": 27064, + "end": 27109, "loc": { "start": { "line": 666, @@ -41721,8 +41727,8 @@ { "type": "CommentLine", "value": " An array of accepted tiles to be walked on.", - "start": 27095, - "end": 27141, + "start": 27138, + "end": 27184, "loc": { "start": { "line": 668, @@ -41738,8 +41744,8 @@ }, { "type": "VariableDeclaration", - "start": 27148, - "end": 27174, + "start": 27191, + "end": 27217, "loc": { "start": { "line": 669, @@ -41753,8 +41759,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27154, - "end": 27173, + "start": 27197, + "end": 27216, "loc": { "start": { "line": 669, @@ -41767,8 +41773,8 @@ }, "id": { "type": "Identifier", - "start": 27154, - "end": 27167, + "start": 27197, + "end": 27210, "loc": { "start": { "line": 669, @@ -41785,8 +41791,8 @@ }, "init": { "type": "ArrayExpression", - "start": 27170, - "end": 27173, + "start": 27213, + "end": 27216, "loc": { "start": { "line": 669, @@ -41800,8 +41806,8 @@ "elements": [ { "type": "NumericLiteral", - "start": 27171, - "end": 27172, + "start": 27214, + "end": 27215, "loc": { "start": { "line": 669, @@ -41828,8 +41834,8 @@ { "type": "CommentLine", "value": " An array of accepted tiles to be walked on.", - "start": 27095, - "end": 27141, + "start": 27138, + "end": 27184, "loc": { "start": { "line": 668, @@ -41846,8 +41852,8 @@ { "type": "CommentLine", "value": " An array holding the weights of tiles.", - "start": 27181, - "end": 27222, + "start": 27224, + "end": 27265, "loc": { "start": { "line": 670, @@ -41863,8 +41869,8 @@ }, { "type": "VariableDeclaration", - "start": 27229, - "end": 27248, + "start": 27272, + "end": 27291, "loc": { "start": { "line": 671, @@ -41878,8 +41884,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27235, - "end": 27247, + "start": 27278, + "end": 27290, "loc": { "start": { "line": 671, @@ -41892,8 +41898,8 @@ }, "id": { "type": "Identifier", - "start": 27235, - "end": 27242, + "start": 27278, + "end": 27285, "loc": { "start": { "line": 671, @@ -41910,8 +41916,8 @@ }, "init": { "type": "ArrayExpression", - "start": 27245, - "end": 27247, + "start": 27288, + "end": 27290, "loc": { "start": { "line": 671, @@ -41932,8 +41938,8 @@ { "type": "CommentLine", "value": " An array holding the weights of tiles.", - "start": 27181, - "end": 27222, + "start": 27224, + "end": 27265, "loc": { "start": { "line": 670, @@ -41950,8 +41956,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 27255, - "end": 27304, + "start": 27298, + "end": 27347, "loc": { "start": { "line": 672, @@ -41967,8 +41973,8 @@ }, { "type": "VariableDeclaration", - "start": 27311, - "end": 27357, + "start": 27354, + "end": 27400, "loc": { "start": { "line": 673, @@ -41982,8 +41988,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27317, - "end": 27356, + "start": 27360, + "end": 27399, "loc": { "start": { "line": 673, @@ -41996,8 +42002,8 @@ }, "id": { "type": "Identifier", - "start": 27317, - "end": 27324, + "start": 27360, + "end": 27367, "loc": { "start": { "line": 673, @@ -42014,8 +42020,8 @@ }, "init": { "type": "CallExpression", - "start": 27327, - "end": 27356, + "start": 27370, + "end": 27399, "loc": { "start": { "line": 673, @@ -42028,8 +42034,8 @@ }, "callee": { "type": "MemberExpression", - "start": 27327, - "end": 27346, + "start": 27370, + "end": 27389, "loc": { "start": { "line": 673, @@ -42042,8 +42048,8 @@ }, "object": { "type": "MemberExpression", - "start": 27327, - "end": 27335, + "start": 27370, + "end": 27378, "loc": { "start": { "line": 673, @@ -42056,8 +42062,8 @@ }, "object": { "type": "Identifier", - "start": 27327, - "end": 27331, + "start": 27370, + "end": 27374, "loc": { "start": { "line": 673, @@ -42073,8 +42079,8 @@ }, "property": { "type": "Identifier", - "start": 27332, - "end": 27335, + "start": 27375, + "end": 27378, "loc": { "start": { "line": 673, @@ -42092,8 +42098,8 @@ }, "property": { "type": "Identifier", - "start": 27336, - "end": 27346, + "start": 27379, + "end": 27389, "loc": { "start": { "line": 673, @@ -42112,8 +42118,8 @@ "arguments": [ { "type": "Identifier", - "start": 27347, - "end": 27355, + "start": 27390, + "end": 27398, "loc": { "start": { "line": 673, @@ -42137,8 +42143,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 27255, - "end": 27304, + "start": 27298, + "end": 27347, "loc": { "start": { "line": 672, @@ -42155,8 +42161,8 @@ { "type": "CommentLine", "value": " We check if we have stored tiles from this map before. If so we cache them.", - "start": 27366, - "end": 27444, + "start": 27409, + "end": 27487, "loc": { "start": { "line": 675, @@ -42172,8 +42178,8 @@ }, { "type": "IfStatement", - "start": 27451, - "end": 27855, + "start": 27494, + "end": 27898, "loc": { "start": { "line": 676, @@ -42186,8 +42192,8 @@ }, "test": { "type": "MemberExpression", - "start": 27455, - "end": 27496, + "start": 27498, + "end": 27539, "loc": { "start": { "line": 676, @@ -42200,8 +42206,8 @@ }, "object": { "type": "MemberExpression", - "start": 27455, - "end": 27486, + "start": 27498, + "end": 27529, "loc": { "start": { "line": 676, @@ -42214,8 +42220,8 @@ }, "object": { "type": "Identifier", - "start": 27455, - "end": 27471, + "start": 27498, + "end": 27514, "loc": { "start": { "line": 676, @@ -42232,8 +42238,8 @@ }, "property": { "type": "Identifier", - "start": 27472, - "end": 27486, + "start": 27515, + "end": 27529, "loc": { "start": { "line": 676, @@ -42252,8 +42258,8 @@ }, "property": { "type": "Identifier", - "start": 27487, - "end": 27495, + "start": 27530, + "end": 27538, "loc": { "start": { "line": 676, @@ -42272,8 +42278,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 27498, - "end": 27621, + "start": 27541, + "end": 27664, "loc": { "start": { "line": 676, @@ -42287,8 +42293,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 27552, - "end": 27613, + "start": 27595, + "end": 27656, "loc": { "start": { "line": 678, @@ -42301,8 +42307,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 27552, - "end": 27612, + "start": 27595, + "end": 27655, "loc": { "start": { "line": 678, @@ -42316,8 +42322,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 27552, - "end": 27562, + "start": 27595, + "end": 27605, "loc": { "start": { "line": 678, @@ -42334,8 +42340,8 @@ }, "right": { "type": "MemberExpression", - "start": 27565, - "end": 27612, + "start": 27608, + "end": 27655, "loc": { "start": { "line": 678, @@ -42348,8 +42354,8 @@ }, "object": { "type": "MemberExpression", - "start": 27565, - "end": 27606, + "start": 27608, + "end": 27649, "loc": { "start": { "line": 678, @@ -42362,8 +42368,8 @@ }, "object": { "type": "MemberExpression", - "start": 27565, - "end": 27596, + "start": 27608, + "end": 27639, "loc": { "start": { "line": 678, @@ -42376,8 +42382,8 @@ }, "object": { "type": "Identifier", - "start": 27565, - "end": 27581, + "start": 27608, + "end": 27624, "loc": { "start": { "line": 678, @@ -42393,8 +42399,8 @@ }, "property": { "type": "Identifier", - "start": 27582, - "end": 27596, + "start": 27625, + "end": 27639, "loc": { "start": { "line": 678, @@ -42412,8 +42418,8 @@ }, "property": { "type": "Identifier", - "start": 27597, - "end": 27605, + "start": 27640, + "end": 27648, "loc": { "start": { "line": 678, @@ -42431,8 +42437,8 @@ }, "property": { "type": "Identifier", - "start": 27607, - "end": 27612, + "start": 27650, + "end": 27655, "loc": { "start": { "line": 678, @@ -42454,8 +42460,8 @@ { "type": "CommentLine", "value": " We get the tile array from memory.", - "start": 27507, - "end": 27544, + "start": 27550, + "end": 27587, "loc": { "start": { "line": 677, @@ -42474,8 +42480,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 27627, - "end": 27855, + "start": 27670, + "end": 27898, "loc": { "start": { "line": 679, @@ -42489,8 +42495,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 27636, - "end": 27677, + "start": 27679, + "end": 27720, "loc": { "start": { "line": 680, @@ -42503,8 +42509,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 27636, - "end": 27676, + "start": 27679, + "end": 27719, "loc": { "start": { "line": 680, @@ -42518,8 +42524,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 27636, - "end": 27646, + "start": 27679, + "end": 27689, "loc": { "start": { "line": 680, @@ -42535,8 +42541,8 @@ }, "right": { "type": "CallExpression", - "start": 27649, - "end": 27676, + "start": 27692, + "end": 27719, "loc": { "start": { "line": 680, @@ -42549,8 +42555,8 @@ }, "callee": { "type": "MemberExpression", - "start": 27649, - "end": 27666, + "start": 27692, + "end": 27709, "loc": { "start": { "line": 680, @@ -42563,8 +42569,8 @@ }, "object": { "type": "MemberExpression", - "start": 27649, - "end": 27657, + "start": 27692, + "end": 27700, "loc": { "start": { "line": 680, @@ -42577,8 +42583,8 @@ }, "object": { "type": "Identifier", - "start": 27649, - "end": 27653, + "start": 27692, + "end": 27696, "loc": { "start": { "line": 680, @@ -42594,8 +42600,8 @@ }, "property": { "type": "Identifier", - "start": 27654, - "end": 27657, + "start": 27697, + "end": 27700, "loc": { "start": { "line": 680, @@ -42613,8 +42619,8 @@ }, "property": { "type": "Identifier", - "start": 27658, - "end": 27666, + "start": 27701, + "end": 27709, "loc": { "start": { "line": 680, @@ -42633,8 +42639,8 @@ "arguments": [ { "type": "Identifier", - "start": 27667, - "end": 27675, + "start": 27710, + "end": 27718, "loc": { "start": { "line": 680, @@ -42655,8 +42661,8 @@ { "type": "CommentLine", "value": " We store this tiles array", - "start": 27685, - "end": 27713, + "start": 27728, + "end": 27756, "loc": { "start": { "line": 681, @@ -42672,8 +42678,8 @@ }, { "type": "ExpressionStatement", - "start": 27721, - "end": 27847, + "start": 27764, + "end": 27890, "loc": { "start": { "line": 682, @@ -42686,8 +42692,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 27721, - "end": 27846, + "start": 27764, + "end": 27889, "loc": { "start": { "line": 682, @@ -42701,8 +42707,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 27721, - "end": 27762, + "start": 27764, + "end": 27805, "loc": { "start": { "line": 682, @@ -42715,8 +42721,8 @@ }, "object": { "type": "MemberExpression", - "start": 27721, - "end": 27752, + "start": 27764, + "end": 27795, "loc": { "start": { "line": 682, @@ -42729,8 +42735,8 @@ }, "object": { "type": "Identifier", - "start": 27721, - "end": 27737, + "start": 27764, + "end": 27780, "loc": { "start": { "line": 682, @@ -42747,8 +42753,8 @@ }, "property": { "type": "Identifier", - "start": 27738, - "end": 27752, + "start": 27781, + "end": 27795, "loc": { "start": { "line": 682, @@ -42767,8 +42773,8 @@ }, "property": { "type": "Identifier", - "start": 27753, - "end": 27761, + "start": 27796, + "end": 27804, "loc": { "start": { "line": 682, @@ -42787,8 +42793,8 @@ }, "right": { "type": "ObjectExpression", - "start": 27765, - "end": 27846, + "start": 27808, + "end": 27889, "loc": { "start": { "line": 682, @@ -42802,8 +42808,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 27767, - "end": 27784, + "start": 27810, + "end": 27827, "loc": { "start": { "line": 682, @@ -42819,8 +42825,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 27767, - "end": 27772, + "start": 27810, + "end": 27815, "loc": { "start": { "line": 682, @@ -42836,8 +42842,8 @@ }, "value": { "type": "Identifier", - "start": 27774, - "end": 27784, + "start": 27817, + "end": 27827, "loc": { "start": { "line": 682, @@ -42854,8 +42860,8 @@ }, { "type": "ObjectProperty", - "start": 27786, - "end": 27844, + "start": 27829, + "end": 27887, "loc": { "start": { "line": 682, @@ -42871,8 +42877,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 27786, - "end": 27793, + "start": 27829, + "end": 27836, "loc": { "start": { "line": 682, @@ -42888,8 +42894,8 @@ }, "value": { "type": "CallExpression", - "start": 27795, - "end": 27844, + "start": 27838, + "end": 27887, "loc": { "start": { "line": 682, @@ -42902,8 +42908,8 @@ }, "callee": { "type": "MemberExpression", - "start": 27795, - "end": 27821, + "start": 27838, + "end": 27864, "loc": { "start": { "line": 682, @@ -42916,8 +42922,8 @@ }, "object": { "type": "ThisExpression", - "start": 27795, - "end": 27799, + "start": 27838, + "end": 27842, "loc": { "start": { "line": 682, @@ -42931,8 +42937,8 @@ }, "property": { "type": "Identifier", - "start": 27800, - "end": 27821, + "start": 27843, + "end": 27864, "loc": { "start": { "line": 682, @@ -42951,8 +42957,8 @@ "arguments": [ { "type": "Identifier", - "start": 27822, - "end": 27832, + "start": 27865, + "end": 27875, "loc": { "start": { "line": 682, @@ -42968,8 +42974,8 @@ }, { "type": "MemberExpression", - "start": 27834, - "end": 27843, + "start": 27877, + "end": 27886, "loc": { "start": { "line": 682, @@ -42982,8 +42988,8 @@ }, "object": { "type": "Identifier", - "start": 27834, - "end": 27841, + "start": 27877, + "end": 27884, "loc": { "start": { "line": 682, @@ -42999,8 +43005,8 @@ }, "property": { "type": "Identifier", - "start": 27842, - "end": 27843, + "start": 27885, + "end": 27886, "loc": { "start": { "line": 682, @@ -43027,8 +43033,8 @@ { "type": "CommentLine", "value": " We store this tiles array", - "start": 27685, - "end": 27713, + "start": 27728, + "end": 27756, "loc": { "start": { "line": 681, @@ -43050,8 +43056,8 @@ { "type": "CommentLine", "value": " We check if we have stored tiles from this map before. If so we cache them.", - "start": 27366, - "end": 27444, + "start": 27409, + "end": 27487, "loc": { "start": { "line": 675, @@ -43068,8 +43074,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 27864, - "end": 27984, + "start": 27907, + "end": 28027, "loc": { "start": { "line": 685, @@ -43085,8 +43091,8 @@ }, { "type": "VariableDeclaration", - "start": 27991, - "end": 28207, + "start": 28034, + "end": 28250, "loc": { "start": { "line": 686, @@ -43100,8 +43106,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27997, - "end": 28206, + "start": 28040, + "end": 28249, "loc": { "start": { "line": 686, @@ -43114,8 +43120,8 @@ }, "id": { "type": "Identifier", - "start": 27997, - "end": 28009, + "start": 28040, + "end": 28052, "loc": { "start": { "line": 686, @@ -43132,8 +43138,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 28012, - "end": 28206, + "start": 28055, + "end": 28249, "loc": { "start": { "line": 686, @@ -43151,8 +43157,8 @@ "params": [ { "type": "Identifier", - "start": 28013, - "end": 28022, + "start": 28056, + "end": 28065, "loc": { "start": { "line": 686, @@ -43169,8 +43175,8 @@ ], "body": { "type": "LogicalExpression", - "start": 28027, - "end": 28206, + "start": 28070, + "end": 28249, "loc": { "start": { "line": 686, @@ -43183,8 +43189,8 @@ }, "left": { "type": "BinaryExpression", - "start": 28028, - "end": 28090, + "start": 28071, + "end": 28133, "loc": { "start": { "line": 686, @@ -43197,8 +43203,8 @@ }, "left": { "type": "MemberExpression", - "start": 28028, - "end": 28051, + "start": 28071, + "end": 28094, "loc": { "start": { "line": 686, @@ -43211,8 +43217,8 @@ }, "object": { "type": "Identifier", - "start": 28028, - "end": 28037, + "start": 28071, + "end": 28080, "loc": { "start": { "line": 686, @@ -43228,8 +43234,8 @@ }, "property": { "type": "Identifier", - "start": 28038, - "end": 28051, + "start": 28081, + "end": 28094, "loc": { "start": { "line": 686, @@ -43248,8 +43254,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 28056, - "end": 28090, + "start": 28099, + "end": 28133, "loc": { "start": { "line": 686, @@ -43262,8 +43268,8 @@ }, "object": { "type": "Identifier", - "start": 28056, - "end": 28072, + "start": 28099, + "end": 28115, "loc": { "start": { "line": 686, @@ -43279,8 +43285,8 @@ }, "property": { "type": "Identifier", - "start": 28073, - "end": 28090, + "start": 28116, + "end": 28133, "loc": { "start": { "line": 686, @@ -43298,14 +43304,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 28027 + "parenStart": 28070 } }, "operator": "||", "right": { "type": "LogicalExpression", - "start": 28095, - "end": 28206, + "start": 28138, + "end": 28249, "loc": { "start": { "line": 686, @@ -43318,8 +43324,8 @@ }, "left": { "type": "MemberExpression", - "start": 28095, - "end": 28112, + "start": 28138, + "end": 28155, "loc": { "start": { "line": 686, @@ -43332,8 +43338,8 @@ }, "object": { "type": "Identifier", - "start": 28095, - "end": 28104, + "start": 28138, + "end": 28147, "loc": { "start": { "line": 686, @@ -43349,8 +43355,8 @@ }, "property": { "type": "Identifier", - "start": 28105, - "end": 28112, + "start": 28148, + "end": 28155, "loc": { "start": { "line": 686, @@ -43369,8 +43375,8 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 28117, - "end": 28205, + "start": 28160, + "end": 28248, "loc": { "start": { "line": 686, @@ -43383,8 +43389,8 @@ }, "left": { "type": "UnaryExpression", - "start": 28117, - "end": 28141, + "start": 28160, + "end": 28184, "loc": { "start": { "line": 686, @@ -43399,8 +43405,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 28118, - "end": 28141, + "start": 28161, + "end": 28184, "loc": { "start": { "line": 686, @@ -43413,8 +43419,8 @@ }, "object": { "type": "Identifier", - "start": 28118, - "end": 28127, + "start": 28161, + "end": 28170, "loc": { "start": { "line": 686, @@ -43430,8 +43436,8 @@ }, "property": { "type": "Identifier", - "start": 28128, - "end": 28141, + "start": 28171, + "end": 28184, "loc": { "start": { "line": 686, @@ -43454,8 +43460,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 28145, - "end": 28205, + "start": 28188, + "end": 28248, "loc": { "start": { "line": 686, @@ -43468,8 +43474,8 @@ }, "left": { "type": "MemberExpression", - "start": 28145, - "end": 28168, + "start": 28188, + "end": 28211, "loc": { "start": { "line": 686, @@ -43482,8 +43488,8 @@ }, "object": { "type": "Identifier", - "start": 28145, - "end": 28154, + "start": 28188, + "end": 28197, "loc": { "start": { "line": 686, @@ -43499,8 +43505,8 @@ }, "property": { "type": "Identifier", - "start": 28155, - "end": 28168, + "start": 28198, + "end": 28211, "loc": { "start": { "line": 686, @@ -43519,8 +43525,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 28173, - "end": 28205, + "start": 28216, + "end": 28248, "loc": { "start": { "line": 686, @@ -43533,8 +43539,8 @@ }, "object": { "type": "Identifier", - "start": 28173, - "end": 28189, + "start": 28216, + "end": 28232, "loc": { "start": { "line": 686, @@ -43550,8 +43556,8 @@ }, "property": { "type": "Identifier", - "start": 28190, - "end": 28205, + "start": 28233, + "end": 28248, "loc": { "start": { "line": 686, @@ -43570,7 +43576,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 28116 + "parenStart": 28159 } } } @@ -43584,8 +43590,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 27864, - "end": 27984, + "start": 27907, + "end": 28027, "loc": { "start": { "line": 685, @@ -43602,8 +43608,8 @@ { "type": "CommentLine", "value": " Loop through the tiles array to build weights and accepted tile lists.", - "start": 28221, - "end": 28294, + "start": 28264, + "end": 28337, "loc": { "start": { "line": 688, @@ -43619,8 +43625,8 @@ }, { "type": "VariableDeclaration", - "start": 28301, - "end": 30047, + "start": 28344, + "end": 30090, "loc": { "start": { "line": 689, @@ -43634,8 +43640,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 28307, - "end": 30046, + "start": 28350, + "end": 30089, "loc": { "start": { "line": 689, @@ -43648,8 +43654,8 @@ }, "id": { "type": "Identifier", - "start": 28307, - "end": 28311, + "start": 28350, + "end": 28354, "loc": { "start": { "line": 689, @@ -43666,8 +43672,8 @@ }, "init": { "type": "CallExpression", - "start": 28314, - "end": 30046, + "start": 28357, + "end": 30089, "loc": { "start": { "line": 689, @@ -43680,8 +43686,8 @@ }, "callee": { "type": "MemberExpression", - "start": 28314, - "end": 28328, + "start": 28357, + "end": 28371, "loc": { "start": { "line": 689, @@ -43694,8 +43700,8 @@ }, "object": { "type": "Identifier", - "start": 28314, - "end": 28324, + "start": 28357, + "end": 28367, "loc": { "start": { "line": 689, @@ -43711,8 +43717,8 @@ }, "property": { "type": "Identifier", - "start": 28325, - "end": 28328, + "start": 28368, + "end": 28371, "loc": { "start": { "line": 689, @@ -43731,8 +43737,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 28329, - "end": 30045, + "start": 28372, + "end": 30088, "loc": { "start": { "line": 689, @@ -43750,8 +43756,8 @@ "params": [ { "type": "Identifier", - "start": 28330, - "end": 28335, + "start": 28373, + "end": 28378, "loc": { "start": { "line": 689, @@ -43768,8 +43774,8 @@ ], "body": { "type": "BlockStatement", - "start": 28340, - "end": 30045, + "start": 28383, + "end": 30088, "loc": { "start": { "line": 689, @@ -43783,8 +43789,8 @@ "body": [ { "type": "IfStatement", - "start": 28618, - "end": 28694, + "start": 28661, + "end": 28737, "loc": { "start": { "line": 692, @@ -43797,8 +43803,8 @@ }, "test": { "type": "CallExpression", - "start": 28622, - "end": 28652, + "start": 28665, + "end": 28695, "loc": { "start": { "line": 692, @@ -43811,8 +43817,8 @@ }, "callee": { "type": "MemberExpression", - "start": 28622, - "end": 28645, + "start": 28665, + "end": 28688, "loc": { "start": { "line": 692, @@ -43825,8 +43831,8 @@ }, "object": { "type": "Identifier", - "start": 28622, - "end": 28636, + "start": 28665, + "end": 28679, "loc": { "start": { "line": 692, @@ -43843,8 +43849,8 @@ }, "property": { "type": "Identifier", - "start": 28637, - "end": 28645, + "start": 28680, + "end": 28688, "loc": { "start": { "line": 692, @@ -43864,8 +43870,8 @@ "arguments": [ { "type": "Identifier", - "start": 28646, - "end": 28651, + "start": 28689, + "end": 28694, "loc": { "start": { "line": 692, @@ -43884,8 +43890,8 @@ }, "consequent": { "type": "ReturnStatement", - "start": 28654, - "end": 28694, + "start": 28697, + "end": 28737, "loc": { "start": { "line": 692, @@ -43898,8 +43904,8 @@ }, "argument": { "type": "MemberExpression", - "start": 28661, - "end": 28693, + "start": 28704, + "end": 28736, "loc": { "start": { "line": 692, @@ -43912,8 +43918,8 @@ }, "object": { "type": "Identifier", - "start": 28661, - "end": 28677, + "start": 28704, + "end": 28720, "loc": { "start": { "line": 692, @@ -43929,8 +43935,8 @@ }, "property": { "type": "Identifier", - "start": 28678, - "end": 28693, + "start": 28721, + "end": 28736, "loc": { "start": { "line": 692, @@ -43953,8 +43959,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is passable. This prevents the tile's contents from being searched. ", - "start": 28349, - "end": 28473, + "start": 28392, + "end": 28516, "loc": { "start": { "line": 690, @@ -43969,8 +43975,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 28481, - "end": 28610, + "start": 28524, + "end": 28653, "loc": { "start": { "line": 691, @@ -43987,8 +43993,8 @@ { "type": "CommentLine", "value": " A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.", - "start": 28704, - "end": 28772, + "start": 28747, + "end": 28815, "loc": { "start": { "line": 694, @@ -44004,8 +44010,8 @@ }, { "type": "VariableDeclaration", - "start": 28780, - "end": 28891, + "start": 28823, + "end": 28934, "loc": { "start": { "line": 695, @@ -44019,8 +44025,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 28784, - "end": 28890, + "start": 28827, + "end": 28933, "loc": { "start": { "line": 695, @@ -44033,8 +44039,8 @@ }, "id": { "type": "Identifier", - "start": 28784, - "end": 28790, + "start": 28827, + "end": 28833, "loc": { "start": { "line": 695, @@ -44051,8 +44057,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 28793, - "end": 28890, + "start": 28836, + "end": 28933, "loc": { "start": { "line": 695, @@ -44065,8 +44071,8 @@ }, "test": { "type": "BinaryExpression", - "start": 28793, - "end": 28833, + "start": 28836, + "end": 28876, "loc": { "start": { "line": 695, @@ -44079,8 +44085,8 @@ }, "left": { "type": "UnaryExpression", - "start": 28793, - "end": 28820, + "start": 28836, + "end": 28863, "loc": { "start": { "line": 695, @@ -44095,8 +44101,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 28800, - "end": 28819, + "start": 28843, + "end": 28862, "loc": { "start": { "line": 695, @@ -44109,8 +44115,8 @@ }, "object": { "type": "Identifier", - "start": 28800, - "end": 28805, + "start": 28843, + "end": 28848, "loc": { "start": { "line": 695, @@ -44126,8 +44132,8 @@ }, "property": { "type": "Identifier", - "start": 28806, - "end": 28819, + "start": 28849, + "end": 28862, "loc": { "start": { "line": 695, @@ -44144,7 +44150,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 28799 + "parenStart": 28842 } }, "extra": { @@ -44154,8 +44160,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 28825, - "end": 28833, + "start": 28868, + "end": 28876, "loc": { "start": { "line": 695, @@ -44175,8 +44181,8 @@ }, "consequent": { "type": "MemberExpression", - "start": 28836, - "end": 28855, + "start": 28879, + "end": 28898, "loc": { "start": { "line": 695, @@ -44189,8 +44195,8 @@ }, "object": { "type": "Identifier", - "start": 28836, - "end": 28841, + "start": 28879, + "end": 28884, "loc": { "start": { "line": 695, @@ -44206,8 +44212,8 @@ }, "property": { "type": "Identifier", - "start": 28842, - "end": 28855, + "start": 28885, + "end": 28898, "loc": { "start": { "line": 695, @@ -44225,8 +44231,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 28858, - "end": 28890, + "start": 28901, + "end": 28933, "loc": { "start": { "line": 695, @@ -44239,8 +44245,8 @@ }, "object": { "type": "Identifier", - "start": 28858, - "end": 28874, + "start": 28901, + "end": 28917, "loc": { "start": { "line": 695, @@ -44256,8 +44262,8 @@ }, "property": { "type": "Identifier", - "start": 28875, - "end": 28890, + "start": 28918, + "end": 28933, "loc": { "start": { "line": 695, @@ -44282,8 +44288,8 @@ { "type": "CommentLine", "value": " A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.", - "start": 28704, - "end": 28772, + "start": 28747, + "end": 28815, "loc": { "start": { "line": 694, @@ -44300,8 +44306,8 @@ { "type": "CommentLine", "value": " If this tile is not accessible, we cannot pass it, so we skip this tile.", - "start": 28907, - "end": 28982, + "start": 28950, + "end": 29025, "loc": { "start": { "line": 697, @@ -44317,8 +44323,8 @@ }, { "type": "IfStatement", - "start": 28990, - "end": 29102, + "start": 29033, + "end": 29145, "loc": { "start": { "line": 698, @@ -44331,8 +44337,8 @@ }, "test": { "type": "UnaryExpression", - "start": 28994, - "end": 29039, + "start": 29037, + "end": 29082, "loc": { "start": { "line": 698, @@ -44347,8 +44353,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 28995, - "end": 29039, + "start": 29038, + "end": 29082, "loc": { "start": { "line": 698, @@ -44361,8 +44367,8 @@ }, "callee": { "type": "MemberExpression", - "start": 28995, - "end": 29016, + "start": 29038, + "end": 29059, "loc": { "start": { "line": 698, @@ -44375,8 +44381,8 @@ }, "object": { "type": "ThisExpression", - "start": 28995, - "end": 28999, + "start": 29038, + "end": 29042, "loc": { "start": { "line": 698, @@ -44391,8 +44397,8 @@ }, "property": { "type": "Identifier", - "start": 29000, - "end": 29016, + "start": 29043, + "end": 29059, "loc": { "start": { "line": 698, @@ -44412,8 +44418,8 @@ "arguments": [ { "type": "Identifier", - "start": 29017, - "end": 29022, + "start": 29060, + "end": 29065, "loc": { "start": { "line": 698, @@ -44429,8 +44435,8 @@ }, { "type": "Identifier", - "start": 29024, - "end": 29038, + "start": 29067, + "end": 29081, "loc": { "start": { "line": 698, @@ -44454,8 +44460,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29041, - "end": 29102, + "start": 29084, + "end": 29145, "loc": { "start": { "line": 698, @@ -44469,8 +44475,8 @@ "body": [ { "type": "ReturnStatement", - "start": 29051, - "end": 29093, + "start": 29094, + "end": 29136, "loc": { "start": { "line": 699, @@ -44483,8 +44489,8 @@ }, "argument": { "type": "MemberExpression", - "start": 29058, - "end": 29092, + "start": 29101, + "end": 29135, "loc": { "start": { "line": 699, @@ -44497,8 +44503,8 @@ }, "object": { "type": "Identifier", - "start": 29058, - "end": 29074, + "start": 29101, + "end": 29117, "loc": { "start": { "line": 699, @@ -44514,8 +44520,8 @@ }, "property": { "type": "Identifier", - "start": 29075, - "end": 29092, + "start": 29118, + "end": 29135, "loc": { "start": { "line": 699, @@ -44541,8 +44547,8 @@ { "type": "CommentLine", "value": " If this tile is not accessible, we cannot pass it, so we skip this tile.", - "start": 28907, - "end": 28982, + "start": 28950, + "end": 29025, "loc": { "start": { "line": 697, @@ -44559,8 +44565,8 @@ { "type": "CommentLine", "value": " Accumulate weights of instances on the tile", - "start": 29112, - "end": 29158, + "start": 29155, + "end": 29201, "loc": { "start": { "line": 702, @@ -44576,8 +44582,8 @@ }, { "type": "ForOfStatement", - "start": 29166, - "end": 29700, + "start": 29209, + "end": 29743, "loc": { "start": { "line": 703, @@ -44590,8 +44596,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 29171, - "end": 29185, + "start": 29214, + "end": 29228, "loc": { "start": { "line": 703, @@ -44605,8 +44611,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 29177, - "end": 29185, + "start": 29220, + "end": 29228, "loc": { "start": { "line": 703, @@ -44619,8 +44625,8 @@ }, "id": { "type": "Identifier", - "start": 29177, - "end": 29185, + "start": 29220, + "end": 29228, "loc": { "start": { "line": 703, @@ -44644,8 +44650,8 @@ }, "right": { "type": "CallExpression", - "start": 29189, - "end": 29208, + "start": 29232, + "end": 29251, "loc": { "start": { "line": 703, @@ -44658,8 +44664,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29189, - "end": 29206, + "start": 29232, + "end": 29249, "loc": { "start": { "line": 703, @@ -44672,8 +44678,8 @@ }, "object": { "type": "Identifier", - "start": 29189, - "end": 29194, + "start": 29232, + "end": 29237, "loc": { "start": { "line": 703, @@ -44689,8 +44695,8 @@ }, "property": { "type": "Identifier", - "start": 29195, - "end": 29206, + "start": 29238, + "end": 29249, "loc": { "start": { "line": 703, @@ -44710,8 +44716,8 @@ }, "body": { "type": "BlockStatement", - "start": 29210, - "end": 29700, + "start": 29253, + "end": 29743, "loc": { "start": { "line": 703, @@ -44725,8 +44731,8 @@ "body": [ { "type": "IfStatement", - "start": 29298, - "end": 29346, + "start": 29341, + "end": 29389, "loc": { "start": { "line": 705, @@ -44739,8 +44745,8 @@ }, "test": { "type": "CallExpression", - "start": 29302, - "end": 29335, + "start": 29345, + "end": 29378, "loc": { "start": { "line": 705, @@ -44753,8 +44759,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29302, - "end": 29325, + "start": 29345, + "end": 29368, "loc": { "start": { "line": 705, @@ -44767,8 +44773,8 @@ }, "object": { "type": "Identifier", - "start": 29302, - "end": 29316, + "start": 29345, + "end": 29359, "loc": { "start": { "line": 705, @@ -44785,8 +44791,8 @@ }, "property": { "type": "Identifier", - "start": 29317, - "end": 29325, + "start": 29360, + "end": 29368, "loc": { "start": { "line": 705, @@ -44806,8 +44812,8 @@ "arguments": [ { "type": "Identifier", - "start": 29326, - "end": 29334, + "start": 29369, + "end": 29377, "loc": { "start": { "line": 705, @@ -44826,8 +44832,8 @@ }, "consequent": { "type": "ContinueStatement", - "start": 29337, - "end": 29346, + "start": 29380, + "end": 29389, "loc": { "start": { "line": 705, @@ -44847,8 +44853,8 @@ { "type": "CommentLine", "value": " If this instance is to be excluded. We don't calculate its weight.", - "start": 29220, - "end": 29289, + "start": 29263, + "end": 29332, "loc": { "start": { "line": 704, @@ -44865,8 +44871,8 @@ { "type": "CommentLine", "value": " If this instance is impassable we skip this tile.", - "start": 29357, - "end": 29409, + "start": 29400, + "end": 29452, "loc": { "start": { "line": 707, @@ -44882,8 +44888,8 @@ }, { "type": "IfStatement", - "start": 29418, - "end": 29691, + "start": 29461, + "end": 29734, "loc": { "start": { "line": 708, @@ -44896,8 +44902,8 @@ }, "test": { "type": "CallExpression", - "start": 29422, - "end": 29444, + "start": 29465, + "end": 29487, "loc": { "start": { "line": 708, @@ -44910,8 +44916,8 @@ }, "callee": { "type": "Identifier", - "start": 29422, - "end": 29434, + "start": 29465, + "end": 29477, "loc": { "start": { "line": 708, @@ -44929,8 +44935,8 @@ "arguments": [ { "type": "Identifier", - "start": 29435, - "end": 29443, + "start": 29478, + "end": 29486, "loc": { "start": { "line": 708, @@ -44949,8 +44955,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29446, - "end": 29509, + "start": 29489, + "end": 29552, "loc": { "start": { "line": 708, @@ -44964,8 +44970,8 @@ "body": [ { "type": "ReturnStatement", - "start": 29457, - "end": 29499, + "start": 29500, + "end": 29542, "loc": { "start": { "line": 709, @@ -44978,8 +44984,8 @@ }, "argument": { "type": "MemberExpression", - "start": 29464, - "end": 29498, + "start": 29507, + "end": 29541, "loc": { "start": { "line": 709, @@ -44992,8 +44998,8 @@ }, "object": { "type": "Identifier", - "start": 29464, - "end": 29480, + "start": 29507, + "end": 29523, "loc": { "start": { "line": 709, @@ -45009,8 +45015,8 @@ }, "property": { "type": "Identifier", - "start": 29481, - "end": 29498, + "start": 29524, + "end": 29541, "loc": { "start": { "line": 709, @@ -45032,8 +45038,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 29515, - "end": 29691, + "start": 29558, + "end": 29734, "loc": { "start": { "line": 710, @@ -45047,8 +45053,8 @@ "body": [ { "type": "IfStatement", - "start": 29576, - "end": 29681, + "start": 29619, + "end": 29724, "loc": { "start": { "line": 712, @@ -45061,8 +45067,8 @@ }, "test": { "type": "BinaryExpression", - "start": 29580, - "end": 29623, + "start": 29623, + "end": 29666, "loc": { "start": { "line": 712, @@ -45075,8 +45081,8 @@ }, "left": { "type": "UnaryExpression", - "start": 29580, - "end": 29610, + "start": 29623, + "end": 29653, "loc": { "start": { "line": 712, @@ -45091,8 +45097,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 29587, - "end": 29609, + "start": 29630, + "end": 29652, "loc": { "start": { "line": 712, @@ -45105,8 +45111,8 @@ }, "object": { "type": "Identifier", - "start": 29587, - "end": 29595, + "start": 29630, + "end": 29638, "loc": { "start": { "line": 712, @@ -45123,8 +45129,8 @@ }, "property": { "type": "Identifier", - "start": 29596, - "end": 29609, + "start": 29639, + "end": 29652, "loc": { "start": { "line": 712, @@ -45142,7 +45148,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 29586 + "parenStart": 29629 } }, "extra": { @@ -45153,8 +45159,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 29615, - "end": 29623, + "start": 29658, + "end": 29666, "loc": { "start": { "line": 712, @@ -45175,8 +45181,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29625, - "end": 29681, + "start": 29668, + "end": 29724, "loc": { "start": { "line": 712, @@ -45190,8 +45196,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 29637, - "end": 29670, + "start": 29680, + "end": 29713, "loc": { "start": { "line": 713, @@ -45204,8 +45210,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 29637, - "end": 29669, + "start": 29680, + "end": 29712, "loc": { "start": { "line": 713, @@ -45219,8 +45225,8 @@ "operator": "+=", "left": { "type": "Identifier", - "start": 29637, - "end": 29643, + "start": 29680, + "end": 29686, "loc": { "start": { "line": 713, @@ -45236,8 +45242,8 @@ }, "right": { "type": "MemberExpression", - "start": 29647, - "end": 29669, + "start": 29690, + "end": 29712, "loc": { "start": { "line": 713, @@ -45250,8 +45256,8 @@ }, "object": { "type": "Identifier", - "start": 29647, - "end": 29655, + "start": 29690, + "end": 29698, "loc": { "start": { "line": 713, @@ -45267,8 +45273,8 @@ }, "property": { "type": "Identifier", - "start": 29656, - "end": 29669, + "start": 29699, + "end": 29712, "loc": { "start": { "line": 713, @@ -45294,8 +45300,8 @@ { "type": "CommentLine", "value": " We accumulate the weight of instances", - "start": 29526, - "end": 29566, + "start": 29569, + "end": 29609, "loc": { "start": { "line": 711, @@ -45316,8 +45322,8 @@ { "type": "CommentLine", "value": " If this instance is impassable we skip this tile.", - "start": 29357, - "end": 29409, + "start": 29400, + "end": 29452, "loc": { "start": { "line": 707, @@ -45339,8 +45345,8 @@ { "type": "CommentLine", "value": " Accumulate weights of instances on the tile", - "start": 29112, - "end": 29158, + "start": 29155, + "end": 29201, "loc": { "start": { "line": 702, @@ -45357,8 +45363,8 @@ { "type": "CommentLine", "value": " Add weight to acceptedTiles if not already present", - "start": 29710, - "end": 29763, + "start": 29753, + "end": 29806, "loc": { "start": { "line": 718, @@ -45374,8 +45380,8 @@ }, { "type": "IfStatement", - "start": 29771, - "end": 30013, + "start": 29814, + "end": 30056, "loc": { "start": { "line": 719, @@ -45388,8 +45394,8 @@ }, "test": { "type": "LogicalExpression", - "start": 29775, - "end": 29867, + "start": 29818, + "end": 29910, "loc": { "start": { "line": 719, @@ -45402,8 +45408,8 @@ }, "left": { "type": "BinaryExpression", - "start": 29775, - "end": 29820, + "start": 29818, + "end": 29863, "loc": { "start": { "line": 719, @@ -45416,8 +45422,8 @@ }, "left": { "type": "Identifier", - "start": 29775, - "end": 29781, + "start": 29818, + "end": 29824, "loc": { "start": { "line": 719, @@ -45435,8 +45441,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 29786, - "end": 29820, + "start": 29829, + "end": 29863, "loc": { "start": { "line": 719, @@ -45449,8 +45455,8 @@ }, "object": { "type": "Identifier", - "start": 29786, - "end": 29802, + "start": 29829, + "end": 29845, "loc": { "start": { "line": 719, @@ -45466,8 +45472,8 @@ }, "property": { "type": "Identifier", - "start": 29803, - "end": 29820, + "start": 29846, + "end": 29863, "loc": { "start": { "line": 719, @@ -45488,8 +45494,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 29824, - "end": 29867, + "start": 29867, + "end": 29910, "loc": { "start": { "line": 719, @@ -45502,8 +45508,8 @@ }, "left": { "type": "Identifier", - "start": 29824, - "end": 29830, + "start": 29867, + "end": 29873, "loc": { "start": { "line": 719, @@ -45520,8 +45526,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 29835, - "end": 29867, + "start": 29878, + "end": 29910, "loc": { "start": { "line": 719, @@ -45534,8 +45540,8 @@ }, "object": { "type": "Identifier", - "start": 29835, - "end": 29851, + "start": 29878, + "end": 29894, "loc": { "start": { "line": 719, @@ -45551,8 +45557,8 @@ }, "property": { "type": "Identifier", - "start": 29852, - "end": 29867, + "start": 29895, + "end": 29910, "loc": { "start": { "line": 719, @@ -45573,8 +45579,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29869, - "end": 30013, + "start": 29912, + "end": 30056, "loc": { "start": { "line": 719, @@ -45588,8 +45594,8 @@ "body": [ { "type": "IfStatement", - "start": 29879, - "end": 29943, + "start": 29922, + "end": 29986, "loc": { "start": { "line": 720, @@ -45602,8 +45608,8 @@ }, "test": { "type": "UnaryExpression", - "start": 29883, - "end": 29914, + "start": 29926, + "end": 29957, "loc": { "start": { "line": 720, @@ -45618,8 +45624,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 29884, - "end": 29914, + "start": 29927, + "end": 29957, "loc": { "start": { "line": 720, @@ -45632,8 +45638,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29884, - "end": 29906, + "start": 29927, + "end": 29949, "loc": { "start": { "line": 720, @@ -45646,8 +45652,8 @@ }, "object": { "type": "Identifier", - "start": 29884, - "end": 29897, + "start": 29927, + "end": 29940, "loc": { "start": { "line": 720, @@ -45663,8 +45669,8 @@ }, "property": { "type": "Identifier", - "start": 29898, - "end": 29906, + "start": 29941, + "end": 29949, "loc": { "start": { "line": 720, @@ -45683,8 +45689,8 @@ "arguments": [ { "type": "Identifier", - "start": 29907, - "end": 29913, + "start": 29950, + "end": 29956, "loc": { "start": { "line": 720, @@ -45706,8 +45712,8 @@ }, "consequent": { "type": "ExpressionStatement", - "start": 29916, - "end": 29943, + "start": 29959, + "end": 29986, "loc": { "start": { "line": 720, @@ -45720,8 +45726,8 @@ }, "expression": { "type": "CallExpression", - "start": 29916, - "end": 29942, + "start": 29959, + "end": 29985, "loc": { "start": { "line": 720, @@ -45734,8 +45740,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29916, - "end": 29934, + "start": 29959, + "end": 29977, "loc": { "start": { "line": 720, @@ -45748,8 +45754,8 @@ }, "object": { "type": "Identifier", - "start": 29916, - "end": 29929, + "start": 29959, + "end": 29972, "loc": { "start": { "line": 720, @@ -45765,8 +45771,8 @@ }, "property": { "type": "Identifier", - "start": 29930, - "end": 29934, + "start": 29973, + "end": 29977, "loc": { "start": { "line": 720, @@ -45785,8 +45791,8 @@ "arguments": [ { "type": "Identifier", - "start": 29935, - "end": 29941, + "start": 29978, + "end": 29984, "loc": { "start": { "line": 720, @@ -45807,8 +45813,8 @@ }, { "type": "IfStatement", - "start": 29952, - "end": 30004, + "start": 29995, + "end": 30047, "loc": { "start": { "line": 721, @@ -45821,8 +45827,8 @@ }, "test": { "type": "UnaryExpression", - "start": 29956, - "end": 29981, + "start": 29999, + "end": 30024, "loc": { "start": { "line": 721, @@ -45837,8 +45843,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 29957, - "end": 29981, + "start": 30000, + "end": 30024, "loc": { "start": { "line": 721, @@ -45851,8 +45857,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29957, - "end": 29973, + "start": 30000, + "end": 30016, "loc": { "start": { "line": 721, @@ -45865,8 +45871,8 @@ }, "object": { "type": "Identifier", - "start": 29957, - "end": 29964, + "start": 30000, + "end": 30007, "loc": { "start": { "line": 721, @@ -45882,8 +45888,8 @@ }, "property": { "type": "Identifier", - "start": 29965, - "end": 29973, + "start": 30008, + "end": 30016, "loc": { "start": { "line": 721, @@ -45902,8 +45908,8 @@ "arguments": [ { "type": "Identifier", - "start": 29974, - "end": 29980, + "start": 30017, + "end": 30023, "loc": { "start": { "line": 721, @@ -45925,8 +45931,8 @@ }, "consequent": { "type": "ExpressionStatement", - "start": 29983, - "end": 30004, + "start": 30026, + "end": 30047, "loc": { "start": { "line": 721, @@ -45939,8 +45945,8 @@ }, "expression": { "type": "CallExpression", - "start": 29983, - "end": 30003, + "start": 30026, + "end": 30046, "loc": { "start": { "line": 721, @@ -45953,8 +45959,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29983, - "end": 29995, + "start": 30026, + "end": 30038, "loc": { "start": { "line": 721, @@ -45967,8 +45973,8 @@ }, "object": { "type": "Identifier", - "start": 29983, - "end": 29990, + "start": 30026, + "end": 30033, "loc": { "start": { "line": 721, @@ -45984,8 +45990,8 @@ }, "property": { "type": "Identifier", - "start": 29991, - "end": 29995, + "start": 30034, + "end": 30038, "loc": { "start": { "line": 721, @@ -46004,8 +46010,8 @@ "arguments": [ { "type": "Identifier", - "start": 29996, - "end": 30002, + "start": 30039, + "end": 30045, "loc": { "start": { "line": 721, @@ -46032,8 +46038,8 @@ { "type": "CommentLine", "value": " Add weight to acceptedTiles if not already present", - "start": 29710, - "end": 29763, + "start": 29753, + "end": 29806, "loc": { "start": { "line": 718, @@ -46049,8 +46055,8 @@ }, { "type": "ReturnStatement", - "start": 30023, - "end": 30037, + "start": 30066, + "end": 30080, "loc": { "start": { "line": 724, @@ -46063,8 +46069,8 @@ }, "argument": { "type": "Identifier", - "start": 30030, - "end": 30036, + "start": 30073, + "end": 30079, "loc": { "start": { "line": 724, @@ -46093,8 +46099,8 @@ { "type": "CommentLine", "value": " Loop through the tiles array to build weights and accepted tile lists.", - "start": 28221, - "end": 28294, + "start": 28264, + "end": 28337, "loc": { "start": { "line": 688, @@ -46110,8 +46116,8 @@ }, { "type": "ReturnStatement", - "start": 30056, - "end": 30202, + "start": 30099, + "end": 30245, "loc": { "start": { "line": 727, @@ -46124,8 +46130,8 @@ }, "argument": { "type": "ObjectExpression", - "start": 30063, - "end": 30201, + "start": 30106, + "end": 30244, "loc": { "start": { "line": 727, @@ -46139,8 +46145,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 30073, - "end": 30103, + "start": 30116, + "end": 30146, "loc": { "start": { "line": 728, @@ -46156,8 +46162,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 30073, - "end": 30088, + "start": 30116, + "end": 30131, "loc": { "start": { "line": 728, @@ -46176,8 +46182,8 @@ }, "value": { "type": "Identifier", - "start": 30090, - "end": 30103, + "start": 30133, + "end": 30146, "loc": { "start": { "line": 728, @@ -46194,8 +46200,8 @@ }, { "type": "ObjectProperty", - "start": 30113, - "end": 30164, + "start": 30156, + "end": 30207, "loc": { "start": { "line": 729, @@ -46211,8 +46217,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 30113, - "end": 30119, + "start": 30156, + "end": 30162, "loc": { "start": { "line": 729, @@ -46231,8 +46237,8 @@ }, "value": { "type": "CallExpression", - "start": 30121, - "end": 30164, + "start": 30164, + "end": 30207, "loc": { "start": { "line": 729, @@ -46245,8 +46251,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30121, - "end": 30147, + "start": 30164, + "end": 30190, "loc": { "start": { "line": 729, @@ -46259,8 +46265,8 @@ }, "object": { "type": "ThisExpression", - "start": 30121, - "end": 30125, + "start": 30164, + "end": 30168, "loc": { "start": { "line": 729, @@ -46274,8 +46280,8 @@ }, "property": { "type": "Identifier", - "start": 30126, - "end": 30147, + "start": 30169, + "end": 30190, "loc": { "start": { "line": 729, @@ -46294,8 +46300,8 @@ "arguments": [ { "type": "Identifier", - "start": 30148, - "end": 30152, + "start": 30191, + "end": 30195, "loc": { "start": { "line": 729, @@ -46311,8 +46317,8 @@ }, { "type": "MemberExpression", - "start": 30154, - "end": 30163, + "start": 30197, + "end": 30206, "loc": { "start": { "line": 729, @@ -46325,8 +46331,8 @@ }, "object": { "type": "Identifier", - "start": 30154, - "end": 30161, + "start": 30197, + "end": 30204, "loc": { "start": { "line": 729, @@ -46342,8 +46348,8 @@ }, "property": { "type": "Identifier", - "start": 30162, - "end": 30163, + "start": 30205, + "end": 30206, "loc": { "start": { "line": 729, @@ -46364,8 +46370,8 @@ }, { "type": "ObjectProperty", - "start": 30174, - "end": 30192, + "start": 30217, + "end": 30235, "loc": { "start": { "line": 730, @@ -46381,8 +46387,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 30174, - "end": 30183, + "start": 30217, + "end": 30226, "loc": { "start": { "line": 730, @@ -46401,8 +46407,8 @@ }, "value": { "type": "Identifier", - "start": 30185, - "end": 30192, + "start": 30228, + "end": 30235, "loc": { "start": { "line": 730, @@ -46425,8 +46431,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 30215, - "end": 30322, + "start": 30258, + "end": 30365, "loc": { "start": { "line": 732, @@ -46440,8 +46446,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 30223, - "end": 30301, + "start": 30266, + "end": 30344, "loc": { "start": { "line": 733, @@ -46454,8 +46460,8 @@ }, "expression": { "type": "CallExpression", - "start": 30223, - "end": 30300, + "start": 30266, + "end": 30343, "loc": { "start": { "line": 733, @@ -46468,8 +46474,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30223, - "end": 30265, + "start": 30266, + "end": 30308, "loc": { "start": { "line": 733, @@ -46482,8 +46488,8 @@ }, "object": { "type": "CallExpression", - "start": 30223, - "end": 30259, + "start": 30266, + "end": 30302, "loc": { "start": { "line": 733, @@ -46496,8 +46502,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30223, - "end": 30241, + "start": 30266, + "end": 30284, "loc": { "start": { "line": 733, @@ -46510,8 +46516,8 @@ }, "object": { "type": "MemberExpression", - "start": 30223, - "end": 30234, + "start": 30266, + "end": 30277, "loc": { "start": { "line": 733, @@ -46524,8 +46530,8 @@ }, "object": { "type": "ThisExpression", - "start": 30223, - "end": 30227, + "start": 30266, + "end": 30270, "loc": { "start": { "line": 733, @@ -46539,8 +46545,8 @@ }, "property": { "type": "Identifier", - "start": 30228, - "end": 30234, + "start": 30271, + "end": 30277, "loc": { "start": { "line": 733, @@ -46558,8 +46564,8 @@ }, "property": { "type": "Identifier", - "start": 30235, - "end": 30241, + "start": 30278, + "end": 30284, "loc": { "start": { "line": 733, @@ -46578,8 +46584,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30242, - "end": 30258, + "start": 30285, + "end": 30301, "loc": { "start": { "line": 733, @@ -46600,8 +46606,8 @@ }, "property": { "type": "Identifier", - "start": 30260, - "end": 30265, + "start": 30303, + "end": 30308, "loc": { "start": { "line": 733, @@ -46620,8 +46626,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30266, - "end": 30299, + "start": 30309, + "end": 30342, "loc": { "start": { "line": 733, @@ -46643,8 +46649,8 @@ }, { "type": "ReturnStatement", - "start": 30308, - "end": 30315, + "start": 30351, + "end": 30358, "loc": { "start": { "line": 734, @@ -46664,8 +46670,8 @@ { "type": "CommentLine", "value": " We check if this is a valid mapname found in VYLO.", - "start": 26911, - "end": 26964, + "start": 26954, + "end": 27007, "loc": { "start": { "line": 664, @@ -46684,8 +46690,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 30334, - "end": 30426, + "start": 30377, + "end": 30469, "loc": { "start": { "line": 736, @@ -46699,8 +46705,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 30341, - "end": 30420, + "start": 30384, + "end": 30463, "loc": { "start": { "line": 737, @@ -46713,8 +46719,8 @@ }, "expression": { "type": "CallExpression", - "start": 30341, - "end": 30419, + "start": 30384, + "end": 30462, "loc": { "start": { "line": 737, @@ -46727,8 +46733,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30341, - "end": 30383, + "start": 30384, + "end": 30426, "loc": { "start": { "line": 737, @@ -46741,8 +46747,8 @@ }, "object": { "type": "CallExpression", - "start": 30341, - "end": 30377, + "start": 30384, + "end": 30420, "loc": { "start": { "line": 737, @@ -46755,8 +46761,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30341, - "end": 30359, + "start": 30384, + "end": 30402, "loc": { "start": { "line": 737, @@ -46769,8 +46775,8 @@ }, "object": { "type": "MemberExpression", - "start": 30341, - "end": 30352, + "start": 30384, + "end": 30395, "loc": { "start": { "line": 737, @@ -46783,8 +46789,8 @@ }, "object": { "type": "ThisExpression", - "start": 30341, - "end": 30345, + "start": 30384, + "end": 30388, "loc": { "start": { "line": 737, @@ -46798,8 +46804,8 @@ }, "property": { "type": "Identifier", - "start": 30346, - "end": 30352, + "start": 30389, + "end": 30395, "loc": { "start": { "line": 737, @@ -46817,8 +46823,8 @@ }, "property": { "type": "Identifier", - "start": 30353, - "end": 30359, + "start": 30396, + "end": 30402, "loc": { "start": { "line": 737, @@ -46837,8 +46843,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30360, - "end": 30376, + "start": 30403, + "end": 30419, "loc": { "start": { "line": 737, @@ -46859,8 +46865,8 @@ }, "property": { "type": "Identifier", - "start": 30378, - "end": 30383, + "start": 30421, + "end": 30426, "loc": { "start": { "line": 737, @@ -46879,8 +46885,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30384, - "end": 30418, + "start": 30427, + "end": 30461, "loc": { "start": { "line": 737, @@ -46909,8 +46915,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 30437, - "end": 30521, + "start": 30480, + "end": 30564, "loc": { "start": { "line": 739, @@ -46924,8 +46930,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 30443, - "end": 30516, + "start": 30486, + "end": 30559, "loc": { "start": { "line": 740, @@ -46938,8 +46944,8 @@ }, "expression": { "type": "CallExpression", - "start": 30443, - "end": 30515, + "start": 30486, + "end": 30558, "loc": { "start": { "line": 740, @@ -46952,8 +46958,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30443, - "end": 30485, + "start": 30486, + "end": 30528, "loc": { "start": { "line": 740, @@ -46966,8 +46972,8 @@ }, "object": { "type": "CallExpression", - "start": 30443, - "end": 30479, + "start": 30486, + "end": 30522, "loc": { "start": { "line": 740, @@ -46980,8 +46986,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30443, - "end": 30461, + "start": 30486, + "end": 30504, "loc": { "start": { "line": 740, @@ -46994,8 +47000,8 @@ }, "object": { "type": "MemberExpression", - "start": 30443, - "end": 30454, + "start": 30486, + "end": 30497, "loc": { "start": { "line": 740, @@ -47008,8 +47014,8 @@ }, "object": { "type": "ThisExpression", - "start": 30443, - "end": 30447, + "start": 30486, + "end": 30490, "loc": { "start": { "line": 740, @@ -47023,8 +47029,8 @@ }, "property": { "type": "Identifier", - "start": 30448, - "end": 30454, + "start": 30491, + "end": 30497, "loc": { "start": { "line": 740, @@ -47042,8 +47048,8 @@ }, "property": { "type": "Identifier", - "start": 30455, - "end": 30461, + "start": 30498, + "end": 30504, "loc": { "start": { "line": 740, @@ -47062,8 +47068,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30462, - "end": 30478, + "start": 30505, + "end": 30521, "loc": { "start": { "line": 740, @@ -47084,8 +47090,8 @@ }, "property": { "type": "Identifier", - "start": 30480, - "end": 30485, + "start": 30523, + "end": 30528, "loc": { "start": { "line": 740, @@ -47104,8 +47110,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30486, - "end": 30514, + "start": 30529, + "end": 30557, "loc": { "start": { "line": 740, @@ -47136,8 +47142,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t ", - "start": 26398, - "end": 26779, + "start": 26441, + "end": 26822, "loc": { "start": { "line": 654, @@ -47160,8 +47166,8 @@ }, { "type": "Identifier", - "start": 30606, - "end": 30645, + "start": 30649, + "end": 30688, "loc": { "start": { "line": 748, @@ -47175,8 +47181,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 30612, - "end": 30644, + "start": 30655, + "end": 30687, "loc": { "start": { "line": 748, @@ -47189,8 +47195,8 @@ }, "id": { "type": "Identifier", - "start": 30612, - "end": 30619, + "start": 30655, + "end": 30662, "loc": { "start": { "line": 748, @@ -47207,8 +47213,8 @@ }, "init": { "type": "NewExpression", - "start": 30622, - "end": 30644, + "start": 30665, + "end": 30687, "loc": { "start": { "line": 748, @@ -47221,8 +47227,8 @@ }, "callee": { "type": "Identifier", - "start": 30626, - "end": 30642, + "start": 30669, + "end": 30685, "loc": { "start": { "line": 748, @@ -47248,8 +47254,8 @@ }, { "type": "VariableDeclaration", - "start": 30711, - "end": 30759, + "start": 30754, + "end": 30802, "loc": { "start": { "line": 753, @@ -47263,8 +47269,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 30717, - "end": 30758, + "start": 30760, + "end": 30801, "loc": { "start": { "line": 753, @@ -47277,8 +47283,8 @@ }, "id": { "type": "Identifier", - "start": 30717, - "end": 30723, + "start": 30760, + "end": 30766, "loc": { "start": { "line": 753, @@ -47295,8 +47301,8 @@ }, "init": { "type": "BinaryExpression", - "start": 30727, - "end": 30757, + "start": 30770, + "end": 30800, "loc": { "start": { "line": 753, @@ -47309,8 +47315,8 @@ }, "left": { "type": "UnaryExpression", - "start": 30727, - "end": 30741, + "start": 30770, + "end": 30784, "loc": { "start": { "line": 753, @@ -47325,8 +47331,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 30734, - "end": 30740, + "start": 30777, + "end": 30783, "loc": { "start": { "line": 753, @@ -47341,7 +47347,7 @@ "name": "window", "extra": { "parenthesized": true, - "parenStart": 30733 + "parenStart": 30776 } }, "extra": { @@ -47351,8 +47357,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 30746, - "end": 30757, + "start": 30789, + "end": 30800, "loc": { "start": { "line": 753, @@ -47371,7 +47377,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 30726 + "parenStart": 30769 } }, "leadingComments": null @@ -47382,8 +47388,8 @@ { "type": "CommentBlock", "value": "*\r\n * Check if this is a server environment\r\n * @ignore\r\n ", - "start": 30647, - "end": 30709, + "start": 30690, + "end": 30752, "loc": { "start": { "line": 749, @@ -47400,8 +47406,8 @@ { "type": "CommentBlock", "value": "*\r\n * Update API bound to Pathway\r\n * @ignore\r\n ", - "start": 30761, - "end": 30813, + "start": 30804, + "end": 30856, "loc": { "start": { "line": 754, @@ -47417,8 +47423,8 @@ }, { "type": "VariableDeclaration", - "start": 30815, - "end": 30859, + "start": 30858, + "end": 30902, "loc": { "start": { "line": 758, @@ -47432,8 +47438,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 30821, - "end": 30858, + "start": 30864, + "end": 30901, "loc": { "start": { "line": 758, @@ -47446,8 +47452,8 @@ }, "id": { "type": "Identifier", - "start": 30821, - "end": 30827, + "start": 30864, + "end": 30870, "loc": { "start": { "line": 758, @@ -47464,8 +47470,8 @@ }, "init": { "type": "CallExpression", - "start": 30830, - "end": 30858, + "start": 30873, + "end": 30901, "loc": { "start": { "line": 758, @@ -47478,8 +47484,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30830, - "end": 30849, + "start": 30873, + "end": 30892, "loc": { "start": { "line": 758, @@ -47492,8 +47498,8 @@ }, "object": { "type": "MemberExpression", - "start": 30830, - "end": 30844, + "start": 30873, + "end": 30887, "loc": { "start": { "line": 758, @@ -47506,8 +47512,8 @@ }, "object": { "type": "Identifier", - "start": 30830, - "end": 30837, + "start": 30873, + "end": 30880, "loc": { "start": { "line": 758, @@ -47523,8 +47529,8 @@ }, "property": { "type": "Identifier", - "start": 30838, - "end": 30844, + "start": 30881, + "end": 30887, "loc": { "start": { "line": 758, @@ -47542,8 +47548,8 @@ }, "property": { "type": "Identifier", - "start": 30845, - "end": 30849, + "start": 30888, + "end": 30892, "loc": { "start": { "line": 758, @@ -47562,8 +47568,8 @@ "arguments": [ { "type": "Identifier", - "start": 30850, - "end": 30857, + "start": 30893, + "end": 30900, "loc": { "start": { "line": 758, @@ -47587,8 +47593,8 @@ { "type": "CommentBlock", "value": "*\r\n * Update API bound to Pathway\r\n * @ignore\r\n ", - "start": 30761, - "end": 30813, + "start": 30804, + "end": 30856, "loc": { "start": { "line": 754, @@ -47605,8 +47611,8 @@ { "type": "CommentLine", "value": " If on the server we use an interval", - "start": 30863, - "end": 30901, + "start": 30906, + "end": 30944, "loc": { "start": { "line": 760, @@ -47622,8 +47628,8 @@ }, { "type": "IfStatement", - "start": 30903, - "end": 31146, + "start": 30946, + "end": 31189, "loc": { "start": { "line": 761, @@ -47636,8 +47642,8 @@ }, "test": { "type": "Identifier", - "start": 30907, - "end": 30913, + "start": 30950, + "end": 30956, "loc": { "start": { "line": 761, @@ -47654,8 +47660,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 30915, - "end": 31015, + "start": 30958, + "end": 31058, "loc": { "start": { "line": 761, @@ -47669,8 +47675,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 30940, - "end": 30987, + "start": 30983, + "end": 31030, "loc": { "start": { "line": 763, @@ -47684,8 +47690,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 30946, - "end": 30986, + "start": 30989, + "end": 31029, "loc": { "start": { "line": 763, @@ -47698,8 +47704,8 @@ }, "id": { "type": "Identifier", - "start": 30946, - "end": 30960, + "start": 30989, + "end": 31003, "loc": { "start": { "line": 763, @@ -47716,8 +47722,8 @@ }, "init": { "type": "CallExpression", - "start": 30963, - "end": 30986, + "start": 31006, + "end": 31029, "loc": { "start": { "line": 763, @@ -47730,8 +47736,8 @@ }, "callee": { "type": "Identifier", - "start": 30963, - "end": 30974, + "start": 31006, + "end": 31017, "loc": { "start": { "line": 763, @@ -47748,8 +47754,8 @@ "arguments": [ { "type": "Identifier", - "start": 30975, - "end": 30981, + "start": 31018, + "end": 31024, "loc": { "start": { "line": 763, @@ -47765,8 +47771,8 @@ }, { "type": "NumericLiteral", - "start": 30983, - "end": 30985, + "start": 31026, + "end": 31028, "loc": { "start": { "line": 763, @@ -47793,8 +47799,8 @@ { "type": "CommentLine", "value": " Update interval", - "start": 30919, - "end": 30937, + "start": 30962, + "end": 30980, "loc": { "start": { "line": 762, @@ -47811,8 +47817,8 @@ { "type": "CommentLine", "value": " Otherwise we use raf", - "start": 30989, - "end": 31012, + "start": 31032, + "end": 31055, "loc": { "start": { "line": 764, @@ -47831,8 +47837,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 31021, - "end": 31146, + "start": 31064, + "end": 31189, "loc": { "start": { "line": 765, @@ -47846,8 +47852,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 31025, - "end": 31106, + "start": 31068, + "end": 31149, "loc": { "start": { "line": 766, @@ -47861,8 +47867,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 31031, - "end": 31106, + "start": 31074, + "end": 31149, "loc": { "start": { "line": 766, @@ -47875,8 +47881,8 @@ }, "id": { "type": "Identifier", - "start": 31031, - "end": 31041, + "start": 31074, + "end": 31084, "loc": { "start": { "line": 766, @@ -47892,8 +47898,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 31044, - "end": 31106, + "start": 31087, + "end": 31149, "loc": { "start": { "line": 766, @@ -47911,8 +47917,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 31050, - "end": 31106, + "start": 31093, + "end": 31149, "loc": { "start": { "line": 766, @@ -47926,8 +47932,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 31055, - "end": 31064, + "start": 31098, + "end": 31107, "loc": { "start": { "line": 767, @@ -47940,8 +47946,8 @@ }, "expression": { "type": "CallExpression", - "start": 31055, - "end": 31063, + "start": 31098, + "end": 31106, "loc": { "start": { "line": 767, @@ -47954,8 +47960,8 @@ }, "callee": { "type": "Identifier", - "start": 31055, - "end": 31061, + "start": 31098, + "end": 31104, "loc": { "start": { "line": 767, @@ -47974,8 +47980,8 @@ }, { "type": "ExpressionStatement", - "start": 31068, - "end": 31102, + "start": 31111, + "end": 31145, "loc": { "start": { "line": 768, @@ -47988,8 +47994,8 @@ }, "expression": { "type": "CallExpression", - "start": 31068, - "end": 31101, + "start": 31111, + "end": 31144, "loc": { "start": { "line": 768, @@ -48002,8 +48008,8 @@ }, "callee": { "type": "Identifier", - "start": 31068, - "end": 31089, + "start": 31111, + "end": 31132, "loc": { "start": { "line": 768, @@ -48020,8 +48026,8 @@ "arguments": [ { "type": "Identifier", - "start": 31090, - "end": 31100, + "start": 31133, + "end": 31143, "loc": { "start": { "line": 768, @@ -48048,8 +48054,8 @@ }, { "type": "ExpressionStatement", - "start": 31109, - "end": 31143, + "start": 31152, + "end": 31186, "loc": { "start": { "line": 770, @@ -48062,8 +48068,8 @@ }, "expression": { "type": "CallExpression", - "start": 31109, - "end": 31142, + "start": 31152, + "end": 31185, "loc": { "start": { "line": 770, @@ -48076,8 +48082,8 @@ }, "callee": { "type": "Identifier", - "start": 31109, - "end": 31130, + "start": 31152, + "end": 31173, "loc": { "start": { "line": 770, @@ -48094,8 +48100,8 @@ "arguments": [ { "type": "Identifier", - "start": 31131, - "end": 31141, + "start": 31174, + "end": 31184, "loc": { "start": { "line": 770, @@ -48119,8 +48125,8 @@ { "type": "CommentLine", "value": " If on the server we use an interval", - "start": 30863, - "end": 30901, + "start": 30906, + "end": 30944, "loc": { "start": { "line": 760, @@ -48136,8 +48142,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 31150, - "end": 31169, + "start": 31193, + "end": 31212, "loc": { "start": { "line": 773, @@ -48152,8 +48158,8 @@ "specifiers": [ { "type": "ExportSpecifier", - "start": 31159, - "end": 31166, + "start": 31202, + "end": 31209, "loc": { "start": { "line": 773, @@ -48166,8 +48172,8 @@ }, "local": { "type": "Identifier", - "start": 31159, - "end": 31166, + "start": 31202, + "end": 31209, "loc": { "start": { "line": 773, @@ -48183,8 +48189,8 @@ }, "exported": { "type": "Identifier", - "start": 31159, - "end": 31166, + "start": 31202, + "end": 31209, "loc": { "start": { "line": 773, @@ -48204,8 +48210,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 31150, - "end": 31169, + "start": 31193, + "end": 31212, "loc": { "start": { "line": 773, @@ -48218,8 +48224,8 @@ }, "declaration": { "type": "VariableDeclaration", - "start": 30606, - "end": 30645, + "start": 30649, + "end": 30688, "loc": { "start": { "line": 748, @@ -48233,8 +48239,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 30612, - "end": 30644, + "start": 30655, + "end": 30687, "loc": { "start": { "line": 748, @@ -48247,8 +48253,8 @@ }, "id": { "type": "Identifier", - "start": 30612, - "end": 30619, + "start": 30655, + "end": 30662, "loc": { "start": { "line": 748, @@ -48265,8 +48271,8 @@ }, "init": { "type": "NewExpression", - "start": 30622, - "end": 30644, + "start": 30665, + "end": 30687, "loc": { "start": { "line": 748, @@ -48279,8 +48285,8 @@ }, "callee": { "type": "Identifier", - "start": 30626, - "end": 30642, + "start": 30669, + "end": 30685, "loc": { "start": { "line": 748, @@ -48304,8 +48310,8 @@ { "type": "CommentBlock", "value": "*\r\n * The module instantiated for use.\r\n * @type {PathwaySingleton}\r\n ", - "start": 30530, - "end": 30604, + "start": 30573, + "end": 30647, "loc": { "start": { "line": 744, @@ -48322,8 +48328,8 @@ { "type": "CommentBlock", "value": "*\r\n * Check if this is a server environment\r\n * @ignore\r\n ", - "start": 30647, - "end": 30709, + "start": 30690, + "end": 30752, "loc": { "start": { "line": 749, @@ -48342,8 +48348,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 31150, - "end": 31169, + "start": 31193, + "end": 31212, "loc": { "start": { "line": 773, @@ -48357,7 +48363,7 @@ "declaration": { "type": "ClassDeclaration", "start": 241, - "end": 30528, + "end": 30571, "loc": { "start": { "line": 10, @@ -48390,7 +48396,7 @@ "body": { "type": "ClassBody", "start": 264, - "end": 30528, + "end": 30571, "loc": { "start": { "line": 10, @@ -50444,7 +50450,7 @@ { "type": "ClassMethod", "start": 4942, - "end": 12015, + "end": 12061, "loc": { "start": { "line": 135, @@ -50536,7 +50542,7 @@ "body": { "type": "BlockStatement", "start": 4980, - "end": 12015, + "end": 12061, "loc": { "start": { "line": 135, @@ -50551,7 +50557,7 @@ { "type": "IfStatement", "start": 4985, - "end": 12011, + "end": 12057, "loc": { "start": { "line": 136, @@ -50642,7 +50648,7 @@ "consequent": { "type": "BlockStatement", "start": 5021, - "end": 11892, + "end": 11938, "loc": { "start": { "line": 136, @@ -50656,8 +50662,8 @@ "body": [ { "type": "IfStatement", - "start": 5072, - "end": 5219, + "start": 5068, + "end": 5215, "loc": { "start": { "line": 138, @@ -50670,8 +50676,8 @@ }, "test": { "type": "UnaryExpression", - "start": 5076, - "end": 5094, + "start": 5072, + "end": 5090, "loc": { "start": { "line": 138, @@ -50686,8 +50692,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 5077, - "end": 5094, + "start": 5073, + "end": 5090, "loc": { "start": { "line": 138, @@ -50700,8 +50706,8 @@ }, "object": { "type": "Identifier", - "start": 5077, - "end": 5086, + "start": 5073, + "end": 5082, "loc": { "start": { "line": 138, @@ -50718,8 +50724,8 @@ }, "property": { "type": "Identifier", - "start": 5087, - "end": 5094, + "start": 5083, + "end": 5090, "loc": { "start": { "line": 138, @@ -50743,8 +50749,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5096, - "end": 5219, + "start": 5092, + "end": 5215, "loc": { "start": { "line": 138, @@ -50758,8 +50764,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5103, - "end": 5200, + "start": 5099, + "end": 5196, "loc": { "start": { "line": 139, @@ -50772,8 +50778,8 @@ }, "expression": { "type": "CallExpression", - "start": 5103, - "end": 5199, + "start": 5099, + "end": 5195, "loc": { "start": { "line": 139, @@ -50786,8 +50792,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5103, - "end": 5145, + "start": 5099, + "end": 5141, "loc": { "start": { "line": 139, @@ -50800,8 +50806,8 @@ }, "object": { "type": "CallExpression", - "start": 5103, - "end": 5139, + "start": 5099, + "end": 5135, "loc": { "start": { "line": 139, @@ -50814,8 +50820,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5103, - "end": 5121, + "start": 5099, + "end": 5117, "loc": { "start": { "line": 139, @@ -50828,8 +50834,8 @@ }, "object": { "type": "MemberExpression", - "start": 5103, - "end": 5114, + "start": 5099, + "end": 5110, "loc": { "start": { "line": 139, @@ -50842,8 +50848,8 @@ }, "object": { "type": "ThisExpression", - "start": 5103, - "end": 5107, + "start": 5099, + "end": 5103, "loc": { "start": { "line": 139, @@ -50857,8 +50863,8 @@ }, "property": { "type": "Identifier", - "start": 5108, - "end": 5114, + "start": 5104, + "end": 5110, "loc": { "start": { "line": 139, @@ -50876,8 +50882,8 @@ }, "property": { "type": "Identifier", - "start": 5115, - "end": 5121, + "start": 5111, + "end": 5117, "loc": { "start": { "line": 139, @@ -50896,8 +50902,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5122, - "end": 5138, + "start": 5118, + "end": 5134, "loc": { "start": { "line": 139, @@ -50918,8 +50924,8 @@ }, "property": { "type": "Identifier", - "start": 5140, - "end": 5145, + "start": 5136, + "end": 5141, "loc": { "start": { "line": 139, @@ -50938,8 +50944,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5146, - "end": 5198, + "start": 5142, + "end": 5194, "loc": { "start": { "line": 139, @@ -50961,8 +50967,8 @@ }, { "type": "ReturnStatement", - "start": 5206, - "end": 5213, + "start": 5202, + "end": 5209, "loc": { "start": { "line": 140, @@ -50983,9 +50989,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " If this instance is not on a mapname.", + "value": " If this instance is not on a map.", "start": 5027, - "end": 5067, + "end": 5063, "loc": { "start": { "line": 137, @@ -50993,7 +50999,7 @@ }, "end": { "line": 137, - "column": 43 + "column": 39 } } } @@ -51002,8 +51008,8 @@ { "type": "CommentLine", "value": " If there is no destination object passed return.", - "start": 5226, - "end": 5277, + "start": 5222, + "end": 5273, "loc": { "start": { "line": 143, @@ -51019,8 +51025,8 @@ }, { "type": "IfStatement", - "start": 5282, - "end": 5452, + "start": 5278, + "end": 5448, "loc": { "start": { "line": 144, @@ -51033,8 +51039,8 @@ }, "test": { "type": "BinaryExpression", - "start": 5286, - "end": 5319, + "start": 5282, + "end": 5315, "loc": { "start": { "line": 144, @@ -51047,8 +51053,8 @@ }, "left": { "type": "UnaryExpression", - "start": 5286, - "end": 5306, + "start": 5282, + "end": 5302, "loc": { "start": { "line": 144, @@ -51063,8 +51069,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 5293, - "end": 5305, + "start": 5289, + "end": 5301, "loc": { "start": { "line": 144, @@ -51080,7 +51086,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 5292 + "parenStart": 5288 } }, "extra": { @@ -51091,8 +51097,8 @@ "operator": "!==", "right": { "type": "StringLiteral", - "start": 5311, - "end": 5319, + "start": 5307, + "end": 5315, "loc": { "start": { "line": 144, @@ -51113,8 +51119,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5321, - "end": 5452, + "start": 5317, + "end": 5448, "loc": { "start": { "line": 144, @@ -51128,8 +51134,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5328, - "end": 5433, + "start": 5324, + "end": 5429, "loc": { "start": { "line": 145, @@ -51142,8 +51148,8 @@ }, "expression": { "type": "CallExpression", - "start": 5328, - "end": 5432, + "start": 5324, + "end": 5428, "loc": { "start": { "line": 145, @@ -51156,8 +51162,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5328, - "end": 5370, + "start": 5324, + "end": 5366, "loc": { "start": { "line": 145, @@ -51170,8 +51176,8 @@ }, "object": { "type": "CallExpression", - "start": 5328, - "end": 5364, + "start": 5324, + "end": 5360, "loc": { "start": { "line": 145, @@ -51184,8 +51190,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5328, - "end": 5346, + "start": 5324, + "end": 5342, "loc": { "start": { "line": 145, @@ -51198,8 +51204,8 @@ }, "object": { "type": "MemberExpression", - "start": 5328, - "end": 5339, + "start": 5324, + "end": 5335, "loc": { "start": { "line": 145, @@ -51212,8 +51218,8 @@ }, "object": { "type": "ThisExpression", - "start": 5328, - "end": 5332, + "start": 5324, + "end": 5328, "loc": { "start": { "line": 145, @@ -51227,8 +51233,8 @@ }, "property": { "type": "Identifier", - "start": 5333, - "end": 5339, + "start": 5329, + "end": 5335, "loc": { "start": { "line": 145, @@ -51246,8 +51252,8 @@ }, "property": { "type": "Identifier", - "start": 5340, - "end": 5346, + "start": 5336, + "end": 5342, "loc": { "start": { "line": 145, @@ -51266,8 +51272,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5347, - "end": 5363, + "start": 5343, + "end": 5359, "loc": { "start": { "line": 145, @@ -51288,8 +51294,8 @@ }, "property": { "type": "Identifier", - "start": 5365, - "end": 5370, + "start": 5361, + "end": 5366, "loc": { "start": { "line": 145, @@ -51308,8 +51314,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5371, - "end": 5431, + "start": 5367, + "end": 5427, "loc": { "start": { "line": 145, @@ -51331,8 +51337,8 @@ }, { "type": "ReturnStatement", - "start": 5439, - "end": 5446, + "start": 5435, + "end": 5442, "loc": { "start": { "line": 146, @@ -51354,8 +51360,8 @@ { "type": "CommentLine", "value": " If there is no destination object passed return.", - "start": 5226, - "end": 5277, + "start": 5222, + "end": 5273, "loc": { "start": { "line": 143, @@ -51372,8 +51378,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 5459, - "end": 5501, + "start": 5455, + "end": 5497, "loc": { "start": { "line": 149, @@ -51389,8 +51395,8 @@ }, { "type": "VariableDeclaration", - "start": 5506, - "end": 5561, + "start": 5502, + "end": 5557, "loc": { "start": { "line": 150, @@ -51404,8 +51410,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 5510, - "end": 5560, + "start": 5506, + "end": 5556, "loc": { "start": { "line": 150, @@ -51418,8 +51424,8 @@ }, "id": { "type": "Identifier", - "start": 5510, - "end": 5522, + "start": 5506, + "end": 5518, "loc": { "start": { "line": 150, @@ -51436,8 +51442,8 @@ }, "init": { "type": "CallExpression", - "start": 5525, - "end": 5560, + "start": 5521, + "end": 5556, "loc": { "start": { "line": 150, @@ -51450,8 +51456,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5525, - "end": 5549, + "start": 5521, + "end": 5545, "loc": { "start": { "line": 150, @@ -51464,8 +51470,8 @@ }, "object": { "type": "MemberExpression", - "start": 5525, - "end": 5545, + "start": 5521, + "end": 5541, "loc": { "start": { "line": 150, @@ -51478,8 +51484,8 @@ }, "object": { "type": "ThisExpression", - "start": 5525, - "end": 5529, + "start": 5521, + "end": 5525, "loc": { "start": { "line": 150, @@ -51493,8 +51499,8 @@ }, "property": { "type": "Identifier", - "start": 5530, - "end": 5545, + "start": 5526, + "end": 5541, "loc": { "start": { "line": 150, @@ -51512,8 +51518,8 @@ }, "property": { "type": "Identifier", - "start": 5546, - "end": 5549, + "start": 5542, + "end": 5545, "loc": { "start": { "line": 150, @@ -51532,8 +51538,8 @@ "arguments": [ { "type": "Identifier", - "start": 5550, - "end": 5559, + "start": 5546, + "end": 5555, "loc": { "start": { "line": 150, @@ -51557,8 +51563,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 5459, - "end": 5501, + "start": 5455, + "end": 5497, "loc": { "start": { "line": 149, @@ -51574,8 +51580,8 @@ }, { "type": "IfStatement", - "start": 5568, - "end": 7218, + "start": 5564, + "end": 7214, "loc": { "start": { "line": 152, @@ -51588,8 +51594,8 @@ }, "test": { "type": "UnaryExpression", - "start": 5572, - "end": 5585, + "start": 5568, + "end": 5581, "loc": { "start": { "line": 152, @@ -51604,8 +51610,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 5573, - "end": 5585, + "start": 5569, + "end": 5581, "loc": { "start": { "line": 152, @@ -51625,8 +51631,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5587, - "end": 7124, + "start": 5583, + "end": 7120, "loc": { "start": { "line": 152, @@ -51640,8 +51646,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5624, - "end": 6704, + "start": 5620, + "end": 6700, "loc": { "start": { "line": 154, @@ -51654,8 +51660,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5624, - "end": 6703, + "start": 5620, + "end": 6699, "loc": { "start": { "line": 154, @@ -51669,8 +51675,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 5624, - "end": 5636, + "start": 5620, + "end": 5632, "loc": { "start": { "line": 154, @@ -51687,8 +51693,8 @@ }, "right": { "type": "ObjectExpression", - "start": 5639, - "end": 6703, + "start": 5635, + "end": 6699, "loc": { "start": { "line": 154, @@ -51702,8 +51708,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5647, - "end": 5741, + "start": 5643, + "end": 5737, "loc": { "start": { "line": 155, @@ -51719,8 +51725,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5647, - "end": 5657, + "start": 5643, + "end": 5653, "loc": { "start": { "line": 155, @@ -51736,8 +51742,8 @@ }, "value": { "type": "ObjectExpression", - "start": 5659, - "end": 5741, + "start": 5655, + "end": 5737, "loc": { "start": { "line": 155, @@ -51751,8 +51757,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5669, - "end": 5677, + "start": 5665, + "end": 5673, "loc": { "start": { "line": 156, @@ -51768,8 +51774,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5669, - "end": 5674, + "start": 5665, + "end": 5670, "loc": { "start": { "line": 156, @@ -51785,8 +51791,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5676, - "end": 5677, + "start": 5672, + "end": 5673, "loc": { "start": { "line": 156, @@ -51806,8 +51812,8 @@ }, { "type": "ObjectProperty", - "start": 5687, - "end": 5691, + "start": 5683, + "end": 5687, "loc": { "start": { "line": 157, @@ -51823,8 +51829,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5687, - "end": 5688, + "start": 5683, + "end": 5684, "loc": { "start": { "line": 157, @@ -51840,8 +51846,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5690, - "end": 5691, + "start": 5686, + "end": 5687, "loc": { "start": { "line": 157, @@ -51861,8 +51867,8 @@ }, { "type": "ObjectProperty", - "start": 5701, - "end": 5705, + "start": 5697, + "end": 5701, "loc": { "start": { "line": 158, @@ -51878,8 +51884,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5701, - "end": 5702, + "start": 5697, + "end": 5698, "loc": { "start": { "line": 158, @@ -51895,8 +51901,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5704, - "end": 5705, + "start": 5700, + "end": 5701, "loc": { "start": { "line": 158, @@ -51916,8 +51922,8 @@ }, { "type": "ObjectProperty", - "start": 5715, - "end": 5732, + "start": 5711, + "end": 5728, "loc": { "start": { "line": 159, @@ -51933,8 +51939,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5715, - "end": 5726, + "start": 5711, + "end": 5722, "loc": { "start": { "line": 159, @@ -51950,8 +51956,8 @@ }, "value": { "type": "NullLiteral", - "start": 5728, - "end": 5732, + "start": 5724, + "end": 5728, "loc": { "start": { "line": 159, @@ -51969,8 +51975,8 @@ }, { "type": "ObjectProperty", - "start": 5796, - "end": 5827, + "start": 5792, + "end": 5823, "loc": { "start": { "line": 162, @@ -51986,8 +51992,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5796, - "end": 5811, + "start": 5792, + "end": 5807, "loc": { "start": { "line": 162, @@ -52004,8 +52010,8 @@ }, "value": { "type": "ObjectExpression", - "start": 5813, - "end": 5827, + "start": 5809, + "end": 5823, "loc": { "start": { "line": 162, @@ -52019,8 +52025,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5815, - "end": 5819, + "start": 5811, + "end": 5815, "loc": { "start": { "line": 162, @@ -52036,8 +52042,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5815, - "end": 5816, + "start": 5811, + "end": 5812, "loc": { "start": { "line": 162, @@ -52053,8 +52059,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5818, - "end": 5819, + "start": 5814, + "end": 5815, "loc": { "start": { "line": 162, @@ -52074,8 +52080,8 @@ }, { "type": "ObjectProperty", - "start": 5821, - "end": 5825, + "start": 5817, + "end": 5821, "loc": { "start": { "line": 162, @@ -52091,8 +52097,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5821, - "end": 5822, + "start": 5817, + "end": 5818, "loc": { "start": { "line": 162, @@ -52108,8 +52114,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5824, - "end": 5825, + "start": 5820, + "end": 5821, "loc": { "start": { "line": 162, @@ -52133,8 +52139,8 @@ { "type": "CommentLine", "value": " The current position of the instance.", - "start": 5749, - "end": 5789, + "start": 5745, + "end": 5785, "loc": { "start": { "line": 161, @@ -52150,8 +52156,8 @@ }, { "type": "ObjectProperty", - "start": 5902, - "end": 5934, + "start": 5898, + "end": 5930, "loc": { "start": { "line": 164, @@ -52167,8 +52173,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5902, - "end": 5918, + "start": 5898, + "end": 5914, "loc": { "start": { "line": 164, @@ -52185,8 +52191,8 @@ }, "value": { "type": "ObjectExpression", - "start": 5920, - "end": 5934, + "start": 5916, + "end": 5930, "loc": { "start": { "line": 164, @@ -52200,8 +52206,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 5922, - "end": 5926, + "start": 5918, + "end": 5922, "loc": { "start": { "line": 164, @@ -52217,8 +52223,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5922, - "end": 5923, + "start": 5918, + "end": 5919, "loc": { "start": { "line": 164, @@ -52234,8 +52240,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5925, - "end": 5926, + "start": 5921, + "end": 5922, "loc": { "start": { "line": 164, @@ -52255,8 +52261,8 @@ }, { "type": "ObjectProperty", - "start": 5928, - "end": 5932, + "start": 5924, + "end": 5928, "loc": { "start": { "line": 164, @@ -52272,8 +52278,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 5928, - "end": 5929, + "start": 5924, + "end": 5925, "loc": { "start": { "line": 164, @@ -52289,8 +52295,8 @@ }, "value": { "type": "NumericLiteral", - "start": 5931, - "end": 5932, + "start": 5927, + "end": 5928, "loc": { "start": { "line": 164, @@ -52314,8 +52320,8 @@ { "type": "CommentLine", "value": " The previous position of the instance in the tick before.", - "start": 5835, - "end": 5895, + "start": 5831, + "end": 5891, "loc": { "start": { "line": 163, @@ -52331,8 +52337,8 @@ }, { "type": "ObjectProperty", - "start": 6161, - "end": 6176, + "start": 6157, + "end": 6172, "loc": { "start": { "line": 167, @@ -52348,8 +52354,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6161, - "end": 6173, + "start": 6157, + "end": 6169, "loc": { "start": { "line": 167, @@ -52366,8 +52372,8 @@ }, "value": { "type": "NumericLiteral", - "start": 6175, - "end": 6176, + "start": 6171, + "end": 6172, "loc": { "start": { "line": 167, @@ -52388,8 +52394,8 @@ { "type": "CommentLine", "value": " The stuck counter of this instance. When this instance is in the same position for multiple ticks, this value is added onto up until -", - "start": 5942, - "end": 6079, + "start": 5938, + "end": 6075, "loc": { "start": { "line": 165, @@ -52404,8 +52410,8 @@ { "type": "CommentLine", "value": " the max stuck counter is reached and the `stuck` event is called.", - "start": 6086, - "end": 6154, + "start": 6082, + "end": 6150, "loc": { "start": { "line": 166, @@ -52421,8 +52427,8 @@ }, { "type": "ObjectProperty", - "start": 6184, - "end": 6235, + "start": 6180, + "end": 6231, "loc": { "start": { "line": 168, @@ -52438,8 +52444,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6184, - "end": 6199, + "start": 6180, + "end": 6195, "loc": { "start": { "line": 168, @@ -52455,8 +52461,8 @@ }, "value": { "type": "MemberExpression", - "start": 6201, - "end": 6235, + "start": 6197, + "end": 6231, "loc": { "start": { "line": 168, @@ -52469,8 +52475,8 @@ }, "object": { "type": "Identifier", - "start": 6201, - "end": 6217, + "start": 6197, + "end": 6213, "loc": { "start": { "line": 168, @@ -52486,8 +52492,8 @@ }, "property": { "type": "Identifier", - "start": 6218, - "end": 6235, + "start": 6214, + "end": 6231, "loc": { "start": { "line": 168, @@ -52506,8 +52512,8 @@ }, { "type": "ObjectProperty", - "start": 6243, - "end": 6255, + "start": 6239, + "end": 6251, "loc": { "start": { "line": 169, @@ -52523,8 +52529,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6243, - "end": 6249, + "start": 6239, + "end": 6245, "loc": { "start": { "line": 169, @@ -52540,8 +52546,8 @@ }, "value": { "type": "NullLiteral", - "start": 6251, - "end": 6255, + "start": 6247, + "end": 6251, "loc": { "start": { "line": 169, @@ -52556,8 +52562,8 @@ }, { "type": "ObjectProperty", - "start": 6326, - "end": 6334, + "start": 6322, + "end": 6330, "loc": { "start": { "line": 170, @@ -52573,8 +52579,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6326, - "end": 6330, + "start": 6322, + "end": 6326, "loc": { "start": { "line": 170, @@ -52591,8 +52597,8 @@ }, "value": { "type": "ArrayExpression", - "start": 6332, - "end": 6334, + "start": 6328, + "end": 6330, "loc": { "start": { "line": 170, @@ -52609,8 +52615,8 @@ { "type": "CommentLine", "value": " ID of the path that was generated. Used to cancel the path.", - "start": 6257, - "end": 6319, + "start": 6253, + "end": 6315, "loc": { "start": { "line": 169, @@ -52626,8 +52632,8 @@ }, { "type": "ObjectProperty", - "start": 6342, - "end": 6354, + "start": 6338, + "end": 6350, "loc": { "start": { "line": 171, @@ -52643,8 +52649,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6342, - "end": 6348, + "start": 6338, + "end": 6344, "loc": { "start": { "line": 171, @@ -52660,8 +52666,8 @@ }, "value": { "type": "NullLiteral", - "start": 6350, - "end": 6354, + "start": 6346, + "end": 6350, "loc": { "start": { "line": 171, @@ -52676,8 +52682,8 @@ }, { "type": "ObjectProperty", - "start": 6362, - "end": 6397, + "start": 6358, + "end": 6393, "loc": { "start": { "line": 172, @@ -52693,8 +52699,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6362, - "end": 6366, + "start": 6358, + "end": 6362, "loc": { "start": { "line": 172, @@ -52710,8 +52716,8 @@ }, "value": { "type": "MemberExpression", - "start": 6368, - "end": 6397, + "start": 6364, + "end": 6393, "loc": { "start": { "line": 172, @@ -52724,8 +52730,8 @@ }, "object": { "type": "Identifier", - "start": 6368, - "end": 6384, + "start": 6364, + "end": 6380, "loc": { "start": { "line": 172, @@ -52741,8 +52747,8 @@ }, "property": { "type": "Identifier", - "start": 6385, - "end": 6397, + "start": 6381, + "end": 6393, "loc": { "start": { "line": 172, @@ -52761,8 +52767,8 @@ }, { "type": "ObjectProperty", - "start": 6405, - "end": 6464, + "start": 6401, + "end": 6460, "loc": { "start": { "line": 173, @@ -52778,8 +52784,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6405, - "end": 6420, + "start": 6401, + "end": 6416, "loc": { "start": { "line": 173, @@ -52795,8 +52801,8 @@ }, "value": { "type": "MemberExpression", - "start": 6422, - "end": 6464, + "start": 6418, + "end": 6460, "loc": { "start": { "line": 173, @@ -52809,8 +52815,8 @@ }, "object": { "type": "Identifier", - "start": 6422, - "end": 6438, + "start": 6418, + "end": 6434, "loc": { "start": { "line": 173, @@ -52826,8 +52832,8 @@ }, "property": { "type": "Identifier", - "start": 6439, - "end": 6464, + "start": 6435, + "end": 6460, "loc": { "start": { "line": 173, @@ -52846,8 +52852,8 @@ }, { "type": "ObjectProperty", - "start": 6472, - "end": 6526, + "start": 6468, + "end": 6522, "loc": { "start": { "line": 174, @@ -52863,8 +52869,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6472, - "end": 6483, + "start": 6468, + "end": 6479, "loc": { "start": { "line": 174, @@ -52880,8 +52886,8 @@ }, "value": { "type": "MemberExpression", - "start": 6485, - "end": 6526, + "start": 6481, + "end": 6522, "loc": { "start": { "line": 174, @@ -52894,8 +52900,8 @@ }, "object": { "type": "Identifier", - "start": 6485, - "end": 6501, + "start": 6481, + "end": 6497, "loc": { "start": { "line": 174, @@ -52911,8 +52917,8 @@ }, "property": { "type": "Identifier", - "start": 6502, - "end": 6526, + "start": 6498, + "end": 6522, "loc": { "start": { "line": 174, @@ -52931,8 +52937,8 @@ }, { "type": "ObjectProperty", - "start": 6534, - "end": 6661, + "start": 6530, + "end": 6657, "loc": { "start": { "line": 175, @@ -52948,8 +52954,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6534, - "end": 6540, + "start": 6530, + "end": 6536, "loc": { "start": { "line": 175, @@ -52965,8 +52971,8 @@ }, "value": { "type": "ObjectExpression", - "start": 6542, - "end": 6661, + "start": 6538, + "end": 6657, "loc": { "start": { "line": 175, @@ -52980,8 +52986,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 6551, - "end": 6568, + "start": 6547, + "end": 6564, "loc": { "start": { "line": 176, @@ -52997,8 +53003,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6551, - "end": 6562, + "start": 6547, + "end": 6558, "loc": { "start": { "line": 176, @@ -53014,8 +53020,8 @@ }, "value": { "type": "NullLiteral", - "start": 6564, - "end": 6568, + "start": 6560, + "end": 6564, "loc": { "start": { "line": 176, @@ -53030,8 +53036,8 @@ }, { "type": "ObjectProperty", - "start": 6577, - "end": 6597, + "start": 6573, + "end": 6593, "loc": { "start": { "line": 177, @@ -53047,8 +53053,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6577, - "end": 6591, + "start": 6573, + "end": 6587, "loc": { "start": { "line": 177, @@ -53064,8 +53070,8 @@ }, "value": { "type": "NullLiteral", - "start": 6593, - "end": 6597, + "start": 6589, + "end": 6593, "loc": { "start": { "line": 177, @@ -53080,8 +53086,8 @@ }, { "type": "ObjectProperty", - "start": 6606, - "end": 6623, + "start": 6602, + "end": 6619, "loc": { "start": { "line": 178, @@ -53097,8 +53103,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6606, - "end": 6617, + "start": 6602, + "end": 6613, "loc": { "start": { "line": 178, @@ -53114,8 +53120,8 @@ }, "value": { "type": "NullLiteral", - "start": 6619, - "end": 6623, + "start": 6615, + "end": 6619, "loc": { "start": { "line": 178, @@ -53130,8 +53136,8 @@ }, { "type": "ObjectProperty", - "start": 6632, - "end": 6652, + "start": 6628, + "end": 6648, "loc": { "start": { "line": 179, @@ -53147,8 +53153,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6632, - "end": 6646, + "start": 6628, + "end": 6642, "loc": { "start": { "line": 179, @@ -53164,8 +53170,8 @@ }, "value": { "type": "NullLiteral", - "start": 6648, - "end": 6652, + "start": 6644, + "end": 6648, "loc": { "start": { "line": 179, @@ -53183,8 +53189,8 @@ }, { "type": "ObjectProperty", - "start": 6669, - "end": 6696, + "start": 6665, + "end": 6692, "loc": { "start": { "line": 181, @@ -53200,8 +53206,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 6669, - "end": 6677, + "start": 6665, + "end": 6673, "loc": { "start": { "line": 181, @@ -53217,8 +53223,8 @@ }, "value": { "type": "NewExpression", - "start": 6679, - "end": 6696, + "start": 6675, + "end": 6692, "loc": { "start": { "line": 181, @@ -53231,8 +53237,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6683, - "end": 6694, + "start": 6679, + "end": 6690, "loc": { "start": { "line": 181, @@ -53245,8 +53251,8 @@ }, "object": { "type": "Identifier", - "start": 6683, - "end": 6691, + "start": 6679, + "end": 6687, "loc": { "start": { "line": 181, @@ -53262,8 +53268,8 @@ }, "property": { "type": "Identifier", - "start": 6692, - "end": 6694, + "start": 6688, + "end": 6690, "loc": { "start": { "line": 181, @@ -53290,8 +53296,8 @@ { "type": "CommentLine", "value": " Set the instance data", - "start": 5594, - "end": 5618, + "start": 5590, + "end": 5614, "loc": { "start": { "line": 153, @@ -53308,8 +53314,8 @@ { "type": "CommentLine", "value": " If you have a large grid, then it is possible that these calculations could slow down the browser. ", - "start": 6710, - "end": 6812, + "start": 6706, + "end": 6808, "loc": { "start": { "line": 183, @@ -53324,8 +53330,8 @@ { "type": "CommentLine", "value": " For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation", - "start": 6818, - "end": 6913, + "start": 6814, + "end": 6909, "loc": { "start": { "line": 184, @@ -53340,8 +53346,8 @@ { "type": "CommentLine", "value": " https://github.com/prettymuchbryce/easystarjs", - "start": 6919, - "end": 6967, + "start": 6915, + "end": 6963, "loc": { "start": { "line": 185, @@ -53357,8 +53363,8 @@ }, { "type": "ExpressionStatement", - "start": 6973, - "end": 7029, + "start": 6969, + "end": 7025, "loc": { "start": { "line": 186, @@ -53371,8 +53377,8 @@ }, "expression": { "type": "CallExpression", - "start": 6973, - "end": 7028, + "start": 6969, + "end": 7024, "loc": { "start": { "line": 186, @@ -53385,8 +53391,8 @@ }, "callee": { "type": "MemberExpression", - "start": 6973, - "end": 7022, + "start": 6969, + "end": 7018, "loc": { "start": { "line": 186, @@ -53399,8 +53405,8 @@ }, "object": { "type": "MemberExpression", - "start": 6973, - "end": 6994, + "start": 6969, + "end": 6990, "loc": { "start": { "line": 186, @@ -53413,8 +53419,8 @@ }, "object": { "type": "Identifier", - "start": 6973, - "end": 6985, + "start": 6969, + "end": 6981, "loc": { "start": { "line": 186, @@ -53431,8 +53437,8 @@ }, "property": { "type": "Identifier", - "start": 6986, - "end": 6994, + "start": 6982, + "end": 6990, "loc": { "start": { "line": 186, @@ -53451,8 +53457,8 @@ }, "property": { "type": "Identifier", - "start": 6995, - "end": 7022, + "start": 6991, + "end": 7018, "loc": { "start": { "line": 186, @@ -53472,8 +53478,8 @@ "arguments": [ { "type": "NumericLiteral", - "start": 7023, - "end": 7027, + "start": 7019, + "end": 7023, "loc": { "start": { "line": 186, @@ -53497,8 +53503,8 @@ { "type": "CommentLine", "value": " If you have a large grid, then it is possible that these calculations could slow down the browser. ", - "start": 6710, - "end": 6812, + "start": 6706, + "end": 6808, "loc": { "start": { "line": 183, @@ -53513,8 +53519,8 @@ { "type": "CommentLine", "value": " For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation", - "start": 6818, - "end": 6913, + "start": 6814, + "end": 6909, "loc": { "start": { "line": 184, @@ -53529,8 +53535,8 @@ { "type": "CommentLine", "value": " https://github.com/prettymuchbryce/easystarjs", - "start": 6919, - "end": 6967, + "start": 6915, + "end": 6963, "loc": { "start": { "line": 185, @@ -53547,8 +53553,8 @@ { "type": "CommentLine", "value": " Assign the instance data", - "start": 7035, - "end": 7062, + "start": 7031, + "end": 7058, "loc": { "start": { "line": 187, @@ -53564,8 +53570,8 @@ }, { "type": "ExpressionStatement", - "start": 7068, - "end": 7118, + "start": 7064, + "end": 7114, "loc": { "start": { "line": 188, @@ -53578,8 +53584,8 @@ }, "expression": { "type": "CallExpression", - "start": 7068, - "end": 7117, + "start": 7064, + "end": 7113, "loc": { "start": { "line": 188, @@ -53592,8 +53598,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7068, - "end": 7092, + "start": 7064, + "end": 7088, "loc": { "start": { "line": 188, @@ -53606,8 +53612,8 @@ }, "object": { "type": "MemberExpression", - "start": 7068, - "end": 7088, + "start": 7064, + "end": 7084, "loc": { "start": { "line": 188, @@ -53620,8 +53626,8 @@ }, "object": { "type": "ThisExpression", - "start": 7068, - "end": 7072, + "start": 7064, + "end": 7068, "loc": { "start": { "line": 188, @@ -53636,8 +53642,8 @@ }, "property": { "type": "Identifier", - "start": 7073, - "end": 7088, + "start": 7069, + "end": 7084, "loc": { "start": { "line": 188, @@ -53656,8 +53662,8 @@ }, "property": { "type": "Identifier", - "start": 7089, - "end": 7092, + "start": 7085, + "end": 7088, "loc": { "start": { "line": 188, @@ -53677,8 +53683,8 @@ "arguments": [ { "type": "Identifier", - "start": 7093, - "end": 7102, + "start": 7089, + "end": 7098, "loc": { "start": { "line": 188, @@ -53694,8 +53700,8 @@ }, { "type": "Identifier", - "start": 7104, - "end": 7116, + "start": 7100, + "end": 7112, "loc": { "start": { "line": 188, @@ -53716,8 +53722,8 @@ { "type": "CommentLine", "value": " Assign the instance data", - "start": 7035, - "end": 7062, + "start": 7031, + "end": 7058, "loc": { "start": { "line": 187, @@ -53736,8 +53742,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 7130, - "end": 7218, + "start": 7126, + "end": 7214, "loc": { "start": { "line": 189, @@ -53751,8 +53757,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7192, - "end": 7212, + "start": 7188, + "end": 7208, "loc": { "start": { "line": 191, @@ -53765,8 +53771,8 @@ }, "expression": { "type": "CallExpression", - "start": 7192, - "end": 7211, + "start": 7188, + "end": 7207, "loc": { "start": { "line": 191, @@ -53779,8 +53785,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7192, - "end": 7200, + "start": 7188, + "end": 7196, "loc": { "start": { "line": 191, @@ -53793,8 +53799,8 @@ }, "object": { "type": "ThisExpression", - "start": 7192, - "end": 7196, + "start": 7188, + "end": 7192, "loc": { "start": { "line": 191, @@ -53809,8 +53815,8 @@ }, "property": { "type": "Identifier", - "start": 7197, - "end": 7200, + "start": 7193, + "end": 7196, "loc": { "start": { "line": 191, @@ -53830,8 +53836,8 @@ "arguments": [ { "type": "Identifier", - "start": 7201, - "end": 7210, + "start": 7197, + "end": 7206, "loc": { "start": { "line": 191, @@ -53852,8 +53858,8 @@ { "type": "CommentLine", "value": " If this instance has data already, we reset it", - "start": 7137, - "end": 7186, + "start": 7133, + "end": 7182, "loc": { "start": { "line": 190, @@ -53874,9 +53880,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\r\n\t\t\t * An exclusion list of tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", - "start": 7225, - "end": 7292, + "value": "*\r\n\t\t\t * An exclusion list of instances and tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", + "start": 7221, + "end": 7302, "loc": { "start": { "line": 194, @@ -53892,8 +53898,8 @@ }, { "type": "VariableDeclaration", - "start": 7297, - "end": 7318, + "start": 7307, + "end": 7328, "loc": { "start": { "line": 198, @@ -53907,8 +53913,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 7301, - "end": 7317, + "start": 7311, + "end": 7327, "loc": { "start": { "line": 198, @@ -53921,8 +53927,8 @@ }, "id": { "type": "Identifier", - "start": 7301, - "end": 7312, + "start": 7311, + "end": 7322, "loc": { "start": { "line": 198, @@ -53939,8 +53945,8 @@ }, "init": { "type": "ArrayExpression", - "start": 7315, - "end": 7317, + "start": 7325, + "end": 7327, "loc": { "start": { "line": 198, @@ -53960,9 +53966,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\r\n\t\t\t * An exclusion list of tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", - "start": 7225, - "end": 7292, + "value": "*\r\n\t\t\t * An exclusion list of instances and tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", + "start": 7221, + "end": 7302, "loc": { "start": { "line": 194, @@ -53979,8 +53985,8 @@ { "type": "CommentLine", "value": " If there are options passed. Parse them.", - "start": 7325, - "end": 7368, + "start": 7335, + "end": 7378, "loc": { "start": { "line": 200, @@ -53996,8 +54002,8 @@ }, { "type": "IfStatement", - "start": 7373, - "end": 9222, + "start": 7383, + "end": 9233, "loc": { "start": { "line": 201, @@ -54010,8 +54016,8 @@ }, "test": { "type": "BinaryExpression", - "start": 7377, - "end": 7406, + "start": 7387, + "end": 7416, "loc": { "start": { "line": 201, @@ -54024,8 +54030,8 @@ }, "left": { "type": "UnaryExpression", - "start": 7377, - "end": 7393, + "start": 7387, + "end": 7403, "loc": { "start": { "line": 201, @@ -54040,8 +54046,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 7384, - "end": 7392, + "start": 7394, + "end": 7402, "loc": { "start": { "line": 201, @@ -54057,7 +54063,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 7383 + "parenStart": 7393 } }, "extra": { @@ -54068,8 +54074,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7398, - "end": 7406, + "start": 7408, + "end": 7416, "loc": { "start": { "line": 201, @@ -54090,8 +54096,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7408, - "end": 9222, + "start": 7418, + "end": 9233, "loc": { "start": { "line": 201, @@ -54105,8 +54111,8 @@ "body": [ { "type": "IfStatement", - "start": 7473, - "end": 7595, + "start": 7483, + "end": 7605, "loc": { "start": { "line": 203, @@ -54119,8 +54125,8 @@ }, "test": { "type": "BinaryExpression", - "start": 7477, - "end": 7522, + "start": 7487, + "end": 7532, "loc": { "start": { "line": 203, @@ -54133,8 +54139,8 @@ }, "left": { "type": "UnaryExpression", - "start": 7477, - "end": 7509, + "start": 7487, + "end": 7519, "loc": { "start": { "line": 203, @@ -54149,8 +54155,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 7484, - "end": 7508, + "start": 7494, + "end": 7518, "loc": { "start": { "line": 203, @@ -54163,8 +54169,8 @@ }, "object": { "type": "Identifier", - "start": 7484, - "end": 7492, + "start": 7494, + "end": 7502, "loc": { "start": { "line": 203, @@ -54181,8 +54187,8 @@ }, "property": { "type": "Identifier", - "start": 7493, - "end": 7508, + "start": 7503, + "end": 7518, "loc": { "start": { "line": 203, @@ -54200,7 +54206,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 7483 + "parenStart": 7493 } }, "extra": { @@ -54211,8 +54217,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7514, - "end": 7522, + "start": 7524, + "end": 7532, "loc": { "start": { "line": 203, @@ -54233,8 +54239,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7524, - "end": 7595, + "start": 7534, + "end": 7605, "loc": { "start": { "line": 203, @@ -54248,8 +54254,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7532, - "end": 7588, + "start": 7542, + "end": 7598, "loc": { "start": { "line": 204, @@ -54262,8 +54268,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 7532, - "end": 7587, + "start": 7542, + "end": 7597, "loc": { "start": { "line": 204, @@ -54277,8 +54283,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 7532, - "end": 7560, + "start": 7542, + "end": 7570, "loc": { "start": { "line": 204, @@ -54291,8 +54297,8 @@ }, "object": { "type": "Identifier", - "start": 7532, - "end": 7544, + "start": 7542, + "end": 7554, "loc": { "start": { "line": 204, @@ -54308,8 +54314,8 @@ }, "property": { "type": "Identifier", - "start": 7545, - "end": 7560, + "start": 7555, + "end": 7570, "loc": { "start": { "line": 204, @@ -54327,8 +54333,8 @@ }, "right": { "type": "MemberExpression", - "start": 7563, - "end": 7587, + "start": 7573, + "end": 7597, "loc": { "start": { "line": 204, @@ -54341,8 +54347,8 @@ }, "object": { "type": "Identifier", - "start": 7563, - "end": 7571, + "start": 7573, + "end": 7581, "loc": { "start": { "line": 204, @@ -54358,8 +54364,8 @@ }, "property": { "type": "Identifier", - "start": 7572, - "end": 7587, + "start": 7582, + "end": 7597, "loc": { "start": { "line": 204, @@ -54386,8 +54392,8 @@ { "type": "CommentLine", "value": " If max stuck counter is found in options, set it.", - "start": 7415, - "end": 7467, + "start": 7425, + "end": 7477, "loc": { "start": { "line": 202, @@ -54404,8 +54410,8 @@ { "type": "CommentLine", "value": " Enable diagonals if found in passed options.", - "start": 7603, - "end": 7650, + "start": 7613, + "end": 7660, "loc": { "start": { "line": 207, @@ -54420,8 +54426,8 @@ { "type": "CommentLine", "value": " This can cause some \"issues\" such as trying to cut through corners.", - "start": 7656, - "end": 7726, + "start": 7666, + "end": 7736, "loc": { "start": { "line": 208, @@ -54437,8 +54443,8 @@ }, { "type": "IfStatement", - "start": 7732, - "end": 7861, + "start": 7742, + "end": 7871, "loc": { "start": { "line": 209, @@ -54451,8 +54457,8 @@ }, "test": { "type": "MemberExpression", - "start": 7736, - "end": 7753, + "start": 7746, + "end": 7763, "loc": { "start": { "line": 209, @@ -54465,8 +54471,8 @@ }, "object": { "type": "Identifier", - "start": 7736, - "end": 7744, + "start": 7746, + "end": 7754, "loc": { "start": { "line": 209, @@ -54483,8 +54489,8 @@ }, "property": { "type": "Identifier", - "start": 7745, - "end": 7753, + "start": 7755, + "end": 7763, "loc": { "start": { "line": 209, @@ -54503,8 +54509,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7755, - "end": 7861, + "start": 7765, + "end": 7871, "loc": { "start": { "line": 209, @@ -54518,8 +54524,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 7763, - "end": 7803, + "start": 7773, + "end": 7813, "loc": { "start": { "line": 210, @@ -54532,8 +54538,8 @@ }, "expression": { "type": "CallExpression", - "start": 7763, - "end": 7802, + "start": 7773, + "end": 7812, "loc": { "start": { "line": 210, @@ -54546,8 +54552,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7763, - "end": 7800, + "start": 7773, + "end": 7810, "loc": { "start": { "line": 210, @@ -54560,8 +54566,8 @@ }, "object": { "type": "MemberExpression", - "start": 7763, - "end": 7784, + "start": 7773, + "end": 7794, "loc": { "start": { "line": 210, @@ -54574,8 +54580,8 @@ }, "object": { "type": "Identifier", - "start": 7763, - "end": 7775, + "start": 7773, + "end": 7785, "loc": { "start": { "line": 210, @@ -54591,8 +54597,8 @@ }, "property": { "type": "Identifier", - "start": 7776, - "end": 7784, + "start": 7786, + "end": 7794, "loc": { "start": { "line": 210, @@ -54610,8 +54616,8 @@ }, "property": { "type": "Identifier", - "start": 7785, - "end": 7800, + "start": 7795, + "end": 7810, "loc": { "start": { "line": 210, @@ -54632,8 +54638,8 @@ }, { "type": "ExpressionStatement", - "start": 7810, - "end": 7854, + "start": 7820, + "end": 7864, "loc": { "start": { "line": 211, @@ -54646,8 +54652,8 @@ }, "expression": { "type": "CallExpression", - "start": 7810, - "end": 7853, + "start": 7820, + "end": 7863, "loc": { "start": { "line": 211, @@ -54660,8 +54666,8 @@ }, "callee": { "type": "MemberExpression", - "start": 7810, - "end": 7851, + "start": 7820, + "end": 7861, "loc": { "start": { "line": 211, @@ -54674,8 +54680,8 @@ }, "object": { "type": "MemberExpression", - "start": 7810, - "end": 7831, + "start": 7820, + "end": 7841, "loc": { "start": { "line": 211, @@ -54688,8 +54694,8 @@ }, "object": { "type": "Identifier", - "start": 7810, - "end": 7822, + "start": 7820, + "end": 7832, "loc": { "start": { "line": 211, @@ -54705,8 +54711,8 @@ }, "property": { "type": "Identifier", - "start": 7823, - "end": 7831, + "start": 7833, + "end": 7841, "loc": { "start": { "line": 211, @@ -54724,8 +54730,8 @@ }, "property": { "type": "Identifier", - "start": 7832, - "end": 7851, + "start": 7842, + "end": 7861, "loc": { "start": { "line": 211, @@ -54753,8 +54759,8 @@ { "type": "CommentLine", "value": " Enable diagonals if found in passed options.", - "start": 7603, - "end": 7650, + "start": 7613, + "end": 7660, "loc": { "start": { "line": 207, @@ -54769,8 +54775,8 @@ { "type": "CommentLine", "value": " This can cause some \"issues\" such as trying to cut through corners.", - "start": 7656, - "end": 7726, + "start": 7666, + "end": 7736, "loc": { "start": { "line": 208, @@ -54787,8 +54793,8 @@ { "type": "CommentLine", "value": " Set the positioning mode", - "start": 7869, - "end": 7896, + "start": 7879, + "end": 7906, "loc": { "start": { "line": 214, @@ -54804,8 +54810,8 @@ }, { "type": "IfStatement", - "start": 7902, - "end": 8178, + "start": 7912, + "end": 8188, "loc": { "start": { "line": 215, @@ -54818,8 +54824,8 @@ }, "test": { "type": "MemberExpression", - "start": 7906, - "end": 7919, + "start": 7916, + "end": 7929, "loc": { "start": { "line": 215, @@ -54832,8 +54838,8 @@ }, "object": { "type": "Identifier", - "start": 7906, - "end": 7914, + "start": 7916, + "end": 7924, "loc": { "start": { "line": 215, @@ -54850,8 +54856,8 @@ }, "property": { "type": "Identifier", - "start": 7915, - "end": 7919, + "start": 7925, + "end": 7929, "loc": { "start": { "line": 215, @@ -54870,8 +54876,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 7921, - "end": 8178, + "start": 7931, + "end": 8188, "loc": { "start": { "line": 215, @@ -54885,8 +54891,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 8014, - "end": 8139, + "start": 8024, + "end": 8149, "loc": { "start": { "line": 217, @@ -54900,8 +54906,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 8020, - "end": 8138, + "start": 8030, + "end": 8148, "loc": { "start": { "line": 217, @@ -54914,8 +54920,8 @@ }, "id": { "type": "Identifier", - "start": 8020, - "end": 8024, + "start": 8030, + "end": 8034, "loc": { "start": { "line": 217, @@ -54932,8 +54938,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 8027, - "end": 8138, + "start": 8037, + "end": 8148, "loc": { "start": { "line": 217, @@ -54946,8 +54952,8 @@ }, "test": { "type": "LogicalExpression", - "start": 8028, - "end": 8089, + "start": 8038, + "end": 8099, "loc": { "start": { "line": 217, @@ -54960,8 +54966,8 @@ }, "left": { "type": "BinaryExpression", - "start": 8028, - "end": 8057, + "start": 8038, + "end": 8067, "loc": { "start": { "line": 217, @@ -54974,8 +54980,8 @@ }, "left": { "type": "MemberExpression", - "start": 8028, - "end": 8041, + "start": 8038, + "end": 8051, "loc": { "start": { "line": 217, @@ -54988,8 +54994,8 @@ }, "object": { "type": "Identifier", - "start": 8028, - "end": 8036, + "start": 8038, + "end": 8046, "loc": { "start": { "line": 217, @@ -55005,8 +55011,8 @@ }, "property": { "type": "Identifier", - "start": 8037, - "end": 8041, + "start": 8047, + "end": 8051, "loc": { "start": { "line": 217, @@ -55025,8 +55031,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8046, - "end": 8057, + "start": 8056, + "end": 8067, "loc": { "start": { "line": 217, @@ -55047,8 +55053,8 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 8061, - "end": 8089, + "start": 8071, + "end": 8099, "loc": { "start": { "line": 217, @@ -55061,8 +55067,8 @@ }, "left": { "type": "MemberExpression", - "start": 8061, - "end": 8074, + "start": 8071, + "end": 8084, "loc": { "start": { "line": 217, @@ -55075,8 +55081,8 @@ }, "object": { "type": "Identifier", - "start": 8061, - "end": 8069, + "start": 8071, + "end": 8079, "loc": { "start": { "line": 217, @@ -55092,8 +55098,8 @@ }, "property": { "type": "Identifier", - "start": 8070, - "end": 8074, + "start": 8080, + "end": 8084, "loc": { "start": { "line": 217, @@ -55112,8 +55118,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8079, - "end": 8089, + "start": 8089, + "end": 8099, "loc": { "start": { "line": 217, @@ -55133,13 +55139,13 @@ }, "extra": { "parenthesized": true, - "parenStart": 8027 + "parenStart": 8037 } }, "consequent": { "type": "MemberExpression", - "start": 8093, - "end": 8106, + "start": 8103, + "end": 8116, "loc": { "start": { "line": 217, @@ -55152,8 +55158,8 @@ }, "object": { "type": "Identifier", - "start": 8093, - "end": 8101, + "start": 8103, + "end": 8111, "loc": { "start": { "line": 217, @@ -55169,8 +55175,8 @@ }, "property": { "type": "Identifier", - "start": 8102, - "end": 8106, + "start": 8112, + "end": 8116, "loc": { "start": { "line": 217, @@ -55188,8 +55194,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 8109, - "end": 8138, + "start": 8119, + "end": 8148, "loc": { "start": { "line": 217, @@ -55202,8 +55208,8 @@ }, "object": { "type": "Identifier", - "start": 8109, - "end": 8125, + "start": 8119, + "end": 8135, "loc": { "start": { "line": 217, @@ -55219,8 +55225,8 @@ }, "property": { "type": "Identifier", - "start": 8126, - "end": 8138, + "start": 8136, + "end": 8148, "loc": { "start": { "line": 217, @@ -55245,8 +55251,8 @@ { "type": "CommentLine", "value": " Get the mode, if an invalid mode is passed, we default to the default mode.", - "start": 7929, - "end": 8007, + "start": 7939, + "end": 8017, "loc": { "start": { "line": 216, @@ -55262,8 +55268,8 @@ }, { "type": "ExpressionStatement", - "start": 8146, - "end": 8171, + "start": 8156, + "end": 8181, "loc": { "start": { "line": 218, @@ -55276,8 +55282,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8146, - "end": 8170, + "start": 8156, + "end": 8180, "loc": { "start": { "line": 218, @@ -55291,8 +55297,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8146, - "end": 8163, + "start": 8156, + "end": 8173, "loc": { "start": { "line": 218, @@ -55305,8 +55311,8 @@ }, "object": { "type": "Identifier", - "start": 8146, - "end": 8158, + "start": 8156, + "end": 8168, "loc": { "start": { "line": 218, @@ -55322,8 +55328,8 @@ }, "property": { "type": "Identifier", - "start": 8159, - "end": 8163, + "start": 8169, + "end": 8173, "loc": { "start": { "line": 218, @@ -55341,8 +55347,8 @@ }, "right": { "type": "Identifier", - "start": 8166, - "end": 8170, + "start": 8176, + "end": 8180, "loc": { "start": { "line": 218, @@ -55367,8 +55373,8 @@ { "type": "CommentLine", "value": " Set the positioning mode", - "start": 7869, - "end": 7896, + "start": 7879, + "end": 7906, "loc": { "start": { "line": 214, @@ -55385,8 +55391,8 @@ { "type": "CommentLine", "value": " Assign pixels per second ", - "start": 8186, - "end": 8214, + "start": 8196, + "end": 8224, "loc": { "start": { "line": 221, @@ -55402,8 +55408,8 @@ }, { "type": "IfStatement", - "start": 8220, - "end": 8342, + "start": 8230, + "end": 8352, "loc": { "start": { "line": 222, @@ -55416,8 +55422,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8224, - "end": 8269, + "start": 8234, + "end": 8279, "loc": { "start": { "line": 222, @@ -55430,8 +55436,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8224, - "end": 8256, + "start": 8234, + "end": 8266, "loc": { "start": { "line": 222, @@ -55446,8 +55452,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8231, - "end": 8255, + "start": 8241, + "end": 8265, "loc": { "start": { "line": 222, @@ -55460,8 +55466,8 @@ }, "object": { "type": "Identifier", - "start": 8231, - "end": 8239, + "start": 8241, + "end": 8249, "loc": { "start": { "line": 222, @@ -55478,8 +55484,8 @@ }, "property": { "type": "Identifier", - "start": 8240, - "end": 8255, + "start": 8250, + "end": 8265, "loc": { "start": { "line": 222, @@ -55497,7 +55503,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 8230 + "parenStart": 8240 } }, "extra": { @@ -55508,8 +55514,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8261, - "end": 8269, + "start": 8271, + "end": 8279, "loc": { "start": { "line": 222, @@ -55530,8 +55536,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8271, - "end": 8342, + "start": 8281, + "end": 8352, "loc": { "start": { "line": 222, @@ -55545,8 +55551,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8279, - "end": 8335, + "start": 8289, + "end": 8345, "loc": { "start": { "line": 223, @@ -55559,8 +55565,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8279, - "end": 8334, + "start": 8289, + "end": 8344, "loc": { "start": { "line": 223, @@ -55574,8 +55580,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8279, - "end": 8307, + "start": 8289, + "end": 8317, "loc": { "start": { "line": 223, @@ -55588,8 +55594,8 @@ }, "object": { "type": "Identifier", - "start": 8279, - "end": 8291, + "start": 8289, + "end": 8301, "loc": { "start": { "line": 223, @@ -55605,8 +55611,8 @@ }, "property": { "type": "Identifier", - "start": 8292, - "end": 8307, + "start": 8302, + "end": 8317, "loc": { "start": { "line": 223, @@ -55624,8 +55630,8 @@ }, "right": { "type": "MemberExpression", - "start": 8310, - "end": 8334, + "start": 8320, + "end": 8344, "loc": { "start": { "line": 223, @@ -55638,8 +55644,8 @@ }, "object": { "type": "Identifier", - "start": 8310, - "end": 8318, + "start": 8320, + "end": 8328, "loc": { "start": { "line": 223, @@ -55655,8 +55661,8 @@ }, "property": { "type": "Identifier", - "start": 8319, - "end": 8334, + "start": 8329, + "end": 8344, "loc": { "start": { "line": 223, @@ -55683,8 +55689,8 @@ { "type": "CommentLine", "value": " Assign pixels per second ", - "start": 8186, - "end": 8214, + "start": 8196, + "end": 8224, "loc": { "start": { "line": 221, @@ -55701,8 +55707,8 @@ { "type": "CommentLine", "value": " Assign the min distance", - "start": 8350, - "end": 8376, + "start": 8360, + "end": 8386, "loc": { "start": { "line": 226, @@ -55718,8 +55724,8 @@ }, { "type": "IfStatement", - "start": 8382, - "end": 8492, + "start": 8392, + "end": 8502, "loc": { "start": { "line": 227, @@ -55732,8 +55738,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8386, - "end": 8427, + "start": 8396, + "end": 8437, "loc": { "start": { "line": 227, @@ -55746,8 +55752,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8386, - "end": 8414, + "start": 8396, + "end": 8424, "loc": { "start": { "line": 227, @@ -55762,8 +55768,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8393, - "end": 8413, + "start": 8403, + "end": 8423, "loc": { "start": { "line": 227, @@ -55776,8 +55782,8 @@ }, "object": { "type": "Identifier", - "start": 8393, - "end": 8401, + "start": 8403, + "end": 8411, "loc": { "start": { "line": 227, @@ -55794,8 +55800,8 @@ }, "property": { "type": "Identifier", - "start": 8402, - "end": 8413, + "start": 8412, + "end": 8423, "loc": { "start": { "line": 227, @@ -55813,7 +55819,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 8392 + "parenStart": 8402 } }, "extra": { @@ -55824,8 +55830,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8419, - "end": 8427, + "start": 8429, + "end": 8437, "loc": { "start": { "line": 227, @@ -55846,8 +55852,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8429, - "end": 8492, + "start": 8439, + "end": 8502, "loc": { "start": { "line": 227, @@ -55861,8 +55867,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8437, - "end": 8485, + "start": 8447, + "end": 8495, "loc": { "start": { "line": 228, @@ -55875,8 +55881,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8437, - "end": 8484, + "start": 8447, + "end": 8494, "loc": { "start": { "line": 228, @@ -55890,8 +55896,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8437, - "end": 8461, + "start": 8447, + "end": 8471, "loc": { "start": { "line": 228, @@ -55904,8 +55910,8 @@ }, "object": { "type": "Identifier", - "start": 8437, - "end": 8449, + "start": 8447, + "end": 8459, "loc": { "start": { "line": 228, @@ -55921,8 +55927,8 @@ }, "property": { "type": "Identifier", - "start": 8450, - "end": 8461, + "start": 8460, + "end": 8471, "loc": { "start": { "line": 228, @@ -55940,8 +55946,8 @@ }, "right": { "type": "MemberExpression", - "start": 8464, - "end": 8484, + "start": 8474, + "end": 8494, "loc": { "start": { "line": 228, @@ -55954,8 +55960,8 @@ }, "object": { "type": "Identifier", - "start": 8464, - "end": 8472, + "start": 8474, + "end": 8482, "loc": { "start": { "line": 228, @@ -55971,8 +55977,8 @@ }, "property": { "type": "Identifier", - "start": 8473, - "end": 8484, + "start": 8483, + "end": 8494, "loc": { "start": { "line": 228, @@ -55999,8 +56005,8 @@ { "type": "CommentLine", "value": " Assign the min distance", - "start": 8350, - "end": 8376, + "start": 8360, + "end": 8386, "loc": { "start": { "line": 226, @@ -56017,8 +56023,8 @@ { "type": "CommentLine", "value": " Assign events", - "start": 8500, - "end": 8516, + "start": 8510, + "end": 8526, "loc": { "start": { "line": 231, @@ -56034,8 +56040,8 @@ }, { "type": "IfStatement", - "start": 8522, - "end": 8650, + "start": 8532, + "end": 8660, "loc": { "start": { "line": 232, @@ -56048,8 +56054,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8526, - "end": 8572, + "start": 8536, + "end": 8582, "loc": { "start": { "line": 232, @@ -56062,8 +56068,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8526, - "end": 8557, + "start": 8536, + "end": 8567, "loc": { "start": { "line": 232, @@ -56078,8 +56084,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8533, - "end": 8556, + "start": 8543, + "end": 8566, "loc": { "start": { "line": 232, @@ -56092,8 +56098,8 @@ }, "object": { "type": "Identifier", - "start": 8533, - "end": 8541, + "start": 8543, + "end": 8551, "loc": { "start": { "line": 232, @@ -56110,8 +56116,8 @@ }, "property": { "type": "Identifier", - "start": 8542, - "end": 8556, + "start": 8552, + "end": 8566, "loc": { "start": { "line": 232, @@ -56129,7 +56135,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 8532 + "parenStart": 8542 } }, "extra": { @@ -56140,8 +56146,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8562, - "end": 8572, + "start": 8572, + "end": 8582, "loc": { "start": { "line": 232, @@ -56162,8 +56168,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8574, - "end": 8650, + "start": 8584, + "end": 8660, "loc": { "start": { "line": 232, @@ -56177,8 +56183,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8582, - "end": 8643, + "start": 8592, + "end": 8653, "loc": { "start": { "line": 233, @@ -56191,8 +56197,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8582, - "end": 8642, + "start": 8592, + "end": 8652, "loc": { "start": { "line": 233, @@ -56206,8 +56212,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8582, - "end": 8616, + "start": 8592, + "end": 8626, "loc": { "start": { "line": 233, @@ -56220,8 +56226,8 @@ }, "object": { "type": "MemberExpression", - "start": 8582, - "end": 8601, + "start": 8592, + "end": 8611, "loc": { "start": { "line": 233, @@ -56234,8 +56240,8 @@ }, "object": { "type": "Identifier", - "start": 8582, - "end": 8594, + "start": 8592, + "end": 8604, "loc": { "start": { "line": 233, @@ -56251,8 +56257,8 @@ }, "property": { "type": "Identifier", - "start": 8595, - "end": 8601, + "start": 8605, + "end": 8611, "loc": { "start": { "line": 233, @@ -56270,8 +56276,8 @@ }, "property": { "type": "Identifier", - "start": 8602, - "end": 8616, + "start": 8612, + "end": 8626, "loc": { "start": { "line": 233, @@ -56289,8 +56295,8 @@ }, "right": { "type": "MemberExpression", - "start": 8619, - "end": 8642, + "start": 8629, + "end": 8652, "loc": { "start": { "line": 233, @@ -56303,8 +56309,8 @@ }, "object": { "type": "Identifier", - "start": 8619, - "end": 8627, + "start": 8629, + "end": 8637, "loc": { "start": { "line": 233, @@ -56320,8 +56326,8 @@ }, "property": { "type": "Identifier", - "start": 8628, - "end": 8642, + "start": 8638, + "end": 8652, "loc": { "start": { "line": 233, @@ -56347,8 +56353,8 @@ { "type": "CommentLine", "value": " Assign events", - "start": 8500, - "end": 8516, + "start": 8510, + "end": 8526, "loc": { "start": { "line": 231, @@ -56364,8 +56370,8 @@ }, { "type": "IfStatement", - "start": 8658, - "end": 8777, + "start": 8668, + "end": 8787, "loc": { "start": { "line": 236, @@ -56378,8 +56384,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8662, - "end": 8705, + "start": 8672, + "end": 8715, "loc": { "start": { "line": 236, @@ -56392,8 +56398,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8662, - "end": 8690, + "start": 8672, + "end": 8700, "loc": { "start": { "line": 236, @@ -56408,8 +56414,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8669, - "end": 8689, + "start": 8679, + "end": 8699, "loc": { "start": { "line": 236, @@ -56422,8 +56428,8 @@ }, "object": { "type": "Identifier", - "start": 8669, - "end": 8677, + "start": 8679, + "end": 8687, "loc": { "start": { "line": 236, @@ -56439,8 +56445,8 @@ }, "property": { "type": "Identifier", - "start": 8678, - "end": 8689, + "start": 8688, + "end": 8699, "loc": { "start": { "line": 236, @@ -56457,7 +56463,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 8668 + "parenStart": 8678 } }, "extra": { @@ -56467,8 +56473,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8695, - "end": 8705, + "start": 8705, + "end": 8715, "loc": { "start": { "line": 236, @@ -56488,8 +56494,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8707, - "end": 8777, + "start": 8717, + "end": 8787, "loc": { "start": { "line": 236, @@ -56503,8 +56509,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8715, - "end": 8770, + "start": 8725, + "end": 8780, "loc": { "start": { "line": 237, @@ -56517,8 +56523,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8715, - "end": 8769, + "start": 8725, + "end": 8779, "loc": { "start": { "line": 237, @@ -56532,8 +56538,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8715, - "end": 8746, + "start": 8725, + "end": 8756, "loc": { "start": { "line": 237, @@ -56546,8 +56552,8 @@ }, "object": { "type": "MemberExpression", - "start": 8715, - "end": 8734, + "start": 8725, + "end": 8744, "loc": { "start": { "line": 237, @@ -56560,8 +56566,8 @@ }, "object": { "type": "Identifier", - "start": 8715, - "end": 8727, + "start": 8725, + "end": 8737, "loc": { "start": { "line": 237, @@ -56577,8 +56583,8 @@ }, "property": { "type": "Identifier", - "start": 8728, - "end": 8734, + "start": 8738, + "end": 8744, "loc": { "start": { "line": 237, @@ -56596,8 +56602,8 @@ }, "property": { "type": "Identifier", - "start": 8735, - "end": 8746, + "start": 8745, + "end": 8756, "loc": { "start": { "line": 237, @@ -56615,8 +56621,8 @@ }, "right": { "type": "MemberExpression", - "start": 8749, - "end": 8769, + "start": 8759, + "end": 8779, "loc": { "start": { "line": 237, @@ -56629,8 +56635,8 @@ }, "object": { "type": "Identifier", - "start": 8749, - "end": 8757, + "start": 8759, + "end": 8767, "loc": { "start": { "line": 237, @@ -56646,8 +56652,8 @@ }, "property": { "type": "Identifier", - "start": 8758, - "end": 8769, + "start": 8768, + "end": 8779, "loc": { "start": { "line": 237, @@ -56672,8 +56678,8 @@ }, { "type": "IfStatement", - "start": 8785, - "end": 8913, + "start": 8795, + "end": 8923, "loc": { "start": { "line": 240, @@ -56686,8 +56692,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8789, - "end": 8835, + "start": 8799, + "end": 8845, "loc": { "start": { "line": 240, @@ -56700,8 +56706,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8789, - "end": 8820, + "start": 8799, + "end": 8830, "loc": { "start": { "line": 240, @@ -56716,8 +56722,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8796, - "end": 8819, + "start": 8806, + "end": 8829, "loc": { "start": { "line": 240, @@ -56730,8 +56736,8 @@ }, "object": { "type": "Identifier", - "start": 8796, - "end": 8804, + "start": 8806, + "end": 8814, "loc": { "start": { "line": 240, @@ -56747,8 +56753,8 @@ }, "property": { "type": "Identifier", - "start": 8805, - "end": 8819, + "start": 8815, + "end": 8829, "loc": { "start": { "line": 240, @@ -56765,7 +56771,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 8795 + "parenStart": 8805 } }, "extra": { @@ -56775,8 +56781,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8825, - "end": 8835, + "start": 8835, + "end": 8845, "loc": { "start": { "line": 240, @@ -56796,8 +56802,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8837, - "end": 8913, + "start": 8847, + "end": 8923, "loc": { "start": { "line": 240, @@ -56811,8 +56817,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8845, - "end": 8906, + "start": 8855, + "end": 8916, "loc": { "start": { "line": 241, @@ -56825,8 +56831,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8845, - "end": 8905, + "start": 8855, + "end": 8915, "loc": { "start": { "line": 241, @@ -56840,8 +56846,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8845, - "end": 8879, + "start": 8855, + "end": 8889, "loc": { "start": { "line": 241, @@ -56854,8 +56860,8 @@ }, "object": { "type": "MemberExpression", - "start": 8845, - "end": 8864, + "start": 8855, + "end": 8874, "loc": { "start": { "line": 241, @@ -56868,8 +56874,8 @@ }, "object": { "type": "Identifier", - "start": 8845, - "end": 8857, + "start": 8855, + "end": 8867, "loc": { "start": { "line": 241, @@ -56885,8 +56891,8 @@ }, "property": { "type": "Identifier", - "start": 8858, - "end": 8864, + "start": 8868, + "end": 8874, "loc": { "start": { "line": 241, @@ -56904,8 +56910,8 @@ }, "property": { "type": "Identifier", - "start": 8865, - "end": 8879, + "start": 8875, + "end": 8889, "loc": { "start": { "line": 241, @@ -56923,8 +56929,8 @@ }, "right": { "type": "MemberExpression", - "start": 8882, - "end": 8905, + "start": 8892, + "end": 8915, "loc": { "start": { "line": 241, @@ -56937,8 +56943,8 @@ }, "object": { "type": "Identifier", - "start": 8882, - "end": 8890, + "start": 8892, + "end": 8900, "loc": { "start": { "line": 241, @@ -56954,8 +56960,8 @@ }, "property": { "type": "Identifier", - "start": 8891, - "end": 8905, + "start": 8901, + "end": 8915, "loc": { "start": { "line": 241, @@ -56980,8 +56986,8 @@ }, { "type": "IfStatement", - "start": 8921, - "end": 9040, + "start": 8931, + "end": 9050, "loc": { "start": { "line": 244, @@ -56994,8 +57000,8 @@ }, "test": { "type": "BinaryExpression", - "start": 8925, - "end": 8968, + "start": 8935, + "end": 8978, "loc": { "start": { "line": 244, @@ -57008,8 +57014,8 @@ }, "left": { "type": "UnaryExpression", - "start": 8925, - "end": 8953, + "start": 8935, + "end": 8963, "loc": { "start": { "line": 244, @@ -57024,8 +57030,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 8932, - "end": 8952, + "start": 8942, + "end": 8962, "loc": { "start": { "line": 244, @@ -57038,8 +57044,8 @@ }, "object": { "type": "Identifier", - "start": 8932, - "end": 8940, + "start": 8942, + "end": 8950, "loc": { "start": { "line": 244, @@ -57055,8 +57061,8 @@ }, "property": { "type": "Identifier", - "start": 8941, - "end": 8952, + "start": 8951, + "end": 8962, "loc": { "start": { "line": 244, @@ -57073,7 +57079,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 8931 + "parenStart": 8941 } }, "extra": { @@ -57083,8 +57089,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 8958, - "end": 8968, + "start": 8968, + "end": 8978, "loc": { "start": { "line": 244, @@ -57104,8 +57110,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 8970, - "end": 9040, + "start": 8980, + "end": 9050, "loc": { "start": { "line": 244, @@ -57119,8 +57125,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 8978, - "end": 9033, + "start": 8988, + "end": 9043, "loc": { "start": { "line": 245, @@ -57133,8 +57139,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 8978, - "end": 9032, + "start": 8988, + "end": 9042, "loc": { "start": { "line": 245, @@ -57148,8 +57154,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 8978, - "end": 9009, + "start": 8988, + "end": 9019, "loc": { "start": { "line": 245, @@ -57162,8 +57168,8 @@ }, "object": { "type": "MemberExpression", - "start": 8978, - "end": 8997, + "start": 8988, + "end": 9007, "loc": { "start": { "line": 245, @@ -57176,8 +57182,8 @@ }, "object": { "type": "Identifier", - "start": 8978, - "end": 8990, + "start": 8988, + "end": 9000, "loc": { "start": { "line": 245, @@ -57193,8 +57199,8 @@ }, "property": { "type": "Identifier", - "start": 8991, - "end": 8997, + "start": 9001, + "end": 9007, "loc": { "start": { "line": 245, @@ -57212,8 +57218,8 @@ }, "property": { "type": "Identifier", - "start": 8998, - "end": 9009, + "start": 9008, + "end": 9019, "loc": { "start": { "line": 245, @@ -57231,8 +57237,8 @@ }, "right": { "type": "MemberExpression", - "start": 9012, - "end": 9032, + "start": 9022, + "end": 9042, "loc": { "start": { "line": 245, @@ -57245,8 +57251,8 @@ }, "object": { "type": "Identifier", - "start": 9012, - "end": 9020, + "start": 9022, + "end": 9030, "loc": { "start": { "line": 245, @@ -57262,8 +57268,8 @@ }, "property": { "type": "Identifier", - "start": 9021, - "end": 9032, + "start": 9031, + "end": 9042, "loc": { "start": { "line": 245, @@ -57289,9 +57295,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Copy the contents of the exclude array to the exclude list we manage.", - "start": 9048, - "end": 9120, + "value": " Copy the contents of the exclude array to the exclude array we manage.", + "start": 9058, + "end": 9131, "loc": { "start": { "line": 248, @@ -57299,7 +57305,7 @@ }, "end": { "line": 248, - "column": 76 + "column": 77 } } } @@ -57307,8 +57313,8 @@ }, { "type": "IfStatement", - "start": 9126, - "end": 9216, + "start": 9137, + "end": 9227, "loc": { "start": { "line": 249, @@ -57321,8 +57327,8 @@ }, "test": { "type": "CallExpression", - "start": 9130, - "end": 9161, + "start": 9141, + "end": 9172, "loc": { "start": { "line": 249, @@ -57335,8 +57341,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9130, - "end": 9143, + "start": 9141, + "end": 9154, "loc": { "start": { "line": 249, @@ -57349,8 +57355,8 @@ }, "object": { "type": "Identifier", - "start": 9130, - "end": 9135, + "start": 9141, + "end": 9146, "loc": { "start": { "line": 249, @@ -57367,8 +57373,8 @@ }, "property": { "type": "Identifier", - "start": 9136, - "end": 9143, + "start": 9147, + "end": 9154, "loc": { "start": { "line": 249, @@ -57388,8 +57394,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9144, - "end": 9160, + "start": 9155, + "end": 9171, "loc": { "start": { "line": 249, @@ -57402,8 +57408,8 @@ }, "object": { "type": "Identifier", - "start": 9144, - "end": 9152, + "start": 9155, + "end": 9163, "loc": { "start": { "line": 249, @@ -57419,8 +57425,8 @@ }, "property": { "type": "Identifier", - "start": 9153, - "end": 9160, + "start": 9164, + "end": 9171, "loc": { "start": { "line": 249, @@ -57441,8 +57447,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9163, - "end": 9216, + "start": 9174, + "end": 9227, "loc": { "start": { "line": 249, @@ -57456,8 +57462,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9171, - "end": 9209, + "start": 9182, + "end": 9220, "loc": { "start": { "line": 250, @@ -57470,8 +57476,8 @@ }, "expression": { "type": "CallExpression", - "start": 9171, - "end": 9208, + "start": 9182, + "end": 9219, "loc": { "start": { "line": 250, @@ -57484,8 +57490,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9171, - "end": 9187, + "start": 9182, + "end": 9198, "loc": { "start": { "line": 250, @@ -57498,8 +57504,8 @@ }, "object": { "type": "Identifier", - "start": 9171, - "end": 9182, + "start": 9182, + "end": 9193, "loc": { "start": { "line": 250, @@ -57515,8 +57521,8 @@ }, "property": { "type": "Identifier", - "start": 9183, - "end": 9187, + "start": 9194, + "end": 9198, "loc": { "start": { "line": 250, @@ -57535,8 +57541,8 @@ "arguments": [ { "type": "SpreadElement", - "start": 9188, - "end": 9207, + "start": 9199, + "end": 9218, "loc": { "start": { "line": 250, @@ -57549,8 +57555,8 @@ }, "argument": { "type": "MemberExpression", - "start": 9191, - "end": 9207, + "start": 9202, + "end": 9218, "loc": { "start": { "line": 250, @@ -57563,8 +57569,8 @@ }, "object": { "type": "Identifier", - "start": 9191, - "end": 9199, + "start": 9202, + "end": 9210, "loc": { "start": { "line": 250, @@ -57580,8 +57586,8 @@ }, "property": { "type": "Identifier", - "start": 9200, - "end": 9207, + "start": 9211, + "end": 9218, "loc": { "start": { "line": 250, @@ -57608,9 +57614,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " Copy the contents of the exclude array to the exclude list we manage.", - "start": 9048, - "end": 9120, + "value": " Copy the contents of the exclude array to the exclude array we manage.", + "start": 9058, + "end": 9131, "loc": { "start": { "line": 248, @@ -57618,7 +57624,7 @@ }, "end": { "line": 248, - "column": 76 + "column": 77 } } } @@ -57633,8 +57639,8 @@ { "type": "CommentLine", "value": " If there are options passed. Parse them.", - "start": 7325, - "end": 7368, + "start": 7335, + "end": 7378, "loc": { "start": { "line": 200, @@ -57650,9 +57656,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " We add the instance to the exclude list so that it is excluded.", - "start": 9229, - "end": 9295, + "value": " We add the instance to the exclude array so that it is excluded.", + "start": 9240, + "end": 9307, "loc": { "start": { "line": 254, @@ -57660,7 +57666,7 @@ }, "end": { "line": 254, - "column": 69 + "column": 70 } } } @@ -57668,8 +57674,8 @@ }, { "type": "IfStatement", - "start": 9300, - "end": 9379, + "start": 9312, + "end": 9391, "loc": { "start": { "line": 255, @@ -57682,8 +57688,8 @@ }, "test": { "type": "UnaryExpression", - "start": 9304, - "end": 9336, + "start": 9316, + "end": 9348, "loc": { "start": { "line": 255, @@ -57698,8 +57704,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 9305, - "end": 9336, + "start": 9317, + "end": 9348, "loc": { "start": { "line": 255, @@ -57712,8 +57718,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9305, - "end": 9325, + "start": 9317, + "end": 9337, "loc": { "start": { "line": 255, @@ -57726,8 +57732,8 @@ }, "object": { "type": "Identifier", - "start": 9305, - "end": 9316, + "start": 9317, + "end": 9328, "loc": { "start": { "line": 255, @@ -57744,8 +57750,8 @@ }, "property": { "type": "Identifier", - "start": 9317, - "end": 9325, + "start": 9329, + "end": 9337, "loc": { "start": { "line": 255, @@ -57765,8 +57771,8 @@ "arguments": [ { "type": "Identifier", - "start": 9326, - "end": 9335, + "start": 9338, + "end": 9347, "loc": { "start": { "line": 255, @@ -57790,8 +57796,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 9338, - "end": 9379, + "start": 9350, + "end": 9391, "loc": { "start": { "line": 255, @@ -57805,8 +57811,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9345, - "end": 9373, + "start": 9357, + "end": 9385, "loc": { "start": { "line": 256, @@ -57819,8 +57825,8 @@ }, "expression": { "type": "CallExpression", - "start": 9345, - "end": 9372, + "start": 9357, + "end": 9384, "loc": { "start": { "line": 256, @@ -57833,8 +57839,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9345, - "end": 9361, + "start": 9357, + "end": 9373, "loc": { "start": { "line": 256, @@ -57847,8 +57853,8 @@ }, "object": { "type": "Identifier", - "start": 9345, - "end": 9356, + "start": 9357, + "end": 9368, "loc": { "start": { "line": 256, @@ -57864,8 +57870,8 @@ }, "property": { "type": "Identifier", - "start": 9357, - "end": 9361, + "start": 9369, + "end": 9373, "loc": { "start": { "line": 256, @@ -57884,8 +57890,8 @@ "arguments": [ { "type": "Identifier", - "start": 9362, - "end": 9371, + "start": 9374, + "end": 9383, "loc": { "start": { "line": 256, @@ -57910,9 +57916,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " We add the instance to the exclude list so that it is excluded.", - "start": 9229, - "end": 9295, + "value": " We add the instance to the exclude array so that it is excluded.", + "start": 9240, + "end": 9307, "loc": { "start": { "line": 254, @@ -57920,7 +57926,7 @@ }, "end": { "line": 254, - "column": 69 + "column": 70 } } } @@ -57929,8 +57935,8 @@ { "type": "CommentLine", "value": " Build the 2D array grid that represents the map", - "start": 9386, - "end": 9436, + "start": 9398, + "end": 9448, "loc": { "start": { "line": 259, @@ -57946,8 +57952,8 @@ }, { "type": "VariableDeclaration", - "start": 9441, - "end": 9510, + "start": 9453, + "end": 9522, "loc": { "start": { "line": 260, @@ -57961,8 +57967,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 9447, - "end": 9509, + "start": 9459, + "end": 9521, "loc": { "start": { "line": 260, @@ -57975,8 +57981,8 @@ }, "id": { "type": "Identifier", - "start": 9447, - "end": 9455, + "start": 9459, + "end": 9467, "loc": { "start": { "line": 260, @@ -57993,8 +57999,8 @@ }, "init": { "type": "CallExpression", - "start": 9458, - "end": 9509, + "start": 9470, + "end": 9521, "loc": { "start": { "line": 260, @@ -58007,8 +58013,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9458, - "end": 9477, + "start": 9470, + "end": 9489, "loc": { "start": { "line": 260, @@ -58021,8 +58027,8 @@ }, "object": { "type": "ThisExpression", - "start": 9458, - "end": 9462, + "start": 9470, + "end": 9474, "loc": { "start": { "line": 260, @@ -58036,8 +58042,8 @@ }, "property": { "type": "Identifier", - "start": 9463, - "end": 9477, + "start": 9475, + "end": 9489, "loc": { "start": { "line": 260, @@ -58056,8 +58062,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9478, - "end": 9495, + "start": 9490, + "end": 9507, "loc": { "start": { "line": 260, @@ -58070,8 +58076,8 @@ }, "object": { "type": "Identifier", - "start": 9478, - "end": 9487, + "start": 9490, + "end": 9499, "loc": { "start": { "line": 260, @@ -58087,8 +58093,8 @@ }, "property": { "type": "Identifier", - "start": 9488, - "end": 9495, + "start": 9500, + "end": 9507, "loc": { "start": { "line": 260, @@ -58106,8 +58112,8 @@ }, { "type": "Identifier", - "start": 9497, - "end": 9508, + "start": 9509, + "end": 9520, "loc": { "start": { "line": 260, @@ -58131,8 +58137,8 @@ { "type": "CommentLine", "value": " Build the 2D array grid that represents the map", - "start": 9386, - "end": 9436, + "start": 9398, + "end": 9448, "loc": { "start": { "line": 259, @@ -58149,8 +58155,8 @@ { "type": "CommentLine", "value": " Assign the grid to easystar", - "start": 9520, - "end": 9550, + "start": 9532, + "end": 9562, "loc": { "start": { "line": 262, @@ -58166,8 +58172,8 @@ }, { "type": "ExpressionStatement", - "start": 9555, - "end": 9600, + "start": 9567, + "end": 9612, "loc": { "start": { "line": 263, @@ -58180,8 +58186,8 @@ }, "expression": { "type": "CallExpression", - "start": 9555, - "end": 9599, + "start": 9567, + "end": 9611, "loc": { "start": { "line": 263, @@ -58194,8 +58200,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9555, - "end": 9584, + "start": 9567, + "end": 9596, "loc": { "start": { "line": 263, @@ -58208,8 +58214,8 @@ }, "object": { "type": "MemberExpression", - "start": 9555, - "end": 9576, + "start": 9567, + "end": 9588, "loc": { "start": { "line": 263, @@ -58222,8 +58228,8 @@ }, "object": { "type": "Identifier", - "start": 9555, - "end": 9567, + "start": 9567, + "end": 9579, "loc": { "start": { "line": 263, @@ -58240,8 +58246,8 @@ }, "property": { "type": "Identifier", - "start": 9568, - "end": 9576, + "start": 9580, + "end": 9588, "loc": { "start": { "line": 263, @@ -58260,8 +58266,8 @@ }, "property": { "type": "Identifier", - "start": 9577, - "end": 9584, + "start": 9589, + "end": 9596, "loc": { "start": { "line": 263, @@ -58281,8 +58287,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9585, - "end": 9598, + "start": 9597, + "end": 9610, "loc": { "start": { "line": 263, @@ -58295,8 +58301,8 @@ }, "object": { "type": "Identifier", - "start": 9585, - "end": 9593, + "start": 9597, + "end": 9605, "loc": { "start": { "line": 263, @@ -58312,8 +58318,8 @@ }, "property": { "type": "Identifier", - "start": 9594, - "end": 9598, + "start": 9606, + "end": 9610, "loc": { "start": { "line": 263, @@ -58336,8 +58342,8 @@ { "type": "CommentLine", "value": " Assign the grid to easystar", - "start": 9520, - "end": 9550, + "start": 9532, + "end": 9562, "loc": { "start": { "line": 262, @@ -58354,8 +58360,8 @@ { "type": "CommentLine", "value": " Assign the weight of each tile", - "start": 9610, - "end": 9643, + "start": 9622, + "end": 9655, "loc": { "start": { "line": 265, @@ -58371,8 +58377,8 @@ }, { "type": "ExpressionStatement", - "start": 9648, - "end": 9753, + "start": 9660, + "end": 9765, "loc": { "start": { "line": 266, @@ -58385,8 +58391,8 @@ }, "expression": { "type": "CallExpression", - "start": 9648, - "end": 9752, + "start": 9660, + "end": 9764, "loc": { "start": { "line": 266, @@ -58399,8 +58405,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9648, - "end": 9672, + "start": 9660, + "end": 9684, "loc": { "start": { "line": 266, @@ -58413,8 +58419,8 @@ }, "object": { "type": "MemberExpression", - "start": 9648, - "end": 9664, + "start": 9660, + "end": 9676, "loc": { "start": { "line": 266, @@ -58427,8 +58433,8 @@ }, "object": { "type": "Identifier", - "start": 9648, - "end": 9656, + "start": 9660, + "end": 9668, "loc": { "start": { "line": 266, @@ -58445,8 +58451,8 @@ }, "property": { "type": "Identifier", - "start": 9657, - "end": 9664, + "start": 9669, + "end": 9676, "loc": { "start": { "line": 266, @@ -58465,8 +58471,8 @@ }, "property": { "type": "Identifier", - "start": 9665, - "end": 9672, + "start": 9677, + "end": 9684, "loc": { "start": { "line": 266, @@ -58486,8 +58492,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 9673, - "end": 9751, + "start": 9685, + "end": 9763, "loc": { "start": { "line": 266, @@ -58505,8 +58511,8 @@ "params": [ { "type": "Identifier", - "start": 9674, - "end": 9681, + "start": 9686, + "end": 9693, "loc": { "start": { "line": 266, @@ -58523,8 +58529,8 @@ ], "body": { "type": "BlockStatement", - "start": 9686, - "end": 9751, + "start": 9698, + "end": 9763, "loc": { "start": { "line": 266, @@ -58538,8 +58544,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 9693, - "end": 9745, + "start": 9705, + "end": 9757, "loc": { "start": { "line": 267, @@ -58552,8 +58558,8 @@ }, "expression": { "type": "CallExpression", - "start": 9693, - "end": 9744, + "start": 9705, + "end": 9756, "loc": { "start": { "line": 267, @@ -58566,8 +58572,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9693, - "end": 9726, + "start": 9705, + "end": 9738, "loc": { "start": { "line": 267, @@ -58580,8 +58586,8 @@ }, "object": { "type": "MemberExpression", - "start": 9693, - "end": 9714, + "start": 9705, + "end": 9726, "loc": { "start": { "line": 267, @@ -58594,8 +58600,8 @@ }, "object": { "type": "Identifier", - "start": 9693, - "end": 9705, + "start": 9705, + "end": 9717, "loc": { "start": { "line": 267, @@ -58611,8 +58617,8 @@ }, "property": { "type": "Identifier", - "start": 9706, - "end": 9714, + "start": 9718, + "end": 9726, "loc": { "start": { "line": 267, @@ -58630,8 +58636,8 @@ }, "property": { "type": "Identifier", - "start": 9715, - "end": 9726, + "start": 9727, + "end": 9738, "loc": { "start": { "line": 267, @@ -58650,8 +58656,8 @@ "arguments": [ { "type": "Identifier", - "start": 9727, - "end": 9734, + "start": 9739, + "end": 9746, "loc": { "start": { "line": 267, @@ -58667,8 +58673,8 @@ }, { "type": "Identifier", - "start": 9736, - "end": 9743, + "start": 9748, + "end": 9755, "loc": { "start": { "line": 267, @@ -58696,8 +58702,8 @@ { "type": "CommentLine", "value": " Assign the weight of each tile", - "start": 9610, - "end": 9643, + "start": 9622, + "end": 9655, "loc": { "start": { "line": 265, @@ -58714,8 +58720,8 @@ { "type": "CommentLine", "value": " Assign what tiles can be used", - "start": 9760, - "end": 9792, + "start": 9772, + "end": 9804, "loc": { "start": { "line": 270, @@ -58731,8 +58737,8 @@ }, { "type": "ExpressionStatement", - "start": 9797, - "end": 9862, + "start": 9809, + "end": 9874, "loc": { "start": { "line": 271, @@ -58745,8 +58751,8 @@ }, "expression": { "type": "CallExpression", - "start": 9797, - "end": 9861, + "start": 9809, + "end": 9873, "loc": { "start": { "line": 271, @@ -58759,8 +58765,8 @@ }, "callee": { "type": "MemberExpression", - "start": 9797, - "end": 9837, + "start": 9809, + "end": 9849, "loc": { "start": { "line": 271, @@ -58773,8 +58779,8 @@ }, "object": { "type": "MemberExpression", - "start": 9797, - "end": 9818, + "start": 9809, + "end": 9830, "loc": { "start": { "line": 271, @@ -58787,8 +58793,8 @@ }, "object": { "type": "Identifier", - "start": 9797, - "end": 9809, + "start": 9809, + "end": 9821, "loc": { "start": { "line": 271, @@ -58805,8 +58811,8 @@ }, "property": { "type": "Identifier", - "start": 9810, - "end": 9818, + "start": 9822, + "end": 9830, "loc": { "start": { "line": 271, @@ -58825,8 +58831,8 @@ }, "property": { "type": "Identifier", - "start": 9819, - "end": 9837, + "start": 9831, + "end": 9849, "loc": { "start": { "line": 271, @@ -58846,8 +58852,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 9838, - "end": 9860, + "start": 9850, + "end": 9872, "loc": { "start": { "line": 271, @@ -58860,8 +58866,8 @@ }, "object": { "type": "Identifier", - "start": 9838, - "end": 9846, + "start": 9850, + "end": 9858, "loc": { "start": { "line": 271, @@ -58877,8 +58883,8 @@ }, "property": { "type": "Identifier", - "start": 9847, - "end": 9860, + "start": 9859, + "end": 9872, "loc": { "start": { "line": 271, @@ -58901,8 +58907,8 @@ { "type": "CommentLine", "value": " Assign what tiles can be used", - "start": 9760, - "end": 9792, + "start": 9772, + "end": 9804, "loc": { "start": { "line": 270, @@ -58919,8 +58925,8 @@ { "type": "CommentLine", "value": " Grab the pos of the instance so we can locate the starting tile its on.", - "start": 9869, - "end": 9943, + "start": 9881, + "end": 9955, "loc": { "start": { "line": 273, @@ -58935,8 +58941,8 @@ { "type": "CommentLine", "value": " This is also used as the startingNode position.", - "start": 9948, - "end": 9998, + "start": 9960, + "end": 10010, "loc": { "start": { "line": 274, @@ -58952,8 +58958,8 @@ }, { "type": "VariableDeclaration", - "start": 10003, - "end": 10068, + "start": 10015, + "end": 10080, "loc": { "start": { "line": 275, @@ -58967,8 +58973,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10009, - "end": 10067, + "start": 10021, + "end": 10079, "loc": { "start": { "line": 275, @@ -58981,8 +58987,8 @@ }, "id": { "type": "Identifier", - "start": 10009, - "end": 10025, + "start": 10021, + "end": 10037, "loc": { "start": { "line": 275, @@ -58999,8 +59005,8 @@ }, "init": { "type": "CallExpression", - "start": 10028, - "end": 10067, + "start": 10040, + "end": 10079, "loc": { "start": { "line": 275, @@ -59013,8 +59019,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10028, - "end": 10056, + "start": 10040, + "end": 10068, "loc": { "start": { "line": 275, @@ -59027,8 +59033,8 @@ }, "object": { "type": "ThisExpression", - "start": 10028, - "end": 10032, + "start": 10040, + "end": 10044, "loc": { "start": { "line": 275, @@ -59042,8 +59048,8 @@ }, "property": { "type": "Identifier", - "start": 10033, - "end": 10056, + "start": 10045, + "end": 10068, "loc": { "start": { "line": 275, @@ -59062,8 +59068,8 @@ "arguments": [ { "type": "Identifier", - "start": 10057, - "end": 10066, + "start": 10069, + "end": 10078, "loc": { "start": { "line": 275, @@ -59087,8 +59093,8 @@ { "type": "CommentLine", "value": " Grab the pos of the instance so we can locate the starting tile its on.", - "start": 9869, - "end": 9943, + "start": 9881, + "end": 9955, "loc": { "start": { "line": 273, @@ -59103,8 +59109,8 @@ { "type": "CommentLine", "value": " This is also used as the startingNode position.", - "start": 9948, - "end": 9998, + "start": 9960, + "end": 10010, "loc": { "start": { "line": 274, @@ -59121,8 +59127,8 @@ { "type": "CommentLine", "value": " Get the origin tile the instance is on.", - "start": 10073, - "end": 10115, + "start": 10085, + "end": 10127, "loc": { "start": { "line": 276, @@ -59138,8 +59144,8 @@ }, { "type": "VariableDeclaration", - "start": 10120, - "end": 10219, + "start": 10132, + "end": 10231, "loc": { "start": { "line": 277, @@ -59153,8 +59159,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10126, - "end": 10218, + "start": 10138, + "end": 10230, "loc": { "start": { "line": 277, @@ -59167,8 +59173,8 @@ }, "id": { "type": "Identifier", - "start": 10126, - "end": 10136, + "start": 10138, + "end": 10148, "loc": { "start": { "line": 277, @@ -59185,8 +59191,8 @@ }, "init": { "type": "CallExpression", - "start": 10139, - "end": 10218, + "start": 10151, + "end": 10230, "loc": { "start": { "line": 277, @@ -59199,8 +59205,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10139, - "end": 10159, + "start": 10151, + "end": 10171, "loc": { "start": { "line": 277, @@ -59213,8 +59219,8 @@ }, "object": { "type": "MemberExpression", - "start": 10139, - "end": 10147, + "start": 10151, + "end": 10159, "loc": { "start": { "line": 277, @@ -59227,8 +59233,8 @@ }, "object": { "type": "Identifier", - "start": 10139, - "end": 10143, + "start": 10151, + "end": 10155, "loc": { "start": { "line": 277, @@ -59244,8 +59250,8 @@ }, "property": { "type": "Identifier", - "start": 10144, - "end": 10147, + "start": 10156, + "end": 10159, "loc": { "start": { "line": 277, @@ -59263,8 +59269,8 @@ }, "property": { "type": "Identifier", - "start": 10148, - "end": 10159, + "start": 10160, + "end": 10171, "loc": { "start": { "line": 277, @@ -59283,8 +59289,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10160, - "end": 10178, + "start": 10172, + "end": 10190, "loc": { "start": { "line": 277, @@ -59297,8 +59303,8 @@ }, "object": { "type": "Identifier", - "start": 10160, - "end": 10176, + "start": 10172, + "end": 10188, "loc": { "start": { "line": 277, @@ -59314,8 +59320,8 @@ }, "property": { "type": "Identifier", - "start": 10177, - "end": 10178, + "start": 10189, + "end": 10190, "loc": { "start": { "line": 277, @@ -59333,8 +59339,8 @@ }, { "type": "MemberExpression", - "start": 10180, - "end": 10198, + "start": 10192, + "end": 10210, "loc": { "start": { "line": 277, @@ -59347,8 +59353,8 @@ }, "object": { "type": "Identifier", - "start": 10180, - "end": 10196, + "start": 10192, + "end": 10208, "loc": { "start": { "line": 277, @@ -59364,8 +59370,8 @@ }, "property": { "type": "Identifier", - "start": 10197, - "end": 10198, + "start": 10209, + "end": 10210, "loc": { "start": { "line": 277, @@ -59383,8 +59389,8 @@ }, { "type": "MemberExpression", - "start": 10200, - "end": 10217, + "start": 10212, + "end": 10229, "loc": { "start": { "line": 277, @@ -59397,8 +59403,8 @@ }, "object": { "type": "Identifier", - "start": 10200, - "end": 10209, + "start": 10212, + "end": 10221, "loc": { "start": { "line": 277, @@ -59414,8 +59420,8 @@ }, "property": { "type": "Identifier", - "start": 10210, - "end": 10217, + "start": 10222, + "end": 10229, "loc": { "start": { "line": 277, @@ -59441,8 +59447,8 @@ { "type": "CommentLine", "value": " Get the origin tile the instance is on.", - "start": 10073, - "end": 10115, + "start": 10085, + "end": 10127, "loc": { "start": { "line": 276, @@ -59459,8 +59465,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 10224, - "end": 10273, + "start": 10236, + "end": 10285, "loc": { "start": { "line": 278, @@ -59476,8 +59482,8 @@ }, { "type": "VariableDeclaration", - "start": 10278, - "end": 10333, + "start": 10290, + "end": 10345, "loc": { "start": { "line": 279, @@ -59491,8 +59497,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10284, - "end": 10332, + "start": 10296, + "end": 10344, "loc": { "start": { "line": 279, @@ -59505,8 +59511,8 @@ }, "id": { "type": "Identifier", - "start": 10284, - "end": 10291, + "start": 10296, + "end": 10303, "loc": { "start": { "line": 279, @@ -59523,8 +59529,8 @@ }, "init": { "type": "CallExpression", - "start": 10294, - "end": 10332, + "start": 10306, + "end": 10344, "loc": { "start": { "line": 279, @@ -59537,8 +59543,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10294, - "end": 10313, + "start": 10306, + "end": 10325, "loc": { "start": { "line": 279, @@ -59551,8 +59557,8 @@ }, "object": { "type": "MemberExpression", - "start": 10294, - "end": 10302, + "start": 10306, + "end": 10314, "loc": { "start": { "line": 279, @@ -59565,8 +59571,8 @@ }, "object": { "type": "Identifier", - "start": 10294, - "end": 10298, + "start": 10306, + "end": 10310, "loc": { "start": { "line": 279, @@ -59582,8 +59588,8 @@ }, "property": { "type": "Identifier", - "start": 10299, - "end": 10302, + "start": 10311, + "end": 10314, "loc": { "start": { "line": 279, @@ -59601,8 +59607,8 @@ }, "property": { "type": "Identifier", - "start": 10303, - "end": 10313, + "start": 10315, + "end": 10325, "loc": { "start": { "line": 279, @@ -59621,8 +59627,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10314, - "end": 10331, + "start": 10326, + "end": 10343, "loc": { "start": { "line": 279, @@ -59635,8 +59641,8 @@ }, "object": { "type": "Identifier", - "start": 10314, - "end": 10323, + "start": 10326, + "end": 10335, "loc": { "start": { "line": 279, @@ -59652,8 +59658,8 @@ }, "property": { "type": "Identifier", - "start": 10324, - "end": 10331, + "start": 10336, + "end": 10343, "loc": { "start": { "line": 279, @@ -59679,8 +59685,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 10224, - "end": 10273, + "start": 10236, + "end": 10285, "loc": { "start": { "line": 278, @@ -59697,8 +59703,8 @@ { "type": "CommentLine", "value": " Get the end nodes position so we can get the destinationTile", - "start": 10340, - "end": 10403, + "start": 10352, + "end": 10415, "loc": { "start": { "line": 281, @@ -59714,8 +59720,8 @@ }, { "type": "VariableDeclaration", - "start": 10408, - "end": 10567, + "start": 10420, + "end": 10579, "loc": { "start": { "line": 282, @@ -59729,8 +59735,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10414, - "end": 10566, + "start": 10426, + "end": 10578, "loc": { "start": { "line": 282, @@ -59743,8 +59749,8 @@ }, "id": { "type": "Identifier", - "start": 10414, - "end": 10422, + "start": 10426, + "end": 10434, "loc": { "start": { "line": 282, @@ -59761,8 +59767,8 @@ }, "init": { "type": "CallExpression", - "start": 10425, - "end": 10566, + "start": 10437, + "end": 10578, "loc": { "start": { "line": 282, @@ -59775,8 +59781,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10425, - "end": 10436, + "start": 10437, + "end": 10448, "loc": { "start": { "line": 282, @@ -59789,8 +59795,8 @@ }, "object": { "type": "Identifier", - "start": 10425, - "end": 10430, + "start": 10437, + "end": 10442, "loc": { "start": { "line": 282, @@ -59806,8 +59812,8 @@ }, "property": { "type": "Identifier", - "start": 10431, - "end": 10436, + "start": 10443, + "end": 10448, "loc": { "start": { "line": 282, @@ -59826,8 +59832,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 10437, - "end": 10526, + "start": 10449, + "end": 10538, "loc": { "start": { "line": 282, @@ -59840,8 +59846,8 @@ }, "left": { "type": "BinaryExpression", - "start": 10437, - "end": 10500, + "start": 10449, + "end": 10512, "loc": { "start": { "line": 282, @@ -59854,8 +59860,8 @@ }, "left": { "type": "CallExpression", - "start": 10437, - "end": 10478, + "start": 10449, + "end": 10490, "loc": { "start": { "line": 282, @@ -59868,8 +59874,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10437, - "end": 10448, + "start": 10449, + "end": 10460, "loc": { "start": { "line": 282, @@ -59882,8 +59888,8 @@ }, "object": { "type": "Identifier", - "start": 10437, - "end": 10442, + "start": 10449, + "end": 10454, "loc": { "start": { "line": 282, @@ -59899,8 +59905,8 @@ }, "property": { "type": "Identifier", - "start": 10443, - "end": 10448, + "start": 10455, + "end": 10460, "loc": { "start": { "line": 282, @@ -59919,8 +59925,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10449, - "end": 10463, + "start": 10461, + "end": 10475, "loc": { "start": { "line": 282, @@ -59933,8 +59939,8 @@ }, "object": { "type": "Identifier", - "start": 10449, - "end": 10461, + "start": 10461, + "end": 10473, "loc": { "start": { "line": 282, @@ -59950,8 +59956,8 @@ }, "property": { "type": "Identifier", - "start": 10462, - "end": 10463, + "start": 10474, + "end": 10475, "loc": { "start": { "line": 282, @@ -59969,8 +59975,8 @@ }, { "type": "NumericLiteral", - "start": 10465, - "end": 10466, + "start": 10477, + "end": 10478, "loc": { "start": { "line": 282, @@ -59989,8 +59995,8 @@ }, { "type": "MemberExpression", - "start": 10468, - "end": 10477, + "start": 10480, + "end": 10489, "loc": { "start": { "line": 282, @@ -60003,8 +60009,8 @@ }, "object": { "type": "Identifier", - "start": 10468, - "end": 10475, + "start": 10480, + "end": 10487, "loc": { "start": { "line": 282, @@ -60020,8 +60026,8 @@ }, "property": { "type": "Identifier", - "start": 10476, - "end": 10477, + "start": 10488, + "end": 10489, "loc": { "start": { "line": 282, @@ -60042,8 +60048,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 10481, - "end": 10500, + "start": 10493, + "end": 10512, "loc": { "start": { "line": 282, @@ -60056,8 +60062,8 @@ }, "object": { "type": "MemberExpression", - "start": 10481, - "end": 10494, + "start": 10493, + "end": 10506, "loc": { "start": { "line": 282, @@ -60070,8 +60076,8 @@ }, "object": { "type": "ThisExpression", - "start": 10481, - "end": 10485, + "start": 10493, + "end": 10497, "loc": { "start": { "line": 282, @@ -60085,8 +60091,8 @@ }, "property": { "type": "Identifier", - "start": 10486, - "end": 10494, + "start": 10498, + "end": 10506, "loc": { "start": { "line": 282, @@ -60104,8 +60110,8 @@ }, "property": { "type": "Identifier", - "start": 10495, - "end": 10500, + "start": 10507, + "end": 10512, "loc": { "start": { "line": 282, @@ -60125,8 +60131,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 10503, - "end": 10526, + "start": 10515, + "end": 10538, "loc": { "start": { "line": 282, @@ -60139,8 +60145,8 @@ }, "left": { "type": "MemberExpression", - "start": 10503, - "end": 10522, + "start": 10515, + "end": 10534, "loc": { "start": { "line": 282, @@ -60153,8 +60159,8 @@ }, "object": { "type": "MemberExpression", - "start": 10503, - "end": 10516, + "start": 10515, + "end": 10528, "loc": { "start": { "line": 282, @@ -60167,8 +60173,8 @@ }, "object": { "type": "ThisExpression", - "start": 10503, - "end": 10507, + "start": 10515, + "end": 10519, "loc": { "start": { "line": 282, @@ -60182,8 +60188,8 @@ }, "property": { "type": "Identifier", - "start": 10508, - "end": 10516, + "start": 10520, + "end": 10528, "loc": { "start": { "line": 282, @@ -60201,8 +60207,8 @@ }, "property": { "type": "Identifier", - "start": 10517, - "end": 10522, + "start": 10529, + "end": 10534, "loc": { "start": { "line": 282, @@ -60221,8 +60227,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 10525, - "end": 10526, + "start": 10537, + "end": 10538, "loc": { "start": { "line": 282, @@ -60243,8 +60249,8 @@ }, { "type": "NumericLiteral", - "start": 10528, - "end": 10529, + "start": 10540, + "end": 10541, "loc": { "start": { "line": 282, @@ -60263,8 +60269,8 @@ }, { "type": "BinaryExpression", - "start": 10531, - "end": 10565, + "start": 10543, + "end": 10577, "loc": { "start": { "line": 282, @@ -60277,8 +60283,8 @@ }, "left": { "type": "MemberExpression", - "start": 10531, - "end": 10543, + "start": 10543, + "end": 10555, "loc": { "start": { "line": 282, @@ -60291,8 +60297,8 @@ }, "object": { "type": "Identifier", - "start": 10531, - "end": 10538, + "start": 10543, + "end": 10550, "loc": { "start": { "line": 282, @@ -60308,8 +60314,8 @@ }, "property": { "type": "Identifier", - "start": 10539, - "end": 10543, + "start": 10551, + "end": 10555, "loc": { "start": { "line": 282, @@ -60328,8 +60334,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 10546, - "end": 10565, + "start": 10558, + "end": 10577, "loc": { "start": { "line": 282, @@ -60342,8 +60348,8 @@ }, "object": { "type": "MemberExpression", - "start": 10546, - "end": 10559, + "start": 10558, + "end": 10571, "loc": { "start": { "line": 282, @@ -60356,8 +60362,8 @@ }, "object": { "type": "ThisExpression", - "start": 10546, - "end": 10550, + "start": 10558, + "end": 10562, "loc": { "start": { "line": 282, @@ -60371,8 +60377,8 @@ }, "property": { "type": "Identifier", - "start": 10551, - "end": 10559, + "start": 10563, + "end": 10571, "loc": { "start": { "line": 282, @@ -60390,8 +60396,8 @@ }, "property": { "type": "Identifier", - "start": 10560, - "end": 10565, + "start": 10572, + "end": 10577, "loc": { "start": { "line": 282, @@ -60418,8 +60424,8 @@ { "type": "CommentLine", "value": " Get the end nodes position so we can get the destinationTile", - "start": 10340, - "end": 10403, + "start": 10352, + "end": 10415, "loc": { "start": { "line": 281, @@ -60435,8 +60441,8 @@ }, { "type": "VariableDeclaration", - "start": 10572, - "end": 10734, + "start": 10584, + "end": 10746, "loc": { "start": { "line": 283, @@ -60450,8 +60456,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10578, - "end": 10733, + "start": 10590, + "end": 10745, "loc": { "start": { "line": 283, @@ -60464,8 +60470,8 @@ }, "id": { "type": "Identifier", - "start": 10578, - "end": 10586, + "start": 10590, + "end": 10598, "loc": { "start": { "line": 283, @@ -60481,8 +60487,8 @@ }, "init": { "type": "CallExpression", - "start": 10589, - "end": 10733, + "start": 10601, + "end": 10745, "loc": { "start": { "line": 283, @@ -60495,8 +60501,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10589, - "end": 10600, + "start": 10601, + "end": 10612, "loc": { "start": { "line": 283, @@ -60509,8 +60515,8 @@ }, "object": { "type": "Identifier", - "start": 10589, - "end": 10594, + "start": 10601, + "end": 10606, "loc": { "start": { "line": 283, @@ -60526,8 +60532,8 @@ }, "property": { "type": "Identifier", - "start": 10595, - "end": 10600, + "start": 10607, + "end": 10612, "loc": { "start": { "line": 283, @@ -60546,8 +60552,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 10601, - "end": 10692, + "start": 10613, + "end": 10704, "loc": { "start": { "line": 283, @@ -60560,8 +60566,8 @@ }, "left": { "type": "BinaryExpression", - "start": 10601, - "end": 10665, + "start": 10613, + "end": 10677, "loc": { "start": { "line": 283, @@ -60574,8 +60580,8 @@ }, "left": { "type": "CallExpression", - "start": 10601, - "end": 10642, + "start": 10613, + "end": 10654, "loc": { "start": { "line": 283, @@ -60588,8 +60594,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10601, - "end": 10612, + "start": 10613, + "end": 10624, "loc": { "start": { "line": 283, @@ -60602,8 +60608,8 @@ }, "object": { "type": "Identifier", - "start": 10601, - "end": 10606, + "start": 10613, + "end": 10618, "loc": { "start": { "line": 283, @@ -60619,8 +60625,8 @@ }, "property": { "type": "Identifier", - "start": 10607, - "end": 10612, + "start": 10619, + "end": 10624, "loc": { "start": { "line": 283, @@ -60639,8 +60645,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 10613, - "end": 10627, + "start": 10625, + "end": 10639, "loc": { "start": { "line": 283, @@ -60653,8 +60659,8 @@ }, "object": { "type": "Identifier", - "start": 10613, - "end": 10625, + "start": 10625, + "end": 10637, "loc": { "start": { "line": 283, @@ -60670,8 +60676,8 @@ }, "property": { "type": "Identifier", - "start": 10626, - "end": 10627, + "start": 10638, + "end": 10639, "loc": { "start": { "line": 283, @@ -60689,8 +60695,8 @@ }, { "type": "NumericLiteral", - "start": 10629, - "end": 10630, + "start": 10641, + "end": 10642, "loc": { "start": { "line": 283, @@ -60709,8 +60715,8 @@ }, { "type": "MemberExpression", - "start": 10632, - "end": 10641, + "start": 10644, + "end": 10653, "loc": { "start": { "line": 283, @@ -60723,8 +60729,8 @@ }, "object": { "type": "Identifier", - "start": 10632, - "end": 10639, + "start": 10644, + "end": 10651, "loc": { "start": { "line": 283, @@ -60740,8 +60746,8 @@ }, "property": { "type": "Identifier", - "start": 10640, - "end": 10641, + "start": 10652, + "end": 10653, "loc": { "start": { "line": 283, @@ -60762,8 +60768,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 10645, - "end": 10665, + "start": 10657, + "end": 10677, "loc": { "start": { "line": 283, @@ -60776,8 +60782,8 @@ }, "object": { "type": "MemberExpression", - "start": 10645, - "end": 10658, + "start": 10657, + "end": 10670, "loc": { "start": { "line": 283, @@ -60790,8 +60796,8 @@ }, "object": { "type": "ThisExpression", - "start": 10645, - "end": 10649, + "start": 10657, + "end": 10661, "loc": { "start": { "line": 283, @@ -60805,8 +60811,8 @@ }, "property": { "type": "Identifier", - "start": 10650, - "end": 10658, + "start": 10662, + "end": 10670, "loc": { "start": { "line": 283, @@ -60824,8 +60830,8 @@ }, "property": { "type": "Identifier", - "start": 10659, - "end": 10665, + "start": 10671, + "end": 10677, "loc": { "start": { "line": 283, @@ -60845,8 +60851,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 10668, - "end": 10692, + "start": 10680, + "end": 10704, "loc": { "start": { "line": 283, @@ -60859,8 +60865,8 @@ }, "left": { "type": "MemberExpression", - "start": 10668, - "end": 10688, + "start": 10680, + "end": 10700, "loc": { "start": { "line": 283, @@ -60873,8 +60879,8 @@ }, "object": { "type": "MemberExpression", - "start": 10668, - "end": 10681, + "start": 10680, + "end": 10693, "loc": { "start": { "line": 283, @@ -60887,8 +60893,8 @@ }, "object": { "type": "ThisExpression", - "start": 10668, - "end": 10672, + "start": 10680, + "end": 10684, "loc": { "start": { "line": 283, @@ -60902,8 +60908,8 @@ }, "property": { "type": "Identifier", - "start": 10673, - "end": 10681, + "start": 10685, + "end": 10693, "loc": { "start": { "line": 283, @@ -60921,8 +60927,8 @@ }, "property": { "type": "Identifier", - "start": 10682, - "end": 10688, + "start": 10694, + "end": 10700, "loc": { "start": { "line": 283, @@ -60941,8 +60947,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 10691, - "end": 10692, + "start": 10703, + "end": 10704, "loc": { "start": { "line": 283, @@ -60963,8 +60969,8 @@ }, { "type": "NumericLiteral", - "start": 10694, - "end": 10695, + "start": 10706, + "end": 10707, "loc": { "start": { "line": 283, @@ -60983,8 +60989,8 @@ }, { "type": "BinaryExpression", - "start": 10697, - "end": 10732, + "start": 10709, + "end": 10744, "loc": { "start": { "line": 283, @@ -60997,8 +61003,8 @@ }, "left": { "type": "MemberExpression", - "start": 10697, - "end": 10709, + "start": 10709, + "end": 10721, "loc": { "start": { "line": 283, @@ -61011,8 +61017,8 @@ }, "object": { "type": "Identifier", - "start": 10697, - "end": 10704, + "start": 10709, + "end": 10716, "loc": { "start": { "line": 283, @@ -61028,8 +61034,8 @@ }, "property": { "type": "Identifier", - "start": 10705, - "end": 10709, + "start": 10717, + "end": 10721, "loc": { "start": { "line": 283, @@ -61048,8 +61054,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 10712, - "end": 10732, + "start": 10724, + "end": 10744, "loc": { "start": { "line": 283, @@ -61062,8 +61068,8 @@ }, "object": { "type": "MemberExpression", - "start": 10712, - "end": 10725, + "start": 10724, + "end": 10737, "loc": { "start": { "line": 283, @@ -61076,8 +61082,8 @@ }, "object": { "type": "ThisExpression", - "start": 10712, - "end": 10716, + "start": 10724, + "end": 10728, "loc": { "start": { "line": 283, @@ -61091,8 +61097,8 @@ }, "property": { "type": "Identifier", - "start": 10717, - "end": 10725, + "start": 10729, + "end": 10737, "loc": { "start": { "line": 283, @@ -61110,8 +61116,8 @@ }, "property": { "type": "Identifier", - "start": 10726, - "end": 10732, + "start": 10738, + "end": 10744, "loc": { "start": { "line": 283, @@ -61136,9 +61142,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Get the end time tile", - "start": 10739, - "end": 10763, + "value": " Get the end tile", + "start": 10751, + "end": 10770, "loc": { "start": { "line": 284, @@ -61146,7 +61152,7 @@ }, "end": { "line": 284, - "column": 27 + "column": 22 } } } @@ -61154,8 +61160,8 @@ }, { "type": "VariableDeclaration", - "start": 10768, - "end": 10852, + "start": 10775, + "end": 10859, "loc": { "start": { "line": 285, @@ -61169,8 +61175,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 10774, - "end": 10851, + "start": 10781, + "end": 10858, "loc": { "start": { "line": 285, @@ -61183,8 +61189,8 @@ }, "id": { "type": "Identifier", - "start": 10774, - "end": 10789, + "start": 10781, + "end": 10796, "loc": { "start": { "line": 285, @@ -61201,8 +61207,8 @@ }, "init": { "type": "CallExpression", - "start": 10792, - "end": 10851, + "start": 10799, + "end": 10858, "loc": { "start": { "line": 285, @@ -61215,8 +61221,8 @@ }, "callee": { "type": "MemberExpression", - "start": 10792, - "end": 10812, + "start": 10799, + "end": 10819, "loc": { "start": { "line": 285, @@ -61229,8 +61235,8 @@ }, "object": { "type": "MemberExpression", - "start": 10792, - "end": 10800, + "start": 10799, + "end": 10807, "loc": { "start": { "line": 285, @@ -61243,8 +61249,8 @@ }, "object": { "type": "Identifier", - "start": 10792, - "end": 10796, + "start": 10799, + "end": 10803, "loc": { "start": { "line": 285, @@ -61260,8 +61266,8 @@ }, "property": { "type": "Identifier", - "start": 10797, - "end": 10800, + "start": 10804, + "end": 10807, "loc": { "start": { "line": 285, @@ -61279,8 +61285,8 @@ }, "property": { "type": "Identifier", - "start": 10801, - "end": 10812, + "start": 10808, + "end": 10819, "loc": { "start": { "line": 285, @@ -61299,8 +61305,8 @@ "arguments": [ { "type": "Identifier", - "start": 10813, - "end": 10821, + "start": 10820, + "end": 10828, "loc": { "start": { "line": 285, @@ -61316,8 +61322,8 @@ }, { "type": "Identifier", - "start": 10823, - "end": 10831, + "start": 10830, + "end": 10838, "loc": { "start": { "line": 285, @@ -61333,8 +61339,8 @@ }, { "type": "MemberExpression", - "start": 10833, - "end": 10850, + "start": 10840, + "end": 10857, "loc": { "start": { "line": 285, @@ -61347,8 +61353,8 @@ }, "object": { "type": "Identifier", - "start": 10833, - "end": 10842, + "start": 10840, + "end": 10849, "loc": { "start": { "line": 285, @@ -61364,8 +61370,8 @@ }, "property": { "type": "Identifier", - "start": 10843, - "end": 10850, + "start": 10850, + "end": 10857, "loc": { "start": { "line": 285, @@ -61390,9 +61396,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " Get the end time tile", - "start": 10739, - "end": 10763, + "value": " Get the end tile", + "start": 10751, + "end": 10770, "loc": { "start": { "line": 284, @@ -61400,7 +61406,7 @@ }, "end": { "line": 284, - "column": 27 + "column": 22 } } } @@ -61409,8 +61415,8 @@ { "type": "CommentLine", "value": " Make sure these have resolved to actual tiles.", - "start": 10862, - "end": 10911, + "start": 10869, + "end": 10918, "loc": { "start": { "line": 287, @@ -61426,8 +61432,8 @@ }, { "type": "IfStatement", - "start": 10916, - "end": 11887, + "start": 10923, + "end": 11933, "loc": { "start": { "line": 288, @@ -61440,8 +61446,8 @@ }, "test": { "type": "LogicalExpression", - "start": 10920, - "end": 10949, + "start": 10927, + "end": 10956, "loc": { "start": { "line": 288, @@ -61454,8 +61460,8 @@ }, "left": { "type": "Identifier", - "start": 10920, - "end": 10930, + "start": 10927, + "end": 10937, "loc": { "start": { "line": 288, @@ -61473,8 +61479,8 @@ "operator": "&&", "right": { "type": "Identifier", - "start": 10934, - "end": 10949, + "start": 10941, + "end": 10956, "loc": { "start": { "line": 288, @@ -61492,8 +61498,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 10951, - "end": 11760, + "start": 10958, + "end": 11806, "loc": { "start": { "line": 288, @@ -61507,11 +61513,11 @@ "body": [ { "type": "IfStatement", - "start": 10958, - "end": 11754, + "start": 11021, + "end": 11800, "loc": { "start": { - "line": 289, + "line": 290, "column": 4 }, "end": { @@ -61521,92 +61527,94 @@ }, "test": { "type": "LogicalExpression", - "start": 10962, - "end": 11063, + "start": 11025, + "end": 11126, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 109 } }, "left": { "type": "CallExpression", - "start": 10962, - "end": 11008, + "start": 11025, + "end": 11071, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 54 } }, "callee": { "type": "MemberExpression", - "start": 10962, - "end": 10983, + "start": 11025, + "end": 11046, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 10962, - "end": 10966, + "start": 11025, + "end": 11029, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 12 } - } + }, + "leadingComments": null }, "property": { "type": "Identifier", - "start": 10967, - "end": 10983, + "start": 11030, + "end": 11046, "loc": { "start": { - "line": 289, + "line": 290, "column": 13 }, "end": { - "line": 289, + "line": 290, "column": 29 }, "identifierName": "isTileAccessible" }, "name": "isTileAccessible" }, - "computed": false + "computed": false, + "leadingComments": null }, "arguments": [ { "type": "Identifier", - "start": 10984, - "end": 10994, + "start": 11047, + "end": 11057, "loc": { "start": { - "line": 289, + "line": 290, "column": 30 }, "end": { - "line": 289, + "line": 290, "column": 40 }, "identifierName": "originTile" @@ -61615,78 +61623,79 @@ }, { "type": "Identifier", - "start": 10996, - "end": 11007, + "start": 11059, + "end": 11070, "loc": { "start": { - "line": 289, + "line": 290, "column": 42 }, "end": { - "line": 289, + "line": 290, "column": 53 }, "identifierName": "excludeList" }, "name": "excludeList" } - ] + ], + "leadingComments": null }, "operator": "&&", "right": { "type": "CallExpression", - "start": 11012, - "end": 11063, + "start": 11075, + "end": 11126, "loc": { "start": { - "line": 289, + "line": 290, "column": 58 }, "end": { - "line": 289, + "line": 290, "column": 109 } }, "callee": { "type": "MemberExpression", - "start": 11012, - "end": 11033, + "start": 11075, + "end": 11096, "loc": { "start": { - "line": 289, + "line": 290, "column": 58 }, "end": { - "line": 289, + "line": 290, "column": 79 } }, "object": { "type": "ThisExpression", - "start": 11012, - "end": 11016, + "start": 11075, + "end": 11079, "loc": { "start": { - "line": 289, + "line": 290, "column": 58 }, "end": { - "line": 289, + "line": 290, "column": 62 } } }, "property": { "type": "Identifier", - "start": 11017, - "end": 11033, + "start": 11080, + "end": 11096, "loc": { "start": { - "line": 289, + "line": 290, "column": 63 }, "end": { - "line": 289, + "line": 290, "column": 79 }, "identifierName": "isTileAccessible" @@ -61698,15 +61707,15 @@ "arguments": [ { "type": "Identifier", - "start": 11034, - "end": 11049, + "start": 11097, + "end": 11112, "loc": { "start": { - "line": 289, + "line": 290, "column": 80 }, "end": { - "line": 289, + "line": 290, "column": 95 }, "identifierName": "destinationTile" @@ -61715,15 +61724,15 @@ }, { "type": "Identifier", - "start": 11051, - "end": 11062, + "start": 11114, + "end": 11125, "loc": { "start": { - "line": 289, + "line": 290, "column": 97 }, "end": { - "line": 289, + "line": 290, "column": 108 }, "identifierName": "excludeList" @@ -61731,63 +61740,64 @@ "name": "excludeList" } ] - } + }, + "leadingComments": null }, "consequent": { "type": "BlockStatement", - "start": 11065, - "end": 11531, + "start": 11128, + "end": 11594, "loc": { "start": { - "line": 289, + "line": 290, "column": 111 }, "end": { - "line": 299, + "line": 300, "column": 5 } }, "body": [ { "type": "VariableDeclaration", - "start": 11121, - "end": 11165, + "start": 11184, + "end": 11228, "loc": { "start": { - "line": 291, + "line": 292, "column": 5 }, "end": { - "line": 291, + "line": 292, "column": 49 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 11125, - "end": 11164, + "start": 11188, + "end": 11227, "loc": { "start": { - "line": 291, + "line": 292, "column": 9 }, "end": { - "line": 291, + "line": 292, "column": 48 } }, "id": { "type": "Identifier", - "start": 11125, - "end": 11134, + "start": 11188, + "end": 11197, "loc": { "start": { - "line": 291, + "line": 292, "column": 9 }, "end": { - "line": 291, + "line": 292, "column": 18 }, "identifierName": "startNode" @@ -61797,58 +61807,58 @@ }, "init": { "type": "CallExpression", - "start": 11137, - "end": 11164, + "start": 11200, + "end": 11227, "loc": { "start": { - "line": 291, + "line": 292, "column": 21 }, "end": { - "line": 291, + "line": 292, "column": 48 } }, "callee": { "type": "MemberExpression", - "start": 11137, - "end": 11152, + "start": 11200, + "end": 11215, "loc": { "start": { - "line": 291, + "line": 292, "column": 21 }, "end": { - "line": 291, + "line": 292, "column": 36 } }, "object": { "type": "ThisExpression", - "start": 11137, - "end": 11141, + "start": 11200, + "end": 11204, "loc": { "start": { - "line": 291, + "line": 292, "column": 21 }, "end": { - "line": 291, + "line": 292, "column": 25 } } }, "property": { "type": "Identifier", - "start": 11142, - "end": 11152, + "start": 11205, + "end": 11215, "loc": { "start": { - "line": 291, + "line": 292, "column": 26 }, "end": { - "line": 291, + "line": 292, "column": 36 }, "identifierName": "tileToNode" @@ -61860,15 +61870,15 @@ "arguments": [ { "type": "Identifier", - "start": 11153, - "end": 11163, + "start": 11216, + "end": 11226, "loc": { "start": { - "line": 291, + "line": 292, "column": 37 }, "end": { - "line": 291, + "line": 292, "column": 47 }, "identifierName": "originTile" @@ -61885,15 +61895,15 @@ { "type": "CommentLine", "value": " Get the start node from the originTile", - "start": 11073, - "end": 11114, + "start": 11136, + "end": 11177, "loc": { "start": { - "line": 290, + "line": 291, "column": 5 }, "end": { - "line": 290, + "line": 291, "column": 46 } } @@ -61903,15 +61913,15 @@ { "type": "CommentLine", "value": " Get the end node from the destinationTile", - "start": 11179, - "end": 11223, + "start": 11242, + "end": 11286, "loc": { "start": { - "line": 293, + "line": 294, "column": 5 }, "end": { - "line": 293, + "line": 294, "column": 49 } } @@ -61920,44 +61930,44 @@ }, { "type": "VariableDeclaration", - "start": 11230, - "end": 11277, + "start": 11293, + "end": 11340, "loc": { "start": { - "line": 294, + "line": 295, "column": 5 }, "end": { - "line": 294, + "line": 295, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 11234, - "end": 11276, + "start": 11297, + "end": 11339, "loc": { "start": { - "line": 294, + "line": 295, "column": 9 }, "end": { - "line": 294, + "line": 295, "column": 51 } }, "id": { "type": "Identifier", - "start": 11234, - "end": 11241, + "start": 11297, + "end": 11304, "loc": { "start": { - "line": 294, + "line": 295, "column": 9 }, "end": { - "line": 294, + "line": 295, "column": 16 }, "identifierName": "endNode" @@ -61967,58 +61977,58 @@ }, "init": { "type": "CallExpression", - "start": 11244, - "end": 11276, + "start": 11307, + "end": 11339, "loc": { "start": { - "line": 294, + "line": 295, "column": 19 }, "end": { - "line": 294, + "line": 295, "column": 51 } }, "callee": { "type": "MemberExpression", - "start": 11244, - "end": 11259, + "start": 11307, + "end": 11322, "loc": { "start": { - "line": 294, + "line": 295, "column": 19 }, "end": { - "line": 294, + "line": 295, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 11244, - "end": 11248, + "start": 11307, + "end": 11311, "loc": { "start": { - "line": 294, + "line": 295, "column": 19 }, "end": { - "line": 294, + "line": 295, "column": 23 } } }, "property": { "type": "Identifier", - "start": 11249, - "end": 11259, + "start": 11312, + "end": 11322, "loc": { "start": { - "line": 294, + "line": 295, "column": 24 }, "end": { - "line": 294, + "line": 295, "column": 34 }, "identifierName": "tileToNode" @@ -62030,15 +62040,15 @@ "arguments": [ { "type": "Identifier", - "start": 11260, - "end": 11275, + "start": 11323, + "end": 11338, "loc": { "start": { - "line": 294, + "line": 295, "column": 35 }, "end": { - "line": 294, + "line": 295, "column": 50 }, "identifierName": "destinationTile" @@ -62055,15 +62065,15 @@ { "type": "CommentLine", "value": " Get the end node from the destinationTile", - "start": 11179, - "end": 11223, + "start": 11242, + "end": 11286, "loc": { "start": { - "line": 293, + "line": 294, "column": 5 }, "end": { - "line": 293, + "line": 294, "column": 49 } } @@ -62073,15 +62083,15 @@ { "type": "CommentLine", "value": " Generate the path for the player", - "start": 11286, - "end": 11321, + "start": 11349, + "end": 11384, "loc": { "start": { - "line": 296, + "line": 297, "column": 5 }, "end": { - "line": 296, + "line": 297, "column": 40 } } @@ -62090,57 +62100,57 @@ }, { "type": "ExpressionStatement", - "start": 11328, - "end": 11420, + "start": 11391, + "end": 11483, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 97 } }, "expression": { "type": "CallExpression", - "start": 11328, - "end": 11419, + "start": 11391, + "end": 11482, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 96 } }, "callee": { "type": "MemberExpression", - "start": 11328, - "end": 11340, + "start": 11391, + "end": 11403, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 11328, - "end": 11332, + "start": 11391, + "end": 11395, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 9 } }, @@ -62148,15 +62158,15 @@ }, "property": { "type": "Identifier", - "start": 11333, - "end": 11340, + "start": 11396, + "end": 11403, "loc": { "start": { - "line": 297, + "line": 298, "column": 10 }, "end": { - "line": 297, + "line": 298, "column": 17 }, "identifierName": "getPath" @@ -62169,15 +62179,15 @@ "arguments": [ { "type": "Identifier", - "start": 11341, - "end": 11350, + "start": 11404, + "end": 11413, "loc": { "start": { - "line": 297, + "line": 298, "column": 18 }, "end": { - "line": 297, + "line": 298, "column": 27 }, "identifierName": "pInstance" @@ -62186,30 +62196,30 @@ }, { "type": "ObjectExpression", - "start": 11352, - "end": 11386, + "start": 11415, + "end": 11449, "loc": { "start": { - "line": 297, + "line": 298, "column": 29 }, "end": { - "line": 297, + "line": 298, "column": 63 } }, "properties": [ { "type": "ObjectProperty", - "start": 11354, - "end": 11368, + "start": 11417, + "end": 11431, "loc": { "start": { - "line": 297, + "line": 298, "column": 31 }, "end": { - "line": 297, + "line": 298, "column": 45 } }, @@ -62218,15 +62228,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11354, - "end": 11355, + "start": 11417, + "end": 11418, "loc": { "start": { - "line": 297, + "line": 298, "column": 31 }, "end": { - "line": 297, + "line": 298, "column": 32 }, "identifierName": "x" @@ -62235,29 +62245,29 @@ }, "value": { "type": "MemberExpression", - "start": 11357, - "end": 11368, + "start": 11420, + "end": 11431, "loc": { "start": { - "line": 297, + "line": 298, "column": 34 }, "end": { - "line": 297, + "line": 298, "column": 45 } }, "object": { "type": "Identifier", - "start": 11357, - "end": 11366, + "start": 11420, + "end": 11429, "loc": { "start": { - "line": 297, + "line": 298, "column": 34 }, "end": { - "line": 297, + "line": 298, "column": 43 }, "identifierName": "startNode" @@ -62266,15 +62276,15 @@ }, "property": { "type": "Identifier", - "start": 11367, - "end": 11368, + "start": 11430, + "end": 11431, "loc": { "start": { - "line": 297, + "line": 298, "column": 44 }, "end": { - "line": 297, + "line": 298, "column": 45 }, "identifierName": "x" @@ -62286,15 +62296,15 @@ }, { "type": "ObjectProperty", - "start": 11370, - "end": 11384, + "start": 11433, + "end": 11447, "loc": { "start": { - "line": 297, + "line": 298, "column": 47 }, "end": { - "line": 297, + "line": 298, "column": 61 } }, @@ -62303,15 +62313,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11370, - "end": 11371, + "start": 11433, + "end": 11434, "loc": { "start": { - "line": 297, + "line": 298, "column": 47 }, "end": { - "line": 297, + "line": 298, "column": 48 }, "identifierName": "y" @@ -62320,29 +62330,29 @@ }, "value": { "type": "MemberExpression", - "start": 11373, - "end": 11384, + "start": 11436, + "end": 11447, "loc": { "start": { - "line": 297, + "line": 298, "column": 50 }, "end": { - "line": 297, + "line": 298, "column": 61 } }, "object": { "type": "Identifier", - "start": 11373, - "end": 11382, + "start": 11436, + "end": 11445, "loc": { "start": { - "line": 297, + "line": 298, "column": 50 }, "end": { - "line": 297, + "line": 298, "column": 59 }, "identifierName": "startNode" @@ -62351,15 +62361,15 @@ }, "property": { "type": "Identifier", - "start": 11383, - "end": 11384, + "start": 11446, + "end": 11447, "loc": { "start": { - "line": 297, + "line": 298, "column": 60 }, "end": { - "line": 297, + "line": 298, "column": 61 }, "identifierName": "y" @@ -62373,30 +62383,30 @@ }, { "type": "ObjectExpression", - "start": 11388, - "end": 11418, + "start": 11451, + "end": 11481, "loc": { "start": { - "line": 297, + "line": 298, "column": 65 }, "end": { - "line": 297, + "line": 298, "column": 95 } }, "properties": [ { "type": "ObjectProperty", - "start": 11390, - "end": 11402, + "start": 11453, + "end": 11465, "loc": { "start": { - "line": 297, + "line": 298, "column": 67 }, "end": { - "line": 297, + "line": 298, "column": 79 } }, @@ -62405,15 +62415,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11390, - "end": 11391, + "start": 11453, + "end": 11454, "loc": { "start": { - "line": 297, + "line": 298, "column": 67 }, "end": { - "line": 297, + "line": 298, "column": 68 }, "identifierName": "x" @@ -62422,29 +62432,29 @@ }, "value": { "type": "MemberExpression", - "start": 11393, - "end": 11402, + "start": 11456, + "end": 11465, "loc": { "start": { - "line": 297, + "line": 298, "column": 70 }, "end": { - "line": 297, + "line": 298, "column": 79 } }, "object": { "type": "Identifier", - "start": 11393, - "end": 11400, + "start": 11456, + "end": 11463, "loc": { "start": { - "line": 297, + "line": 298, "column": 70 }, "end": { - "line": 297, + "line": 298, "column": 77 }, "identifierName": "endNode" @@ -62453,15 +62463,15 @@ }, "property": { "type": "Identifier", - "start": 11401, - "end": 11402, + "start": 11464, + "end": 11465, "loc": { "start": { - "line": 297, + "line": 298, "column": 78 }, "end": { - "line": 297, + "line": 298, "column": 79 }, "identifierName": "x" @@ -62473,15 +62483,15 @@ }, { "type": "ObjectProperty", - "start": 11404, - "end": 11416, + "start": 11467, + "end": 11479, "loc": { "start": { - "line": 297, + "line": 298, "column": 81 }, "end": { - "line": 297, + "line": 298, "column": 93 } }, @@ -62490,15 +62500,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 11404, - "end": 11405, + "start": 11467, + "end": 11468, "loc": { "start": { - "line": 297, + "line": 298, "column": 81 }, "end": { - "line": 297, + "line": 298, "column": 82 }, "identifierName": "y" @@ -62507,29 +62517,29 @@ }, "value": { "type": "MemberExpression", - "start": 11407, - "end": 11416, + "start": 11470, + "end": 11479, "loc": { "start": { - "line": 297, + "line": 298, "column": 84 }, "end": { - "line": 297, + "line": 298, "column": 93 } }, "object": { "type": "Identifier", - "start": 11407, - "end": 11414, + "start": 11470, + "end": 11477, "loc": { "start": { - "line": 297, + "line": 298, "column": 84 }, "end": { - "line": 297, + "line": 298, "column": 91 }, "identifierName": "endNode" @@ -62538,15 +62548,15 @@ }, "property": { "type": "Identifier", - "start": 11415, - "end": 11416, + "start": 11478, + "end": 11479, "loc": { "start": { - "line": 297, + "line": 298, "column": 92 }, "end": { - "line": 297, + "line": 298, "column": 93 }, "identifierName": "y" @@ -62565,15 +62575,15 @@ { "type": "CommentLine", "value": " Generate the path for the player", - "start": 11286, - "end": 11321, + "start": 11349, + "end": 11384, "loc": { "start": { - "line": 296, + "line": 297, "column": 5 }, "end": { - "line": 296, + "line": 297, "column": 40 } } @@ -62583,15 +62593,15 @@ { "type": "CommentLine", "value": " If the origin tile or end tile is not accessible to be walked on then return no path found.", - "start": 11430, - "end": 11524, + "start": 11493, + "end": 11587, "loc": { "start": { - "line": 298, + "line": 299, "column": 4 }, "end": { - "line": 298, + "line": 299, "column": 98 } } @@ -62603,11 +62613,11 @@ }, "alternate": { "type": "BlockStatement", - "start": 11537, - "end": 11754, + "start": 11600, + "end": 11800, "loc": { "start": { - "line": 299, + "line": 300, "column": 11 }, "end": { @@ -62618,43 +62628,43 @@ "body": [ { "type": "IfStatement", - "start": 11589, - "end": 11706, + "start": 11649, + "end": 11766, "loc": { "start": { - "line": 301, + "line": 302, "column": 5 }, "end": { - "line": 303, + "line": 304, "column": 6 } }, "test": { "type": "BinaryExpression", - "start": 11593, - "end": 11650, + "start": 11653, + "end": 11710, "loc": { "start": { - "line": 301, + "line": 302, "column": 9 }, "end": { - "line": 301, + "line": 302, "column": 66 } }, "left": { "type": "UnaryExpression", - "start": 11593, - "end": 11635, + "start": 11653, + "end": 11695, "loc": { "start": { - "line": 301, + "line": 302, "column": 9 }, "end": { - "line": 301, + "line": 302, "column": 51 } }, @@ -62662,43 +62672,43 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 11600, - "end": 11634, + "start": 11660, + "end": 11694, "loc": { "start": { - "line": 301, + "line": 302, "column": 16 }, "end": { - "line": 301, + "line": 302, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 11600, - "end": 11619, + "start": 11660, + "end": 11679, "loc": { "start": { - "line": 301, + "line": 302, "column": 16 }, "end": { - "line": 301, + "line": 302, "column": 35 } }, "object": { "type": "Identifier", - "start": 11600, - "end": 11612, + "start": 11660, + "end": 11672, "loc": { "start": { - "line": 301, + "line": 302, "column": 16 }, "end": { - "line": 301, + "line": 302, "column": 28 }, "identifierName": "instanceData" @@ -62708,15 +62718,15 @@ }, "property": { "type": "Identifier", - "start": 11613, - "end": 11619, + "start": 11673, + "end": 11679, "loc": { "start": { - "line": 301, + "line": 302, "column": 29 }, "end": { - "line": 301, + "line": 302, "column": 35 }, "identifierName": "events" @@ -62728,15 +62738,15 @@ }, "property": { "type": "Identifier", - "start": 11620, - "end": 11634, + "start": 11680, + "end": 11694, "loc": { "start": { - "line": 301, + "line": 302, "column": 36 }, "end": { - "line": 301, + "line": 302, "column": 50 }, "identifierName": "onPathNotFound" @@ -62747,7 +62757,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 11599 + "parenStart": 11659 } }, "extra": { @@ -62758,15 +62768,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 11640, - "end": 11650, + "start": 11700, + "end": 11710, "loc": { "start": { - "line": 301, + "line": 302, "column": 56 }, "end": { - "line": 301, + "line": 302, "column": 66 } }, @@ -62780,86 +62790,86 @@ }, "consequent": { "type": "BlockStatement", - "start": 11652, - "end": 11706, + "start": 11712, + "end": 11766, "loc": { "start": { - "line": 301, + "line": 302, "column": 68 }, "end": { - "line": 303, + "line": 304, "column": 6 } }, "body": [ { "type": "ExpressionStatement", - "start": 11661, - "end": 11698, + "start": 11721, + "end": 11758, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 43 } }, "expression": { "type": "CallExpression", - "start": 11661, - "end": 11697, + "start": 11721, + "end": 11757, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 42 } }, "callee": { "type": "MemberExpression", - "start": 11661, - "end": 11695, + "start": 11721, + "end": 11755, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 11661, - "end": 11680, + "start": 11721, + "end": 11740, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 25 } }, "object": { "type": "Identifier", - "start": 11661, - "end": 11673, + "start": 11721, + "end": 11733, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 18 }, "identifierName": "instanceData" @@ -62868,15 +62878,15 @@ }, "property": { "type": "Identifier", - "start": 11674, - "end": 11680, + "start": 11734, + "end": 11740, "loc": { "start": { - "line": 302, + "line": 303, "column": 19 }, "end": { - "line": 302, + "line": 303, "column": 25 }, "identifierName": "events" @@ -62887,15 +62897,15 @@ }, "property": { "type": "Identifier", - "start": 11681, - "end": 11695, + "start": 11741, + "end": 11755, "loc": { "start": { - "line": 302, + "line": 303, "column": 26 }, "end": { - "line": 302, + "line": 303, "column": 40 }, "identifierName": "onPathNotFound" @@ -62914,17 +62924,17 @@ "leadingComments": [ { "type": "CommentLine", - "value": " So fire the path not found event.\t", - "start": 11545, - "end": 11582, + "value": " Fire the path not found event.\t", + "start": 11608, + "end": 11642, "loc": { "start": { - "line": 300, + "line": 301, "column": 5 }, "end": { - "line": 300, - "column": 42 + "line": 301, + "column": 39 } } } @@ -62932,72 +62942,72 @@ }, { "type": "ExpressionStatement", - "start": 11713, - "end": 11733, + "start": 11773, + "end": 11793, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 25 } }, "expression": { "type": "CallExpression", - "start": 11713, - "end": 11732, + "start": 11773, + "end": 11792, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 24 } }, "callee": { "type": "MemberExpression", - "start": 11713, - "end": 11721, + "start": 11773, + "end": 11781, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 13 } }, "object": { "type": "ThisExpression", - "start": 11713, - "end": 11717, + "start": 11773, + "end": 11777, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 9 } } }, "property": { "type": "Identifier", - "start": 11718, - "end": 11721, + "start": 11778, + "end": 11781, "loc": { "start": { - "line": 304, + "line": 305, "column": 10 }, "end": { - "line": 304, + "line": 305, "column": 13 }, "identifierName": "end" @@ -63009,15 +63019,15 @@ "arguments": [ { "type": "Identifier", - "start": 11722, - "end": 11731, + "start": 11782, + "end": 11791, "loc": { "start": { - "line": 304, + "line": 305, "column": 14 }, "end": { - "line": 304, + "line": 305, "column": 23 }, "identifierName": "pInstance" @@ -63026,34 +63036,36 @@ } ] } - }, - { - "type": "ReturnStatement", - "start": 11740, - "end": 11747, - "loc": { - "start": { - "line": 305, - "column": 5 - }, - "end": { - "line": 305, - "column": 12 - } - }, - "argument": null } ], "directives": [] - } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Check if the origin and end tile are accessible", + "start": 10965, + "end": 11015, + "loc": { + "start": { + "line": 289, + "column": 4 + }, + "end": { + "line": 289, + "column": 54 + } + } + } + ] } ], "directives": [] }, "alternate": { "type": "BlockStatement", - "start": 11766, - "end": 11887, + "start": 11812, + "end": 11933, "loc": { "start": { "line": 307, @@ -63067,8 +63079,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11773, - "end": 11868, + "start": 11819, + "end": 11914, "loc": { "start": { "line": 308, @@ -63081,8 +63093,8 @@ }, "expression": { "type": "CallExpression", - "start": 11773, - "end": 11867, + "start": 11819, + "end": 11913, "loc": { "start": { "line": 308, @@ -63095,8 +63107,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11773, - "end": 11815, + "start": 11819, + "end": 11861, "loc": { "start": { "line": 308, @@ -63109,8 +63121,8 @@ }, "object": { "type": "CallExpression", - "start": 11773, - "end": 11809, + "start": 11819, + "end": 11855, "loc": { "start": { "line": 308, @@ -63123,8 +63135,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11773, - "end": 11791, + "start": 11819, + "end": 11837, "loc": { "start": { "line": 308, @@ -63137,8 +63149,8 @@ }, "object": { "type": "MemberExpression", - "start": 11773, - "end": 11784, + "start": 11819, + "end": 11830, "loc": { "start": { "line": 308, @@ -63151,8 +63163,8 @@ }, "object": { "type": "ThisExpression", - "start": 11773, - "end": 11777, + "start": 11819, + "end": 11823, "loc": { "start": { "line": 308, @@ -63166,8 +63178,8 @@ }, "property": { "type": "Identifier", - "start": 11778, - "end": 11784, + "start": 11824, + "end": 11830, "loc": { "start": { "line": 308, @@ -63185,8 +63197,8 @@ }, "property": { "type": "Identifier", - "start": 11785, - "end": 11791, + "start": 11831, + "end": 11837, "loc": { "start": { "line": 308, @@ -63205,8 +63217,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11792, - "end": 11808, + "start": 11838, + "end": 11854, "loc": { "start": { "line": 308, @@ -63227,8 +63239,8 @@ }, "property": { "type": "Identifier", - "start": 11810, - "end": 11815, + "start": 11856, + "end": 11861, "loc": { "start": { "line": 308, @@ -63247,8 +63259,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11816, - "end": 11866, + "start": 11862, + "end": 11912, "loc": { "start": { "line": 308, @@ -63270,8 +63282,8 @@ }, { "type": "ReturnStatement", - "start": 11874, - "end": 11881, + "start": 11920, + "end": 11927, "loc": { "start": { "line": 309, @@ -63291,8 +63303,8 @@ { "type": "CommentLine", "value": " Make sure these have resolved to actual tiles.", - "start": 10862, - "end": 10911, + "start": 10869, + "end": 10918, "loc": { "start": { "line": 287, @@ -63311,8 +63323,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 11898, - "end": 12011, + "start": 11944, + "end": 12057, "loc": { "start": { "line": 311, @@ -63326,8 +63338,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 11904, - "end": 12006, + "start": 11950, + "end": 12052, "loc": { "start": { "line": 312, @@ -63340,8 +63352,8 @@ }, "expression": { "type": "CallExpression", - "start": 11904, - "end": 12005, + "start": 11950, + "end": 12051, "loc": { "start": { "line": 312, @@ -63354,8 +63366,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11904, - "end": 11946, + "start": 11950, + "end": 11992, "loc": { "start": { "line": 312, @@ -63368,8 +63380,8 @@ }, "object": { "type": "CallExpression", - "start": 11904, - "end": 11940, + "start": 11950, + "end": 11986, "loc": { "start": { "line": 312, @@ -63382,8 +63394,8 @@ }, "callee": { "type": "MemberExpression", - "start": 11904, - "end": 11922, + "start": 11950, + "end": 11968, "loc": { "start": { "line": 312, @@ -63396,8 +63408,8 @@ }, "object": { "type": "MemberExpression", - "start": 11904, - "end": 11915, + "start": 11950, + "end": 11961, "loc": { "start": { "line": 312, @@ -63410,8 +63422,8 @@ }, "object": { "type": "ThisExpression", - "start": 11904, - "end": 11908, + "start": 11950, + "end": 11954, "loc": { "start": { "line": 312, @@ -63425,8 +63437,8 @@ }, "property": { "type": "Identifier", - "start": 11909, - "end": 11915, + "start": 11955, + "end": 11961, "loc": { "start": { "line": 312, @@ -63444,8 +63456,8 @@ }, "property": { "type": "Identifier", - "start": 11916, - "end": 11922, + "start": 11962, + "end": 11968, "loc": { "start": { "line": 312, @@ -63464,8 +63476,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11923, - "end": 11939, + "start": 11969, + "end": 11985, "loc": { "start": { "line": 312, @@ -63486,8 +63498,8 @@ }, "property": { "type": "Identifier", - "start": 11941, - "end": 11946, + "start": 11987, + "end": 11992, "loc": { "start": { "line": 312, @@ -63506,8 +63518,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 11947, - "end": 12004, + "start": 11993, + "end": 12050, "loc": { "start": { "line": 312, @@ -63557,8 +63569,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t ", - "start": 12018, - "end": 12134, + "start": 12064, + "end": 12180, "loc": { "start": { "line": 315, @@ -63574,8 +63586,8 @@ }, { "type": "ClassMethod", - "start": 12137, - "end": 12300, + "start": 12183, + "end": 12346, "loc": { "start": { "line": 320, @@ -63590,8 +63602,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 12137, - "end": 12142, + "start": 12183, + "end": 12188, "loc": { "start": { "line": 320, @@ -63614,8 +63626,8 @@ "params": [ { "type": "Identifier", - "start": 12143, - "end": 12152, + "start": 12189, + "end": 12198, "loc": { "start": { "line": 320, @@ -63632,8 +63644,8 @@ ], "body": { "type": "BlockStatement", - "start": 12154, - "end": 12300, + "start": 12200, + "end": 12346, "loc": { "start": { "line": 320, @@ -63647,8 +63659,8 @@ "body": [ { "type": "IfStatement", - "start": 12201, - "end": 12296, + "start": 12247, + "end": 12342, "loc": { "start": { "line": 322, @@ -63661,8 +63673,8 @@ }, "test": { "type": "UnaryExpression", - "start": 12205, - "end": 12246, + "start": 12251, + "end": 12292, "loc": { "start": { "line": 322, @@ -63677,8 +63689,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 12206, - "end": 12246, + "start": 12252, + "end": 12292, "loc": { "start": { "line": 322, @@ -63691,8 +63703,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12206, - "end": 12235, + "start": 12252, + "end": 12281, "loc": { "start": { "line": 322, @@ -63705,8 +63717,8 @@ }, "object": { "type": "MemberExpression", - "start": 12206, - "end": 12226, + "start": 12252, + "end": 12272, "loc": { "start": { "line": 322, @@ -63719,8 +63731,8 @@ }, "object": { "type": "ThisExpression", - "start": 12206, - "end": 12210, + "start": 12252, + "end": 12256, "loc": { "start": { "line": 322, @@ -63735,8 +63747,8 @@ }, "property": { "type": "Identifier", - "start": 12211, - "end": 12226, + "start": 12257, + "end": 12272, "loc": { "start": { "line": 322, @@ -63755,8 +63767,8 @@ }, "property": { "type": "Identifier", - "start": 12227, - "end": 12235, + "start": 12273, + "end": 12281, "loc": { "start": { "line": 322, @@ -63776,8 +63788,8 @@ "arguments": [ { "type": "Identifier", - "start": 12236, - "end": 12245, + "start": 12282, + "end": 12291, "loc": { "start": { "line": 322, @@ -63801,8 +63813,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 12248, - "end": 12296, + "start": 12294, + "end": 12342, "loc": { "start": { "line": 322, @@ -63816,8 +63828,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 12254, - "end": 12291, + "start": 12300, + "end": 12337, "loc": { "start": { "line": 323, @@ -63830,8 +63842,8 @@ }, "expression": { "type": "CallExpression", - "start": 12254, - "end": 12290, + "start": 12300, + "end": 12336, "loc": { "start": { "line": 323, @@ -63844,8 +63856,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12254, - "end": 12279, + "start": 12300, + "end": 12325, "loc": { "start": { "line": 323, @@ -63858,8 +63870,8 @@ }, "object": { "type": "MemberExpression", - "start": 12254, - "end": 12274, + "start": 12300, + "end": 12320, "loc": { "start": { "line": 323, @@ -63872,8 +63884,8 @@ }, "object": { "type": "ThisExpression", - "start": 12254, - "end": 12258, + "start": 12300, + "end": 12304, "loc": { "start": { "line": 323, @@ -63887,8 +63899,8 @@ }, "property": { "type": "Identifier", - "start": 12259, - "end": 12274, + "start": 12305, + "end": 12320, "loc": { "start": { "line": 323, @@ -63906,8 +63918,8 @@ }, "property": { "type": "Identifier", - "start": 12275, - "end": 12279, + "start": 12321, + "end": 12325, "loc": { "start": { "line": 323, @@ -63926,8 +63938,8 @@ "arguments": [ { "type": "Identifier", - "start": 12280, - "end": 12289, + "start": 12326, + "end": 12335, "loc": { "start": { "line": 323, @@ -63952,8 +63964,8 @@ { "type": "CommentLine", "value": " Add this instance to being tracked.", - "start": 12159, - "end": 12197, + "start": 12205, + "end": 12243, "loc": { "start": { "line": 321, @@ -63975,8 +63987,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t ", - "start": 12018, - "end": 12134, + "start": 12064, + "end": 12180, "loc": { "start": { "line": 315, @@ -63993,8 +64005,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t ", - "start": 12303, - "end": 12448, + "start": 12349, + "end": 12494, "loc": { "start": { "line": 326, @@ -64010,8 +64022,8 @@ }, { "type": "ClassMethod", - "start": 12451, - "end": 12655, + "start": 12497, + "end": 12701, "loc": { "start": { "line": 331, @@ -64026,8 +64038,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 12451, - "end": 12458, + "start": 12497, + "end": 12504, "loc": { "start": { "line": 331, @@ -64050,8 +64062,8 @@ "params": [ { "type": "Identifier", - "start": 12459, - "end": 12468, + "start": 12505, + "end": 12514, "loc": { "start": { "line": 331, @@ -64068,8 +64080,8 @@ ], "body": { "type": "BlockStatement", - "start": 12470, - "end": 12655, + "start": 12516, + "end": 12701, "loc": { "start": { "line": 331, @@ -64083,8 +64095,8 @@ "body": [ { "type": "IfStatement", - "start": 12522, - "end": 12651, + "start": 12568, + "end": 12697, "loc": { "start": { "line": 333, @@ -64097,8 +64109,8 @@ }, "test": { "type": "CallExpression", - "start": 12526, - "end": 12566, + "start": 12572, + "end": 12612, "loc": { "start": { "line": 333, @@ -64111,8 +64123,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12526, - "end": 12555, + "start": 12572, + "end": 12601, "loc": { "start": { "line": 333, @@ -64125,8 +64137,8 @@ }, "object": { "type": "MemberExpression", - "start": 12526, - "end": 12546, + "start": 12572, + "end": 12592, "loc": { "start": { "line": 333, @@ -64139,8 +64151,8 @@ }, "object": { "type": "ThisExpression", - "start": 12526, - "end": 12530, + "start": 12572, + "end": 12576, "loc": { "start": { "line": 333, @@ -64155,8 +64167,8 @@ }, "property": { "type": "Identifier", - "start": 12531, - "end": 12546, + "start": 12577, + "end": 12592, "loc": { "start": { "line": 333, @@ -64175,8 +64187,8 @@ }, "property": { "type": "Identifier", - "start": 12547, - "end": 12555, + "start": 12593, + "end": 12601, "loc": { "start": { "line": 333, @@ -64196,8 +64208,8 @@ "arguments": [ { "type": "Identifier", - "start": 12556, - "end": 12565, + "start": 12602, + "end": 12611, "loc": { "start": { "line": 333, @@ -64216,8 +64228,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 12568, - "end": 12651, + "start": 12614, + "end": 12697, "loc": { "start": { "line": 333, @@ -64231,8 +64243,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 12574, - "end": 12646, + "start": 12620, + "end": 12692, "loc": { "start": { "line": 334, @@ -64245,8 +64257,8 @@ }, "expression": { "type": "CallExpression", - "start": 12574, - "end": 12645, + "start": 12620, + "end": 12691, "loc": { "start": { "line": 334, @@ -64259,8 +64271,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12574, - "end": 12601, + "start": 12620, + "end": 12647, "loc": { "start": { "line": 334, @@ -64273,8 +64285,8 @@ }, "object": { "type": "MemberExpression", - "start": 12574, - "end": 12594, + "start": 12620, + "end": 12640, "loc": { "start": { "line": 334, @@ -64287,8 +64299,8 @@ }, "object": { "type": "ThisExpression", - "start": 12574, - "end": 12578, + "start": 12620, + "end": 12624, "loc": { "start": { "line": 334, @@ -64302,8 +64314,8 @@ }, "property": { "type": "Identifier", - "start": 12579, - "end": 12594, + "start": 12625, + "end": 12640, "loc": { "start": { "line": 334, @@ -64321,8 +64333,8 @@ }, "property": { "type": "Identifier", - "start": 12595, - "end": 12601, + "start": 12641, + "end": 12647, "loc": { "start": { "line": 334, @@ -64341,8 +64353,8 @@ "arguments": [ { "type": "CallExpression", - "start": 12602, - "end": 12641, + "start": 12648, + "end": 12687, "loc": { "start": { "line": 334, @@ -64355,8 +64367,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12602, - "end": 12630, + "start": 12648, + "end": 12676, "loc": { "start": { "line": 334, @@ -64369,8 +64381,8 @@ }, "object": { "type": "MemberExpression", - "start": 12602, - "end": 12622, + "start": 12648, + "end": 12668, "loc": { "start": { "line": 334, @@ -64383,8 +64395,8 @@ }, "object": { "type": "ThisExpression", - "start": 12602, - "end": 12606, + "start": 12648, + "end": 12652, "loc": { "start": { "line": 334, @@ -64398,8 +64410,8 @@ }, "property": { "type": "Identifier", - "start": 12607, - "end": 12622, + "start": 12653, + "end": 12668, "loc": { "start": { "line": 334, @@ -64417,8 +64429,8 @@ }, "property": { "type": "Identifier", - "start": 12623, - "end": 12630, + "start": 12669, + "end": 12676, "loc": { "start": { "line": 334, @@ -64437,8 +64449,8 @@ "arguments": [ { "type": "Identifier", - "start": 12631, - "end": 12640, + "start": 12677, + "end": 12686, "loc": { "start": { "line": 334, @@ -64456,8 +64468,8 @@ }, { "type": "NumericLiteral", - "start": 12643, - "end": 12644, + "start": 12689, + "end": 12690, "loc": { "start": { "line": 334, @@ -64485,8 +64497,8 @@ { "type": "CommentLine", "value": " Remove this instance from being tracked.", - "start": 12475, - "end": 12518, + "start": 12521, + "end": 12564, "loc": { "start": { "line": 332, @@ -64508,8 +64520,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t ", - "start": 12303, - "end": 12448, + "start": 12349, + "end": 12494, "loc": { "start": { "line": 326, @@ -64526,8 +64538,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t ", - "start": 12658, - "end": 12791, + "start": 12704, + "end": 12837, "loc": { "start": { "line": 337, @@ -64543,8 +64555,8 @@ }, { "type": "ClassMethod", - "start": 12794, - "end": 14700, + "start": 12840, + "end": 14743, "loc": { "start": { "line": 341, @@ -64559,8 +64571,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 12794, - "end": 12797, + "start": 12840, + "end": 12843, "loc": { "start": { "line": 341, @@ -64583,8 +64595,8 @@ "params": [ { "type": "Identifier", - "start": 12798, - "end": 12807, + "start": 12844, + "end": 12853, "loc": { "start": { "line": 341, @@ -64601,8 +64613,8 @@ ], "body": { "type": "BlockStatement", - "start": 12809, - "end": 14700, + "start": 12855, + "end": 14743, "loc": { "start": { "line": 341, @@ -64616,8 +64628,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 12860, - "end": 12917, + "start": 12906, + "end": 12963, "loc": { "start": { "line": 343, @@ -64631,8 +64643,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 12866, - "end": 12916, + "start": 12912, + "end": 12962, "loc": { "start": { "line": 343, @@ -64645,8 +64657,8 @@ }, "id": { "type": "Identifier", - "start": 12866, - "end": 12878, + "start": 12912, + "end": 12924, "loc": { "start": { "line": 343, @@ -64663,8 +64675,8 @@ }, "init": { "type": "CallExpression", - "start": 12881, - "end": 12916, + "start": 12927, + "end": 12962, "loc": { "start": { "line": 343, @@ -64677,8 +64689,8 @@ }, "callee": { "type": "MemberExpression", - "start": 12881, - "end": 12905, + "start": 12927, + "end": 12951, "loc": { "start": { "line": 343, @@ -64691,8 +64703,8 @@ }, "object": { "type": "MemberExpression", - "start": 12881, - "end": 12901, + "start": 12927, + "end": 12947, "loc": { "start": { "line": 343, @@ -64705,8 +64717,8 @@ }, "object": { "type": "ThisExpression", - "start": 12881, - "end": 12885, + "start": 12927, + "end": 12931, "loc": { "start": { "line": 343, @@ -64720,8 +64732,8 @@ }, "property": { "type": "Identifier", - "start": 12886, - "end": 12901, + "start": 12932, + "end": 12947, "loc": { "start": { "line": 343, @@ -64739,8 +64751,8 @@ }, "property": { "type": "Identifier", - "start": 12902, - "end": 12905, + "start": 12948, + "end": 12951, "loc": { "start": { "line": 343, @@ -64759,8 +64771,8 @@ "arguments": [ { "type": "Identifier", - "start": 12906, - "end": 12915, + "start": 12952, + "end": 12961, "loc": { "start": { "line": 343, @@ -64784,8 +64796,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 12814, - "end": 12856, + "start": 12860, + "end": 12902, "loc": { "start": { "line": 342, @@ -64801,8 +64813,8 @@ }, { "type": "IfStatement", - "start": 12921, - "end": 14696, + "start": 12967, + "end": 14739, "loc": { "start": { "line": 344, @@ -64815,8 +64827,8 @@ }, "test": { "type": "Identifier", - "start": 12925, - "end": 12937, + "start": 12971, + "end": 12983, "loc": { "start": { "line": 344, @@ -64832,8 +64844,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 12939, - "end": 14549, + "start": 12985, + "end": 14592, "loc": { "start": { "line": 344, @@ -64847,8 +64859,8 @@ "body": [ { "type": "IfStatement", - "start": 13061, - "end": 13186, + "start": 13107, + "end": 13232, "loc": { "start": { "line": 346, @@ -64861,8 +64873,8 @@ }, "test": { "type": "MemberExpression", - "start": 13065, - "end": 13084, + "start": 13111, + "end": 13130, "loc": { "start": { "line": 346, @@ -64875,8 +64887,8 @@ }, "object": { "type": "Identifier", - "start": 13065, - "end": 13077, + "start": 13111, + "end": 13123, "loc": { "start": { "line": 346, @@ -64893,8 +64905,8 @@ }, "property": { "type": "Identifier", - "start": 13078, - "end": 13084, + "start": 13124, + "end": 13130, "loc": { "start": { "line": 346, @@ -64913,8 +64925,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 13086, - "end": 13186, + "start": 13132, + "end": 13232, "loc": { "start": { "line": 346, @@ -64928,8 +64940,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 13093, - "end": 13147, + "start": 13139, + "end": 13193, "loc": { "start": { "line": 347, @@ -64942,8 +64954,8 @@ }, "expression": { "type": "CallExpression", - "start": 13093, - "end": 13146, + "start": 13139, + "end": 13192, "loc": { "start": { "line": 347, @@ -64956,8 +64968,8 @@ }, "callee": { "type": "MemberExpression", - "start": 13093, - "end": 13125, + "start": 13139, + "end": 13171, "loc": { "start": { "line": 347, @@ -64970,8 +64982,8 @@ }, "object": { "type": "MemberExpression", - "start": 13093, - "end": 13114, + "start": 13139, + "end": 13160, "loc": { "start": { "line": 347, @@ -64984,8 +64996,8 @@ }, "object": { "type": "Identifier", - "start": 13093, - "end": 13105, + "start": 13139, + "end": 13151, "loc": { "start": { "line": 347, @@ -65001,8 +65013,8 @@ }, "property": { "type": "Identifier", - "start": 13106, - "end": 13114, + "start": 13152, + "end": 13160, "loc": { "start": { "line": 347, @@ -65020,8 +65032,8 @@ }, "property": { "type": "Identifier", - "start": 13115, - "end": 13125, + "start": 13161, + "end": 13171, "loc": { "start": { "line": 347, @@ -65040,8 +65052,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 13126, - "end": 13145, + "start": 13172, + "end": 13191, "loc": { "start": { "line": 347, @@ -65054,8 +65066,8 @@ }, "object": { "type": "Identifier", - "start": 13126, - "end": 13138, + "start": 13172, + "end": 13184, "loc": { "start": { "line": 347, @@ -65071,8 +65083,8 @@ }, "property": { "type": "Identifier", - "start": 13139, - "end": 13145, + "start": 13185, + "end": 13191, "loc": { "start": { "line": 347, @@ -65093,8 +65105,8 @@ }, { "type": "ExpressionStatement", - "start": 13153, - "end": 13180, + "start": 13199, + "end": 13226, "loc": { "start": { "line": 348, @@ -65107,8 +65119,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13153, - "end": 13179, + "start": 13199, + "end": 13225, "loc": { "start": { "line": 348, @@ -65122,8 +65134,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13153, - "end": 13172, + "start": 13199, + "end": 13218, "loc": { "start": { "line": 348, @@ -65136,8 +65148,8 @@ }, "object": { "type": "Identifier", - "start": 13153, - "end": 13165, + "start": 13199, + "end": 13211, "loc": { "start": { "line": 348, @@ -65153,8 +65165,8 @@ }, "property": { "type": "Identifier", - "start": 13166, - "end": 13172, + "start": 13212, + "end": 13218, "loc": { "start": { "line": 348, @@ -65172,8 +65184,8 @@ }, "right": { "type": "NullLiteral", - "start": 13175, - "end": 13179, + "start": 13221, + "end": 13225, "loc": { "start": { "line": 348, @@ -65196,8 +65208,8 @@ { "type": "CommentLine", "value": " We are ending the pathfinding. So we get the path ID so we can cancel calculations being made for this path.", - "start": 12945, - "end": 13056, + "start": 12991, + "end": 13102, "loc": { "start": { "line": 345, @@ -65214,8 +65226,8 @@ { "type": "CommentLine", "value": " Disable diagonals in the event they were enabled in a previous call", - "start": 13191, - "end": 13261, + "start": 13237, + "end": 13307, "loc": { "start": { "line": 350, @@ -65231,8 +65243,8 @@ }, { "type": "ExpressionStatement", - "start": 13266, - "end": 13307, + "start": 13312, + "end": 13353, "loc": { "start": { "line": 351, @@ -65245,8 +65257,8 @@ }, "expression": { "type": "CallExpression", - "start": 13266, - "end": 13306, + "start": 13312, + "end": 13352, "loc": { "start": { "line": 351, @@ -65259,8 +65271,8 @@ }, "callee": { "type": "MemberExpression", - "start": 13266, - "end": 13304, + "start": 13312, + "end": 13350, "loc": { "start": { "line": 351, @@ -65273,8 +65285,8 @@ }, "object": { "type": "MemberExpression", - "start": 13266, - "end": 13287, + "start": 13312, + "end": 13333, "loc": { "start": { "line": 351, @@ -65287,8 +65299,8 @@ }, "object": { "type": "Identifier", - "start": 13266, - "end": 13278, + "start": 13312, + "end": 13324, "loc": { "start": { "line": 351, @@ -65305,8 +65317,8 @@ }, "property": { "type": "Identifier", - "start": 13279, - "end": 13287, + "start": 13325, + "end": 13333, "loc": { "start": { "line": 351, @@ -65325,8 +65337,8 @@ }, "property": { "type": "Identifier", - "start": 13288, - "end": 13304, + "start": 13334, + "end": 13350, "loc": { "start": { "line": 351, @@ -65350,8 +65362,8 @@ { "type": "CommentLine", "value": " Disable diagonals in the event they were enabled in a previous call", - "start": 13191, - "end": 13261, + "start": 13237, + "end": 13307, "loc": { "start": { "line": 350, @@ -65368,8 +65380,8 @@ { "type": "CommentLine", "value": " Disable corner cutting in the event it was enabled in a previous call", - "start": 13312, - "end": 13384, + "start": 13358, + "end": 13430, "loc": { "start": { "line": 352, @@ -65385,8 +65397,8 @@ }, { "type": "ExpressionStatement", - "start": 13389, - "end": 13434, + "start": 13435, + "end": 13480, "loc": { "start": { "line": 353, @@ -65399,8 +65411,8 @@ }, "expression": { "type": "CallExpression", - "start": 13389, - "end": 13433, + "start": 13435, + "end": 13479, "loc": { "start": { "line": 353, @@ -65413,8 +65425,8 @@ }, "callee": { "type": "MemberExpression", - "start": 13389, - "end": 13431, + "start": 13435, + "end": 13477, "loc": { "start": { "line": 353, @@ -65427,8 +65439,8 @@ }, "object": { "type": "MemberExpression", - "start": 13389, - "end": 13410, + "start": 13435, + "end": 13456, "loc": { "start": { "line": 353, @@ -65441,8 +65453,8 @@ }, "object": { "type": "Identifier", - "start": 13389, - "end": 13401, + "start": 13435, + "end": 13447, "loc": { "start": { "line": 353, @@ -65459,8 +65471,8 @@ }, "property": { "type": "Identifier", - "start": 13402, - "end": 13410, + "start": 13448, + "end": 13456, "loc": { "start": { "line": 353, @@ -65479,8 +65491,8 @@ }, "property": { "type": "Identifier", - "start": 13411, - "end": 13431, + "start": 13457, + "end": 13477, "loc": { "start": { "line": 353, @@ -65504,8 +65516,8 @@ { "type": "CommentLine", "value": " Disable corner cutting in the event it was enabled in a previous call", - "start": 13312, - "end": 13384, + "start": 13358, + "end": 13430, "loc": { "start": { "line": 352, @@ -65522,8 +65534,8 @@ { "type": "CommentLine", "value": " Reset trajectory data", - "start": 13439, - "end": 13463, + "start": 13485, + "end": 13509, "loc": { "start": { "line": 354, @@ -65539,8 +65551,8 @@ }, { "type": "ExpressionStatement", - "start": 13468, - "end": 13498, + "start": 13514, + "end": 13544, "loc": { "start": { "line": 355, @@ -65553,8 +65565,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13468, - "end": 13497, + "start": 13514, + "end": 13543, "loc": { "start": { "line": 355, @@ -65568,8 +65580,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13468, - "end": 13493, + "start": 13514, + "end": 13539, "loc": { "start": { "line": 355, @@ -65582,8 +65594,8 @@ }, "object": { "type": "MemberExpression", - "start": 13468, - "end": 13491, + "start": 13514, + "end": 13537, "loc": { "start": { "line": 355, @@ -65596,8 +65608,8 @@ }, "object": { "type": "Identifier", - "start": 13468, - "end": 13480, + "start": 13514, + "end": 13526, "loc": { "start": { "line": 355, @@ -65614,8 +65626,8 @@ }, "property": { "type": "Identifier", - "start": 13481, - "end": 13491, + "start": 13527, + "end": 13537, "loc": { "start": { "line": 355, @@ -65634,8 +65646,8 @@ }, "property": { "type": "Identifier", - "start": 13492, - "end": 13493, + "start": 13538, + "end": 13539, "loc": { "start": { "line": 355, @@ -65654,8 +65666,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13496, - "end": 13497, + "start": 13542, + "end": 13543, "loc": { "start": { "line": 355, @@ -65678,8 +65690,8 @@ { "type": "CommentLine", "value": " Reset trajectory data", - "start": 13439, - "end": 13463, + "start": 13485, + "end": 13509, "loc": { "start": { "line": 354, @@ -65695,8 +65707,8 @@ }, { "type": "ExpressionStatement", - "start": 13503, - "end": 13533, + "start": 13549, + "end": 13579, "loc": { "start": { "line": 356, @@ -65709,8 +65721,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13503, - "end": 13532, + "start": 13549, + "end": 13578, "loc": { "start": { "line": 356, @@ -65724,8 +65736,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13503, - "end": 13528, + "start": 13549, + "end": 13574, "loc": { "start": { "line": 356, @@ -65738,8 +65750,8 @@ }, "object": { "type": "MemberExpression", - "start": 13503, - "end": 13526, + "start": 13549, + "end": 13572, "loc": { "start": { "line": 356, @@ -65752,8 +65764,8 @@ }, "object": { "type": "Identifier", - "start": 13503, - "end": 13515, + "start": 13549, + "end": 13561, "loc": { "start": { "line": 356, @@ -65769,8 +65781,8 @@ }, "property": { "type": "Identifier", - "start": 13516, - "end": 13526, + "start": 13562, + "end": 13572, "loc": { "start": { "line": 356, @@ -65788,8 +65800,8 @@ }, "property": { "type": "Identifier", - "start": 13527, - "end": 13528, + "start": 13573, + "end": 13574, "loc": { "start": { "line": 356, @@ -65807,8 +65819,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13531, - "end": 13532, + "start": 13577, + "end": 13578, "loc": { "start": { "line": 356, @@ -65829,8 +65841,8 @@ }, { "type": "ExpressionStatement", - "start": 13538, - "end": 13572, + "start": 13584, + "end": 13618, "loc": { "start": { "line": 357, @@ -65843,8 +65855,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13538, - "end": 13571, + "start": 13584, + "end": 13617, "loc": { "start": { "line": 357, @@ -65858,8 +65870,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13538, - "end": 13567, + "start": 13584, + "end": 13613, "loc": { "start": { "line": 357, @@ -65872,8 +65884,8 @@ }, "object": { "type": "MemberExpression", - "start": 13538, - "end": 13561, + "start": 13584, + "end": 13607, "loc": { "start": { "line": 357, @@ -65886,8 +65898,8 @@ }, "object": { "type": "Identifier", - "start": 13538, - "end": 13550, + "start": 13584, + "end": 13596, "loc": { "start": { "line": 357, @@ -65903,8 +65915,8 @@ }, "property": { "type": "Identifier", - "start": 13551, - "end": 13561, + "start": 13597, + "end": 13607, "loc": { "start": { "line": 357, @@ -65922,8 +65934,8 @@ }, "property": { "type": "Identifier", - "start": 13562, - "end": 13567, + "start": 13608, + "end": 13613, "loc": { "start": { "line": 357, @@ -65941,8 +65953,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13570, - "end": 13571, + "start": 13616, + "end": 13617, "loc": { "start": { "line": 357, @@ -65963,8 +65975,8 @@ }, { "type": "ExpressionStatement", - "start": 13577, - "end": 13620, + "start": 13623, + "end": 13666, "loc": { "start": { "line": 358, @@ -65977,8 +65989,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13577, - "end": 13619, + "start": 13623, + "end": 13665, "loc": { "start": { "line": 358, @@ -65992,8 +66004,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13577, - "end": 13612, + "start": 13623, + "end": 13658, "loc": { "start": { "line": 358, @@ -66006,8 +66018,8 @@ }, "object": { "type": "MemberExpression", - "start": 13577, - "end": 13600, + "start": 13623, + "end": 13646, "loc": { "start": { "line": 358, @@ -66020,8 +66032,8 @@ }, "object": { "type": "Identifier", - "start": 13577, - "end": 13589, + "start": 13623, + "end": 13635, "loc": { "start": { "line": 358, @@ -66037,8 +66049,8 @@ }, "property": { "type": "Identifier", - "start": 13590, - "end": 13600, + "start": 13636, + "end": 13646, "loc": { "start": { "line": 358, @@ -66056,8 +66068,8 @@ }, "property": { "type": "Identifier", - "start": 13601, - "end": 13612, + "start": 13647, + "end": 13658, "loc": { "start": { "line": 358, @@ -66075,8 +66087,8 @@ }, "right": { "type": "NullLiteral", - "start": 13615, - "end": 13619, + "start": 13661, + "end": 13665, "loc": { "start": { "line": 358, @@ -66093,8 +66105,8 @@ { "type": "CommentLine", "value": " Reset events", - "start": 13625, - "end": 13640, + "start": 13671, + "end": 13686, "loc": { "start": { "line": 359, @@ -66110,8 +66122,8 @@ }, { "type": "ExpressionStatement", - "start": 13645, - "end": 13684, + "start": 13691, + "end": 13730, "loc": { "start": { "line": 360, @@ -66124,8 +66136,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13645, - "end": 13683, + "start": 13691, + "end": 13729, "loc": { "start": { "line": 360, @@ -66139,8 +66151,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13645, - "end": 13676, + "start": 13691, + "end": 13722, "loc": { "start": { "line": 360, @@ -66153,8 +66165,8 @@ }, "object": { "type": "MemberExpression", - "start": 13645, - "end": 13664, + "start": 13691, + "end": 13710, "loc": { "start": { "line": 360, @@ -66167,8 +66179,8 @@ }, "object": { "type": "Identifier", - "start": 13645, - "end": 13657, + "start": 13691, + "end": 13703, "loc": { "start": { "line": 360, @@ -66185,8 +66197,8 @@ }, "property": { "type": "Identifier", - "start": 13658, - "end": 13664, + "start": 13704, + "end": 13710, "loc": { "start": { "line": 360, @@ -66205,8 +66217,8 @@ }, "property": { "type": "Identifier", - "start": 13665, - "end": 13676, + "start": 13711, + "end": 13722, "loc": { "start": { "line": 360, @@ -66225,8 +66237,8 @@ }, "right": { "type": "NullLiteral", - "start": 13679, - "end": 13683, + "start": 13725, + "end": 13729, "loc": { "start": { "line": 360, @@ -66244,8 +66256,8 @@ { "type": "CommentLine", "value": " Reset events", - "start": 13625, - "end": 13640, + "start": 13671, + "end": 13686, "loc": { "start": { "line": 359, @@ -66261,8 +66273,8 @@ }, { "type": "ExpressionStatement", - "start": 13689, - "end": 13731, + "start": 13735, + "end": 13777, "loc": { "start": { "line": 361, @@ -66275,8 +66287,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13689, - "end": 13730, + "start": 13735, + "end": 13776, "loc": { "start": { "line": 361, @@ -66290,8 +66302,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13689, - "end": 13723, + "start": 13735, + "end": 13769, "loc": { "start": { "line": 361, @@ -66304,8 +66316,8 @@ }, "object": { "type": "MemberExpression", - "start": 13689, - "end": 13708, + "start": 13735, + "end": 13754, "loc": { "start": { "line": 361, @@ -66318,8 +66330,8 @@ }, "object": { "type": "Identifier", - "start": 13689, - "end": 13701, + "start": 13735, + "end": 13747, "loc": { "start": { "line": 361, @@ -66335,8 +66347,8 @@ }, "property": { "type": "Identifier", - "start": 13702, - "end": 13708, + "start": 13748, + "end": 13754, "loc": { "start": { "line": 361, @@ -66354,8 +66366,8 @@ }, "property": { "type": "Identifier", - "start": 13709, - "end": 13723, + "start": 13755, + "end": 13769, "loc": { "start": { "line": 361, @@ -66373,8 +66385,8 @@ }, "right": { "type": "NullLiteral", - "start": 13726, - "end": 13730, + "start": 13772, + "end": 13776, "loc": { "start": { "line": 361, @@ -66390,8 +66402,8 @@ }, { "type": "ExpressionStatement", - "start": 13736, - "end": 13775, + "start": 13782, + "end": 13821, "loc": { "start": { "line": 362, @@ -66404,8 +66416,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13736, - "end": 13774, + "start": 13782, + "end": 13820, "loc": { "start": { "line": 362, @@ -66419,8 +66431,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13736, - "end": 13767, + "start": 13782, + "end": 13813, "loc": { "start": { "line": 362, @@ -66433,8 +66445,8 @@ }, "object": { "type": "MemberExpression", - "start": 13736, - "end": 13755, + "start": 13782, + "end": 13801, "loc": { "start": { "line": 362, @@ -66447,8 +66459,8 @@ }, "object": { "type": "Identifier", - "start": 13736, - "end": 13748, + "start": 13782, + "end": 13794, "loc": { "start": { "line": 362, @@ -66464,8 +66476,8 @@ }, "property": { "type": "Identifier", - "start": 13749, - "end": 13755, + "start": 13795, + "end": 13801, "loc": { "start": { "line": 362, @@ -66483,8 +66495,8 @@ }, "property": { "type": "Identifier", - "start": 13756, - "end": 13767, + "start": 13802, + "end": 13813, "loc": { "start": { "line": 362, @@ -66502,8 +66514,8 @@ }, "right": { "type": "NullLiteral", - "start": 13770, - "end": 13774, + "start": 13816, + "end": 13820, "loc": { "start": { "line": 362, @@ -66519,8 +66531,8 @@ }, { "type": "ExpressionStatement", - "start": 13780, - "end": 13822, + "start": 13826, + "end": 13868, "loc": { "start": { "line": 363, @@ -66533,8 +66545,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13780, - "end": 13821, + "start": 13826, + "end": 13867, "loc": { "start": { "line": 363, @@ -66548,8 +66560,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13780, - "end": 13814, + "start": 13826, + "end": 13860, "loc": { "start": { "line": 363, @@ -66562,8 +66574,8 @@ }, "object": { "type": "MemberExpression", - "start": 13780, - "end": 13799, + "start": 13826, + "end": 13845, "loc": { "start": { "line": 363, @@ -66576,8 +66588,8 @@ }, "object": { "type": "Identifier", - "start": 13780, - "end": 13792, + "start": 13826, + "end": 13838, "loc": { "start": { "line": 363, @@ -66593,8 +66605,8 @@ }, "property": { "type": "Identifier", - "start": 13793, - "end": 13799, + "start": 13839, + "end": 13845, "loc": { "start": { "line": 363, @@ -66612,8 +66624,8 @@ }, "property": { "type": "Identifier", - "start": 13800, - "end": 13814, + "start": 13846, + "end": 13860, "loc": { "start": { "line": 363, @@ -66631,8 +66643,8 @@ }, "right": { "type": "NullLiteral", - "start": 13817, - "end": 13821, + "start": 13863, + "end": 13867, "loc": { "start": { "line": 363, @@ -66649,8 +66661,8 @@ { "type": "CommentLine", "value": " Reset stuck counter", - "start": 13827, - "end": 13849, + "start": 13873, + "end": 13895, "loc": { "start": { "line": 364, @@ -66666,8 +66678,8 @@ }, { "type": "ExpressionStatement", - "start": 13854, - "end": 13884, + "start": 13900, + "end": 13930, "loc": { "start": { "line": 365, @@ -66680,8 +66692,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13854, - "end": 13883, + "start": 13900, + "end": 13929, "loc": { "start": { "line": 365, @@ -66695,8 +66707,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13854, - "end": 13879, + "start": 13900, + "end": 13925, "loc": { "start": { "line": 365, @@ -66709,8 +66721,8 @@ }, "object": { "type": "Identifier", - "start": 13854, - "end": 13866, + "start": 13900, + "end": 13912, "loc": { "start": { "line": 365, @@ -66727,8 +66739,8 @@ }, "property": { "type": "Identifier", - "start": 13867, - "end": 13879, + "start": 13913, + "end": 13925, "loc": { "start": { "line": 365, @@ -66747,8 +66759,8 @@ }, "right": { "type": "NumericLiteral", - "start": 13882, - "end": 13883, + "start": 13928, + "end": 13929, "loc": { "start": { "line": 365, @@ -66771,8 +66783,8 @@ { "type": "CommentLine", "value": " Reset stuck counter", - "start": 13827, - "end": 13849, + "start": 13873, + "end": 13895, "loc": { "start": { "line": 364, @@ -66789,8 +66801,8 @@ { "type": "CommentLine", "value": " Reset the max stuck counter", - "start": 13889, - "end": 13919, + "start": 13935, + "end": 13965, "loc": { "start": { "line": 366, @@ -66806,8 +66818,8 @@ }, { "type": "ExpressionStatement", - "start": 13924, - "end": 13990, + "start": 13970, + "end": 14036, "loc": { "start": { "line": 367, @@ -66820,8 +66832,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 13924, - "end": 13989, + "start": 13970, + "end": 14035, "loc": { "start": { "line": 367, @@ -66835,8 +66847,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 13924, - "end": 13952, + "start": 13970, + "end": 13998, "loc": { "start": { "line": 367, @@ -66849,8 +66861,8 @@ }, "object": { "type": "Identifier", - "start": 13924, - "end": 13936, + "start": 13970, + "end": 13982, "loc": { "start": { "line": 367, @@ -66867,8 +66879,8 @@ }, "property": { "type": "Identifier", - "start": 13937, - "end": 13952, + "start": 13983, + "end": 13998, "loc": { "start": { "line": 367, @@ -66887,8 +66899,8 @@ }, "right": { "type": "MemberExpression", - "start": 13955, - "end": 13989, + "start": 14001, + "end": 14035, "loc": { "start": { "line": 367, @@ -66901,8 +66913,8 @@ }, "object": { "type": "Identifier", - "start": 13955, - "end": 13971, + "start": 14001, + "end": 14017, "loc": { "start": { "line": 367, @@ -66918,8 +66930,8 @@ }, "property": { "type": "Identifier", - "start": 13972, - "end": 13989, + "start": 14018, + "end": 14035, "loc": { "start": { "line": 367, @@ -66941,8 +66953,8 @@ { "type": "CommentLine", "value": " Reset the max stuck counter", - "start": 13889, - "end": 13919, + "start": 13935, + "end": 13965, "loc": { "start": { "line": 366, @@ -66958,9 +66970,9 @@ "trailingComments": [ { "type": "CommentLine", - "value": " Empty path(s) array", - "start": 13995, - "end": 14017, + "value": " Empty path array", + "start": 14041, + "end": 14060, "loc": { "start": { "line": 368, @@ -66968,7 +66980,7 @@ }, "end": { "line": 368, - "column": 25 + "column": 22 } } } @@ -66976,8 +66988,8 @@ }, { "type": "ExpressionStatement", - "start": 14022, - "end": 14051, + "start": 14065, + "end": 14094, "loc": { "start": { "line": 369, @@ -66990,8 +67002,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14022, - "end": 14050, + "start": 14065, + "end": 14093, "loc": { "start": { "line": 369, @@ -67005,8 +67017,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14022, - "end": 14046, + "start": 14065, + "end": 14089, "loc": { "start": { "line": 369, @@ -67019,8 +67031,8 @@ }, "object": { "type": "MemberExpression", - "start": 14022, - "end": 14039, + "start": 14065, + "end": 14082, "loc": { "start": { "line": 369, @@ -67033,8 +67045,8 @@ }, "object": { "type": "Identifier", - "start": 14022, - "end": 14034, + "start": 14065, + "end": 14077, "loc": { "start": { "line": 369, @@ -67051,8 +67063,8 @@ }, "property": { "type": "Identifier", - "start": 14035, - "end": 14039, + "start": 14078, + "end": 14082, "loc": { "start": { "line": 369, @@ -67071,8 +67083,8 @@ }, "property": { "type": "Identifier", - "start": 14040, - "end": 14046, + "start": 14083, + "end": 14089, "loc": { "start": { "line": 369, @@ -67091,8 +67103,8 @@ }, "right": { "type": "NumericLiteral", - "start": 14049, - "end": 14050, + "start": 14092, + "end": 14093, "loc": { "start": { "line": 369, @@ -67114,9 +67126,9 @@ "leadingComments": [ { "type": "CommentLine", - "value": " Empty path(s) array", - "start": 13995, - "end": 14017, + "value": " Empty path array", + "start": 14041, + "end": 14060, "loc": { "start": { "line": 368, @@ -67124,7 +67136,7 @@ }, "end": { "line": 368, - "column": 25 + "column": 22 } } } @@ -67133,8 +67145,8 @@ { "type": "CommentLine", "value": " Reset it to not being moved.", - "start": 14056, - "end": 14087, + "start": 14099, + "end": 14130, "loc": { "start": { "line": 370, @@ -67150,8 +67162,8 @@ }, { "type": "ExpressionStatement", - "start": 14092, - "end": 14120, + "start": 14135, + "end": 14163, "loc": { "start": { "line": 371, @@ -67164,8 +67176,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14092, - "end": 14119, + "start": 14135, + "end": 14162, "loc": { "start": { "line": 371, @@ -67179,8 +67191,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14092, - "end": 14111, + "start": 14135, + "end": 14154, "loc": { "start": { "line": 371, @@ -67193,8 +67205,8 @@ }, "object": { "type": "Identifier", - "start": 14092, - "end": 14104, + "start": 14135, + "end": 14147, "loc": { "start": { "line": 371, @@ -67211,8 +67223,8 @@ }, "property": { "type": "Identifier", - "start": 14105, - "end": 14111, + "start": 14148, + "end": 14154, "loc": { "start": { "line": 371, @@ -67231,8 +67243,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 14114, - "end": 14119, + "start": 14157, + "end": 14162, "loc": { "start": { "line": 371, @@ -67251,8 +67263,8 @@ { "type": "CommentLine", "value": " Reset it to not being moved.", - "start": 14056, - "end": 14087, + "start": 14099, + "end": 14130, "loc": { "start": { "line": 370, @@ -67269,8 +67281,8 @@ { "type": "CommentLine", "value": " Reset the mode", - "start": 14125, - "end": 14142, + "start": 14168, + "end": 14185, "loc": { "start": { "line": 372, @@ -67286,8 +67298,8 @@ }, { "type": "ExpressionStatement", - "start": 14147, - "end": 14179, + "start": 14190, + "end": 14222, "loc": { "start": { "line": 373, @@ -67300,8 +67312,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14147, - "end": 14178, + "start": 14190, + "end": 14221, "loc": { "start": { "line": 373, @@ -67315,8 +67327,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14147, - "end": 14164, + "start": 14190, + "end": 14207, "loc": { "start": { "line": 373, @@ -67329,8 +67341,8 @@ }, "object": { "type": "Identifier", - "start": 14147, - "end": 14159, + "start": 14190, + "end": 14202, "loc": { "start": { "line": 373, @@ -67347,8 +67359,8 @@ }, "property": { "type": "Identifier", - "start": 14160, - "end": 14164, + "start": 14203, + "end": 14207, "loc": { "start": { "line": 373, @@ -67367,8 +67379,8 @@ }, "right": { "type": "StringLiteral", - "start": 14167, - "end": 14178, + "start": 14210, + "end": 14221, "loc": { "start": { "line": 373, @@ -67391,8 +67403,8 @@ { "type": "CommentLine", "value": " Reset the mode", - "start": 14125, - "end": 14142, + "start": 14168, + "end": 14185, "loc": { "start": { "line": 372, @@ -67409,8 +67421,8 @@ { "type": "CommentLine", "value": " Reset the pixels per second.", - "start": 14184, - "end": 14215, + "start": 14227, + "end": 14258, "loc": { "start": { "line": 374, @@ -67426,8 +67438,8 @@ }, { "type": "ExpressionStatement", - "start": 14220, - "end": 14294, + "start": 14263, + "end": 14337, "loc": { "start": { "line": 375, @@ -67440,8 +67452,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14220, - "end": 14293, + "start": 14263, + "end": 14336, "loc": { "start": { "line": 375, @@ -67455,8 +67467,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14220, - "end": 14248, + "start": 14263, + "end": 14291, "loc": { "start": { "line": 375, @@ -67469,8 +67481,8 @@ }, "object": { "type": "Identifier", - "start": 14220, - "end": 14232, + "start": 14263, + "end": 14275, "loc": { "start": { "line": 375, @@ -67487,8 +67499,8 @@ }, "property": { "type": "Identifier", - "start": 14233, - "end": 14248, + "start": 14276, + "end": 14291, "loc": { "start": { "line": 375, @@ -67507,8 +67519,8 @@ }, "right": { "type": "MemberExpression", - "start": 14251, - "end": 14293, + "start": 14294, + "end": 14336, "loc": { "start": { "line": 375, @@ -67521,8 +67533,8 @@ }, "object": { "type": "Identifier", - "start": 14251, - "end": 14267, + "start": 14294, + "end": 14310, "loc": { "start": { "line": 375, @@ -67538,8 +67550,8 @@ }, "property": { "type": "Identifier", - "start": 14268, - "end": 14293, + "start": 14311, + "end": 14336, "loc": { "start": { "line": 375, @@ -67561,8 +67573,8 @@ { "type": "CommentLine", "value": " Reset the pixels per second.", - "start": 14184, - "end": 14215, + "start": 14227, + "end": 14258, "loc": { "start": { "line": 374, @@ -67579,8 +67591,8 @@ { "type": "CommentLine", "value": " Reset the min distance", - "start": 14299, - "end": 14324, + "start": 14342, + "end": 14367, "loc": { "start": { "line": 376, @@ -67596,8 +67608,8 @@ }, { "type": "ExpressionStatement", - "start": 14329, - "end": 14398, + "start": 14372, + "end": 14441, "loc": { "start": { "line": 377, @@ -67610,8 +67622,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14329, - "end": 14397, + "start": 14372, + "end": 14440, "loc": { "start": { "line": 377, @@ -67625,8 +67637,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 14329, - "end": 14353, + "start": 14372, + "end": 14396, "loc": { "start": { "line": 377, @@ -67639,8 +67651,8 @@ }, "object": { "type": "Identifier", - "start": 14329, - "end": 14341, + "start": 14372, + "end": 14384, "loc": { "start": { "line": 377, @@ -67657,8 +67669,8 @@ }, "property": { "type": "Identifier", - "start": 14342, - "end": 14353, + "start": 14385, + "end": 14396, "loc": { "start": { "line": 377, @@ -67677,8 +67689,8 @@ }, "right": { "type": "MemberExpression", - "start": 14356, - "end": 14397, + "start": 14399, + "end": 14440, "loc": { "start": { "line": 377, @@ -67691,8 +67703,8 @@ }, "object": { "type": "Identifier", - "start": 14356, - "end": 14372, + "start": 14399, + "end": 14415, "loc": { "start": { "line": 377, @@ -67708,8 +67720,8 @@ }, "property": { "type": "Identifier", - "start": 14373, - "end": 14397, + "start": 14416, + "end": 14440, "loc": { "start": { "line": 377, @@ -67731,8 +67743,8 @@ { "type": "CommentLine", "value": " Reset the min distance", - "start": 14299, - "end": 14324, + "start": 14342, + "end": 14367, "loc": { "start": { "line": 376, @@ -67749,8 +67761,8 @@ { "type": "CommentLine", "value": " Stop instance from moving via VYLO API.", - "start": 14403, - "end": 14445, + "start": 14446, + "end": 14488, "loc": { "start": { "line": 378, @@ -67766,8 +67778,8 @@ }, { "type": "ExpressionStatement", - "start": 14450, - "end": 14467, + "start": 14493, + "end": 14510, "loc": { "start": { "line": 379, @@ -67780,8 +67792,8 @@ }, "expression": { "type": "CallExpression", - "start": 14450, - "end": 14466, + "start": 14493, + "end": 14509, "loc": { "start": { "line": 379, @@ -67794,8 +67806,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14450, - "end": 14464, + "start": 14493, + "end": 14507, "loc": { "start": { "line": 379, @@ -67808,8 +67820,8 @@ }, "object": { "type": "Identifier", - "start": 14450, - "end": 14459, + "start": 14493, + "end": 14502, "loc": { "start": { "line": 379, @@ -67826,8 +67838,8 @@ }, "property": { "type": "Identifier", - "start": 14460, - "end": 14464, + "start": 14503, + "end": 14507, "loc": { "start": { "line": 379, @@ -67851,8 +67863,8 @@ { "type": "CommentLine", "value": " Stop instance from moving via VYLO API.", - "start": 14403, - "end": 14445, + "start": 14446, + "end": 14488, "loc": { "start": { "line": 378, @@ -67869,8 +67881,8 @@ { "type": "CommentLine", "value": " Untrack pInstance as an active instance.", - "start": 14472, - "end": 14515, + "start": 14515, + "end": 14558, "loc": { "start": { "line": 380, @@ -67886,8 +67898,8 @@ }, { "type": "ExpressionStatement", - "start": 14520, - "end": 14544, + "start": 14563, + "end": 14587, "loc": { "start": { "line": 381, @@ -67900,8 +67912,8 @@ }, "expression": { "type": "CallExpression", - "start": 14520, - "end": 14543, + "start": 14563, + "end": 14586, "loc": { "start": { "line": 381, @@ -67914,8 +67926,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14520, - "end": 14532, + "start": 14563, + "end": 14575, "loc": { "start": { "line": 381, @@ -67928,8 +67940,8 @@ }, "object": { "type": "ThisExpression", - "start": 14520, - "end": 14524, + "start": 14563, + "end": 14567, "loc": { "start": { "line": 381, @@ -67944,8 +67956,8 @@ }, "property": { "type": "Identifier", - "start": 14525, - "end": 14532, + "start": 14568, + "end": 14575, "loc": { "start": { "line": 381, @@ -67965,8 +67977,8 @@ "arguments": [ { "type": "Identifier", - "start": 14533, - "end": 14542, + "start": 14576, + "end": 14585, "loc": { "start": { "line": 381, @@ -67987,8 +67999,8 @@ { "type": "CommentLine", "value": " Untrack pInstance as an active instance.", - "start": 14472, - "end": 14515, + "start": 14515, + "end": 14558, "loc": { "start": { "line": 380, @@ -68007,8 +68019,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 14555, - "end": 14696, + "start": 14598, + "end": 14739, "loc": { "start": { "line": 382, @@ -68022,8 +68034,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 14561, - "end": 14691, + "start": 14604, + "end": 14734, "loc": { "start": { "line": 383, @@ -68036,8 +68048,8 @@ }, "expression": { "type": "CallExpression", - "start": 14561, - "end": 14690, + "start": 14604, + "end": 14733, "loc": { "start": { "line": 383, @@ -68050,8 +68062,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14561, - "end": 14603, + "start": 14604, + "end": 14646, "loc": { "start": { "line": 383, @@ -68064,8 +68076,8 @@ }, "object": { "type": "CallExpression", - "start": 14561, - "end": 14597, + "start": 14604, + "end": 14640, "loc": { "start": { "line": 383, @@ -68078,8 +68090,8 @@ }, "callee": { "type": "MemberExpression", - "start": 14561, - "end": 14579, + "start": 14604, + "end": 14622, "loc": { "start": { "line": 383, @@ -68092,8 +68104,8 @@ }, "object": { "type": "MemberExpression", - "start": 14561, - "end": 14572, + "start": 14604, + "end": 14615, "loc": { "start": { "line": 383, @@ -68106,8 +68118,8 @@ }, "object": { "type": "ThisExpression", - "start": 14561, - "end": 14565, + "start": 14604, + "end": 14608, "loc": { "start": { "line": 383, @@ -68121,8 +68133,8 @@ }, "property": { "type": "Identifier", - "start": 14566, - "end": 14572, + "start": 14609, + "end": 14615, "loc": { "start": { "line": 383, @@ -68140,8 +68152,8 @@ }, "property": { "type": "Identifier", - "start": 14573, - "end": 14579, + "start": 14616, + "end": 14622, "loc": { "start": { "line": 383, @@ -68160,8 +68172,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 14580, - "end": 14596, + "start": 14623, + "end": 14639, "loc": { "start": { "line": 383, @@ -68182,8 +68194,8 @@ }, "property": { "type": "Identifier", - "start": 14598, - "end": 14603, + "start": 14641, + "end": 14646, "loc": { "start": { "line": 383, @@ -68202,8 +68214,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 14604, - "end": 14689, + "start": 14647, + "end": 14732, "loc": { "start": { "line": 383, @@ -68235,8 +68247,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t ", - "start": 12658, - "end": 12791, + "start": 12704, + "end": 12837, "loc": { "start": { "line": 337, @@ -68253,8 +68265,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t ", - "start": 14703, - "end": 14965, + "start": 14746, + "end": 15008, "loc": { "start": { "line": 386, @@ -68270,8 +68282,8 @@ }, { "type": "ClassMethod", - "start": 14968, - "end": 15347, + "start": 15011, + "end": 15390, "loc": { "start": { "line": 392, @@ -68286,8 +68298,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 14968, - "end": 14991, + "start": 15011, + "end": 15034, "loc": { "start": { "line": 392, @@ -68310,8 +68322,8 @@ "params": [ { "type": "Identifier", - "start": 14992, - "end": 15001, + "start": 15035, + "end": 15044, "loc": { "start": { "line": 392, @@ -68328,8 +68340,8 @@ ], "body": { "type": "BlockStatement", - "start": 15003, - "end": 15347, + "start": 15046, + "end": 15390, "loc": { "start": { "line": 392, @@ -68343,8 +68355,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 15008, - "end": 15065, + "start": 15051, + "end": 15108, "loc": { "start": { "line": 393, @@ -68358,8 +68370,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 15014, - "end": 15064, + "start": 15057, + "end": 15107, "loc": { "start": { "line": 393, @@ -68372,8 +68384,8 @@ }, "id": { "type": "Identifier", - "start": 15014, - "end": 15026, + "start": 15057, + "end": 15069, "loc": { "start": { "line": 393, @@ -68389,8 +68401,8 @@ }, "init": { "type": "CallExpression", - "start": 15029, - "end": 15064, + "start": 15072, + "end": 15107, "loc": { "start": { "line": 393, @@ -68403,8 +68415,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15029, - "end": 15053, + "start": 15072, + "end": 15096, "loc": { "start": { "line": 393, @@ -68417,8 +68429,8 @@ }, "object": { "type": "MemberExpression", - "start": 15029, - "end": 15049, + "start": 15072, + "end": 15092, "loc": { "start": { "line": 393, @@ -68431,8 +68443,8 @@ }, "object": { "type": "ThisExpression", - "start": 15029, - "end": 15033, + "start": 15072, + "end": 15076, "loc": { "start": { "line": 393, @@ -68446,8 +68458,8 @@ }, "property": { "type": "Identifier", - "start": 15034, - "end": 15049, + "start": 15077, + "end": 15092, "loc": { "start": { "line": 393, @@ -68465,8 +68477,8 @@ }, "property": { "type": "Identifier", - "start": 15050, - "end": 15053, + "start": 15093, + "end": 15096, "loc": { "start": { "line": 393, @@ -68485,8 +68497,8 @@ "arguments": [ { "type": "Identifier", - "start": 15054, - "end": 15063, + "start": 15097, + "end": 15106, "loc": { "start": { "line": 393, @@ -68508,8 +68520,8 @@ }, { "type": "IfStatement", - "start": 15069, - "end": 15343, + "start": 15112, + "end": 15386, "loc": { "start": { "line": 394, @@ -68522,8 +68534,8 @@ }, "test": { "type": "Identifier", - "start": 15073, - "end": 15085, + "start": 15116, + "end": 15128, "loc": { "start": { "line": 394, @@ -68539,8 +68551,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 15087, - "end": 15343, + "start": 15130, + "end": 15386, "loc": { "start": { "line": 394, @@ -68554,8 +68566,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 15093, - "end": 15192, + "start": 15136, + "end": 15235, "loc": { "start": { "line": 395, @@ -68568,8 +68580,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15093, - "end": 15191, + "start": 15136, + "end": 15234, "loc": { "start": { "line": 395, @@ -68583,8 +68595,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15093, - "end": 15123, + "start": 15136, + "end": 15166, "loc": { "start": { "line": 395, @@ -68597,8 +68609,8 @@ }, "object": { "type": "MemberExpression", - "start": 15093, - "end": 15121, + "start": 15136, + "end": 15164, "loc": { "start": { "line": 395, @@ -68611,8 +68623,8 @@ }, "object": { "type": "Identifier", - "start": 15093, - "end": 15105, + "start": 15136, + "end": 15148, "loc": { "start": { "line": 395, @@ -68628,8 +68640,8 @@ }, "property": { "type": "Identifier", - "start": 15106, - "end": 15121, + "start": 15149, + "end": 15164, "loc": { "start": { "line": 395, @@ -68647,8 +68659,8 @@ }, "property": { "type": "Identifier", - "start": 15122, - "end": 15123, + "start": 15165, + "end": 15166, "loc": { "start": { "line": 395, @@ -68666,8 +68678,8 @@ }, "right": { "type": "CallExpression", - "start": 15126, - "end": 15191, + "start": 15169, + "end": 15234, "loc": { "start": { "line": 395, @@ -68680,8 +68692,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15126, - "end": 15136, + "start": 15169, + "end": 15179, "loc": { "start": { "line": 395, @@ -68694,8 +68706,8 @@ }, "object": { "type": "Identifier", - "start": 15126, - "end": 15130, + "start": 15169, + "end": 15173, "loc": { "start": { "line": 395, @@ -68711,8 +68723,8 @@ }, "property": { "type": "Identifier", - "start": 15131, - "end": 15136, + "start": 15174, + "end": 15179, "loc": { "start": { "line": 395, @@ -68731,8 +68743,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 15137, - "end": 15190, + "start": 15180, + "end": 15233, "loc": { "start": { "line": 395, @@ -68745,8 +68757,8 @@ }, "left": { "type": "BinaryExpression", - "start": 15137, - "end": 15168, + "start": 15180, + "end": 15211, "loc": { "start": { "line": 395, @@ -68759,8 +68771,8 @@ }, "left": { "type": "MemberExpression", - "start": 15137, - "end": 15148, + "start": 15180, + "end": 15191, "loc": { "start": { "line": 395, @@ -68773,8 +68785,8 @@ }, "object": { "type": "Identifier", - "start": 15137, - "end": 15146, + "start": 15180, + "end": 15189, "loc": { "start": { "line": 395, @@ -68790,8 +68802,8 @@ }, "property": { "type": "Identifier", - "start": 15147, - "end": 15148, + "start": 15190, + "end": 15191, "loc": { "start": { "line": 395, @@ -68810,8 +68822,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 15151, - "end": 15168, + "start": 15194, + "end": 15211, "loc": { "start": { "line": 395, @@ -68824,8 +68836,8 @@ }, "object": { "type": "Identifier", - "start": 15151, - "end": 15160, + "start": 15194, + "end": 15203, "loc": { "start": { "line": 395, @@ -68841,8 +68853,8 @@ }, "property": { "type": "Identifier", - "start": 15161, - "end": 15168, + "start": 15204, + "end": 15211, "loc": { "start": { "line": 395, @@ -68862,8 +68874,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 15171, - "end": 15190, + "start": 15214, + "end": 15233, "loc": { "start": { "line": 395, @@ -68876,8 +68888,8 @@ }, "left": { "type": "MemberExpression", - "start": 15171, - "end": 15186, + "start": 15214, + "end": 15229, "loc": { "start": { "line": 395, @@ -68890,8 +68902,8 @@ }, "object": { "type": "Identifier", - "start": 15171, - "end": 15180, + "start": 15214, + "end": 15223, "loc": { "start": { "line": 395, @@ -68907,8 +68919,8 @@ }, "property": { "type": "Identifier", - "start": 15181, - "end": 15186, + "start": 15224, + "end": 15229, "loc": { "start": { "line": 395, @@ -68927,8 +68939,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 15189, - "end": 15190, + "start": 15232, + "end": 15233, "loc": { "start": { "line": 395, @@ -68953,8 +68965,8 @@ }, { "type": "ExpressionStatement", - "start": 15197, - "end": 15297, + "start": 15240, + "end": 15340, "loc": { "start": { "line": 396, @@ -68967,8 +68979,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15197, - "end": 15296, + "start": 15240, + "end": 15339, "loc": { "start": { "line": 396, @@ -68982,8 +68994,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15197, - "end": 15227, + "start": 15240, + "end": 15270, "loc": { "start": { "line": 396, @@ -68996,8 +69008,8 @@ }, "object": { "type": "MemberExpression", - "start": 15197, - "end": 15225, + "start": 15240, + "end": 15268, "loc": { "start": { "line": 396, @@ -69010,8 +69022,8 @@ }, "object": { "type": "Identifier", - "start": 15197, - "end": 15209, + "start": 15240, + "end": 15252, "loc": { "start": { "line": 396, @@ -69027,8 +69039,8 @@ }, "property": { "type": "Identifier", - "start": 15210, - "end": 15225, + "start": 15253, + "end": 15268, "loc": { "start": { "line": 396, @@ -69046,8 +69058,8 @@ }, "property": { "type": "Identifier", - "start": 15226, - "end": 15227, + "start": 15269, + "end": 15270, "loc": { "start": { "line": 396, @@ -69065,8 +69077,8 @@ }, "right": { "type": "CallExpression", - "start": 15230, - "end": 15296, + "start": 15273, + "end": 15339, "loc": { "start": { "line": 396, @@ -69079,8 +69091,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15230, - "end": 15240, + "start": 15273, + "end": 15283, "loc": { "start": { "line": 396, @@ -69093,8 +69105,8 @@ }, "object": { "type": "Identifier", - "start": 15230, - "end": 15234, + "start": 15273, + "end": 15277, "loc": { "start": { "line": 396, @@ -69110,8 +69122,8 @@ }, "property": { "type": "Identifier", - "start": 15235, - "end": 15240, + "start": 15278, + "end": 15283, "loc": { "start": { "line": 396, @@ -69130,8 +69142,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 15241, - "end": 15295, + "start": 15284, + "end": 15338, "loc": { "start": { "line": 396, @@ -69144,8 +69156,8 @@ }, "left": { "type": "BinaryExpression", - "start": 15241, - "end": 15272, + "start": 15284, + "end": 15315, "loc": { "start": { "line": 396, @@ -69158,8 +69170,8 @@ }, "left": { "type": "MemberExpression", - "start": 15241, - "end": 15252, + "start": 15284, + "end": 15295, "loc": { "start": { "line": 396, @@ -69172,8 +69184,8 @@ }, "object": { "type": "Identifier", - "start": 15241, - "end": 15250, + "start": 15284, + "end": 15293, "loc": { "start": { "line": 396, @@ -69189,8 +69201,8 @@ }, "property": { "type": "Identifier", - "start": 15251, - "end": 15252, + "start": 15294, + "end": 15295, "loc": { "start": { "line": 396, @@ -69209,8 +69221,8 @@ "operator": "+", "right": { "type": "MemberExpression", - "start": 15255, - "end": 15272, + "start": 15298, + "end": 15315, "loc": { "start": { "line": 396, @@ -69223,8 +69235,8 @@ }, "object": { "type": "Identifier", - "start": 15255, - "end": 15264, + "start": 15298, + "end": 15307, "loc": { "start": { "line": 396, @@ -69240,8 +69252,8 @@ }, "property": { "type": "Identifier", - "start": 15265, - "end": 15272, + "start": 15308, + "end": 15315, "loc": { "start": { "line": 396, @@ -69261,8 +69273,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 15275, - "end": 15295, + "start": 15318, + "end": 15338, "loc": { "start": { "line": 396, @@ -69275,8 +69287,8 @@ }, "left": { "type": "MemberExpression", - "start": 15275, - "end": 15291, + "start": 15318, + "end": 15334, "loc": { "start": { "line": 396, @@ -69289,8 +69301,8 @@ }, "object": { "type": "Identifier", - "start": 15275, - "end": 15284, + "start": 15318, + "end": 15327, "loc": { "start": { "line": 396, @@ -69306,8 +69318,8 @@ }, "property": { "type": "Identifier", - "start": 15285, - "end": 15291, + "start": 15328, + "end": 15334, "loc": { "start": { "line": 396, @@ -69326,8 +69338,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 15294, - "end": 15295, + "start": 15337, + "end": 15338, "loc": { "start": { "line": 396, @@ -69352,8 +69364,8 @@ }, { "type": "ReturnStatement", - "start": 15302, - "end": 15338, + "start": 15345, + "end": 15381, "loc": { "start": { "line": 397, @@ -69366,8 +69378,8 @@ }, "argument": { "type": "MemberExpression", - "start": 15309, - "end": 15337, + "start": 15352, + "end": 15380, "loc": { "start": { "line": 397, @@ -69380,8 +69392,8 @@ }, "object": { "type": "Identifier", - "start": 15309, - "end": 15321, + "start": 15352, + "end": 15364, "loc": { "start": { "line": 397, @@ -69397,8 +69409,8 @@ }, "property": { "type": "Identifier", - "start": 15322, - "end": 15337, + "start": 15365, + "end": 15380, "loc": { "start": { "line": 397, @@ -69428,8 +69440,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t ", - "start": 14703, - "end": 14965, + "start": 14746, + "end": 15008, "loc": { "start": { "line": 386, @@ -69446,8 +69458,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t ", - "start": 15350, - "end": 15422, + "start": 15393, + "end": 15465, "loc": { "start": { "line": 400, @@ -69463,8 +69475,8 @@ }, { "type": "ClassMethod", - "start": 15425, - "end": 20625, + "start": 15468, + "end": 20668, "loc": { "start": { "line": 404, @@ -69479,8 +69491,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 15425, - "end": 15431, + "start": 15468, + "end": 15474, "loc": { "start": { "line": 404, @@ -69503,8 +69515,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 15434, - "end": 20625, + "start": 15477, + "end": 20668, "loc": { "start": { "line": 404, @@ -69518,8 +69530,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 15467, - "end": 15490, + "start": 15510, + "end": 15533, "loc": { "start": { "line": 406, @@ -69533,8 +69545,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 15473, - "end": 15489, + "start": 15516, + "end": 15532, "loc": { "start": { "line": 406, @@ -69547,8 +69559,8 @@ }, "id": { "type": "Identifier", - "start": 15473, - "end": 15476, + "start": 15516, + "end": 15519, "loc": { "start": { "line": 406, @@ -69565,8 +69577,8 @@ }, "init": { "type": "CallExpression", - "start": 15479, - "end": 15489, + "start": 15522, + "end": 15532, "loc": { "start": { "line": 406, @@ -69579,8 +69591,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15479, - "end": 15487, + "start": 15522, + "end": 15530, "loc": { "start": { "line": 406, @@ -69593,8 +69605,8 @@ }, "object": { "type": "Identifier", - "start": 15479, - "end": 15483, + "start": 15522, + "end": 15526, "loc": { "start": { "line": 406, @@ -69610,8 +69622,8 @@ }, "property": { "type": "Identifier", - "start": 15484, - "end": 15487, + "start": 15527, + "end": 15530, "loc": { "start": { "line": 406, @@ -69637,8 +69649,8 @@ { "type": "CommentLine", "value": " Get current timestamp", - "start": 15439, - "end": 15463, + "start": 15482, + "end": 15506, "loc": { "start": { "line": 405, @@ -69655,8 +69667,8 @@ { "type": "CommentLine", "value": " Get the elapsed ms from the last tick", - "start": 15494, - "end": 15534, + "start": 15537, + "end": 15577, "loc": { "start": { "line": 407, @@ -69672,8 +69684,8 @@ }, { "type": "ExpressionStatement", - "start": 15538, - "end": 15575, + "start": 15581, + "end": 15618, "loc": { "start": { "line": 408, @@ -69686,8 +69698,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15538, - "end": 15574, + "start": 15581, + "end": 15617, "loc": { "start": { "line": 408, @@ -69701,8 +69713,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15538, - "end": 15552, + "start": 15581, + "end": 15595, "loc": { "start": { "line": 408, @@ -69715,8 +69727,8 @@ }, "object": { "type": "ThisExpression", - "start": 15538, - "end": 15542, + "start": 15581, + "end": 15585, "loc": { "start": { "line": 408, @@ -69731,8 +69743,8 @@ }, "property": { "type": "Identifier", - "start": 15543, - "end": 15552, + "start": 15586, + "end": 15595, "loc": { "start": { "line": 408, @@ -69751,8 +69763,8 @@ }, "right": { "type": "BinaryExpression", - "start": 15555, - "end": 15574, + "start": 15598, + "end": 15617, "loc": { "start": { "line": 408, @@ -69765,8 +69777,8 @@ }, "left": { "type": "Identifier", - "start": 15555, - "end": 15558, + "start": 15598, + "end": 15601, "loc": { "start": { "line": 408, @@ -69783,8 +69795,8 @@ "operator": "-", "right": { "type": "MemberExpression", - "start": 15561, - "end": 15574, + "start": 15604, + "end": 15617, "loc": { "start": { "line": 408, @@ -69797,8 +69809,8 @@ }, "object": { "type": "ThisExpression", - "start": 15561, - "end": 15565, + "start": 15604, + "end": 15608, "loc": { "start": { "line": 408, @@ -69812,8 +69824,8 @@ }, "property": { "type": "Identifier", - "start": 15566, - "end": 15574, + "start": 15609, + "end": 15617, "loc": { "start": { "line": 408, @@ -69836,8 +69848,8 @@ { "type": "CommentLine", "value": " Get the elapsed ms from the last tick", - "start": 15494, - "end": 15534, + "start": 15537, + "end": 15577, "loc": { "start": { "line": 407, @@ -69854,8 +69866,8 @@ { "type": "CommentLine", "value": " Get the delta time between the last tick", - "start": 15579, - "end": 15622, + "start": 15622, + "end": 15665, "loc": { "start": { "line": 409, @@ -69871,8 +69883,8 @@ }, { "type": "ExpressionStatement", - "start": 15626, - "end": 15667, + "start": 15669, + "end": 15710, "loc": { "start": { "line": 410, @@ -69885,8 +69897,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15626, - "end": 15666, + "start": 15669, + "end": 15709, "loc": { "start": { "line": 410, @@ -69900,8 +69912,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15626, - "end": 15640, + "start": 15669, + "end": 15683, "loc": { "start": { "line": 410, @@ -69914,8 +69926,8 @@ }, "object": { "type": "ThisExpression", - "start": 15626, - "end": 15630, + "start": 15669, + "end": 15673, "loc": { "start": { "line": 410, @@ -69930,8 +69942,8 @@ }, "property": { "type": "Identifier", - "start": 15631, - "end": 15640, + "start": 15674, + "end": 15683, "loc": { "start": { "line": 410, @@ -69950,8 +69962,8 @@ }, "right": { "type": "BinaryExpression", - "start": 15644, - "end": 15665, + "start": 15687, + "end": 15708, "loc": { "start": { "line": 410, @@ -69964,8 +69976,8 @@ }, "left": { "type": "MemberExpression", - "start": 15644, - "end": 15658, + "start": 15687, + "end": 15701, "loc": { "start": { "line": 410, @@ -69978,8 +69990,8 @@ }, "object": { "type": "ThisExpression", - "start": 15644, - "end": 15648, + "start": 15687, + "end": 15691, "loc": { "start": { "line": 410, @@ -69993,8 +70005,8 @@ }, "property": { "type": "Identifier", - "start": 15649, - "end": 15658, + "start": 15692, + "end": 15701, "loc": { "start": { "line": 410, @@ -70013,8 +70025,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 15661, - "end": 15665, + "start": 15704, + "end": 15708, "loc": { "start": { "line": 410, @@ -70033,7 +70045,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 15643 + "parenStart": 15686 } }, "leadingComments": null @@ -70042,8 +70054,8 @@ { "type": "CommentLine", "value": " Get the delta time between the last tick", - "start": 15579, - "end": 15622, + "start": 15622, + "end": 15665, "loc": { "start": { "line": 409, @@ -70060,8 +70072,8 @@ { "type": "CommentLine", "value": " If the delta time grows too large, we clamp it", - "start": 15671, - "end": 15720, + "start": 15714, + "end": 15763, "loc": { "start": { "line": 411, @@ -70077,8 +70089,8 @@ }, { "type": "IfStatement", - "start": 15724, - "end": 15839, + "start": 15767, + "end": 15882, "loc": { "start": { "line": 412, @@ -70091,8 +70103,8 @@ }, "test": { "type": "BinaryExpression", - "start": 15728, - "end": 15777, + "start": 15771, + "end": 15820, "loc": { "start": { "line": 412, @@ -70105,8 +70117,8 @@ }, "left": { "type": "MemberExpression", - "start": 15728, - "end": 15742, + "start": 15771, + "end": 15785, "loc": { "start": { "line": 412, @@ -70119,8 +70131,8 @@ }, "object": { "type": "ThisExpression", - "start": 15728, - "end": 15732, + "start": 15771, + "end": 15775, "loc": { "start": { "line": 412, @@ -70135,8 +70147,8 @@ }, "property": { "type": "Identifier", - "start": 15733, - "end": 15742, + "start": 15776, + "end": 15785, "loc": { "start": { "line": 412, @@ -70156,8 +70168,8 @@ "operator": ">=", "right": { "type": "MemberExpression", - "start": 15746, - "end": 15777, + "start": 15789, + "end": 15820, "loc": { "start": { "line": 412, @@ -70170,8 +70182,8 @@ }, "object": { "type": "Identifier", - "start": 15746, - "end": 15762, + "start": 15789, + "end": 15805, "loc": { "start": { "line": 412, @@ -70187,8 +70199,8 @@ }, "property": { "type": "Identifier", - "start": 15763, - "end": 15777, + "start": 15806, + "end": 15820, "loc": { "start": { "line": 412, @@ -70208,8 +70220,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 15779, - "end": 15839, + "start": 15822, + "end": 15882, "loc": { "start": { "line": 412, @@ -70223,8 +70235,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 15785, - "end": 15834, + "start": 15828, + "end": 15877, "loc": { "start": { "line": 413, @@ -70237,8 +70249,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 15785, - "end": 15833, + "start": 15828, + "end": 15876, "loc": { "start": { "line": 413, @@ -70252,8 +70264,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 15785, - "end": 15799, + "start": 15828, + "end": 15842, "loc": { "start": { "line": 413, @@ -70266,8 +70278,8 @@ }, "object": { "type": "ThisExpression", - "start": 15785, - "end": 15789, + "start": 15828, + "end": 15832, "loc": { "start": { "line": 413, @@ -70281,8 +70293,8 @@ }, "property": { "type": "Identifier", - "start": 15790, - "end": 15799, + "start": 15833, + "end": 15842, "loc": { "start": { "line": 413, @@ -70300,8 +70312,8 @@ }, "right": { "type": "MemberExpression", - "start": 15802, - "end": 15833, + "start": 15845, + "end": 15876, "loc": { "start": { "line": 413, @@ -70314,8 +70326,8 @@ }, "object": { "type": "Identifier", - "start": 15802, - "end": 15818, + "start": 15845, + "end": 15861, "loc": { "start": { "line": 413, @@ -70331,8 +70343,8 @@ }, "property": { "type": "Identifier", - "start": 15819, - "end": 15833, + "start": 15862, + "end": 15876, "loc": { "start": { "line": 413, @@ -70359,8 +70371,8 @@ { "type": "CommentLine", "value": " If the delta time grows too large, we clamp it", - "start": 15671, - "end": 15720, + "start": 15714, + "end": 15763, "loc": { "start": { "line": 411, @@ -70377,8 +70389,8 @@ { "type": "CommentLine", "value": " Loop active instances and update.", - "start": 15843, - "end": 15879, + "start": 15886, + "end": 15922, "loc": { "start": { "line": 415, @@ -70394,8 +70406,8 @@ }, { "type": "ExpressionStatement", - "start": 15883, - "end": 20568, + "start": 15926, + "end": 20611, "loc": { "start": { "line": 416, @@ -70408,8 +70420,8 @@ }, "expression": { "type": "CallExpression", - "start": 15883, - "end": 20567, + "start": 15926, + "end": 20610, "loc": { "start": { "line": 416, @@ -70422,8 +70434,8 @@ }, "callee": { "type": "MemberExpression", - "start": 15883, - "end": 15911, + "start": 15926, + "end": 15954, "loc": { "start": { "line": 416, @@ -70436,8 +70448,8 @@ }, "object": { "type": "MemberExpression", - "start": 15883, - "end": 15903, + "start": 15926, + "end": 15946, "loc": { "start": { "line": 416, @@ -70450,8 +70462,8 @@ }, "object": { "type": "ThisExpression", - "start": 15883, - "end": 15887, + "start": 15926, + "end": 15930, "loc": { "start": { "line": 416, @@ -70466,8 +70478,8 @@ }, "property": { "type": "Identifier", - "start": 15888, - "end": 15903, + "start": 15931, + "end": 15946, "loc": { "start": { "line": 416, @@ -70486,8 +70498,8 @@ }, "property": { "type": "Identifier", - "start": 15904, - "end": 15911, + "start": 15947, + "end": 15954, "loc": { "start": { "line": 416, @@ -70507,8 +70519,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 15912, - "end": 20566, + "start": 15955, + "end": 20609, "loc": { "start": { "line": 416, @@ -70526,8 +70538,8 @@ "params": [ { "type": "Identifier", - "start": 15913, - "end": 15922, + "start": 15956, + "end": 15965, "loc": { "start": { "line": 416, @@ -70544,8 +70556,8 @@ ], "body": { "type": "BlockStatement", - "start": 15927, - "end": 20566, + "start": 15970, + "end": 20609, "loc": { "start": { "line": 416, @@ -70559,8 +70571,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 15980, - "end": 16037, + "start": 16023, + "end": 16080, "loc": { "start": { "line": 418, @@ -70574,8 +70586,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 15986, - "end": 16036, + "start": 16029, + "end": 16079, "loc": { "start": { "line": 418, @@ -70588,8 +70600,8 @@ }, "id": { "type": "Identifier", - "start": 15986, - "end": 15998, + "start": 16029, + "end": 16041, "loc": { "start": { "line": 418, @@ -70606,8 +70618,8 @@ }, "init": { "type": "CallExpression", - "start": 16001, - "end": 16036, + "start": 16044, + "end": 16079, "loc": { "start": { "line": 418, @@ -70620,8 +70632,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16001, - "end": 16025, + "start": 16044, + "end": 16068, "loc": { "start": { "line": 418, @@ -70634,8 +70646,8 @@ }, "object": { "type": "MemberExpression", - "start": 16001, - "end": 16021, + "start": 16044, + "end": 16064, "loc": { "start": { "line": 418, @@ -70648,8 +70660,8 @@ }, "object": { "type": "ThisExpression", - "start": 16001, - "end": 16005, + "start": 16044, + "end": 16048, "loc": { "start": { "line": 418, @@ -70663,8 +70675,8 @@ }, "property": { "type": "Identifier", - "start": 16006, - "end": 16021, + "start": 16049, + "end": 16064, "loc": { "start": { "line": 418, @@ -70682,8 +70694,8 @@ }, "property": { "type": "Identifier", - "start": 16022, - "end": 16025, + "start": 16065, + "end": 16068, "loc": { "start": { "line": 418, @@ -70702,8 +70714,8 @@ "arguments": [ { "type": "Identifier", - "start": 16026, - "end": 16035, + "start": 16069, + "end": 16078, "loc": { "start": { "line": 418, @@ -70727,8 +70739,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 15933, - "end": 15975, + "start": 15976, + "end": 16018, "loc": { "start": { "line": 417, @@ -70744,8 +70756,8 @@ }, { "type": "IfStatement", - "start": 16042, - "end": 20561, + "start": 16085, + "end": 20604, "loc": { "start": { "line": 419, @@ -70758,8 +70770,8 @@ }, "test": { "type": "Identifier", - "start": 16046, - "end": 16058, + "start": 16089, + "end": 16101, "loc": { "start": { "line": 419, @@ -70775,8 +70787,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 16060, - "end": 20561, + "start": 16103, + "end": 20604, "loc": { "start": { "line": 419, @@ -70790,8 +70802,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 16094, - "end": 16128, + "start": 16137, + "end": 16171, "loc": { "start": { "line": 421, @@ -70804,8 +70816,8 @@ }, "expression": { "type": "CallExpression", - "start": 16094, - "end": 16127, + "start": 16137, + "end": 16170, "loc": { "start": { "line": 421, @@ -70818,8 +70830,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16094, - "end": 16125, + "start": 16137, + "end": 16168, "loc": { "start": { "line": 421, @@ -70832,8 +70844,8 @@ }, "object": { "type": "MemberExpression", - "start": 16094, - "end": 16115, + "start": 16137, + "end": 16158, "loc": { "start": { "line": 421, @@ -70846,8 +70858,8 @@ }, "object": { "type": "Identifier", - "start": 16094, - "end": 16106, + "start": 16137, + "end": 16149, "loc": { "start": { "line": 421, @@ -70864,8 +70876,8 @@ }, "property": { "type": "Identifier", - "start": 16107, - "end": 16115, + "start": 16150, + "end": 16158, "loc": { "start": { "line": 421, @@ -70884,8 +70896,8 @@ }, "property": { "type": "Identifier", - "start": 16116, - "end": 16125, + "start": 16159, + "end": 16168, "loc": { "start": { "line": 421, @@ -70909,8 +70921,8 @@ { "type": "CommentLine", "value": " Calculate the path", - "start": 16067, - "end": 16088, + "start": 16110, + "end": 16131, "loc": { "start": { "line": 420, @@ -70927,8 +70939,8 @@ { "type": "CommentLine", "value": " If this instance is being moved", - "start": 16136, - "end": 16170, + "start": 16179, + "end": 16213, "loc": { "start": { "line": 423, @@ -70944,8 +70956,8 @@ }, { "type": "IfStatement", - "start": 16176, - "end": 20555, + "start": 16219, + "end": 20598, "loc": { "start": { "line": 424, @@ -70958,8 +70970,8 @@ }, "test": { "type": "LogicalExpression", - "start": 16180, - "end": 16265, + "start": 16223, + "end": 16308, "loc": { "start": { "line": 424, @@ -70972,8 +70984,8 @@ }, "left": { "type": "CallExpression", - "start": 16180, - "end": 16212, + "start": 16223, + "end": 16255, "loc": { "start": { "line": 424, @@ -70986,8 +70998,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16180, - "end": 16193, + "start": 16223, + "end": 16236, "loc": { "start": { "line": 424, @@ -71000,8 +71012,8 @@ }, "object": { "type": "Identifier", - "start": 16180, - "end": 16185, + "start": 16223, + "end": 16228, "loc": { "start": { "line": 424, @@ -71018,8 +71030,8 @@ }, "property": { "type": "Identifier", - "start": 16186, - "end": 16193, + "start": 16229, + "end": 16236, "loc": { "start": { "line": 424, @@ -71039,8 +71051,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 16194, - "end": 16211, + "start": 16237, + "end": 16254, "loc": { "start": { "line": 424, @@ -71053,8 +71065,8 @@ }, "object": { "type": "Identifier", - "start": 16194, - "end": 16206, + "start": 16237, + "end": 16249, "loc": { "start": { "line": 424, @@ -71070,8 +71082,8 @@ }, "property": { "type": "Identifier", - "start": 16207, - "end": 16211, + "start": 16250, + "end": 16254, "loc": { "start": { "line": 424, @@ -71093,8 +71105,8 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 16217, - "end": 16264, + "start": 16260, + "end": 16307, "loc": { "start": { "line": 424, @@ -71107,8 +71119,8 @@ }, "left": { "type": "MemberExpression", - "start": 16217, - "end": 16241, + "start": 16260, + "end": 16284, "loc": { "start": { "line": 424, @@ -71121,8 +71133,8 @@ }, "object": { "type": "MemberExpression", - "start": 16217, - "end": 16234, + "start": 16260, + "end": 16277, "loc": { "start": { "line": 424, @@ -71135,8 +71147,8 @@ }, "object": { "type": "Identifier", - "start": 16217, - "end": 16229, + "start": 16260, + "end": 16272, "loc": { "start": { "line": 424, @@ -71152,8 +71164,8 @@ }, "property": { "type": "Identifier", - "start": 16230, - "end": 16234, + "start": 16273, + "end": 16277, "loc": { "start": { "line": 424, @@ -71171,8 +71183,8 @@ }, "property": { "type": "Identifier", - "start": 16235, - "end": 16241, + "start": 16278, + "end": 16284, "loc": { "start": { "line": 424, @@ -71191,8 +71203,8 @@ "operator": "||", "right": { "type": "MemberExpression", - "start": 16245, - "end": 16264, + "start": 16288, + "end": 16307, "loc": { "start": { "line": 424, @@ -71205,8 +71217,8 @@ }, "object": { "type": "Identifier", - "start": 16245, - "end": 16257, + "start": 16288, + "end": 16300, "loc": { "start": { "line": 424, @@ -71222,8 +71234,8 @@ }, "property": { "type": "Identifier", - "start": 16258, - "end": 16264, + "start": 16301, + "end": 16307, "loc": { "start": { "line": 424, @@ -71241,15 +71253,15 @@ }, "extra": { "parenthesized": true, - "parenStart": 16216 + "parenStart": 16259 } }, "leadingComments": null }, "consequent": { "type": "BlockStatement", - "start": 16267, - "end": 20555, + "start": 16310, + "end": 20598, "loc": { "start": { "line": 424, @@ -71263,8 +71275,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 16317, - "end": 16382, + "start": 16360, + "end": 16425, "loc": { "start": { "line": 426, @@ -71278,8 +71290,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 16323, - "end": 16381, + "start": 16366, + "end": 16424, "loc": { "start": { "line": 426, @@ -71292,8 +71304,8 @@ }, "id": { "type": "Identifier", - "start": 16323, - "end": 16339, + "start": 16366, + "end": 16382, "loc": { "start": { "line": 426, @@ -71310,8 +71322,8 @@ }, "init": { "type": "CallExpression", - "start": 16342, - "end": 16381, + "start": 16385, + "end": 16424, "loc": { "start": { "line": 426, @@ -71324,8 +71336,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16342, - "end": 16370, + "start": 16385, + "end": 16413, "loc": { "start": { "line": 426, @@ -71338,8 +71350,8 @@ }, "object": { "type": "ThisExpression", - "start": 16342, - "end": 16346, + "start": 16385, + "end": 16389, "loc": { "start": { "line": 426, @@ -71353,8 +71365,8 @@ }, "property": { "type": "Identifier", - "start": 16347, - "end": 16370, + "start": 16390, + "end": 16413, "loc": { "start": { "line": 426, @@ -71373,8 +71385,8 @@ "arguments": [ { "type": "Identifier", - "start": 16371, - "end": 16380, + "start": 16414, + "end": 16423, "loc": { "start": { "line": 426, @@ -71398,8 +71410,8 @@ { "type": "CommentLine", "value": " Get the position of the instance", - "start": 16275, - "end": 16310, + "start": 16318, + "end": 16353, "loc": { "start": { "line": 425, @@ -71416,8 +71428,8 @@ { "type": "CommentLine", "value": " If the instance is not moving", - "start": 16389, - "end": 16421, + "start": 16432, + "end": 16464, "loc": { "start": { "line": 427, @@ -71433,8 +71445,8 @@ }, { "type": "IfStatement", - "start": 16428, - "end": 19728, + "start": 16471, + "end": 19771, "loc": { "start": { "line": 428, @@ -71447,8 +71459,8 @@ }, "test": { "type": "UnaryExpression", - "start": 16432, - "end": 16452, + "start": 16475, + "end": 16495, "loc": { "start": { "line": 428, @@ -71463,8 +71475,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 16433, - "end": 16452, + "start": 16476, + "end": 16495, "loc": { "start": { "line": 428, @@ -71477,8 +71489,8 @@ }, "object": { "type": "Identifier", - "start": 16433, - "end": 16445, + "start": 16476, + "end": 16488, "loc": { "start": { "line": 428, @@ -71495,8 +71507,8 @@ }, "property": { "type": "Identifier", - "start": 16446, - "end": 16452, + "start": 16489, + "end": 16495, "loc": { "start": { "line": 428, @@ -71520,8 +71532,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 16454, - "end": 18039, + "start": 16497, + "end": 18082, "loc": { "start": { "line": 428, @@ -71535,8 +71547,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 16505, - "end": 16544, + "start": 16548, + "end": 16587, "loc": { "start": { "line": 430, @@ -71550,8 +71562,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 16511, - "end": 16543, + "start": 16554, + "end": 16586, "loc": { "start": { "line": 430, @@ -71564,8 +71576,8 @@ }, "id": { "type": "Identifier", - "start": 16511, - "end": 16515, + "start": 16554, + "end": 16558, "loc": { "start": { "line": 430, @@ -71582,8 +71594,8 @@ }, "init": { "type": "CallExpression", - "start": 16518, - "end": 16543, + "start": 16561, + "end": 16586, "loc": { "start": { "line": 430, @@ -71596,8 +71608,8 @@ }, "callee": { "type": "MemberExpression", - "start": 16518, - "end": 16541, + "start": 16561, + "end": 16584, "loc": { "start": { "line": 430, @@ -71610,8 +71622,8 @@ }, "object": { "type": "MemberExpression", - "start": 16518, - "end": 16535, + "start": 16561, + "end": 16578, "loc": { "start": { "line": 430, @@ -71624,8 +71636,8 @@ }, "object": { "type": "Identifier", - "start": 16518, - "end": 16530, + "start": 16561, + "end": 16573, "loc": { "start": { "line": 430, @@ -71641,8 +71653,8 @@ }, "property": { "type": "Identifier", - "start": 16531, - "end": 16535, + "start": 16574, + "end": 16578, "loc": { "start": { "line": 430, @@ -71660,8 +71672,8 @@ }, "property": { "type": "Identifier", - "start": 16536, - "end": 16541, + "start": 16579, + "end": 16584, "loc": { "start": { "line": 430, @@ -71687,8 +71699,8 @@ { "type": "CommentLine", "value": " Get the next node to travel to.", - "start": 16463, - "end": 16497, + "start": 16506, + "end": 16540, "loc": { "start": { "line": 429, @@ -71705,8 +71717,8 @@ { "type": "CommentLine", "value": " Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.", - "start": 16552, - "end": 16686, + "start": 16595, + "end": 16729, "loc": { "start": { "line": 431, @@ -71722,8 +71734,8 @@ }, { "type": "VariableDeclaration", - "start": 16694, - "end": 16863, + "start": 16737, + "end": 16906, "loc": { "start": { "line": 432, @@ -71737,8 +71749,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 16700, - "end": 16862, + "start": 16743, + "end": 16905, "loc": { "start": { "line": 432, @@ -71751,8 +71763,8 @@ }, "id": { "type": "Identifier", - "start": 16700, - "end": 16707, + "start": 16743, + "end": 16750, "loc": { "start": { "line": 432, @@ -71769,8 +71781,8 @@ }, "init": { "type": "ObjectExpression", - "start": 16710, - "end": 16862, + "start": 16753, + "end": 16905, "loc": { "start": { "line": 432, @@ -71784,8 +71796,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 16721, - "end": 16780, + "start": 16764, + "end": 16823, "loc": { "start": { "line": 433, @@ -71801,8 +71813,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 16721, - "end": 16722, + "start": 16764, + "end": 16765, "loc": { "start": { "line": 433, @@ -71818,8 +71830,8 @@ }, "value": { "type": "BinaryExpression", - "start": 16724, - "end": 16780, + "start": 16767, + "end": 16823, "loc": { "start": { "line": 433, @@ -71832,8 +71844,8 @@ }, "left": { "type": "BinaryExpression", - "start": 16725, - "end": 16753, + "start": 16768, + "end": 16796, "loc": { "start": { "line": 433, @@ -71846,8 +71858,8 @@ }, "left": { "type": "MemberExpression", - "start": 16725, - "end": 16731, + "start": 16768, + "end": 16774, "loc": { "start": { "line": 433, @@ -71860,8 +71872,8 @@ }, "object": { "type": "Identifier", - "start": 16725, - "end": 16729, + "start": 16768, + "end": 16772, "loc": { "start": { "line": 433, @@ -71877,8 +71889,8 @@ }, "property": { "type": "Identifier", - "start": 16730, - "end": 16731, + "start": 16773, + "end": 16774, "loc": { "start": { "line": 433, @@ -71897,8 +71909,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 16734, - "end": 16753, + "start": 16777, + "end": 16796, "loc": { "start": { "line": 433, @@ -71911,8 +71923,8 @@ }, "object": { "type": "MemberExpression", - "start": 16734, - "end": 16747, + "start": 16777, + "end": 16790, "loc": { "start": { "line": 433, @@ -71925,8 +71937,8 @@ }, "object": { "type": "ThisExpression", - "start": 16734, - "end": 16738, + "start": 16777, + "end": 16781, "loc": { "start": { "line": 433, @@ -71940,8 +71952,8 @@ }, "property": { "type": "Identifier", - "start": 16739, - "end": 16747, + "start": 16782, + "end": 16790, "loc": { "start": { "line": 433, @@ -71959,8 +71971,8 @@ }, "property": { "type": "Identifier", - "start": 16748, - "end": 16753, + "start": 16791, + "end": 16796, "loc": { "start": { "line": 433, @@ -71978,14 +71990,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 16724 + "parenStart": 16767 } }, "operator": "-", "right": { "type": "BinaryExpression", - "start": 16757, - "end": 16780, + "start": 16800, + "end": 16823, "loc": { "start": { "line": 433, @@ -71998,8 +72010,8 @@ }, "left": { "type": "MemberExpression", - "start": 16757, - "end": 16776, + "start": 16800, + "end": 16819, "loc": { "start": { "line": 433, @@ -72012,8 +72024,8 @@ }, "object": { "type": "MemberExpression", - "start": 16757, - "end": 16770, + "start": 16800, + "end": 16813, "loc": { "start": { "line": 433, @@ -72026,8 +72038,8 @@ }, "object": { "type": "ThisExpression", - "start": 16757, - "end": 16761, + "start": 16800, + "end": 16804, "loc": { "start": { "line": 433, @@ -72041,8 +72053,8 @@ }, "property": { "type": "Identifier", - "start": 16762, - "end": 16770, + "start": 16805, + "end": 16813, "loc": { "start": { "line": 433, @@ -72060,8 +72072,8 @@ }, "property": { "type": "Identifier", - "start": 16771, - "end": 16776, + "start": 16814, + "end": 16819, "loc": { "start": { "line": 433, @@ -72080,8 +72092,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 16779, - "end": 16780, + "start": 16822, + "end": 16823, "loc": { "start": { "line": 433, @@ -72103,8 +72115,8 @@ }, { "type": "ObjectProperty", - "start": 16791, - "end": 16852, + "start": 16834, + "end": 16895, "loc": { "start": { "line": 434, @@ -72120,8 +72132,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 16791, - "end": 16792, + "start": 16834, + "end": 16835, "loc": { "start": { "line": 434, @@ -72137,8 +72149,8 @@ }, "value": { "type": "BinaryExpression", - "start": 16794, - "end": 16852, + "start": 16837, + "end": 16895, "loc": { "start": { "line": 434, @@ -72151,8 +72163,8 @@ }, "left": { "type": "BinaryExpression", - "start": 16795, - "end": 16824, + "start": 16838, + "end": 16867, "loc": { "start": { "line": 434, @@ -72165,8 +72177,8 @@ }, "left": { "type": "MemberExpression", - "start": 16795, - "end": 16801, + "start": 16838, + "end": 16844, "loc": { "start": { "line": 434, @@ -72179,8 +72191,8 @@ }, "object": { "type": "Identifier", - "start": 16795, - "end": 16799, + "start": 16838, + "end": 16842, "loc": { "start": { "line": 434, @@ -72196,8 +72208,8 @@ }, "property": { "type": "Identifier", - "start": 16800, - "end": 16801, + "start": 16843, + "end": 16844, "loc": { "start": { "line": 434, @@ -72216,8 +72228,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 16804, - "end": 16824, + "start": 16847, + "end": 16867, "loc": { "start": { "line": 434, @@ -72230,8 +72242,8 @@ }, "object": { "type": "MemberExpression", - "start": 16804, - "end": 16817, + "start": 16847, + "end": 16860, "loc": { "start": { "line": 434, @@ -72244,8 +72256,8 @@ }, "object": { "type": "ThisExpression", - "start": 16804, - "end": 16808, + "start": 16847, + "end": 16851, "loc": { "start": { "line": 434, @@ -72259,8 +72271,8 @@ }, "property": { "type": "Identifier", - "start": 16809, - "end": 16817, + "start": 16852, + "end": 16860, "loc": { "start": { "line": 434, @@ -72278,8 +72290,8 @@ }, "property": { "type": "Identifier", - "start": 16818, - "end": 16824, + "start": 16861, + "end": 16867, "loc": { "start": { "line": 434, @@ -72297,14 +72309,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 16794 + "parenStart": 16837 } }, "operator": "-", "right": { "type": "BinaryExpression", - "start": 16828, - "end": 16852, + "start": 16871, + "end": 16895, "loc": { "start": { "line": 434, @@ -72317,8 +72329,8 @@ }, "left": { "type": "MemberExpression", - "start": 16828, - "end": 16848, + "start": 16871, + "end": 16891, "loc": { "start": { "line": 434, @@ -72331,8 +72343,8 @@ }, "object": { "type": "MemberExpression", - "start": 16828, - "end": 16841, + "start": 16871, + "end": 16884, "loc": { "start": { "line": 434, @@ -72345,8 +72357,8 @@ }, "object": { "type": "ThisExpression", - "start": 16828, - "end": 16832, + "start": 16871, + "end": 16875, "loc": { "start": { "line": 434, @@ -72360,8 +72372,8 @@ }, "property": { "type": "Identifier", - "start": 16833, - "end": 16841, + "start": 16876, + "end": 16884, "loc": { "start": { "line": 434, @@ -72379,8 +72391,8 @@ }, "property": { "type": "Identifier", - "start": 16842, - "end": 16848, + "start": 16885, + "end": 16891, "loc": { "start": { "line": 434, @@ -72399,8 +72411,8 @@ "operator": "/", "right": { "type": "NumericLiteral", - "start": 16851, - "end": 16852, + "start": 16894, + "end": 16895, "loc": { "start": { "line": 434, @@ -72430,8 +72442,8 @@ { "type": "CommentLine", "value": " Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.", - "start": 16552, - "end": 16686, + "start": 16595, + "end": 16729, "loc": { "start": { "line": 431, @@ -72448,8 +72460,8 @@ { "type": "CommentLine", "value": " Store the next node position", - "start": 16871, - "end": 16902, + "start": 16914, + "end": 16945, "loc": { "start": { "line": 436, @@ -72465,8 +72477,8 @@ }, { "type": "ExpressionStatement", - "start": 16910, - "end": 16956, + "start": 16953, + "end": 16999, "loc": { "start": { "line": 437, @@ -72479,8 +72491,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 16910, - "end": 16955, + "start": 16953, + "end": 16998, "loc": { "start": { "line": 437, @@ -72494,8 +72506,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 16910, - "end": 16945, + "start": 16953, + "end": 16988, "loc": { "start": { "line": 437, @@ -72508,8 +72520,8 @@ }, "object": { "type": "MemberExpression", - "start": 16910, - "end": 16933, + "start": 16953, + "end": 16976, "loc": { "start": { "line": 437, @@ -72522,8 +72534,8 @@ }, "object": { "type": "Identifier", - "start": 16910, - "end": 16922, + "start": 16953, + "end": 16965, "loc": { "start": { "line": 437, @@ -72540,8 +72552,8 @@ }, "property": { "type": "Identifier", - "start": 16923, - "end": 16933, + "start": 16966, + "end": 16976, "loc": { "start": { "line": 437, @@ -72560,8 +72572,8 @@ }, "property": { "type": "Identifier", - "start": 16934, - "end": 16945, + "start": 16977, + "end": 16988, "loc": { "start": { "line": 437, @@ -72580,8 +72592,8 @@ }, "right": { "type": "Identifier", - "start": 16948, - "end": 16955, + "start": 16991, + "end": 16998, "loc": { "start": { "line": 437, @@ -72601,8 +72613,8 @@ { "type": "CommentLine", "value": " Store the next node position", - "start": 16871, - "end": 16902, + "start": 16914, + "end": 16945, "loc": { "start": { "line": 436, @@ -72619,8 +72631,8 @@ { "type": "CommentLine", "value": " Get the angle from the instance's position to the next node", - "start": 16964, - "end": 17026, + "start": 17007, + "end": 17069, "loc": { "start": { "line": 438, @@ -72636,8 +72648,8 @@ }, { "type": "ExpressionStatement", - "start": 17034, - "end": 17137, + "start": 17077, + "end": 17180, "loc": { "start": { "line": 439, @@ -72650,8 +72662,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17034, - "end": 17136, + "start": 17077, + "end": 17179, "loc": { "start": { "line": 439, @@ -72665,8 +72677,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17034, - "end": 17063, + "start": 17077, + "end": 17106, "loc": { "start": { "line": 439, @@ -72679,8 +72691,8 @@ }, "object": { "type": "MemberExpression", - "start": 17034, - "end": 17057, + "start": 17077, + "end": 17100, "loc": { "start": { "line": 439, @@ -72693,8 +72705,8 @@ }, "object": { "type": "Identifier", - "start": 17034, - "end": 17046, + "start": 17077, + "end": 17089, "loc": { "start": { "line": 439, @@ -72711,8 +72723,8 @@ }, "property": { "type": "Identifier", - "start": 17047, - "end": 17057, + "start": 17090, + "end": 17100, "loc": { "start": { "line": 439, @@ -72731,8 +72743,8 @@ }, "property": { "type": "Identifier", - "start": 17058, - "end": 17063, + "start": 17101, + "end": 17106, "loc": { "start": { "line": 439, @@ -72751,8 +72763,8 @@ }, "right": { "type": "CallExpression", - "start": 17066, - "end": 17136, + "start": 17109, + "end": 17179, "loc": { "start": { "line": 439, @@ -72765,8 +72777,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17066, - "end": 17081, + "start": 17109, + "end": 17124, "loc": { "start": { "line": 439, @@ -72779,8 +72791,8 @@ }, "object": { "type": "Identifier", - "start": 17066, - "end": 17071, + "start": 17109, + "end": 17114, "loc": { "start": { "line": 439, @@ -72796,8 +72808,8 @@ }, "property": { "type": "Identifier", - "start": 17072, - "end": 17081, + "start": 17115, + "end": 17124, "loc": { "start": { "line": 439, @@ -72816,8 +72828,8 @@ "arguments": [ { "type": "Identifier", - "start": 17082, - "end": 17098, + "start": 17125, + "end": 17141, "loc": { "start": { "line": 439, @@ -72833,8 +72845,8 @@ }, { "type": "MemberExpression", - "start": 17100, - "end": 17135, + "start": 17143, + "end": 17178, "loc": { "start": { "line": 439, @@ -72847,8 +72859,8 @@ }, "object": { "type": "MemberExpression", - "start": 17100, - "end": 17123, + "start": 17143, + "end": 17166, "loc": { "start": { "line": 439, @@ -72861,8 +72873,8 @@ }, "object": { "type": "Identifier", - "start": 17100, - "end": 17112, + "start": 17143, + "end": 17155, "loc": { "start": { "line": 439, @@ -72878,8 +72890,8 @@ }, "property": { "type": "Identifier", - "start": 17113, - "end": 17123, + "start": 17156, + "end": 17166, "loc": { "start": { "line": 439, @@ -72897,8 +72909,8 @@ }, "property": { "type": "Identifier", - "start": 17124, - "end": 17135, + "start": 17167, + "end": 17178, "loc": { "start": { "line": 439, @@ -72922,8 +72934,8 @@ { "type": "CommentLine", "value": " Get the angle from the instance's position to the next node", - "start": 16964, - "end": 17026, + "start": 17007, + "end": 17069, "loc": { "start": { "line": 438, @@ -72940,8 +72952,8 @@ { "type": "CommentLine", "value": " Get the trajectory of where to move the instance based on the angle", - "start": 17145, - "end": 17215, + "start": 17188, + "end": 17258, "loc": { "start": { "line": 440, @@ -72957,8 +72969,8 @@ }, { "type": "ExpressionStatement", - "start": 17223, - "end": 17291, + "start": 17266, + "end": 17334, "loc": { "start": { "line": 441, @@ -72971,8 +72983,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17223, - "end": 17290, + "start": 17266, + "end": 17333, "loc": { "start": { "line": 441, @@ -72986,8 +72998,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17223, - "end": 17248, + "start": 17266, + "end": 17291, "loc": { "start": { "line": 441, @@ -73000,8 +73012,8 @@ }, "object": { "type": "MemberExpression", - "start": 17223, - "end": 17246, + "start": 17266, + "end": 17289, "loc": { "start": { "line": 441, @@ -73014,8 +73026,8 @@ }, "object": { "type": "Identifier", - "start": 17223, - "end": 17235, + "start": 17266, + "end": 17278, "loc": { "start": { "line": 441, @@ -73032,8 +73044,8 @@ }, "property": { "type": "Identifier", - "start": 17236, - "end": 17246, + "start": 17279, + "end": 17289, "loc": { "start": { "line": 441, @@ -73052,8 +73064,8 @@ }, "property": { "type": "Identifier", - "start": 17247, - "end": 17248, + "start": 17290, + "end": 17291, "loc": { "start": { "line": 441, @@ -73072,8 +73084,8 @@ }, "right": { "type": "CallExpression", - "start": 17251, - "end": 17290, + "start": 17294, + "end": 17333, "loc": { "start": { "line": 441, @@ -73086,8 +73098,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17251, - "end": 17259, + "start": 17294, + "end": 17302, "loc": { "start": { "line": 441, @@ -73100,8 +73112,8 @@ }, "object": { "type": "Identifier", - "start": 17251, - "end": 17255, + "start": 17294, + "end": 17298, "loc": { "start": { "line": 441, @@ -73117,8 +73129,8 @@ }, "property": { "type": "Identifier", - "start": 17256, - "end": 17259, + "start": 17299, + "end": 17302, "loc": { "start": { "line": 441, @@ -73137,8 +73149,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17260, - "end": 17289, + "start": 17303, + "end": 17332, "loc": { "start": { "line": 441, @@ -73151,8 +73163,8 @@ }, "object": { "type": "MemberExpression", - "start": 17260, - "end": 17283, + "start": 17303, + "end": 17326, "loc": { "start": { "line": 441, @@ -73165,8 +73177,8 @@ }, "object": { "type": "Identifier", - "start": 17260, - "end": 17272, + "start": 17303, + "end": 17315, "loc": { "start": { "line": 441, @@ -73182,8 +73194,8 @@ }, "property": { "type": "Identifier", - "start": 17273, - "end": 17283, + "start": 17316, + "end": 17326, "loc": { "start": { "line": 441, @@ -73201,8 +73213,8 @@ }, "property": { "type": "Identifier", - "start": 17284, - "end": 17289, + "start": 17327, + "end": 17332, "loc": { "start": { "line": 441, @@ -73226,8 +73238,8 @@ { "type": "CommentLine", "value": " Get the trajectory of where to move the instance based on the angle", - "start": 17145, - "end": 17215, + "start": 17188, + "end": 17258, "loc": { "start": { "line": 440, @@ -73243,8 +73255,8 @@ }, { "type": "ExpressionStatement", - "start": 17299, - "end": 17368, + "start": 17342, + "end": 17411, "loc": { "start": { "line": 442, @@ -73257,8 +73269,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17299, - "end": 17367, + "start": 17342, + "end": 17410, "loc": { "start": { "line": 442, @@ -73272,8 +73284,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17299, - "end": 17324, + "start": 17342, + "end": 17367, "loc": { "start": { "line": 442, @@ -73286,8 +73298,8 @@ }, "object": { "type": "MemberExpression", - "start": 17299, - "end": 17322, + "start": 17342, + "end": 17365, "loc": { "start": { "line": 442, @@ -73300,8 +73312,8 @@ }, "object": { "type": "Identifier", - "start": 17299, - "end": 17311, + "start": 17342, + "end": 17354, "loc": { "start": { "line": 442, @@ -73317,8 +73329,8 @@ }, "property": { "type": "Identifier", - "start": 17312, - "end": 17322, + "start": 17355, + "end": 17365, "loc": { "start": { "line": 442, @@ -73336,8 +73348,8 @@ }, "property": { "type": "Identifier", - "start": 17323, - "end": 17324, + "start": 17366, + "end": 17367, "loc": { "start": { "line": 442, @@ -73355,8 +73367,8 @@ }, "right": { "type": "UnaryExpression", - "start": 17327, - "end": 17367, + "start": 17370, + "end": 17410, "loc": { "start": { "line": 442, @@ -73371,8 +73383,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 17328, - "end": 17367, + "start": 17371, + "end": 17410, "loc": { "start": { "line": 442, @@ -73385,8 +73397,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17328, - "end": 17336, + "start": 17371, + "end": 17379, "loc": { "start": { "line": 442, @@ -73399,8 +73411,8 @@ }, "object": { "type": "Identifier", - "start": 17328, - "end": 17332, + "start": 17371, + "end": 17375, "loc": { "start": { "line": 442, @@ -73416,8 +73428,8 @@ }, "property": { "type": "Identifier", - "start": 17333, - "end": 17336, + "start": 17376, + "end": 17379, "loc": { "start": { "line": 442, @@ -73436,8 +73448,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17337, - "end": 17366, + "start": 17380, + "end": 17409, "loc": { "start": { "line": 442, @@ -73450,8 +73462,8 @@ }, "object": { "type": "MemberExpression", - "start": 17337, - "end": 17360, + "start": 17380, + "end": 17403, "loc": { "start": { "line": 442, @@ -73464,8 +73476,8 @@ }, "object": { "type": "Identifier", - "start": 17337, - "end": 17349, + "start": 17380, + "end": 17392, "loc": { "start": { "line": 442, @@ -73481,8 +73493,8 @@ }, "property": { "type": "Identifier", - "start": 17350, - "end": 17360, + "start": 17393, + "end": 17403, "loc": { "start": { "line": 442, @@ -73500,8 +73512,8 @@ }, "property": { "type": "Identifier", - "start": 17361, - "end": 17366, + "start": 17404, + "end": 17409, "loc": { "start": { "line": 442, @@ -73528,8 +73540,8 @@ { "type": "CommentLine", "value": " Update the direction of the instance based on the angle to the next node", - "start": 17376, - "end": 17451, + "start": 17419, + "end": 17494, "loc": { "start": { "line": 443, @@ -73545,8 +73557,8 @@ }, { "type": "ExpressionStatement", - "start": 17459, - "end": 17525, + "start": 17502, + "end": 17568, "loc": { "start": { "line": 444, @@ -73559,8 +73571,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 17459, - "end": 17524, + "start": 17502, + "end": 17567, "loc": { "start": { "line": 444, @@ -73574,8 +73586,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 17459, - "end": 17472, + "start": 17502, + "end": 17515, "loc": { "start": { "line": 444, @@ -73588,8 +73600,8 @@ }, "object": { "type": "Identifier", - "start": 17459, - "end": 17468, + "start": 17502, + "end": 17511, "loc": { "start": { "line": 444, @@ -73606,8 +73618,8 @@ }, "property": { "type": "Identifier", - "start": 17469, - "end": 17472, + "start": 17512, + "end": 17515, "loc": { "start": { "line": 444, @@ -73626,8 +73638,8 @@ }, "right": { "type": "CallExpression", - "start": 17475, - "end": 17524, + "start": 17518, + "end": 17567, "loc": { "start": { "line": 444, @@ -73640,8 +73652,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17475, - "end": 17493, + "start": 17518, + "end": 17536, "loc": { "start": { "line": 444, @@ -73654,8 +73666,8 @@ }, "object": { "type": "Identifier", - "start": 17475, - "end": 17480, + "start": 17518, + "end": 17523, "loc": { "start": { "line": 444, @@ -73671,8 +73683,8 @@ }, "property": { "type": "Identifier", - "start": 17481, - "end": 17493, + "start": 17524, + "end": 17536, "loc": { "start": { "line": 444, @@ -73691,8 +73703,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17494, - "end": 17523, + "start": 17537, + "end": 17566, "loc": { "start": { "line": 444, @@ -73705,8 +73717,8 @@ }, "object": { "type": "MemberExpression", - "start": 17494, - "end": 17517, + "start": 17537, + "end": 17560, "loc": { "start": { "line": 444, @@ -73719,8 +73731,8 @@ }, "object": { "type": "Identifier", - "start": 17494, - "end": 17506, + "start": 17537, + "end": 17549, "loc": { "start": { "line": 444, @@ -73736,8 +73748,8 @@ }, "property": { "type": "Identifier", - "start": 17507, - "end": 17517, + "start": 17550, + "end": 17560, "loc": { "start": { "line": 444, @@ -73755,8 +73767,8 @@ }, "property": { "type": "Identifier", - "start": 17518, - "end": 17523, + "start": 17561, + "end": 17566, "loc": { "start": { "line": 444, @@ -73780,8 +73792,8 @@ { "type": "CommentLine", "value": " Update the direction of the instance based on the angle to the next node", - "start": 17376, - "end": 17451, + "start": 17419, + "end": 17494, "loc": { "start": { "line": 443, @@ -73798,8 +73810,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 17533, - "end": 17592, + "start": 17576, + "end": 17635, "loc": { "start": { "line": 445, @@ -73815,8 +73827,8 @@ }, { "type": "IfStatement", - "start": 17600, - "end": 17996, + "start": 17643, + "end": 18039, "loc": { "start": { "line": 446, @@ -73829,8 +73841,8 @@ }, "test": { "type": "BinaryExpression", - "start": 17604, - "end": 17637, + "start": 17647, + "end": 17680, "loc": { "start": { "line": 446, @@ -73843,8 +73855,8 @@ }, "left": { "type": "MemberExpression", - "start": 17604, - "end": 17621, + "start": 17647, + "end": 17664, "loc": { "start": { "line": 446, @@ -73857,8 +73869,8 @@ }, "object": { "type": "Identifier", - "start": 17604, - "end": 17616, + "start": 17647, + "end": 17659, "loc": { "start": { "line": 446, @@ -73875,8 +73887,8 @@ }, "property": { "type": "Identifier", - "start": 17617, - "end": 17621, + "start": 17660, + "end": 17664, "loc": { "start": { "line": 446, @@ -73896,8 +73908,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 17626, - "end": 17637, + "start": 17669, + "end": 17680, "loc": { "start": { "line": 446, @@ -73918,8 +73930,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 17639, - "end": 17730, + "start": 17682, + "end": 17773, "loc": { "start": { "line": 446, @@ -73933,8 +73945,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 17649, - "end": 17721, + "start": 17692, + "end": 17764, "loc": { "start": { "line": 447, @@ -73947,8 +73959,8 @@ }, "expression": { "type": "CallExpression", - "start": 17649, - "end": 17720, + "start": 17692, + "end": 17763, "loc": { "start": { "line": 447, @@ -73961,8 +73973,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17649, - "end": 17666, + "start": 17692, + "end": 17709, "loc": { "start": { "line": 447, @@ -73975,8 +73987,8 @@ }, "object": { "type": "Identifier", - "start": 17649, - "end": 17658, + "start": 17692, + "end": 17701, "loc": { "start": { "line": 447, @@ -73992,8 +74004,8 @@ }, "property": { "type": "Identifier", - "start": 17659, - "end": 17666, + "start": 17702, + "end": 17709, "loc": { "start": { "line": 447, @@ -74012,8 +74024,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 17667, - "end": 17692, + "start": 17710, + "end": 17735, "loc": { "start": { "line": 447, @@ -74026,8 +74038,8 @@ }, "object": { "type": "MemberExpression", - "start": 17667, - "end": 17690, + "start": 17710, + "end": 17733, "loc": { "start": { "line": 447, @@ -74040,8 +74052,8 @@ }, "object": { "type": "Identifier", - "start": 17667, - "end": 17679, + "start": 17710, + "end": 17722, "loc": { "start": { "line": 447, @@ -74057,8 +74069,8 @@ }, "property": { "type": "Identifier", - "start": 17680, - "end": 17690, + "start": 17723, + "end": 17733, "loc": { "start": { "line": 447, @@ -74076,8 +74088,8 @@ }, "property": { "type": "Identifier", - "start": 17691, - "end": 17692, + "start": 17734, + "end": 17735, "loc": { "start": { "line": 447, @@ -74095,8 +74107,8 @@ }, { "type": "MemberExpression", - "start": 17694, - "end": 17719, + "start": 17737, + "end": 17762, "loc": { "start": { "line": 447, @@ -74109,8 +74121,8 @@ }, "object": { "type": "MemberExpression", - "start": 17694, - "end": 17717, + "start": 17737, + "end": 17760, "loc": { "start": { "line": 447, @@ -74123,8 +74135,8 @@ }, "object": { "type": "Identifier", - "start": 17694, - "end": 17706, + "start": 17737, + "end": 17749, "loc": { "start": { "line": 447, @@ -74140,8 +74152,8 @@ }, "property": { "type": "Identifier", - "start": 17707, - "end": 17717, + "start": 17750, + "end": 17760, "loc": { "start": { "line": 447, @@ -74159,8 +74171,8 @@ }, "property": { "type": "Identifier", - "start": 17718, - "end": 17719, + "start": 17761, + "end": 17762, "loc": { "start": { "line": 447, @@ -74184,8 +74196,8 @@ }, "alternate": { "type": "IfStatement", - "start": 17736, - "end": 17996, + "start": 17779, + "end": 18039, "loc": { "start": { "line": 448, @@ -74198,8 +74210,8 @@ }, "test": { "type": "BinaryExpression", - "start": 17740, - "end": 17772, + "start": 17783, + "end": 17815, "loc": { "start": { "line": 448, @@ -74212,8 +74224,8 @@ }, "left": { "type": "MemberExpression", - "start": 17740, - "end": 17757, + "start": 17783, + "end": 17800, "loc": { "start": { "line": 448, @@ -74226,8 +74238,8 @@ }, "object": { "type": "Identifier", - "start": 17740, - "end": 17752, + "start": 17783, + "end": 17795, "loc": { "start": { "line": 448, @@ -74243,8 +74255,8 @@ }, "property": { "type": "Identifier", - "start": 17753, - "end": 17757, + "start": 17796, + "end": 17800, "loc": { "start": { "line": 448, @@ -74263,8 +74275,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 17762, - "end": 17772, + "start": 17805, + "end": 17815, "loc": { "start": { "line": 448, @@ -74284,8 +74296,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 17774, - "end": 17996, + "start": 17817, + "end": 18039, "loc": { "start": { "line": 448, @@ -74299,8 +74311,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 17784, - "end": 17844, + "start": 17827, + "end": 17887, "loc": { "start": { "line": 449, @@ -74314,8 +74326,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 17790, - "end": 17843, + "start": 17833, + "end": 17886, "loc": { "start": { "line": 449, @@ -74328,8 +74340,8 @@ }, "id": { "type": "Identifier", - "start": 17790, - "end": 17795, + "start": 17833, + "end": 17838, "loc": { "start": { "line": 449, @@ -74345,8 +74357,8 @@ }, "init": { "type": "BinaryExpression", - "start": 17798, - "end": 17843, + "start": 17841, + "end": 17886, "loc": { "start": { "line": 449, @@ -74359,8 +74371,8 @@ }, "left": { "type": "MemberExpression", - "start": 17798, - "end": 17826, + "start": 17841, + "end": 17869, "loc": { "start": { "line": 449, @@ -74373,8 +74385,8 @@ }, "object": { "type": "Identifier", - "start": 17798, - "end": 17810, + "start": 17841, + "end": 17853, "loc": { "start": { "line": 449, @@ -74390,8 +74402,8 @@ }, "property": { "type": "Identifier", - "start": 17811, - "end": 17826, + "start": 17854, + "end": 17869, "loc": { "start": { "line": 449, @@ -74410,8 +74422,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 17829, - "end": 17843, + "start": 17872, + "end": 17886, "loc": { "start": { "line": 449, @@ -74424,8 +74436,8 @@ }, "object": { "type": "ThisExpression", - "start": 17829, - "end": 17833, + "start": 17872, + "end": 17876, "loc": { "start": { "line": 449, @@ -74439,8 +74451,8 @@ }, "property": { "type": "Identifier", - "start": 17834, - "end": 17843, + "start": 17877, + "end": 17886, "loc": { "start": { "line": 449, @@ -74463,8 +74475,8 @@ }, { "type": "ExpressionStatement", - "start": 17853, - "end": 17987, + "start": 17896, + "end": 18030, "loc": { "start": { "line": 450, @@ -74477,8 +74489,8 @@ }, "expression": { "type": "CallExpression", - "start": 17853, - "end": 17986, + "start": 17896, + "end": 18029, "loc": { "start": { "line": 450, @@ -74491,8 +74503,8 @@ }, "callee": { "type": "MemberExpression", - "start": 17853, - "end": 17869, + "start": 17896, + "end": 17912, "loc": { "start": { "line": 450, @@ -74505,8 +74517,8 @@ }, "object": { "type": "Identifier", - "start": 17853, - "end": 17862, + "start": 17896, + "end": 17905, "loc": { "start": { "line": 450, @@ -74522,8 +74534,8 @@ }, "property": { "type": "Identifier", - "start": 17863, - "end": 17869, + "start": 17906, + "end": 17912, "loc": { "start": { "line": 450, @@ -74542,8 +74554,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 17870, - "end": 17917, + "start": 17913, + "end": 17960, "loc": { "start": { "line": 450, @@ -74556,8 +74568,8 @@ }, "left": { "type": "MemberExpression", - "start": 17870, - "end": 17881, + "start": 17913, + "end": 17924, "loc": { "start": { "line": 450, @@ -74570,8 +74582,8 @@ }, "object": { "type": "Identifier", - "start": 17870, - "end": 17879, + "start": 17913, + "end": 17922, "loc": { "start": { "line": 450, @@ -74587,8 +74599,8 @@ }, "property": { "type": "Identifier", - "start": 17880, - "end": 17881, + "start": 17923, + "end": 17924, "loc": { "start": { "line": 450, @@ -74607,8 +74619,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 17884, - "end": 17917, + "start": 17927, + "end": 17960, "loc": { "start": { "line": 450, @@ -74621,8 +74633,8 @@ }, "left": { "type": "Identifier", - "start": 17884, - "end": 17889, + "start": 17927, + "end": 17932, "loc": { "start": { "line": 450, @@ -74639,8 +74651,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 17892, - "end": 17917, + "start": 17935, + "end": 17960, "loc": { "start": { "line": 450, @@ -74653,8 +74665,8 @@ }, "object": { "type": "MemberExpression", - "start": 17892, - "end": 17915, + "start": 17935, + "end": 17958, "loc": { "start": { "line": 450, @@ -74667,8 +74679,8 @@ }, "object": { "type": "Identifier", - "start": 17892, - "end": 17904, + "start": 17935, + "end": 17947, "loc": { "start": { "line": 450, @@ -74684,8 +74696,8 @@ }, "property": { "type": "Identifier", - "start": 17905, - "end": 17915, + "start": 17948, + "end": 17958, "loc": { "start": { "line": 450, @@ -74703,8 +74715,8 @@ }, "property": { "type": "Identifier", - "start": 17916, - "end": 17917, + "start": 17959, + "end": 17960, "loc": { "start": { "line": 450, @@ -74724,8 +74736,8 @@ }, { "type": "BinaryExpression", - "start": 17919, - "end": 17966, + "start": 17962, + "end": 18009, "loc": { "start": { "line": 450, @@ -74738,8 +74750,8 @@ }, "left": { "type": "MemberExpression", - "start": 17919, - "end": 17930, + "start": 17962, + "end": 17973, "loc": { "start": { "line": 450, @@ -74752,8 +74764,8 @@ }, "object": { "type": "Identifier", - "start": 17919, - "end": 17928, + "start": 17962, + "end": 17971, "loc": { "start": { "line": 450, @@ -74769,8 +74781,8 @@ }, "property": { "type": "Identifier", - "start": 17929, - "end": 17930, + "start": 17972, + "end": 17973, "loc": { "start": { "line": 450, @@ -74789,8 +74801,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 17933, - "end": 17966, + "start": 17976, + "end": 18009, "loc": { "start": { "line": 450, @@ -74803,8 +74815,8 @@ }, "left": { "type": "Identifier", - "start": 17933, - "end": 17938, + "start": 17976, + "end": 17981, "loc": { "start": { "line": 450, @@ -74821,8 +74833,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 17941, - "end": 17966, + "start": 17984, + "end": 18009, "loc": { "start": { "line": 450, @@ -74835,8 +74847,8 @@ }, "object": { "type": "MemberExpression", - "start": 17941, - "end": 17964, + "start": 17984, + "end": 18007, "loc": { "start": { "line": 450, @@ -74849,8 +74861,8 @@ }, "object": { "type": "Identifier", - "start": 17941, - "end": 17953, + "start": 17984, + "end": 17996, "loc": { "start": { "line": 450, @@ -74866,8 +74878,8 @@ }, "property": { "type": "Identifier", - "start": 17954, - "end": 17964, + "start": 17997, + "end": 18007, "loc": { "start": { "line": 450, @@ -74885,8 +74897,8 @@ }, "property": { "type": "Identifier", - "start": 17965, - "end": 17966, + "start": 18008, + "end": 18009, "loc": { "start": { "line": 450, @@ -74906,8 +74918,8 @@ }, { "type": "MemberExpression", - "start": 17968, - "end": 17985, + "start": 18011, + "end": 18028, "loc": { "start": { "line": 450, @@ -74920,8 +74932,8 @@ }, "object": { "type": "Identifier", - "start": 17968, - "end": 17977, + "start": 18011, + "end": 18020, "loc": { "start": { "line": 450, @@ -74937,8 +74949,8 @@ }, "property": { "type": "Identifier", - "start": 17978, - "end": 17985, + "start": 18021, + "end": 18028, "loc": { "start": { "line": 450, @@ -74966,8 +74978,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 17533, - "end": 17592, + "start": 17576, + "end": 17635, "loc": { "start": { "line": 445, @@ -74983,8 +74995,8 @@ }, { "type": "ExpressionStatement", - "start": 18004, - "end": 18031, + "start": 18047, + "end": 18074, "loc": { "start": { "line": 452, @@ -74997,8 +75009,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18004, - "end": 18030, + "start": 18047, + "end": 18073, "loc": { "start": { "line": 452, @@ -75012,8 +75024,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18004, - "end": 18023, + "start": 18047, + "end": 18066, "loc": { "start": { "line": 452, @@ -75026,8 +75038,8 @@ }, "object": { "type": "Identifier", - "start": 18004, - "end": 18016, + "start": 18047, + "end": 18059, "loc": { "start": { "line": 452, @@ -75043,8 +75055,8 @@ }, "property": { "type": "Identifier", - "start": 18017, - "end": 18023, + "start": 18060, + "end": 18066, "loc": { "start": { "line": 452, @@ -75062,8 +75074,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 18026, - "end": 18030, + "start": 18069, + "end": 18073, "loc": { "start": { "line": 452, @@ -75083,8 +75095,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 18045, - "end": 19728, + "start": 18088, + "end": 19771, "loc": { "start": { "line": 453, @@ -75098,8 +75110,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 18139, - "end": 18229, + "start": 18182, + "end": 18272, "loc": { "start": { "line": 455, @@ -75113,8 +75125,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 18145, - "end": 18228, + "start": 18188, + "end": 18271, "loc": { "start": { "line": 455, @@ -75127,8 +75139,8 @@ }, "id": { "type": "Identifier", - "start": 18145, - "end": 18153, + "start": 18188, + "end": 18196, "loc": { "start": { "line": 455, @@ -75145,8 +75157,8 @@ }, "init": { "type": "CallExpression", - "start": 18156, - "end": 18228, + "start": 18199, + "end": 18271, "loc": { "start": { "line": 455, @@ -75159,8 +75171,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18156, - "end": 18173, + "start": 18199, + "end": 18216, "loc": { "start": { "line": 455, @@ -75173,8 +75185,8 @@ }, "object": { "type": "Identifier", - "start": 18156, - "end": 18161, + "start": 18199, + "end": 18204, "loc": { "start": { "line": 455, @@ -75190,8 +75202,8 @@ }, "property": { "type": "Identifier", - "start": 18162, - "end": 18173, + "start": 18205, + "end": 18216, "loc": { "start": { "line": 455, @@ -75210,8 +75222,8 @@ "arguments": [ { "type": "Identifier", - "start": 18174, - "end": 18190, + "start": 18217, + "end": 18233, "loc": { "start": { "line": 455, @@ -75227,8 +75239,8 @@ }, { "type": "MemberExpression", - "start": 18192, - "end": 18227, + "start": 18235, + "end": 18270, "loc": { "start": { "line": 455, @@ -75241,8 +75253,8 @@ }, "object": { "type": "MemberExpression", - "start": 18192, - "end": 18215, + "start": 18235, + "end": 18258, "loc": { "start": { "line": 455, @@ -75255,8 +75267,8 @@ }, "object": { "type": "Identifier", - "start": 18192, - "end": 18204, + "start": 18235, + "end": 18247, "loc": { "start": { "line": 455, @@ -75272,8 +75284,8 @@ }, "property": { "type": "Identifier", - "start": 18205, - "end": 18215, + "start": 18248, + "end": 18258, "loc": { "start": { "line": 455, @@ -75291,8 +75303,8 @@ }, "property": { "type": "Identifier", - "start": 18216, - "end": 18227, + "start": 18259, + "end": 18270, "loc": { "start": { "line": 455, @@ -75318,8 +75330,8 @@ { "type": "CommentLine", "value": " Get the distance from the instance's position to the next node's position.", - "start": 18054, - "end": 18131, + "start": 18097, + "end": 18174, "loc": { "start": { "line": 454, @@ -75336,8 +75348,8 @@ { "type": "CommentLine", "value": " Stop moving when you are this close distance.", - "start": 18237, - "end": 18285, + "start": 18280, + "end": 18328, "loc": { "start": { "line": 456, @@ -75353,8 +75365,8 @@ }, { "type": "IfStatement", - "start": 18293, - "end": 19720, + "start": 18336, + "end": 19763, "loc": { "start": { "line": 457, @@ -75367,8 +75379,8 @@ }, "test": { "type": "BinaryExpression", - "start": 18297, - "end": 18333, + "start": 18340, + "end": 18376, "loc": { "start": { "line": 457, @@ -75381,8 +75393,8 @@ }, "left": { "type": "Identifier", - "start": 18297, - "end": 18305, + "start": 18340, + "end": 18348, "loc": { "start": { "line": 457, @@ -75400,8 +75412,8 @@ "operator": "<=", "right": { "type": "MemberExpression", - "start": 18309, - "end": 18333, + "start": 18352, + "end": 18376, "loc": { "start": { "line": 457, @@ -75414,8 +75426,8 @@ }, "object": { "type": "Identifier", - "start": 18309, - "end": 18321, + "start": 18352, + "end": 18364, "loc": { "start": { "line": 457, @@ -75431,8 +75443,8 @@ }, "property": { "type": "Identifier", - "start": 18322, - "end": 18333, + "start": 18365, + "end": 18376, "loc": { "start": { "line": 457, @@ -75452,8 +75464,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 18335, - "end": 18848, + "start": 18378, + "end": 18891, "loc": { "start": { "line": 457, @@ -75467,8 +75479,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 18368, - "end": 18396, + "start": 18411, + "end": 18439, "loc": { "start": { "line": 459, @@ -75481,8 +75493,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18368, - "end": 18395, + "start": 18411, + "end": 18438, "loc": { "start": { "line": 459, @@ -75496,8 +75508,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18368, - "end": 18387, + "start": 18411, + "end": 18430, "loc": { "start": { "line": 459, @@ -75510,8 +75522,8 @@ }, "object": { "type": "Identifier", - "start": 18368, - "end": 18380, + "start": 18411, + "end": 18423, "loc": { "start": { "line": 459, @@ -75528,8 +75540,8 @@ }, "property": { "type": "Identifier", - "start": 18381, - "end": 18387, + "start": 18424, + "end": 18430, "loc": { "start": { "line": 459, @@ -75548,8 +75560,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 18390, - "end": 18395, + "start": 18433, + "end": 18438, "loc": { "start": { "line": 459, @@ -75568,8 +75580,8 @@ { "type": "CommentLine", "value": " Stop moving", - "start": 18345, - "end": 18359, + "start": 18388, + "end": 18402, "loc": { "start": { "line": 458, @@ -75586,8 +75598,8 @@ { "type": "CommentLine", "value": " Reset stuck counter when moving has \"stopped\".", - "start": 18405, - "end": 18454, + "start": 18448, + "end": 18497, "loc": { "start": { "line": 460, @@ -75603,8 +75615,8 @@ }, { "type": "ExpressionStatement", - "start": 18463, - "end": 18493, + "start": 18506, + "end": 18536, "loc": { "start": { "line": 461, @@ -75617,8 +75629,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18463, - "end": 18492, + "start": 18506, + "end": 18535, "loc": { "start": { "line": 461, @@ -75632,8 +75644,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18463, - "end": 18488, + "start": 18506, + "end": 18531, "loc": { "start": { "line": 461, @@ -75646,8 +75658,8 @@ }, "object": { "type": "Identifier", - "start": 18463, - "end": 18475, + "start": 18506, + "end": 18518, "loc": { "start": { "line": 461, @@ -75664,8 +75676,8 @@ }, "property": { "type": "Identifier", - "start": 18476, - "end": 18488, + "start": 18519, + "end": 18531, "loc": { "start": { "line": 461, @@ -75684,8 +75696,8 @@ }, "right": { "type": "NumericLiteral", - "start": 18491, - "end": 18492, + "start": 18534, + "end": 18535, "loc": { "start": { "line": 461, @@ -75708,8 +75720,8 @@ { "type": "CommentLine", "value": " Reset stuck counter when moving has \"stopped\".", - "start": 18405, - "end": 18454, + "start": 18448, + "end": 18497, "loc": { "start": { "line": 460, @@ -75726,8 +75738,8 @@ { "type": "CommentLine", "value": " If there is no more nodes left in the path", - "start": 18502, - "end": 18547, + "start": 18545, + "end": 18590, "loc": { "start": { "line": 462, @@ -75743,8 +75755,8 @@ }, { "type": "IfStatement", - "start": 18556, - "end": 18839, + "start": 18599, + "end": 18882, "loc": { "start": { "line": 463, @@ -75757,8 +75769,8 @@ }, "test": { "type": "UnaryExpression", - "start": 18560, - "end": 18585, + "start": 18603, + "end": 18628, "loc": { "start": { "line": 463, @@ -75773,8 +75785,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 18561, - "end": 18585, + "start": 18604, + "end": 18628, "loc": { "start": { "line": 463, @@ -75787,8 +75799,8 @@ }, "object": { "type": "MemberExpression", - "start": 18561, - "end": 18578, + "start": 18604, + "end": 18621, "loc": { "start": { "line": 463, @@ -75801,8 +75813,8 @@ }, "object": { "type": "Identifier", - "start": 18561, - "end": 18573, + "start": 18604, + "end": 18616, "loc": { "start": { "line": 463, @@ -75819,8 +75831,8 @@ }, "property": { "type": "Identifier", - "start": 18574, - "end": 18578, + "start": 18617, + "end": 18621, "loc": { "start": { "line": 463, @@ -75839,8 +75851,8 @@ }, "property": { "type": "Identifier", - "start": 18579, - "end": 18585, + "start": 18622, + "end": 18628, "loc": { "start": { "line": 463, @@ -75864,8 +75876,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 18587, - "end": 18839, + "start": 18630, + "end": 18882, "loc": { "start": { "line": 463, @@ -75879,8 +75891,8 @@ "body": [ { "type": "IfStatement", - "start": 18676, - "end": 18799, + "start": 18719, + "end": 18842, "loc": { "start": { "line": 465, @@ -75893,8 +75905,8 @@ }, "test": { "type": "BinaryExpression", - "start": 18680, - "end": 18737, + "start": 18723, + "end": 18780, "loc": { "start": { "line": 465, @@ -75907,8 +75919,8 @@ }, "left": { "type": "UnaryExpression", - "start": 18680, - "end": 18722, + "start": 18723, + "end": 18765, "loc": { "start": { "line": 465, @@ -75923,8 +75935,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 18687, - "end": 18721, + "start": 18730, + "end": 18764, "loc": { "start": { "line": 465, @@ -75937,8 +75949,8 @@ }, "object": { "type": "MemberExpression", - "start": 18687, - "end": 18706, + "start": 18730, + "end": 18749, "loc": { "start": { "line": 465, @@ -75951,8 +75963,8 @@ }, "object": { "type": "Identifier", - "start": 18687, - "end": 18699, + "start": 18730, + "end": 18742, "loc": { "start": { "line": 465, @@ -75969,8 +75981,8 @@ }, "property": { "type": "Identifier", - "start": 18700, - "end": 18706, + "start": 18743, + "end": 18749, "loc": { "start": { "line": 465, @@ -75989,8 +76001,8 @@ }, "property": { "type": "Identifier", - "start": 18707, - "end": 18721, + "start": 18750, + "end": 18764, "loc": { "start": { "line": 465, @@ -76008,7 +76020,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 18686 + "parenStart": 18729 } }, "extra": { @@ -76019,8 +76031,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 18727, - "end": 18737, + "start": 18770, + "end": 18780, "loc": { "start": { "line": 465, @@ -76041,8 +76053,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 18739, - "end": 18799, + "start": 18782, + "end": 18842, "loc": { "start": { "line": 465, @@ -76056,8 +76068,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 18751, - "end": 18788, + "start": 18794, + "end": 18831, "loc": { "start": { "line": 466, @@ -76070,8 +76082,8 @@ }, "expression": { "type": "CallExpression", - "start": 18751, - "end": 18787, + "start": 18794, + "end": 18830, "loc": { "start": { "line": 466, @@ -76084,8 +76096,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18751, - "end": 18785, + "start": 18794, + "end": 18828, "loc": { "start": { "line": 466, @@ -76098,8 +76110,8 @@ }, "object": { "type": "MemberExpression", - "start": 18751, - "end": 18770, + "start": 18794, + "end": 18813, "loc": { "start": { "line": 466, @@ -76112,8 +76124,8 @@ }, "object": { "type": "Identifier", - "start": 18751, - "end": 18763, + "start": 18794, + "end": 18806, "loc": { "start": { "line": 466, @@ -76129,8 +76141,8 @@ }, "property": { "type": "Identifier", - "start": 18764, - "end": 18770, + "start": 18807, + "end": 18813, "loc": { "start": { "line": 466, @@ -76148,8 +76160,8 @@ }, "property": { "type": "Identifier", - "start": 18771, - "end": 18785, + "start": 18814, + "end": 18828, "loc": { "start": { "line": 466, @@ -76176,8 +76188,8 @@ { "type": "CommentLine", "value": " You have completed the path. Call the event function if supplied.", - "start": 18598, - "end": 18666, + "start": 18641, + "end": 18709, "loc": { "start": { "line": 464, @@ -76193,8 +76205,8 @@ }, { "type": "ExpressionStatement", - "start": 18809, - "end": 18829, + "start": 18852, + "end": 18872, "loc": { "start": { "line": 468, @@ -76207,8 +76219,8 @@ }, "expression": { "type": "CallExpression", - "start": 18809, - "end": 18828, + "start": 18852, + "end": 18871, "loc": { "start": { "line": 468, @@ -76221,8 +76233,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18809, - "end": 18817, + "start": 18852, + "end": 18860, "loc": { "start": { "line": 468, @@ -76235,8 +76247,8 @@ }, "object": { "type": "ThisExpression", - "start": 18809, - "end": 18813, + "start": 18852, + "end": 18856, "loc": { "start": { "line": 468, @@ -76250,8 +76262,8 @@ }, "property": { "type": "Identifier", - "start": 18814, - "end": 18817, + "start": 18857, + "end": 18860, "loc": { "start": { "line": 468, @@ -76270,8 +76282,8 @@ "arguments": [ { "type": "Identifier", - "start": 18818, - "end": 18827, + "start": 18861, + "end": 18870, "loc": { "start": { "line": 468, @@ -76296,8 +76308,8 @@ { "type": "CommentLine", "value": " If there is no more nodes left in the path", - "start": 18502, - "end": 18547, + "start": 18545, + "end": 18590, "loc": { "start": { "line": 462, @@ -76316,8 +76328,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 18854, - "end": 19720, + "start": 18897, + "end": 19763, "loc": { "start": { "line": 470, @@ -76331,8 +76343,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 18864, - "end": 18967, + "start": 18907, + "end": 19010, "loc": { "start": { "line": 471, @@ -76345,8 +76357,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18864, - "end": 18966, + "start": 18907, + "end": 19009, "loc": { "start": { "line": 471, @@ -76360,8 +76372,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18864, - "end": 18893, + "start": 18907, + "end": 18936, "loc": { "start": { "line": 471, @@ -76374,8 +76386,8 @@ }, "object": { "type": "MemberExpression", - "start": 18864, - "end": 18887, + "start": 18907, + "end": 18930, "loc": { "start": { "line": 471, @@ -76388,8 +76400,8 @@ }, "object": { "type": "Identifier", - "start": 18864, - "end": 18876, + "start": 18907, + "end": 18919, "loc": { "start": { "line": 471, @@ -76405,8 +76417,8 @@ }, "property": { "type": "Identifier", - "start": 18877, - "end": 18887, + "start": 18920, + "end": 18930, "loc": { "start": { "line": 471, @@ -76424,8 +76436,8 @@ }, "property": { "type": "Identifier", - "start": 18888, - "end": 18893, + "start": 18931, + "end": 18936, "loc": { "start": { "line": 471, @@ -76443,8 +76455,8 @@ }, "right": { "type": "CallExpression", - "start": 18896, - "end": 18966, + "start": 18939, + "end": 19009, "loc": { "start": { "line": 471, @@ -76457,8 +76469,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18896, - "end": 18911, + "start": 18939, + "end": 18954, "loc": { "start": { "line": 471, @@ -76471,8 +76483,8 @@ }, "object": { "type": "Identifier", - "start": 18896, - "end": 18901, + "start": 18939, + "end": 18944, "loc": { "start": { "line": 471, @@ -76488,8 +76500,8 @@ }, "property": { "type": "Identifier", - "start": 18902, - "end": 18911, + "start": 18945, + "end": 18954, "loc": { "start": { "line": 471, @@ -76508,8 +76520,8 @@ "arguments": [ { "type": "Identifier", - "start": 18912, - "end": 18928, + "start": 18955, + "end": 18971, "loc": { "start": { "line": 471, @@ -76525,8 +76537,8 @@ }, { "type": "MemberExpression", - "start": 18930, - "end": 18965, + "start": 18973, + "end": 19008, "loc": { "start": { "line": 471, @@ -76539,8 +76551,8 @@ }, "object": { "type": "MemberExpression", - "start": 18930, - "end": 18953, + "start": 18973, + "end": 18996, "loc": { "start": { "line": 471, @@ -76553,8 +76565,8 @@ }, "object": { "type": "Identifier", - "start": 18930, - "end": 18942, + "start": 18973, + "end": 18985, "loc": { "start": { "line": 471, @@ -76570,8 +76582,8 @@ }, "property": { "type": "Identifier", - "start": 18943, - "end": 18953, + "start": 18986, + "end": 18996, "loc": { "start": { "line": 471, @@ -76589,8 +76601,8 @@ }, "property": { "type": "Identifier", - "start": 18954, - "end": 18965, + "start": 18997, + "end": 19008, "loc": { "start": { "line": 471, @@ -76612,8 +76624,8 @@ }, { "type": "ExpressionStatement", - "start": 18976, - "end": 19044, + "start": 19019, + "end": 19087, "loc": { "start": { "line": 472, @@ -76626,8 +76638,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 18976, - "end": 19043, + "start": 19019, + "end": 19086, "loc": { "start": { "line": 472, @@ -76641,8 +76653,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 18976, - "end": 19001, + "start": 19019, + "end": 19044, "loc": { "start": { "line": 472, @@ -76655,8 +76667,8 @@ }, "object": { "type": "MemberExpression", - "start": 18976, - "end": 18999, + "start": 19019, + "end": 19042, "loc": { "start": { "line": 472, @@ -76669,8 +76681,8 @@ }, "object": { "type": "Identifier", - "start": 18976, - "end": 18988, + "start": 19019, + "end": 19031, "loc": { "start": { "line": 472, @@ -76686,8 +76698,8 @@ }, "property": { "type": "Identifier", - "start": 18989, - "end": 18999, + "start": 19032, + "end": 19042, "loc": { "start": { "line": 472, @@ -76705,8 +76717,8 @@ }, "property": { "type": "Identifier", - "start": 19000, - "end": 19001, + "start": 19043, + "end": 19044, "loc": { "start": { "line": 472, @@ -76724,8 +76736,8 @@ }, "right": { "type": "CallExpression", - "start": 19004, - "end": 19043, + "start": 19047, + "end": 19086, "loc": { "start": { "line": 472, @@ -76738,8 +76750,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19004, - "end": 19012, + "start": 19047, + "end": 19055, "loc": { "start": { "line": 472, @@ -76752,8 +76764,8 @@ }, "object": { "type": "Identifier", - "start": 19004, - "end": 19008, + "start": 19047, + "end": 19051, "loc": { "start": { "line": 472, @@ -76769,8 +76781,8 @@ }, "property": { "type": "Identifier", - "start": 19009, - "end": 19012, + "start": 19052, + "end": 19055, "loc": { "start": { "line": 472, @@ -76789,8 +76801,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19013, - "end": 19042, + "start": 19056, + "end": 19085, "loc": { "start": { "line": 472, @@ -76803,8 +76815,8 @@ }, "object": { "type": "MemberExpression", - "start": 19013, - "end": 19036, + "start": 19056, + "end": 19079, "loc": { "start": { "line": 472, @@ -76817,8 +76829,8 @@ }, "object": { "type": "Identifier", - "start": 19013, - "end": 19025, + "start": 19056, + "end": 19068, "loc": { "start": { "line": 472, @@ -76834,8 +76846,8 @@ }, "property": { "type": "Identifier", - "start": 19026, - "end": 19036, + "start": 19069, + "end": 19079, "loc": { "start": { "line": 472, @@ -76853,8 +76865,8 @@ }, "property": { "type": "Identifier", - "start": 19037, - "end": 19042, + "start": 19080, + "end": 19085, "loc": { "start": { "line": 472, @@ -76876,8 +76888,8 @@ }, { "type": "ExpressionStatement", - "start": 19053, - "end": 19122, + "start": 19096, + "end": 19165, "loc": { "start": { "line": 473, @@ -76890,8 +76902,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 19053, - "end": 19121, + "start": 19096, + "end": 19164, "loc": { "start": { "line": 473, @@ -76905,8 +76917,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 19053, - "end": 19078, + "start": 19096, + "end": 19121, "loc": { "start": { "line": 473, @@ -76919,8 +76931,8 @@ }, "object": { "type": "MemberExpression", - "start": 19053, - "end": 19076, + "start": 19096, + "end": 19119, "loc": { "start": { "line": 473, @@ -76933,8 +76945,8 @@ }, "object": { "type": "Identifier", - "start": 19053, - "end": 19065, + "start": 19096, + "end": 19108, "loc": { "start": { "line": 473, @@ -76950,8 +76962,8 @@ }, "property": { "type": "Identifier", - "start": 19066, - "end": 19076, + "start": 19109, + "end": 19119, "loc": { "start": { "line": 473, @@ -76969,8 +76981,8 @@ }, "property": { "type": "Identifier", - "start": 19077, - "end": 19078, + "start": 19120, + "end": 19121, "loc": { "start": { "line": 473, @@ -76988,8 +77000,8 @@ }, "right": { "type": "UnaryExpression", - "start": 19081, - "end": 19121, + "start": 19124, + "end": 19164, "loc": { "start": { "line": 473, @@ -77004,8 +77016,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 19082, - "end": 19121, + "start": 19125, + "end": 19164, "loc": { "start": { "line": 473, @@ -77018,8 +77030,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19082, - "end": 19090, + "start": 19125, + "end": 19133, "loc": { "start": { "line": 473, @@ -77032,8 +77044,8 @@ }, "object": { "type": "Identifier", - "start": 19082, - "end": 19086, + "start": 19125, + "end": 19129, "loc": { "start": { "line": 473, @@ -77049,8 +77061,8 @@ }, "property": { "type": "Identifier", - "start": 19087, - "end": 19090, + "start": 19130, + "end": 19133, "loc": { "start": { "line": 473, @@ -77069,8 +77081,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19091, - "end": 19120, + "start": 19134, + "end": 19163, "loc": { "start": { "line": 473, @@ -77083,8 +77095,8 @@ }, "object": { "type": "MemberExpression", - "start": 19091, - "end": 19114, + "start": 19134, + "end": 19157, "loc": { "start": { "line": 473, @@ -77097,8 +77109,8 @@ }, "object": { "type": "Identifier", - "start": 19091, - "end": 19103, + "start": 19134, + "end": 19146, "loc": { "start": { "line": 473, @@ -77114,8 +77126,8 @@ }, "property": { "type": "Identifier", - "start": 19104, - "end": 19114, + "start": 19147, + "end": 19157, "loc": { "start": { "line": 473, @@ -77133,8 +77145,8 @@ }, "property": { "type": "Identifier", - "start": 19115, - "end": 19120, + "start": 19158, + "end": 19163, "loc": { "start": { "line": 473, @@ -77160,8 +77172,8 @@ }, { "type": "ExpressionStatement", - "start": 19131, - "end": 19197, + "start": 19174, + "end": 19240, "loc": { "start": { "line": 474, @@ -77174,8 +77186,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 19131, - "end": 19196, + "start": 19174, + "end": 19239, "loc": { "start": { "line": 474, @@ -77189,8 +77201,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 19131, - "end": 19144, + "start": 19174, + "end": 19187, "loc": { "start": { "line": 474, @@ -77203,8 +77215,8 @@ }, "object": { "type": "Identifier", - "start": 19131, - "end": 19140, + "start": 19174, + "end": 19183, "loc": { "start": { "line": 474, @@ -77220,8 +77232,8 @@ }, "property": { "type": "Identifier", - "start": 19141, - "end": 19144, + "start": 19184, + "end": 19187, "loc": { "start": { "line": 474, @@ -77239,8 +77251,8 @@ }, "right": { "type": "CallExpression", - "start": 19147, - "end": 19196, + "start": 19190, + "end": 19239, "loc": { "start": { "line": 474, @@ -77253,8 +77265,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19147, - "end": 19165, + "start": 19190, + "end": 19208, "loc": { "start": { "line": 474, @@ -77267,8 +77279,8 @@ }, "object": { "type": "Identifier", - "start": 19147, - "end": 19152, + "start": 19190, + "end": 19195, "loc": { "start": { "line": 474, @@ -77284,8 +77296,8 @@ }, "property": { "type": "Identifier", - "start": 19153, - "end": 19165, + "start": 19196, + "end": 19208, "loc": { "start": { "line": 474, @@ -77304,8 +77316,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19166, - "end": 19195, + "start": 19209, + "end": 19238, "loc": { "start": { "line": 474, @@ -77318,8 +77330,8 @@ }, "object": { "type": "MemberExpression", - "start": 19166, - "end": 19189, + "start": 19209, + "end": 19232, "loc": { "start": { "line": 474, @@ -77332,8 +77344,8 @@ }, "object": { "type": "Identifier", - "start": 19166, - "end": 19178, + "start": 19209, + "end": 19221, "loc": { "start": { "line": 474, @@ -77349,8 +77361,8 @@ }, "property": { "type": "Identifier", - "start": 19179, - "end": 19189, + "start": 19222, + "end": 19232, "loc": { "start": { "line": 474, @@ -77368,8 +77380,8 @@ }, "property": { "type": "Identifier", - "start": 19190, - "end": 19195, + "start": 19233, + "end": 19238, "loc": { "start": { "line": 474, @@ -77392,8 +77404,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 19206, - "end": 19265, + "start": 19249, + "end": 19308, "loc": { "start": { "line": 475, @@ -77409,8 +77421,8 @@ }, { "type": "IfStatement", - "start": 19274, - "end": 19675, + "start": 19317, + "end": 19718, "loc": { "start": { "line": 476, @@ -77423,8 +77435,8 @@ }, "test": { "type": "BinaryExpression", - "start": 19278, - "end": 19311, + "start": 19321, + "end": 19354, "loc": { "start": { "line": 476, @@ -77437,8 +77449,8 @@ }, "left": { "type": "MemberExpression", - "start": 19278, - "end": 19295, + "start": 19321, + "end": 19338, "loc": { "start": { "line": 476, @@ -77451,8 +77463,8 @@ }, "object": { "type": "Identifier", - "start": 19278, - "end": 19290, + "start": 19321, + "end": 19333, "loc": { "start": { "line": 476, @@ -77469,8 +77481,8 @@ }, "property": { "type": "Identifier", - "start": 19291, - "end": 19295, + "start": 19334, + "end": 19338, "loc": { "start": { "line": 476, @@ -77490,8 +77502,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 19300, - "end": 19311, + "start": 19343, + "end": 19354, "loc": { "start": { "line": 476, @@ -77512,8 +77524,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 19313, - "end": 19406, + "start": 19356, + "end": 19449, "loc": { "start": { "line": 476, @@ -77527,8 +77539,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 19324, - "end": 19396, + "start": 19367, + "end": 19439, "loc": { "start": { "line": 477, @@ -77541,8 +77553,8 @@ }, "expression": { "type": "CallExpression", - "start": 19324, - "end": 19395, + "start": 19367, + "end": 19438, "loc": { "start": { "line": 477, @@ -77555,8 +77567,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19324, - "end": 19341, + "start": 19367, + "end": 19384, "loc": { "start": { "line": 477, @@ -77569,8 +77581,8 @@ }, "object": { "type": "Identifier", - "start": 19324, - "end": 19333, + "start": 19367, + "end": 19376, "loc": { "start": { "line": 477, @@ -77586,8 +77598,8 @@ }, "property": { "type": "Identifier", - "start": 19334, - "end": 19341, + "start": 19377, + "end": 19384, "loc": { "start": { "line": 477, @@ -77606,8 +77618,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 19342, - "end": 19367, + "start": 19385, + "end": 19410, "loc": { "start": { "line": 477, @@ -77620,8 +77632,8 @@ }, "object": { "type": "MemberExpression", - "start": 19342, - "end": 19365, + "start": 19385, + "end": 19408, "loc": { "start": { "line": 477, @@ -77634,8 +77646,8 @@ }, "object": { "type": "Identifier", - "start": 19342, - "end": 19354, + "start": 19385, + "end": 19397, "loc": { "start": { "line": 477, @@ -77651,8 +77663,8 @@ }, "property": { "type": "Identifier", - "start": 19355, - "end": 19365, + "start": 19398, + "end": 19408, "loc": { "start": { "line": 477, @@ -77670,8 +77682,8 @@ }, "property": { "type": "Identifier", - "start": 19366, - "end": 19367, + "start": 19409, + "end": 19410, "loc": { "start": { "line": 477, @@ -77689,8 +77701,8 @@ }, { "type": "MemberExpression", - "start": 19369, - "end": 19394, + "start": 19412, + "end": 19437, "loc": { "start": { "line": 477, @@ -77703,8 +77715,8 @@ }, "object": { "type": "MemberExpression", - "start": 19369, - "end": 19392, + "start": 19412, + "end": 19435, "loc": { "start": { "line": 477, @@ -77717,8 +77729,8 @@ }, "object": { "type": "Identifier", - "start": 19369, - "end": 19381, + "start": 19412, + "end": 19424, "loc": { "start": { "line": 477, @@ -77734,8 +77746,8 @@ }, "property": { "type": "Identifier", - "start": 19382, - "end": 19392, + "start": 19425, + "end": 19435, "loc": { "start": { "line": 477, @@ -77753,8 +77765,8 @@ }, "property": { "type": "Identifier", - "start": 19393, - "end": 19394, + "start": 19436, + "end": 19437, "loc": { "start": { "line": 477, @@ -77778,8 +77790,8 @@ }, "alternate": { "type": "IfStatement", - "start": 19412, - "end": 19675, + "start": 19455, + "end": 19718, "loc": { "start": { "line": 478, @@ -77792,8 +77804,8 @@ }, "test": { "type": "BinaryExpression", - "start": 19416, - "end": 19448, + "start": 19459, + "end": 19491, "loc": { "start": { "line": 478, @@ -77806,8 +77818,8 @@ }, "left": { "type": "MemberExpression", - "start": 19416, - "end": 19433, + "start": 19459, + "end": 19476, "loc": { "start": { "line": 478, @@ -77820,8 +77832,8 @@ }, "object": { "type": "Identifier", - "start": 19416, - "end": 19428, + "start": 19459, + "end": 19471, "loc": { "start": { "line": 478, @@ -77837,8 +77849,8 @@ }, "property": { "type": "Identifier", - "start": 19429, - "end": 19433, + "start": 19472, + "end": 19476, "loc": { "start": { "line": 478, @@ -77857,8 +77869,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 19438, - "end": 19448, + "start": 19481, + "end": 19491, "loc": { "start": { "line": 478, @@ -77878,8 +77890,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 19450, - "end": 19675, + "start": 19493, + "end": 19718, "loc": { "start": { "line": 478, @@ -77893,8 +77905,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 19461, - "end": 19521, + "start": 19504, + "end": 19564, "loc": { "start": { "line": 479, @@ -77908,8 +77920,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 19467, - "end": 19520, + "start": 19510, + "end": 19563, "loc": { "start": { "line": 479, @@ -77922,8 +77934,8 @@ }, "id": { "type": "Identifier", - "start": 19467, - "end": 19472, + "start": 19510, + "end": 19515, "loc": { "start": { "line": 479, @@ -77939,8 +77951,8 @@ }, "init": { "type": "BinaryExpression", - "start": 19475, - "end": 19520, + "start": 19518, + "end": 19563, "loc": { "start": { "line": 479, @@ -77953,8 +77965,8 @@ }, "left": { "type": "MemberExpression", - "start": 19475, - "end": 19503, + "start": 19518, + "end": 19546, "loc": { "start": { "line": 479, @@ -77967,8 +77979,8 @@ }, "object": { "type": "Identifier", - "start": 19475, - "end": 19487, + "start": 19518, + "end": 19530, "loc": { "start": { "line": 479, @@ -77984,8 +77996,8 @@ }, "property": { "type": "Identifier", - "start": 19488, - "end": 19503, + "start": 19531, + "end": 19546, "loc": { "start": { "line": 479, @@ -78004,8 +78016,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 19506, - "end": 19520, + "start": 19549, + "end": 19563, "loc": { "start": { "line": 479, @@ -78018,8 +78030,8 @@ }, "object": { "type": "ThisExpression", - "start": 19506, - "end": 19510, + "start": 19549, + "end": 19553, "loc": { "start": { "line": 479, @@ -78033,8 +78045,8 @@ }, "property": { "type": "Identifier", - "start": 19511, - "end": 19520, + "start": 19554, + "end": 19563, "loc": { "start": { "line": 479, @@ -78057,8 +78069,8 @@ }, { "type": "ExpressionStatement", - "start": 19531, - "end": 19665, + "start": 19574, + "end": 19708, "loc": { "start": { "line": 480, @@ -78071,8 +78083,8 @@ }, "expression": { "type": "CallExpression", - "start": 19531, - "end": 19664, + "start": 19574, + "end": 19707, "loc": { "start": { "line": 480, @@ -78085,8 +78097,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19531, - "end": 19547, + "start": 19574, + "end": 19590, "loc": { "start": { "line": 480, @@ -78099,8 +78111,8 @@ }, "object": { "type": "Identifier", - "start": 19531, - "end": 19540, + "start": 19574, + "end": 19583, "loc": { "start": { "line": 480, @@ -78116,8 +78128,8 @@ }, "property": { "type": "Identifier", - "start": 19541, - "end": 19547, + "start": 19584, + "end": 19590, "loc": { "start": { "line": 480, @@ -78136,8 +78148,8 @@ "arguments": [ { "type": "BinaryExpression", - "start": 19548, - "end": 19595, + "start": 19591, + "end": 19638, "loc": { "start": { "line": 480, @@ -78150,8 +78162,8 @@ }, "left": { "type": "MemberExpression", - "start": 19548, - "end": 19559, + "start": 19591, + "end": 19602, "loc": { "start": { "line": 480, @@ -78164,8 +78176,8 @@ }, "object": { "type": "Identifier", - "start": 19548, - "end": 19557, + "start": 19591, + "end": 19600, "loc": { "start": { "line": 480, @@ -78181,8 +78193,8 @@ }, "property": { "type": "Identifier", - "start": 19558, - "end": 19559, + "start": 19601, + "end": 19602, "loc": { "start": { "line": 480, @@ -78201,8 +78213,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 19562, - "end": 19595, + "start": 19605, + "end": 19638, "loc": { "start": { "line": 480, @@ -78215,8 +78227,8 @@ }, "left": { "type": "Identifier", - "start": 19562, - "end": 19567, + "start": 19605, + "end": 19610, "loc": { "start": { "line": 480, @@ -78233,8 +78245,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 19570, - "end": 19595, + "start": 19613, + "end": 19638, "loc": { "start": { "line": 480, @@ -78247,8 +78259,8 @@ }, "object": { "type": "MemberExpression", - "start": 19570, - "end": 19593, + "start": 19613, + "end": 19636, "loc": { "start": { "line": 480, @@ -78261,8 +78273,8 @@ }, "object": { "type": "Identifier", - "start": 19570, - "end": 19582, + "start": 19613, + "end": 19625, "loc": { "start": { "line": 480, @@ -78278,8 +78290,8 @@ }, "property": { "type": "Identifier", - "start": 19583, - "end": 19593, + "start": 19626, + "end": 19636, "loc": { "start": { "line": 480, @@ -78297,8 +78309,8 @@ }, "property": { "type": "Identifier", - "start": 19594, - "end": 19595, + "start": 19637, + "end": 19638, "loc": { "start": { "line": 480, @@ -78318,8 +78330,8 @@ }, { "type": "BinaryExpression", - "start": 19597, - "end": 19644, + "start": 19640, + "end": 19687, "loc": { "start": { "line": 480, @@ -78332,8 +78344,8 @@ }, "left": { "type": "MemberExpression", - "start": 19597, - "end": 19608, + "start": 19640, + "end": 19651, "loc": { "start": { "line": 480, @@ -78346,8 +78358,8 @@ }, "object": { "type": "Identifier", - "start": 19597, - "end": 19606, + "start": 19640, + "end": 19649, "loc": { "start": { "line": 480, @@ -78363,8 +78375,8 @@ }, "property": { "type": "Identifier", - "start": 19607, - "end": 19608, + "start": 19650, + "end": 19651, "loc": { "start": { "line": 480, @@ -78383,8 +78395,8 @@ "operator": "+", "right": { "type": "BinaryExpression", - "start": 19611, - "end": 19644, + "start": 19654, + "end": 19687, "loc": { "start": { "line": 480, @@ -78397,8 +78409,8 @@ }, "left": { "type": "Identifier", - "start": 19611, - "end": 19616, + "start": 19654, + "end": 19659, "loc": { "start": { "line": 480, @@ -78415,8 +78427,8 @@ "operator": "*", "right": { "type": "MemberExpression", - "start": 19619, - "end": 19644, + "start": 19662, + "end": 19687, "loc": { "start": { "line": 480, @@ -78429,8 +78441,8 @@ }, "object": { "type": "MemberExpression", - "start": 19619, - "end": 19642, + "start": 19662, + "end": 19685, "loc": { "start": { "line": 480, @@ -78443,8 +78455,8 @@ }, "object": { "type": "Identifier", - "start": 19619, - "end": 19631, + "start": 19662, + "end": 19674, "loc": { "start": { "line": 480, @@ -78460,8 +78472,8 @@ }, "property": { "type": "Identifier", - "start": 19632, - "end": 19642, + "start": 19675, + "end": 19685, "loc": { "start": { "line": 480, @@ -78479,8 +78491,8 @@ }, "property": { "type": "Identifier", - "start": 19643, - "end": 19644, + "start": 19686, + "end": 19687, "loc": { "start": { "line": 480, @@ -78500,8 +78512,8 @@ }, { "type": "MemberExpression", - "start": 19646, - "end": 19663, + "start": 19689, + "end": 19706, "loc": { "start": { "line": 480, @@ -78514,8 +78526,8 @@ }, "object": { "type": "Identifier", - "start": 19646, - "end": 19655, + "start": 19689, + "end": 19698, "loc": { "start": { "line": 480, @@ -78531,8 +78543,8 @@ }, "property": { "type": "Identifier", - "start": 19656, - "end": 19663, + "start": 19699, + "end": 19706, "loc": { "start": { "line": 480, @@ -78560,8 +78572,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 19206, - "end": 19265, + "start": 19249, + "end": 19308, "loc": { "start": { "line": 475, @@ -78577,8 +78589,8 @@ }, { "type": "ExpressionStatement", - "start": 19684, - "end": 19711, + "start": 19727, + "end": 19754, "loc": { "start": { "line": 482, @@ -78591,8 +78603,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 19684, - "end": 19710, + "start": 19727, + "end": 19753, "loc": { "start": { "line": 482, @@ -78606,8 +78618,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 19684, - "end": 19703, + "start": 19727, + "end": 19746, "loc": { "start": { "line": 482, @@ -78620,8 +78632,8 @@ }, "object": { "type": "Identifier", - "start": 19684, - "end": 19696, + "start": 19727, + "end": 19739, "loc": { "start": { "line": 482, @@ -78637,8 +78649,8 @@ }, "property": { "type": "Identifier", - "start": 19697, - "end": 19703, + "start": 19740, + "end": 19746, "loc": { "start": { "line": 482, @@ -78656,8 +78668,8 @@ }, "right": { "type": "BooleanLiteral", - "start": 19706, - "end": 19710, + "start": 19749, + "end": 19753, "loc": { "start": { "line": 482, @@ -78679,8 +78691,8 @@ { "type": "CommentLine", "value": " Stop moving when you are this close distance.", - "start": 18237, - "end": 18285, + "start": 18280, + "end": 18328, "loc": { "start": { "line": 456, @@ -78702,8 +78714,8 @@ { "type": "CommentLine", "value": " If the instance is not moving", - "start": 16389, - "end": 16421, + "start": 16432, + "end": 16464, "loc": { "start": { "line": 427, @@ -78720,8 +78732,8 @@ { "type": "CommentLine", "value": " If the instance's position is in the same spot it was in the last tick", - "start": 19735, - "end": 19808, + "start": 19778, + "end": 19851, "loc": { "start": { "line": 485, @@ -78737,8 +78749,8 @@ }, { "type": "IfStatement", - "start": 19815, - "end": 20426, + "start": 19858, + "end": 20469, "loc": { "start": { "line": 486, @@ -78751,8 +78763,8 @@ }, "test": { "type": "LogicalExpression", - "start": 19819, - "end": 19931, + "start": 19862, + "end": 19974, "loc": { "start": { "line": 486, @@ -78765,8 +78777,8 @@ }, "left": { "type": "BinaryExpression", - "start": 19819, - "end": 19873, + "start": 19862, + "end": 19916, "loc": { "start": { "line": 486, @@ -78779,8 +78791,8 @@ }, "left": { "type": "MemberExpression", - "start": 19819, - "end": 19837, + "start": 19862, + "end": 19880, "loc": { "start": { "line": 486, @@ -78793,8 +78805,8 @@ }, "object": { "type": "Identifier", - "start": 19819, - "end": 19835, + "start": 19862, + "end": 19878, "loc": { "start": { "line": 486, @@ -78811,8 +78823,8 @@ }, "property": { "type": "Identifier", - "start": 19836, - "end": 19837, + "start": 19879, + "end": 19880, "loc": { "start": { "line": 486, @@ -78832,8 +78844,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 19842, - "end": 19873, + "start": 19885, + "end": 19916, "loc": { "start": { "line": 486, @@ -78846,8 +78858,8 @@ }, "object": { "type": "MemberExpression", - "start": 19842, - "end": 19871, + "start": 19885, + "end": 19914, "loc": { "start": { "line": 486, @@ -78860,8 +78872,8 @@ }, "object": { "type": "Identifier", - "start": 19842, - "end": 19854, + "start": 19885, + "end": 19897, "loc": { "start": { "line": 486, @@ -78877,8 +78889,8 @@ }, "property": { "type": "Identifier", - "start": 19855, - "end": 19871, + "start": 19898, + "end": 19914, "loc": { "start": { "line": 486, @@ -78896,8 +78908,8 @@ }, "property": { "type": "Identifier", - "start": 19872, - "end": 19873, + "start": 19915, + "end": 19916, "loc": { "start": { "line": 486, @@ -78918,8 +78930,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 19877, - "end": 19931, + "start": 19920, + "end": 19974, "loc": { "start": { "line": 486, @@ -78932,8 +78944,8 @@ }, "left": { "type": "MemberExpression", - "start": 19877, - "end": 19895, + "start": 19920, + "end": 19938, "loc": { "start": { "line": 486, @@ -78946,8 +78958,8 @@ }, "object": { "type": "Identifier", - "start": 19877, - "end": 19893, + "start": 19920, + "end": 19936, "loc": { "start": { "line": 486, @@ -78963,8 +78975,8 @@ }, "property": { "type": "Identifier", - "start": 19894, - "end": 19895, + "start": 19937, + "end": 19938, "loc": { "start": { "line": 486, @@ -78983,8 +78995,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 19900, - "end": 19931, + "start": 19943, + "end": 19974, "loc": { "start": { "line": 486, @@ -78997,8 +79009,8 @@ }, "object": { "type": "MemberExpression", - "start": 19900, - "end": 19929, + "start": 19943, + "end": 19972, "loc": { "start": { "line": 486, @@ -79011,8 +79023,8 @@ }, "object": { "type": "Identifier", - "start": 19900, - "end": 19912, + "start": 19943, + "end": 19955, "loc": { "start": { "line": 486, @@ -79028,8 +79040,8 @@ }, "property": { "type": "Identifier", - "start": 19913, - "end": 19929, + "start": 19956, + "end": 19972, "loc": { "start": { "line": 486, @@ -79047,8 +79059,8 @@ }, "property": { "type": "Identifier", - "start": 19930, - "end": 19931, + "start": 19973, + "end": 19974, "loc": { "start": { "line": 486, @@ -79069,8 +79081,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 19933, - "end": 20426, + "start": 19976, + "end": 20469, "loc": { "start": { "line": 486, @@ -79084,8 +79096,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 19980, - "end": 20008, + "start": 20023, + "end": 20051, "loc": { "start": { "line": 488, @@ -79098,8 +79110,8 @@ }, "expression": { "type": "UpdateExpression", - "start": 19980, - "end": 20007, + "start": 20023, + "end": 20050, "loc": { "start": { "line": 488, @@ -79114,8 +79126,8 @@ "prefix": false, "argument": { "type": "MemberExpression", - "start": 19980, - "end": 20005, + "start": 20023, + "end": 20048, "loc": { "start": { "line": 488, @@ -79128,8 +79140,8 @@ }, "object": { "type": "Identifier", - "start": 19980, - "end": 19992, + "start": 20023, + "end": 20035, "loc": { "start": { "line": 488, @@ -79146,8 +79158,8 @@ }, "property": { "type": "Identifier", - "start": 19993, - "end": 20005, + "start": 20036, + "end": 20048, "loc": { "start": { "line": 488, @@ -79170,8 +79182,8 @@ { "type": "CommentLine", "value": " Increment the stuck counter", - "start": 19942, - "end": 19972, + "start": 19985, + "end": 20015, "loc": { "start": { "line": 487, @@ -79188,8 +79200,8 @@ { "type": "CommentLine", "value": " Chekck if the stuck counter is greater or equal to the max stuck counter", - "start": 20016, - "end": 20091, + "start": 20059, + "end": 20134, "loc": { "start": { "line": 489, @@ -79205,8 +79217,8 @@ }, { "type": "IfStatement", - "start": 20099, - "end": 20418, + "start": 20142, + "end": 20461, "loc": { "start": { "line": 490, @@ -79219,8 +79231,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20103, - "end": 20160, + "start": 20146, + "end": 20203, "loc": { "start": { "line": 490, @@ -79233,8 +79245,8 @@ }, "left": { "type": "MemberExpression", - "start": 20103, - "end": 20128, + "start": 20146, + "end": 20171, "loc": { "start": { "line": 490, @@ -79247,8 +79259,8 @@ }, "object": { "type": "Identifier", - "start": 20103, - "end": 20115, + "start": 20146, + "end": 20158, "loc": { "start": { "line": 490, @@ -79265,8 +79277,8 @@ }, "property": { "type": "Identifier", - "start": 20116, - "end": 20128, + "start": 20159, + "end": 20171, "loc": { "start": { "line": 490, @@ -79286,8 +79298,8 @@ "operator": ">=", "right": { "type": "MemberExpression", - "start": 20132, - "end": 20160, + "start": 20175, + "end": 20203, "loc": { "start": { "line": 490, @@ -79300,8 +79312,8 @@ }, "object": { "type": "Identifier", - "start": 20132, - "end": 20144, + "start": 20175, + "end": 20187, "loc": { "start": { "line": 490, @@ -79317,8 +79329,8 @@ }, "property": { "type": "Identifier", - "start": 20145, - "end": 20160, + "start": 20188, + "end": 20203, "loc": { "start": { "line": 490, @@ -79338,8 +79350,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20162, - "end": 20418, + "start": 20205, + "end": 20461, "loc": { "start": { "line": 490, @@ -79353,8 +79365,8 @@ "body": [ { "type": "IfStatement", - "start": 20216, - "end": 20331, + "start": 20259, + "end": 20374, "loc": { "start": { "line": 492, @@ -79367,8 +79379,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20220, - "end": 20274, + "start": 20263, + "end": 20317, "loc": { "start": { "line": 492, @@ -79381,8 +79393,8 @@ }, "left": { "type": "UnaryExpression", - "start": 20220, - "end": 20259, + "start": 20263, + "end": 20302, "loc": { "start": { "line": 492, @@ -79397,8 +79409,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 20227, - "end": 20258, + "start": 20270, + "end": 20301, "loc": { "start": { "line": 492, @@ -79411,8 +79423,8 @@ }, "object": { "type": "MemberExpression", - "start": 20227, - "end": 20246, + "start": 20270, + "end": 20289, "loc": { "start": { "line": 492, @@ -79425,8 +79437,8 @@ }, "object": { "type": "Identifier", - "start": 20227, - "end": 20239, + "start": 20270, + "end": 20282, "loc": { "start": { "line": 492, @@ -79443,8 +79455,8 @@ }, "property": { "type": "Identifier", - "start": 20240, - "end": 20246, + "start": 20283, + "end": 20289, "loc": { "start": { "line": 492, @@ -79463,8 +79475,8 @@ }, "property": { "type": "Identifier", - "start": 20247, - "end": 20258, + "start": 20290, + "end": 20301, "loc": { "start": { "line": 492, @@ -79482,7 +79494,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 20226 + "parenStart": 20269 } }, "extra": { @@ -79493,8 +79505,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 20264, - "end": 20274, + "start": 20307, + "end": 20317, "loc": { "start": { "line": 492, @@ -79515,8 +79527,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20276, - "end": 20331, + "start": 20319, + "end": 20374, "loc": { "start": { "line": 492, @@ -79530,8 +79542,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 20287, - "end": 20321, + "start": 20330, + "end": 20364, "loc": { "start": { "line": 493, @@ -79544,8 +79556,8 @@ }, "expression": { "type": "CallExpression", - "start": 20287, - "end": 20320, + "start": 20330, + "end": 20363, "loc": { "start": { "line": 493, @@ -79558,8 +79570,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20287, - "end": 20318, + "start": 20330, + "end": 20361, "loc": { "start": { "line": 493, @@ -79572,8 +79584,8 @@ }, "object": { "type": "MemberExpression", - "start": 20287, - "end": 20306, + "start": 20330, + "end": 20349, "loc": { "start": { "line": 493, @@ -79586,8 +79598,8 @@ }, "object": { "type": "Identifier", - "start": 20287, - "end": 20299, + "start": 20330, + "end": 20342, "loc": { "start": { "line": 493, @@ -79603,8 +79615,8 @@ }, "property": { "type": "Identifier", - "start": 20300, - "end": 20306, + "start": 20343, + "end": 20349, "loc": { "start": { "line": 493, @@ -79622,8 +79634,8 @@ }, "property": { "type": "Identifier", - "start": 20307, - "end": 20318, + "start": 20350, + "end": 20361, "loc": { "start": { "line": 493, @@ -79651,8 +79663,8 @@ { "type": "CommentLine", "value": " Call the stuck event if defined.", - "start": 20172, - "end": 20207, + "start": 20215, + "end": 20250, "loc": { "start": { "line": 491, @@ -79669,8 +79681,8 @@ { "type": "CommentLine", "value": " End this pathfinding.", - "start": 20340, - "end": 20364, + "start": 20383, + "end": 20407, "loc": { "start": { "line": 495, @@ -79686,8 +79698,8 @@ }, { "type": "ExpressionStatement", - "start": 20373, - "end": 20393, + "start": 20416, + "end": 20436, "loc": { "start": { "line": 496, @@ -79700,8 +79712,8 @@ }, "expression": { "type": "CallExpression", - "start": 20373, - "end": 20392, + "start": 20416, + "end": 20435, "loc": { "start": { "line": 496, @@ -79714,8 +79726,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20373, - "end": 20381, + "start": 20416, + "end": 20424, "loc": { "start": { "line": 496, @@ -79728,8 +79740,8 @@ }, "object": { "type": "ThisExpression", - "start": 20373, - "end": 20377, + "start": 20416, + "end": 20420, "loc": { "start": { "line": 496, @@ -79744,8 +79756,8 @@ }, "property": { "type": "Identifier", - "start": 20378, - "end": 20381, + "start": 20421, + "end": 20424, "loc": { "start": { "line": 496, @@ -79765,8 +79777,8 @@ "arguments": [ { "type": "Identifier", - "start": 20382, - "end": 20391, + "start": 20425, + "end": 20434, "loc": { "start": { "line": 496, @@ -79787,8 +79799,8 @@ { "type": "CommentLine", "value": " End this pathfinding.", - "start": 20340, - "end": 20364, + "start": 20383, + "end": 20407, "loc": { "start": { "line": 495, @@ -79804,8 +79816,8 @@ }, { "type": "ReturnStatement", - "start": 20402, - "end": 20409, + "start": 20445, + "end": 20452, "loc": { "start": { "line": 497, @@ -79826,8 +79838,8 @@ { "type": "CommentLine", "value": " Chekck if the stuck counter is greater or equal to the max stuck counter", - "start": 20016, - "end": 20091, + "start": 20059, + "end": 20134, "loc": { "start": { "line": 489, @@ -79850,8 +79862,8 @@ { "type": "CommentLine", "value": " If the instance's position is in the same spot it was in the last tick", - "start": 19735, - "end": 19808, + "start": 19778, + "end": 19851, "loc": { "start": { "line": 485, @@ -79868,8 +79880,8 @@ { "type": "CommentLine", "value": " Store the previous position as the position of this tick", - "start": 20433, - "end": 20492, + "start": 20476, + "end": 20535, "loc": { "start": { "line": 500, @@ -79885,8 +79897,8 @@ }, { "type": "ExpressionStatement", - "start": 20499, - "end": 20548, + "start": 20542, + "end": 20591, "loc": { "start": { "line": 501, @@ -79899,8 +79911,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 20499, - "end": 20547, + "start": 20542, + "end": 20590, "loc": { "start": { "line": 501, @@ -79914,8 +79926,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 20499, - "end": 20528, + "start": 20542, + "end": 20571, "loc": { "start": { "line": 501, @@ -79928,8 +79940,8 @@ }, "object": { "type": "Identifier", - "start": 20499, - "end": 20511, + "start": 20542, + "end": 20554, "loc": { "start": { "line": 501, @@ -79946,8 +79958,8 @@ }, "property": { "type": "Identifier", - "start": 20512, - "end": 20528, + "start": 20555, + "end": 20571, "loc": { "start": { "line": 501, @@ -79966,8 +79978,8 @@ }, "right": { "type": "Identifier", - "start": 20531, - "end": 20547, + "start": 20574, + "end": 20590, "loc": { "start": { "line": 501, @@ -79987,8 +79999,8 @@ { "type": "CommentLine", "value": " Store the previous position as the position of this tick", - "start": 20433, - "end": 20492, + "start": 20476, + "end": 20535, "loc": { "start": { "line": 500, @@ -80010,8 +80022,8 @@ { "type": "CommentLine", "value": " If this instance is being moved", - "start": 16136, - "end": 16170, + "start": 16179, + "end": 16213, "loc": { "start": { "line": 423, @@ -80041,8 +80053,8 @@ { "type": "CommentLine", "value": " Loop active instances and update.", - "start": 15843, - "end": 15879, + "start": 15886, + "end": 15922, "loc": { "start": { "line": 415, @@ -80059,8 +80071,8 @@ { "type": "CommentLine", "value": " Store this tick's time", - "start": 20572, - "end": 20597, + "start": 20615, + "end": 20640, "loc": { "start": { "line": 505, @@ -80076,8 +80088,8 @@ }, { "type": "ExpressionStatement", - "start": 20601, - "end": 20621, + "start": 20644, + "end": 20664, "loc": { "start": { "line": 506, @@ -80090,8 +80102,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 20601, - "end": 20620, + "start": 20644, + "end": 20663, "loc": { "start": { "line": 506, @@ -80105,8 +80117,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 20601, - "end": 20614, + "start": 20644, + "end": 20657, "loc": { "start": { "line": 506, @@ -80119,8 +80131,8 @@ }, "object": { "type": "ThisExpression", - "start": 20601, - "end": 20605, + "start": 20644, + "end": 20648, "loc": { "start": { "line": 506, @@ -80135,8 +80147,8 @@ }, "property": { "type": "Identifier", - "start": 20606, - "end": 20614, + "start": 20649, + "end": 20657, "loc": { "start": { "line": 506, @@ -80155,8 +80167,8 @@ }, "right": { "type": "Identifier", - "start": 20617, - "end": 20620, + "start": 20660, + "end": 20663, "loc": { "start": { "line": 506, @@ -80176,8 +80188,8 @@ { "type": "CommentLine", "value": " Store this tick's time", - "start": 20572, - "end": 20597, + "start": 20615, + "end": 20640, "loc": { "start": { "line": 505, @@ -80199,8 +80211,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t ", - "start": 15350, - "end": 15422, + "start": 15393, + "end": 15465, "loc": { "start": { "line": 400, @@ -80217,8 +80229,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t ", - "start": 20628, - "end": 20735, + "start": 20671, + "end": 20778, "loc": { "start": { "line": 508, @@ -80234,8 +80246,8 @@ }, { "type": "ClassMethod", - "start": 20738, - "end": 21313, + "start": 20781, + "end": 21356, "loc": { "start": { "line": 512, @@ -80250,8 +80262,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20738, - "end": 20749, + "start": 20781, + "end": 20792, "loc": { "start": { "line": 512, @@ -80274,8 +80286,8 @@ "params": [ { "type": "Identifier", - "start": 20750, - "end": 20759, + "start": 20793, + "end": 20802, "loc": { "start": { "line": 512, @@ -80292,8 +80304,8 @@ ], "body": { "type": "BlockStatement", - "start": 20761, - "end": 21313, + "start": 20804, + "end": 21356, "loc": { "start": { "line": 512, @@ -80307,8 +80319,8 @@ "body": [ { "type": "IfStatement", - "start": 20766, - "end": 21309, + "start": 20809, + "end": 21352, "loc": { "start": { "line": 513, @@ -80321,8 +80333,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20770, - "end": 20800, + "start": 20813, + "end": 20843, "loc": { "start": { "line": 513, @@ -80335,8 +80347,8 @@ }, "left": { "type": "UnaryExpression", - "start": 20770, - "end": 20787, + "start": 20813, + "end": 20830, "loc": { "start": { "line": 513, @@ -80351,8 +80363,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 20777, - "end": 20786, + "start": 20820, + "end": 20829, "loc": { "start": { "line": 513, @@ -80367,7 +80379,7 @@ "name": "pTileSize", "extra": { "parenthesized": true, - "parenStart": 20776 + "parenStart": 20819 } }, "extra": { @@ -80377,8 +80389,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 20792, - "end": 20800, + "start": 20835, + "end": 20843, "loc": { "start": { "line": 513, @@ -80398,8 +80410,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20802, - "end": 20869, + "start": 20845, + "end": 20912, "loc": { "start": { "line": 513, @@ -80413,8 +80425,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 20808, - "end": 20864, + "start": 20851, + "end": 20907, "loc": { "start": { "line": 514, @@ -80427,8 +80439,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 20808, - "end": 20863, + "start": 20851, + "end": 20906, "loc": { "start": { "line": 514, @@ -80442,8 +80454,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 20808, - "end": 20821, + "start": 20851, + "end": 20864, "loc": { "start": { "line": 514, @@ -80456,8 +80468,8 @@ }, "object": { "type": "ThisExpression", - "start": 20808, - "end": 20812, + "start": 20851, + "end": 20855, "loc": { "start": { "line": 514, @@ -80471,8 +80483,8 @@ }, "property": { "type": "Identifier", - "start": 20813, - "end": 20821, + "start": 20856, + "end": 20864, "loc": { "start": { "line": 514, @@ -80490,8 +80502,8 @@ }, "right": { "type": "ObjectExpression", - "start": 20824, - "end": 20863, + "start": 20867, + "end": 20906, "loc": { "start": { "line": 514, @@ -80505,8 +80517,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 20826, - "end": 20842, + "start": 20869, + "end": 20885, "loc": { "start": { "line": 514, @@ -80522,8 +80534,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20826, - "end": 20831, + "start": 20869, + "end": 20874, "loc": { "start": { "line": 514, @@ -80539,8 +80551,8 @@ }, "value": { "type": "Identifier", - "start": 20833, - "end": 20842, + "start": 20876, + "end": 20885, "loc": { "start": { "line": 514, @@ -80557,8 +80569,8 @@ }, { "type": "ObjectProperty", - "start": 20844, - "end": 20861, + "start": 20887, + "end": 20904, "loc": { "start": { "line": 514, @@ -80574,8 +80586,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20844, - "end": 20850, + "start": 20887, + "end": 20893, "loc": { "start": { "line": 514, @@ -80591,8 +80603,8 @@ }, "value": { "type": "Identifier", - "start": 20852, - "end": 20861, + "start": 20895, + "end": 20904, "loc": { "start": { "line": 514, @@ -80616,8 +80628,8 @@ }, "alternate": { "type": "IfStatement", - "start": 20875, - "end": 21309, + "start": 20918, + "end": 21352, "loc": { "start": { "line": 515, @@ -80630,8 +80642,8 @@ }, "test": { "type": "BinaryExpression", - "start": 20878, - "end": 20908, + "start": 20921, + "end": 20951, "loc": { "start": { "line": 515, @@ -80644,8 +80656,8 @@ }, "left": { "type": "UnaryExpression", - "start": 20878, - "end": 20895, + "start": 20921, + "end": 20938, "loc": { "start": { "line": 515, @@ -80660,8 +80672,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 20885, - "end": 20894, + "start": 20928, + "end": 20937, "loc": { "start": { "line": 515, @@ -80676,7 +80688,7 @@ "name": "pTileSize", "extra": { "parenthesized": true, - "parenStart": 20884 + "parenStart": 20927 } }, "extra": { @@ -80686,8 +80698,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 20900, - "end": 20908, + "start": 20943, + "end": 20951, "loc": { "start": { "line": 515, @@ -80707,8 +80719,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 20910, - "end": 21214, + "start": 20953, + "end": 21257, "loc": { "start": { "line": 515, @@ -80722,8 +80734,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 20916, - "end": 20946, + "start": 20959, + "end": 20989, "loc": { "start": { "line": 516, @@ -80737,8 +80749,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 20922, - "end": 20945, + "start": 20965, + "end": 20988, "loc": { "start": { "line": 516, @@ -80751,8 +80763,8 @@ }, "id": { "type": "Identifier", - "start": 20922, - "end": 20927, + "start": 20965, + "end": 20970, "loc": { "start": { "line": 516, @@ -80768,8 +80780,8 @@ }, "init": { "type": "MemberExpression", - "start": 20930, - "end": 20945, + "start": 20973, + "end": 20988, "loc": { "start": { "line": 516, @@ -80782,8 +80794,8 @@ }, "object": { "type": "Identifier", - "start": 20930, - "end": 20939, + "start": 20973, + "end": 20982, "loc": { "start": { "line": 516, @@ -80799,8 +80811,8 @@ }, "property": { "type": "Identifier", - "start": 20940, - "end": 20945, + "start": 20983, + "end": 20988, "loc": { "start": { "line": 516, @@ -80822,8 +80834,8 @@ }, { "type": "VariableDeclaration", - "start": 20951, - "end": 20983, + "start": 20994, + "end": 21026, "loc": { "start": { "line": 517, @@ -80837,8 +80849,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 20957, - "end": 20982, + "start": 21000, + "end": 21025, "loc": { "start": { "line": 517, @@ -80851,8 +80863,8 @@ }, "id": { "type": "Identifier", - "start": 20957, - "end": 20963, + "start": 21000, + "end": 21006, "loc": { "start": { "line": 517, @@ -80868,8 +80880,8 @@ }, "init": { "type": "MemberExpression", - "start": 20966, - "end": 20982, + "start": 21009, + "end": 21025, "loc": { "start": { "line": 517, @@ -80882,8 +80894,8 @@ }, "object": { "type": "Identifier", - "start": 20966, - "end": 20975, + "start": 21009, + "end": 21018, "loc": { "start": { "line": 517, @@ -80899,8 +80911,8 @@ }, "property": { "type": "Identifier", - "start": 20976, - "end": 20982, + "start": 21019, + "end": 21025, "loc": { "start": { "line": 517, @@ -80923,8 +80935,8 @@ { "type": "CommentLine", "value": " Assign the tilesize width", - "start": 20988, - "end": 21016, + "start": 21031, + "end": 21059, "loc": { "start": { "line": 518, @@ -80940,8 +80952,8 @@ }, { "type": "IfStatement", - "start": 21021, - "end": 21094, + "start": 21064, + "end": 21137, "loc": { "start": { "line": 519, @@ -80954,8 +80966,8 @@ }, "test": { "type": "BinaryExpression", - "start": 21025, - "end": 21051, + "start": 21068, + "end": 21094, "loc": { "start": { "line": 519, @@ -80968,8 +80980,8 @@ }, "left": { "type": "UnaryExpression", - "start": 21025, - "end": 21038, + "start": 21068, + "end": 21081, "loc": { "start": { "line": 519, @@ -80984,8 +80996,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 21032, - "end": 21037, + "start": 21075, + "end": 21080, "loc": { "start": { "line": 519, @@ -81001,7 +81013,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 21031 + "parenStart": 21074 } }, "extra": { @@ -81012,8 +81024,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 21043, - "end": 21051, + "start": 21086, + "end": 21094, "loc": { "start": { "line": 519, @@ -81034,8 +81046,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 21053, - "end": 21094, + "start": 21096, + "end": 21137, "loc": { "start": { "line": 519, @@ -81049,8 +81061,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 21060, - "end": 21088, + "start": 21103, + "end": 21131, "loc": { "start": { "line": 520, @@ -81063,8 +81075,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 21060, - "end": 21087, + "start": 21103, + "end": 21130, "loc": { "start": { "line": 520, @@ -81078,8 +81090,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 21060, - "end": 21079, + "start": 21103, + "end": 21122, "loc": { "start": { "line": 520, @@ -81092,8 +81104,8 @@ }, "object": { "type": "MemberExpression", - "start": 21060, - "end": 21073, + "start": 21103, + "end": 21116, "loc": { "start": { "line": 520, @@ -81106,8 +81118,8 @@ }, "object": { "type": "ThisExpression", - "start": 21060, - "end": 21064, + "start": 21103, + "end": 21107, "loc": { "start": { "line": 520, @@ -81121,8 +81133,8 @@ }, "property": { "type": "Identifier", - "start": 21065, - "end": 21073, + "start": 21108, + "end": 21116, "loc": { "start": { "line": 520, @@ -81140,8 +81152,8 @@ }, "property": { "type": "Identifier", - "start": 21074, - "end": 21079, + "start": 21117, + "end": 21122, "loc": { "start": { "line": 520, @@ -81159,8 +81171,8 @@ }, "right": { "type": "Identifier", - "start": 21082, - "end": 21087, + "start": 21125, + "end": 21130, "loc": { "start": { "line": 520, @@ -81185,8 +81197,8 @@ { "type": "CommentLine", "value": " Assign the tilesize width", - "start": 20988, - "end": 21016, + "start": 21031, + "end": 21059, "loc": { "start": { "line": 518, @@ -81203,8 +81215,8 @@ { "type": "CommentLine", "value": " Assign the tilesize height", - "start": 21099, - "end": 21128, + "start": 21142, + "end": 21171, "loc": { "start": { "line": 522, @@ -81220,8 +81232,8 @@ }, { "type": "IfStatement", - "start": 21133, - "end": 21209, + "start": 21176, + "end": 21252, "loc": { "start": { "line": 523, @@ -81234,8 +81246,8 @@ }, "test": { "type": "BinaryExpression", - "start": 21137, - "end": 21164, + "start": 21180, + "end": 21207, "loc": { "start": { "line": 523, @@ -81248,8 +81260,8 @@ }, "left": { "type": "UnaryExpression", - "start": 21137, - "end": 21151, + "start": 21180, + "end": 21194, "loc": { "start": { "line": 523, @@ -81264,8 +81276,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 21144, - "end": 21150, + "start": 21187, + "end": 21193, "loc": { "start": { "line": 523, @@ -81281,7 +81293,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 21143 + "parenStart": 21186 } }, "extra": { @@ -81292,8 +81304,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 21156, - "end": 21164, + "start": 21199, + "end": 21207, "loc": { "start": { "line": 523, @@ -81314,8 +81326,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 21166, - "end": 21209, + "start": 21209, + "end": 21252, "loc": { "start": { "line": 523, @@ -81329,8 +81341,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 21173, - "end": 21203, + "start": 21216, + "end": 21246, "loc": { "start": { "line": 524, @@ -81343,8 +81355,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 21173, - "end": 21202, + "start": 21216, + "end": 21245, "loc": { "start": { "line": 524, @@ -81358,8 +81370,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 21173, - "end": 21193, + "start": 21216, + "end": 21236, "loc": { "start": { "line": 524, @@ -81372,8 +81384,8 @@ }, "object": { "type": "MemberExpression", - "start": 21173, - "end": 21186, + "start": 21216, + "end": 21229, "loc": { "start": { "line": 524, @@ -81386,8 +81398,8 @@ }, "object": { "type": "ThisExpression", - "start": 21173, - "end": 21177, + "start": 21216, + "end": 21220, "loc": { "start": { "line": 524, @@ -81401,8 +81413,8 @@ }, "property": { "type": "Identifier", - "start": 21178, - "end": 21186, + "start": 21221, + "end": 21229, "loc": { "start": { "line": 524, @@ -81420,8 +81432,8 @@ }, "property": { "type": "Identifier", - "start": 21187, - "end": 21193, + "start": 21230, + "end": 21236, "loc": { "start": { "line": 524, @@ -81439,8 +81451,8 @@ }, "right": { "type": "Identifier", - "start": 21196, - "end": 21202, + "start": 21239, + "end": 21245, "loc": { "start": { "line": 524, @@ -81464,8 +81476,8 @@ { "type": "CommentLine", "value": " Assign the tilesize height", - "start": 21099, - "end": 21128, + "start": 21142, + "end": 21171, "loc": { "start": { "line": 522, @@ -81484,8 +81496,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 21220, - "end": 21309, + "start": 21263, + "end": 21352, "loc": { "start": { "line": 526, @@ -81499,8 +81511,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 21226, - "end": 21304, + "start": 21269, + "end": 21347, "loc": { "start": { "line": 527, @@ -81513,8 +81525,8 @@ }, "expression": { "type": "CallExpression", - "start": 21226, - "end": 21303, + "start": 21269, + "end": 21346, "loc": { "start": { "line": 527, @@ -81527,8 +81539,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21226, - "end": 21268, + "start": 21269, + "end": 21311, "loc": { "start": { "line": 527, @@ -81541,8 +81553,8 @@ }, "object": { "type": "CallExpression", - "start": 21226, - "end": 21262, + "start": 21269, + "end": 21305, "loc": { "start": { "line": 527, @@ -81555,8 +81567,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21226, - "end": 21244, + "start": 21269, + "end": 21287, "loc": { "start": { "line": 527, @@ -81569,8 +81581,8 @@ }, "object": { "type": "MemberExpression", - "start": 21226, - "end": 21237, + "start": 21269, + "end": 21280, "loc": { "start": { "line": 527, @@ -81583,8 +81595,8 @@ }, "object": { "type": "ThisExpression", - "start": 21226, - "end": 21230, + "start": 21269, + "end": 21273, "loc": { "start": { "line": 527, @@ -81598,8 +81610,8 @@ }, "property": { "type": "Identifier", - "start": 21231, - "end": 21237, + "start": 21274, + "end": 21280, "loc": { "start": { "line": 527, @@ -81617,8 +81629,8 @@ }, "property": { "type": "Identifier", - "start": 21238, - "end": 21244, + "start": 21281, + "end": 21287, "loc": { "start": { "line": 527, @@ -81637,8 +81649,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 21245, - "end": 21261, + "start": 21288, + "end": 21304, "loc": { "start": { "line": 527, @@ -81659,8 +81671,8 @@ }, "property": { "type": "Identifier", - "start": 21263, - "end": 21268, + "start": 21306, + "end": 21311, "loc": { "start": { "line": 527, @@ -81679,8 +81691,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 21269, - "end": 21302, + "start": 21312, + "end": 21345, "loc": { "start": { "line": 527, @@ -81713,8 +81725,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t ", - "start": 20628, - "end": 20735, + "start": 20671, + "end": 20778, "loc": { "start": { "line": 508, @@ -81731,8 +81743,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t ", - "start": 21316, - "end": 21588, + "start": 21359, + "end": 21631, "loc": { "start": { "line": 530, @@ -81748,8 +81760,8 @@ }, { "type": "ClassMethod", - "start": 21591, - "end": 22708, + "start": 21634, + "end": 22751, "loc": { "start": { "line": 537, @@ -81764,8 +81776,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 21591, - "end": 21607, + "start": 21634, + "end": 21650, "loc": { "start": { "line": 537, @@ -81788,8 +81800,8 @@ "params": [ { "type": "Identifier", - "start": 21608, - "end": 21613, + "start": 21651, + "end": 21656, "loc": { "start": { "line": 537, @@ -81805,8 +81817,8 @@ }, { "type": "Identifier", - "start": 21615, - "end": 21629, + "start": 21658, + "end": 21672, "loc": { "start": { "line": 537, @@ -81823,8 +81835,8 @@ ], "body": { "type": "BlockStatement", - "start": 21631, - "end": 22708, + "start": 21674, + "end": 22751, "loc": { "start": { "line": 537, @@ -81838,8 +81850,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 21899, - "end": 21968, + "start": 21942, + "end": 22011, "loc": { "start": { "line": 540, @@ -81853,8 +81865,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 21905, - "end": 21967, + "start": 21948, + "end": 22010, "loc": { "start": { "line": 540, @@ -81867,8 +81879,8 @@ }, "id": { "type": "Identifier", - "start": 21905, - "end": 21915, + "start": 21948, + "end": 21958, "loc": { "start": { "line": 540, @@ -81885,8 +81897,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 21918, - "end": 21967, + "start": 21961, + "end": 22010, "loc": { "start": { "line": 540, @@ -81904,8 +81916,8 @@ "params": [ { "type": "Identifier", - "start": 21919, - "end": 21928, + "start": 21962, + "end": 21971, "loc": { "start": { "line": 540, @@ -81922,8 +81934,8 @@ ], "body": { "type": "CallExpression", - "start": 21933, - "end": 21967, + "start": 21976, + "end": 22010, "loc": { "start": { "line": 540, @@ -81936,8 +81948,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21933, - "end": 21956, + "start": 21976, + "end": 21999, "loc": { "start": { "line": 540, @@ -81950,8 +81962,8 @@ }, "object": { "type": "Identifier", - "start": 21933, - "end": 21947, + "start": 21976, + "end": 21990, "loc": { "start": { "line": 540, @@ -81967,8 +81979,8 @@ }, "property": { "type": "Identifier", - "start": 21948, - "end": 21956, + "start": 21991, + "end": 21999, "loc": { "start": { "line": 540, @@ -81987,8 +81999,8 @@ "arguments": [ { "type": "Identifier", - "start": 21957, - "end": 21966, + "start": 22000, + "end": 22009, "loc": { "start": { "line": 540, @@ -82013,8 +82025,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is accessible. This prevents the tile's contents from being searched. ", - "start": 21636, - "end": 21762, + "start": 21679, + "end": 21805, "loc": { "start": { "line": 538, @@ -82029,8 +82041,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 21766, - "end": 21895, + "start": 21809, + "end": 21938, "loc": { "start": { "line": 539, @@ -82047,8 +82059,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 21972, - "end": 22092, + "start": 22015, + "end": 22135, "loc": { "start": { "line": 541, @@ -82064,8 +82076,8 @@ }, { "type": "VariableDeclaration", - "start": 22096, - "end": 22312, + "start": 22139, + "end": 22355, "loc": { "start": { "line": 542, @@ -82079,8 +82091,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 22102, - "end": 22311, + "start": 22145, + "end": 22354, "loc": { "start": { "line": 542, @@ -82093,8 +82105,8 @@ }, "id": { "type": "Identifier", - "start": 22102, - "end": 22114, + "start": 22145, + "end": 22157, "loc": { "start": { "line": 542, @@ -82111,8 +82123,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 22117, - "end": 22311, + "start": 22160, + "end": 22354, "loc": { "start": { "line": 542, @@ -82130,8 +82142,8 @@ "params": [ { "type": "Identifier", - "start": 22118, - "end": 22127, + "start": 22161, + "end": 22170, "loc": { "start": { "line": 542, @@ -82148,8 +82160,8 @@ ], "body": { "type": "LogicalExpression", - "start": 22132, - "end": 22311, + "start": 22175, + "end": 22354, "loc": { "start": { "line": 542, @@ -82162,8 +82174,8 @@ }, "left": { "type": "BinaryExpression", - "start": 22133, - "end": 22195, + "start": 22176, + "end": 22238, "loc": { "start": { "line": 542, @@ -82176,8 +82188,8 @@ }, "left": { "type": "MemberExpression", - "start": 22133, - "end": 22156, + "start": 22176, + "end": 22199, "loc": { "start": { "line": 542, @@ -82190,8 +82202,8 @@ }, "object": { "type": "Identifier", - "start": 22133, - "end": 22142, + "start": 22176, + "end": 22185, "loc": { "start": { "line": 542, @@ -82207,8 +82219,8 @@ }, "property": { "type": "Identifier", - "start": 22143, - "end": 22156, + "start": 22186, + "end": 22199, "loc": { "start": { "line": 542, @@ -82227,8 +82239,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 22161, - "end": 22195, + "start": 22204, + "end": 22238, "loc": { "start": { "line": 542, @@ -82241,8 +82253,8 @@ }, "object": { "type": "Identifier", - "start": 22161, - "end": 22177, + "start": 22204, + "end": 22220, "loc": { "start": { "line": 542, @@ -82258,8 +82270,8 @@ }, "property": { "type": "Identifier", - "start": 22178, - "end": 22195, + "start": 22221, + "end": 22238, "loc": { "start": { "line": 542, @@ -82277,14 +82289,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 22132 + "parenStart": 22175 } }, "operator": "||", "right": { "type": "LogicalExpression", - "start": 22200, - "end": 22311, + "start": 22243, + "end": 22354, "loc": { "start": { "line": 542, @@ -82297,8 +82309,8 @@ }, "left": { "type": "MemberExpression", - "start": 22200, - "end": 22217, + "start": 22243, + "end": 22260, "loc": { "start": { "line": 542, @@ -82311,8 +82323,8 @@ }, "object": { "type": "Identifier", - "start": 22200, - "end": 22209, + "start": 22243, + "end": 22252, "loc": { "start": { "line": 542, @@ -82328,8 +82340,8 @@ }, "property": { "type": "Identifier", - "start": 22210, - "end": 22217, + "start": 22253, + "end": 22260, "loc": { "start": { "line": 542, @@ -82348,8 +82360,8 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 22222, - "end": 22310, + "start": 22265, + "end": 22353, "loc": { "start": { "line": 542, @@ -82362,8 +82374,8 @@ }, "left": { "type": "UnaryExpression", - "start": 22222, - "end": 22246, + "start": 22265, + "end": 22289, "loc": { "start": { "line": 542, @@ -82378,8 +82390,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 22223, - "end": 22246, + "start": 22266, + "end": 22289, "loc": { "start": { "line": 542, @@ -82392,8 +82404,8 @@ }, "object": { "type": "Identifier", - "start": 22223, - "end": 22232, + "start": 22266, + "end": 22275, "loc": { "start": { "line": 542, @@ -82409,8 +82421,8 @@ }, "property": { "type": "Identifier", - "start": 22233, - "end": 22246, + "start": 22276, + "end": 22289, "loc": { "start": { "line": 542, @@ -82433,8 +82445,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 22250, - "end": 22310, + "start": 22293, + "end": 22353, "loc": { "start": { "line": 542, @@ -82447,8 +82459,8 @@ }, "left": { "type": "MemberExpression", - "start": 22250, - "end": 22273, + "start": 22293, + "end": 22316, "loc": { "start": { "line": 542, @@ -82461,8 +82473,8 @@ }, "object": { "type": "Identifier", - "start": 22250, - "end": 22259, + "start": 22293, + "end": 22302, "loc": { "start": { "line": 542, @@ -82478,8 +82490,8 @@ }, "property": { "type": "Identifier", - "start": 22260, - "end": 22273, + "start": 22303, + "end": 22316, "loc": { "start": { "line": 542, @@ -82498,8 +82510,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 22278, - "end": 22310, + "start": 22321, + "end": 22353, "loc": { "start": { "line": 542, @@ -82512,8 +82524,8 @@ }, "object": { "type": "Identifier", - "start": 22278, - "end": 22294, + "start": 22321, + "end": 22337, "loc": { "start": { "line": 542, @@ -82529,8 +82541,8 @@ }, "property": { "type": "Identifier", - "start": 22295, - "end": 22310, + "start": 22338, + "end": 22353, "loc": { "start": { "line": 542, @@ -82549,7 +82561,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 22221 + "parenStart": 22264 } } } @@ -82563,8 +82575,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 21972, - "end": 22092, + "start": 22015, + "end": 22135, "loc": { "start": { "line": 541, @@ -82581,8 +82593,8 @@ { "type": "CommentLine", "value": " If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.", - "start": 22316, - "end": 22455, + "start": 22359, + "end": 22498, "loc": { "start": { "line": 543, @@ -82598,8 +82610,8 @@ }, { "type": "VariableDeclaration", - "start": 22459, - "end": 22617, + "start": 22502, + "end": 22660, "loc": { "start": { "line": 544, @@ -82613,8 +82625,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 22465, - "end": 22616, + "start": 22508, + "end": 22659, "loc": { "start": { "line": 544, @@ -82627,8 +82639,8 @@ }, "id": { "type": "Identifier", - "start": 22465, - "end": 22485, + "start": 22508, + "end": 22528, "loc": { "start": { "line": 544, @@ -82645,8 +82657,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 22488, - "end": 22616, + "start": 22531, + "end": 22659, "loc": { "start": { "line": 544, @@ -82664,8 +82676,8 @@ "params": [ { "type": "Identifier", - "start": 22489, - "end": 22498, + "start": 22532, + "end": 22541, "loc": { "start": { "line": 544, @@ -82682,8 +82694,8 @@ ], "body": { "type": "CallExpression", - "start": 22503, - "end": 22616, + "start": 22546, + "end": 22659, "loc": { "start": { "line": 544, @@ -82696,8 +82708,8 @@ }, "callee": { "type": "MemberExpression", - "start": 22503, - "end": 22531, + "start": 22546, + "end": 22574, "loc": { "start": { "line": 544, @@ -82710,8 +82722,8 @@ }, "object": { "type": "CallExpression", - "start": 22503, - "end": 22526, + "start": 22546, + "end": 22569, "loc": { "start": { "line": 544, @@ -82724,8 +82736,8 @@ }, "callee": { "type": "MemberExpression", - "start": 22503, - "end": 22524, + "start": 22546, + "end": 22567, "loc": { "start": { "line": 544, @@ -82738,8 +82750,8 @@ }, "object": { "type": "Identifier", - "start": 22503, - "end": 22512, + "start": 22546, + "end": 22555, "loc": { "start": { "line": 544, @@ -82755,8 +82767,8 @@ }, "property": { "type": "Identifier", - "start": 22513, - "end": 22524, + "start": 22556, + "end": 22567, "loc": { "start": { "line": 544, @@ -82776,8 +82788,8 @@ }, "property": { "type": "Identifier", - "start": 22527, - "end": 22531, + "start": 22570, + "end": 22574, "loc": { "start": { "line": 544, @@ -82796,8 +82808,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 22532, - "end": 22615, + "start": 22575, + "end": 22658, "loc": { "start": { "line": 544, @@ -82815,8 +82827,8 @@ "params": [ { "type": "Identifier", - "start": 22533, - "end": 22542, + "start": 22576, + "end": 22585, "loc": { "start": { "line": 544, @@ -82833,8 +82845,8 @@ ], "body": { "type": "BlockStatement", - "start": 22547, - "end": 22615, + "start": 22590, + "end": 22658, "loc": { "start": { "line": 544, @@ -82848,8 +82860,8 @@ "body": [ { "type": "ReturnStatement", - "start": 22553, - "end": 22610, + "start": 22596, + "end": 22653, "loc": { "start": { "line": 545, @@ -82862,8 +82874,8 @@ }, "argument": { "type": "LogicalExpression", - "start": 22560, - "end": 22609, + "start": 22603, + "end": 22652, "loc": { "start": { "line": 545, @@ -82876,8 +82888,8 @@ }, "left": { "type": "CallExpression", - "start": 22560, - "end": 22583, + "start": 22603, + "end": 22626, "loc": { "start": { "line": 545, @@ -82890,8 +82902,8 @@ }, "callee": { "type": "Identifier", - "start": 22560, - "end": 22572, + "start": 22603, + "end": 22615, "loc": { "start": { "line": 545, @@ -82908,8 +82920,8 @@ "arguments": [ { "type": "Identifier", - "start": 22573, - "end": 22582, + "start": 22616, + "end": 22625, "loc": { "start": { "line": 545, @@ -82928,8 +82940,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 22587, - "end": 22609, + "start": 22630, + "end": 22652, "loc": { "start": { "line": 545, @@ -82944,8 +82956,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 22588, - "end": 22609, + "start": 22631, + "end": 22652, "loc": { "start": { "line": 545, @@ -82958,8 +82970,8 @@ }, "callee": { "type": "Identifier", - "start": 22588, - "end": 22598, + "start": 22631, + "end": 22641, "loc": { "start": { "line": 545, @@ -82976,8 +82988,8 @@ "arguments": [ { "type": "Identifier", - "start": 22599, - "end": 22608, + "start": 22642, + "end": 22651, "loc": { "start": { "line": 545, @@ -83014,8 +83026,8 @@ { "type": "CommentLine", "value": " If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.", - "start": 22316, - "end": 22455, + "start": 22359, + "end": 22498, "loc": { "start": { "line": 543, @@ -83031,8 +83043,8 @@ }, { "type": "ReturnStatement", - "start": 22621, - "end": 22704, + "start": 22664, + "end": 22747, "loc": { "start": { "line": 547, @@ -83045,8 +83057,8 @@ }, "argument": { "type": "LogicalExpression", - "start": 22628, - "end": 22703, + "start": 22671, + "end": 22746, "loc": { "start": { "line": 547, @@ -83059,8 +83071,8 @@ }, "left": { "type": "CallExpression", - "start": 22628, - "end": 22645, + "start": 22671, + "end": 22688, "loc": { "start": { "line": 547, @@ -83073,8 +83085,8 @@ }, "callee": { "type": "Identifier", - "start": 22628, - "end": 22638, + "start": 22671, + "end": 22681, "loc": { "start": { "line": 547, @@ -83091,8 +83103,8 @@ "arguments": [ { "type": "Identifier", - "start": 22639, - "end": 22644, + "start": 22682, + "end": 22687, "loc": { "start": { "line": 547, @@ -83111,8 +83123,8 @@ "operator": "||", "right": { "type": "LogicalExpression", - "start": 22650, - "end": 22702, + "start": 22693, + "end": 22745, "loc": { "start": { "line": 547, @@ -83125,8 +83137,8 @@ }, "left": { "type": "UnaryExpression", - "start": 22650, - "end": 22670, + "start": 22693, + "end": 22713, "loc": { "start": { "line": 547, @@ -83141,8 +83153,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 22651, - "end": 22670, + "start": 22694, + "end": 22713, "loc": { "start": { "line": 547, @@ -83155,8 +83167,8 @@ }, "callee": { "type": "Identifier", - "start": 22651, - "end": 22663, + "start": 22694, + "end": 22706, "loc": { "start": { "line": 547, @@ -83173,8 +83185,8 @@ "arguments": [ { "type": "Identifier", - "start": 22664, - "end": 22669, + "start": 22707, + "end": 22712, "loc": { "start": { "line": 547, @@ -83197,8 +83209,8 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 22674, - "end": 22702, + "start": 22717, + "end": 22745, "loc": { "start": { "line": 547, @@ -83213,8 +83225,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 22675, - "end": 22702, + "start": 22718, + "end": 22745, "loc": { "start": { "line": 547, @@ -83227,8 +83239,8 @@ }, "callee": { "type": "Identifier", - "start": 22675, - "end": 22695, + "start": 22718, + "end": 22738, "loc": { "start": { "line": 547, @@ -83245,8 +83257,8 @@ "arguments": [ { "type": "Identifier", - "start": 22696, - "end": 22701, + "start": 22739, + "end": 22744, "loc": { "start": { "line": 547, @@ -83268,7 +83280,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 22649 + "parenStart": 22692 } } } @@ -83281,8 +83293,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t ", - "start": 21316, - "end": 21588, + "start": 21359, + "end": 21631, "loc": { "start": { "line": 530, @@ -83299,8 +83311,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t ", - "start": 22711, - "end": 23306, + "start": 22754, + "end": 23349, "loc": { "start": { "line": 549, @@ -83316,8 +83328,8 @@ }, { "type": "ClassMethod", - "start": 23309, - "end": 24745, + "start": 23352, + "end": 24788, "loc": { "start": { "line": 560, @@ -83332,8 +83344,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 23309, - "end": 23316, + "start": 23352, + "end": 23359, "loc": { "start": { "line": 560, @@ -83356,8 +83368,8 @@ "params": [ { "type": "Identifier", - "start": 23317, - "end": 23326, + "start": 23360, + "end": 23369, "loc": { "start": { "line": 560, @@ -83373,8 +83385,8 @@ }, { "type": "Identifier", - "start": 23328, - "end": 23335, + "start": 23371, + "end": 23378, "loc": { "start": { "line": 560, @@ -83390,8 +83402,8 @@ }, { "type": "Identifier", - "start": 23337, - "end": 23349, + "start": 23380, + "end": 23392, "loc": { "start": { "line": 560, @@ -83408,8 +83420,8 @@ ], "body": { "type": "BlockStatement", - "start": 23351, - "end": 24745, + "start": 23394, + "end": 24788, "loc": { "start": { "line": 560, @@ -83423,8 +83435,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 23384, - "end": 23441, + "start": 23427, + "end": 23484, "loc": { "start": { "line": 562, @@ -83438,8 +83450,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 23390, - "end": 23440, + "start": 23433, + "end": 23483, "loc": { "start": { "line": 562, @@ -83452,8 +83464,8 @@ }, "id": { "type": "Identifier", - "start": 23390, - "end": 23402, + "start": 23433, + "end": 23445, "loc": { "start": { "line": 562, @@ -83470,8 +83482,8 @@ }, "init": { "type": "CallExpression", - "start": 23405, - "end": 23440, + "start": 23448, + "end": 23483, "loc": { "start": { "line": 562, @@ -83484,8 +83496,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23405, - "end": 23429, + "start": 23448, + "end": 23472, "loc": { "start": { "line": 562, @@ -83498,8 +83510,8 @@ }, "object": { "type": "MemberExpression", - "start": 23405, - "end": 23425, + "start": 23448, + "end": 23468, "loc": { "start": { "line": 562, @@ -83512,8 +83524,8 @@ }, "object": { "type": "ThisExpression", - "start": 23405, - "end": 23409, + "start": 23448, + "end": 23452, "loc": { "start": { "line": 562, @@ -83527,8 +83539,8 @@ }, "property": { "type": "Identifier", - "start": 23410, - "end": 23425, + "start": 23453, + "end": 23468, "loc": { "start": { "line": 562, @@ -83546,8 +83558,8 @@ }, "property": { "type": "Identifier", - "start": 23426, - "end": 23429, + "start": 23469, + "end": 23472, "loc": { "start": { "line": 562, @@ -83566,8 +83578,8 @@ "arguments": [ { "type": "Identifier", - "start": 23430, - "end": 23439, + "start": 23473, + "end": 23482, "loc": { "start": { "line": 562, @@ -83591,8 +83603,8 @@ { "type": "CommentLine", "value": " Get the instance data", - "start": 23356, - "end": 23380, + "start": 23399, + "end": 23423, "loc": { "start": { "line": 561, @@ -83608,8 +83620,8 @@ }, { "type": "IfStatement", - "start": 23445, - "end": 23558, + "start": 23488, + "end": 23601, "loc": { "start": { "line": 563, @@ -83622,8 +83634,8 @@ }, "test": { "type": "UnaryExpression", - "start": 23449, - "end": 23462, + "start": 23492, + "end": 23505, "loc": { "start": { "line": 563, @@ -83638,8 +83650,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 23450, - "end": 23462, + "start": 23493, + "end": 23505, "loc": { "start": { "line": 563, @@ -83659,8 +83671,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 23464, - "end": 23558, + "start": 23507, + "end": 23601, "loc": { "start": { "line": 563, @@ -83674,8 +83686,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 23470, - "end": 23541, + "start": 23513, + "end": 23584, "loc": { "start": { "line": 564, @@ -83688,8 +83700,8 @@ }, "expression": { "type": "CallExpression", - "start": 23470, - "end": 23540, + "start": 23513, + "end": 23583, "loc": { "start": { "line": 564, @@ -83702,8 +83714,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23470, - "end": 23512, + "start": 23513, + "end": 23555, "loc": { "start": { "line": 564, @@ -83716,8 +83728,8 @@ }, "object": { "type": "CallExpression", - "start": 23470, - "end": 23506, + "start": 23513, + "end": 23549, "loc": { "start": { "line": 564, @@ -83730,8 +83742,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23470, - "end": 23488, + "start": 23513, + "end": 23531, "loc": { "start": { "line": 564, @@ -83744,8 +83756,8 @@ }, "object": { "type": "MemberExpression", - "start": 23470, - "end": 23481, + "start": 23513, + "end": 23524, "loc": { "start": { "line": 564, @@ -83758,8 +83770,8 @@ }, "object": { "type": "ThisExpression", - "start": 23470, - "end": 23474, + "start": 23513, + "end": 23517, "loc": { "start": { "line": 564, @@ -83773,8 +83785,8 @@ }, "property": { "type": "Identifier", - "start": 23475, - "end": 23481, + "start": 23518, + "end": 23524, "loc": { "start": { "line": 564, @@ -83792,8 +83804,8 @@ }, "property": { "type": "Identifier", - "start": 23482, - "end": 23488, + "start": 23525, + "end": 23531, "loc": { "start": { "line": 564, @@ -83812,8 +83824,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 23489, - "end": 23505, + "start": 23532, + "end": 23548, "loc": { "start": { "line": 564, @@ -83834,8 +83846,8 @@ }, "property": { "type": "Identifier", - "start": 23507, - "end": 23512, + "start": 23550, + "end": 23555, "loc": { "start": { "line": 564, @@ -83854,8 +83866,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 23513, - "end": 23539, + "start": 23556, + "end": 23582, "loc": { "start": { "line": 564, @@ -83877,8 +83889,8 @@ }, { "type": "ReturnStatement", - "start": 23546, - "end": 23553, + "start": 23589, + "end": 23596, "loc": { "start": { "line": 565, @@ -83900,8 +83912,8 @@ { "type": "CommentLine", "value": " Find the path", - "start": 23566, - "end": 23582, + "start": 23609, + "end": 23625, "loc": { "start": { "line": 568, @@ -83917,8 +83929,8 @@ }, { "type": "VariableDeclaration", - "start": 23586, - "end": 24670, + "start": 23629, + "end": 24713, "loc": { "start": { "line": 569, @@ -83932,8 +83944,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 23592, - "end": 24669, + "start": 23635, + "end": 24712, "loc": { "start": { "line": 569, @@ -83946,8 +83958,8 @@ }, "id": { "type": "Identifier", - "start": 23592, - "end": 23598, + "start": 23635, + "end": 23641, "loc": { "start": { "line": 569, @@ -83964,8 +83976,8 @@ }, "init": { "type": "CallExpression", - "start": 23601, - "end": 24669, + "start": 23644, + "end": 24712, "loc": { "start": { "line": 569, @@ -83978,8 +83990,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23601, - "end": 23631, + "start": 23644, + "end": 23674, "loc": { "start": { "line": 569, @@ -83992,8 +84004,8 @@ }, "object": { "type": "MemberExpression", - "start": 23601, - "end": 23622, + "start": 23644, + "end": 23665, "loc": { "start": { "line": 569, @@ -84006,8 +84018,8 @@ }, "object": { "type": "Identifier", - "start": 23601, - "end": 23613, + "start": 23644, + "end": 23656, "loc": { "start": { "line": 569, @@ -84023,8 +84035,8 @@ }, "property": { "type": "Identifier", - "start": 23614, - "end": 23622, + "start": 23657, + "end": 23665, "loc": { "start": { "line": 569, @@ -84042,8 +84054,8 @@ }, "property": { "type": "Identifier", - "start": 23623, - "end": 23631, + "start": 23666, + "end": 23674, "loc": { "start": { "line": 569, @@ -84062,8 +84074,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 23632, - "end": 23641, + "start": 23675, + "end": 23684, "loc": { "start": { "line": 569, @@ -84076,8 +84088,8 @@ }, "object": { "type": "Identifier", - "start": 23632, - "end": 23639, + "start": 23675, + "end": 23682, "loc": { "start": { "line": 569, @@ -84093,8 +84105,8 @@ }, "property": { "type": "Identifier", - "start": 23640, - "end": 23641, + "start": 23683, + "end": 23684, "loc": { "start": { "line": 569, @@ -84112,8 +84124,8 @@ }, { "type": "MemberExpression", - "start": 23643, - "end": 23652, + "start": 23686, + "end": 23695, "loc": { "start": { "line": 569, @@ -84126,8 +84138,8 @@ }, "object": { "type": "Identifier", - "start": 23643, - "end": 23650, + "start": 23686, + "end": 23693, "loc": { "start": { "line": 569, @@ -84143,8 +84155,8 @@ }, "property": { "type": "Identifier", - "start": 23651, - "end": 23652, + "start": 23694, + "end": 23695, "loc": { "start": { "line": 569, @@ -84162,8 +84174,8 @@ }, { "type": "MemberExpression", - "start": 23654, - "end": 23668, + "start": 23697, + "end": 23711, "loc": { "start": { "line": 569, @@ -84176,8 +84188,8 @@ }, "object": { "type": "Identifier", - "start": 23654, - "end": 23666, + "start": 23697, + "end": 23709, "loc": { "start": { "line": 569, @@ -84193,8 +84205,8 @@ }, "property": { "type": "Identifier", - "start": 23667, - "end": 23668, + "start": 23710, + "end": 23711, "loc": { "start": { "line": 569, @@ -84212,8 +84224,8 @@ }, { "type": "MemberExpression", - "start": 23670, - "end": 23684, + "start": 23713, + "end": 23727, "loc": { "start": { "line": 569, @@ -84226,8 +84238,8 @@ }, "object": { "type": "Identifier", - "start": 23670, - "end": 23682, + "start": 23713, + "end": 23725, "loc": { "start": { "line": 569, @@ -84243,8 +84255,8 @@ }, "property": { "type": "Identifier", - "start": 23683, - "end": 23684, + "start": 23726, + "end": 23727, "loc": { "start": { "line": 569, @@ -84262,8 +84274,8 @@ }, { "type": "ArrowFunctionExpression", - "start": 23686, - "end": 24668, + "start": 23729, + "end": 24711, "loc": { "start": { "line": 569, @@ -84281,8 +84293,8 @@ "params": [ { "type": "Identifier", - "start": 23687, - "end": 23692, + "start": 23730, + "end": 23735, "loc": { "start": { "line": 569, @@ -84299,8 +84311,8 @@ ], "body": { "type": "BlockStatement", - "start": 23697, - "end": 24668, + "start": 23740, + "end": 24711, "loc": { "start": { "line": 569, @@ -84314,8 +84326,8 @@ "body": [ { "type": "IfStatement", - "start": 23738, - "end": 24663, + "start": 23781, + "end": 24706, "loc": { "start": { "line": 571, @@ -84328,8 +84340,8 @@ }, "test": { "type": "LogicalExpression", - "start": 23742, - "end": 23778, + "start": 23785, + "end": 23821, "loc": { "start": { "line": 571, @@ -84342,8 +84354,8 @@ }, "left": { "type": "CallExpression", - "start": 23742, - "end": 23762, + "start": 23785, + "end": 23805, "loc": { "start": { "line": 571, @@ -84356,8 +84368,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23742, - "end": 23755, + "start": 23785, + "end": 23798, "loc": { "start": { "line": 571, @@ -84370,8 +84382,8 @@ }, "object": { "type": "Identifier", - "start": 23742, - "end": 23747, + "start": 23785, + "end": 23790, "loc": { "start": { "line": 571, @@ -84388,8 +84400,8 @@ }, "property": { "type": "Identifier", - "start": 23748, - "end": 23755, + "start": 23791, + "end": 23798, "loc": { "start": { "line": 571, @@ -84409,8 +84421,8 @@ "arguments": [ { "type": "Identifier", - "start": 23756, - "end": 23761, + "start": 23799, + "end": 23804, "loc": { "start": { "line": 571, @@ -84430,8 +84442,8 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 23766, - "end": 23778, + "start": 23809, + "end": 23821, "loc": { "start": { "line": 571, @@ -84444,8 +84456,8 @@ }, "object": { "type": "Identifier", - "start": 23766, - "end": 23771, + "start": 23809, + "end": 23814, "loc": { "start": { "line": 571, @@ -84461,8 +84473,8 @@ }, "property": { "type": "Identifier", - "start": 23772, - "end": 23778, + "start": 23815, + "end": 23821, "loc": { "start": { "line": 571, @@ -84482,8 +84494,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 23780, - "end": 24388, + "start": 23823, + "end": 24431, "loc": { "start": { "line": 571, @@ -84497,8 +84509,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 23872, - "end": 23881, + "start": 23915, + "end": 23924, "loc": { "start": { "line": 577, @@ -84512,8 +84524,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 23876, - "end": 23880, + "start": 23919, + "end": 23923, "loc": { "start": { "line": 577, @@ -84526,8 +84538,8 @@ }, "id": { "type": "Identifier", - "start": 23876, - "end": 23880, + "start": 23919, + "end": 23923, "loc": { "start": { "line": 577, @@ -84551,8 +84563,8 @@ { "type": "CommentBlock", "value": "*\r\n\t\t\t\t * The path generated.\r\n\t\t\t\t * @private\r\n\t\t\t\t * @type {Array}\r\n\t\t\t\t ", - "start": 23787, - "end": 23866, + "start": 23830, + "end": 23909, "loc": { "start": { "line": 572, @@ -84569,8 +84581,8 @@ { "type": "CommentLine", "value": " Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.", - "start": 23887, - "end": 23955, + "start": 23930, + "end": 23998, "loc": { "start": { "line": 578, @@ -84586,8 +84598,8 @@ }, { "type": "ExpressionStatement", - "start": 23961, - "end": 24049, + "start": 24004, + "end": 24092, "loc": { "start": { "line": 579, @@ -84600,8 +84612,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 23961, - "end": 24048, + "start": 24004, + "end": 24091, "loc": { "start": { "line": 579, @@ -84615,8 +84627,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 23961, - "end": 23965, + "start": 24004, + "end": 24008, "loc": { "start": { "line": 579, @@ -84633,8 +84645,8 @@ }, "right": { "type": "CallExpression", - "start": 23968, - "end": 24048, + "start": 24011, + "end": 24091, "loc": { "start": { "line": 579, @@ -84647,8 +84659,8 @@ }, "callee": { "type": "MemberExpression", - "start": 23968, - "end": 23977, + "start": 24011, + "end": 24020, "loc": { "start": { "line": 579, @@ -84661,8 +84673,8 @@ }, "object": { "type": "Identifier", - "start": 23968, - "end": 23973, + "start": 24011, + "end": 24016, "loc": { "start": { "line": 579, @@ -84678,8 +84690,8 @@ }, "property": { "type": "Identifier", - "start": 23974, - "end": 23977, + "start": 24017, + "end": 24020, "loc": { "start": { "line": 579, @@ -84698,8 +84710,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 23978, - "end": 24047, + "start": 24021, + "end": 24090, "loc": { "start": { "line": 579, @@ -84717,8 +84729,8 @@ "params": [ { "type": "Identifier", - "start": 23979, - "end": 23987, + "start": 24022, + "end": 24030, "loc": { "start": { "line": 579, @@ -84735,8 +84747,8 @@ ], "body": { "type": "ObjectExpression", - "start": 23993, - "end": 24046, + "start": 24036, + "end": 24089, "loc": { "start": { "line": 579, @@ -84750,8 +84762,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 24001, - "end": 24016, + "start": 24044, + "end": 24059, "loc": { "start": { "line": 580, @@ -84767,8 +84779,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 24001, - "end": 24002, + "start": 24044, + "end": 24045, "loc": { "start": { "line": 580, @@ -84784,8 +84796,8 @@ }, "value": { "type": "UpdateExpression", - "start": 24004, - "end": 24016, + "start": 24047, + "end": 24059, "loc": { "start": { "line": 580, @@ -84800,8 +84812,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24006, - "end": 24016, + "start": 24049, + "end": 24059, "loc": { "start": { "line": 580, @@ -84814,8 +84826,8 @@ }, "object": { "type": "Identifier", - "start": 24006, - "end": 24014, + "start": 24049, + "end": 24057, "loc": { "start": { "line": 580, @@ -84831,8 +84843,8 @@ }, "property": { "type": "Identifier", - "start": 24015, - "end": 24016, + "start": 24058, + "end": 24059, "loc": { "start": { "line": 580, @@ -84855,8 +84867,8 @@ }, { "type": "ObjectProperty", - "start": 24024, - "end": 24039, + "start": 24067, + "end": 24082, "loc": { "start": { "line": 581, @@ -84872,8 +84884,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 24024, - "end": 24025, + "start": 24067, + "end": 24068, "loc": { "start": { "line": 581, @@ -84889,8 +84901,8 @@ }, "value": { "type": "UpdateExpression", - "start": 24027, - "end": 24039, + "start": 24070, + "end": 24082, "loc": { "start": { "line": 581, @@ -84905,8 +84917,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24029, - "end": 24039, + "start": 24072, + "end": 24082, "loc": { "start": { "line": 581, @@ -84919,8 +84931,8 @@ }, "object": { "type": "Identifier", - "start": 24029, - "end": 24037, + "start": 24072, + "end": 24080, "loc": { "start": { "line": 581, @@ -84936,8 +84948,8 @@ }, "property": { "type": "Identifier", - "start": 24038, - "end": 24039, + "start": 24081, + "end": 24082, "loc": { "start": { "line": 581, @@ -84961,7 +84973,7 @@ ], "extra": { "parenthesized": true, - "parenStart": 23992 + "parenStart": 24035 } } } @@ -84973,8 +84985,8 @@ { "type": "CommentLine", "value": " Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.", - "start": 23887, - "end": 23955, + "start": 23930, + "end": 23998, "loc": { "start": { "line": 578, @@ -84991,8 +85003,8 @@ { "type": "CommentLine", "value": " Remove the node you start on.", - "start": 24055, - "end": 24087, + "start": 24098, + "end": 24130, "loc": { "start": { "line": 583, @@ -85008,8 +85020,8 @@ }, { "type": "ExpressionStatement", - "start": 24093, - "end": 24106, + "start": 24136, + "end": 24149, "loc": { "start": { "line": 584, @@ -85022,8 +85034,8 @@ }, "expression": { "type": "CallExpression", - "start": 24093, - "end": 24105, + "start": 24136, + "end": 24148, "loc": { "start": { "line": 584, @@ -85036,8 +85048,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24093, - "end": 24103, + "start": 24136, + "end": 24146, "loc": { "start": { "line": 584, @@ -85050,8 +85062,8 @@ }, "object": { "type": "Identifier", - "start": 24093, - "end": 24097, + "start": 24136, + "end": 24140, "loc": { "start": { "line": 584, @@ -85068,8 +85080,8 @@ }, "property": { "type": "Identifier", - "start": 24098, - "end": 24103, + "start": 24141, + "end": 24146, "loc": { "start": { "line": 584, @@ -85093,8 +85105,8 @@ { "type": "CommentLine", "value": " Remove the node you start on.", - "start": 24055, - "end": 24087, + "start": 24098, + "end": 24130, "loc": { "start": { "line": 583, @@ -85111,8 +85123,8 @@ { "type": "CommentLine", "value": " Store the path", - "start": 24112, - "end": 24129, + "start": 24155, + "end": 24172, "loc": { "start": { "line": 585, @@ -85128,8 +85140,8 @@ }, { "type": "ExpressionStatement", - "start": 24135, - "end": 24160, + "start": 24178, + "end": 24203, "loc": { "start": { "line": 586, @@ -85142,8 +85154,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 24135, - "end": 24159, + "start": 24178, + "end": 24202, "loc": { "start": { "line": 586, @@ -85157,8 +85169,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 24135, - "end": 24152, + "start": 24178, + "end": 24195, "loc": { "start": { "line": 586, @@ -85171,8 +85183,8 @@ }, "object": { "type": "Identifier", - "start": 24135, - "end": 24147, + "start": 24178, + "end": 24190, "loc": { "start": { "line": 586, @@ -85189,8 +85201,8 @@ }, "property": { "type": "Identifier", - "start": 24148, - "end": 24152, + "start": 24191, + "end": 24195, "loc": { "start": { "line": 586, @@ -85209,8 +85221,8 @@ }, "right": { "type": "Identifier", - "start": 24155, - "end": 24159, + "start": 24198, + "end": 24202, "loc": { "start": { "line": 586, @@ -85230,8 +85242,8 @@ { "type": "CommentLine", "value": " Store the path", - "start": 24112, - "end": 24129, + "start": 24155, + "end": 24172, "loc": { "start": { "line": 585, @@ -85248,8 +85260,8 @@ { "type": "CommentLine", "value": " Store the pathID", - "start": 24166, - "end": 24185, + "start": 24209, + "end": 24228, "loc": { "start": { "line": 587, @@ -85265,8 +85277,8 @@ }, { "type": "ExpressionStatement", - "start": 24191, - "end": 24220, + "start": 24234, + "end": 24263, "loc": { "start": { "line": 588, @@ -85279,8 +85291,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 24191, - "end": 24219, + "start": 24234, + "end": 24262, "loc": { "start": { "line": 588, @@ -85294,8 +85306,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 24191, - "end": 24210, + "start": 24234, + "end": 24253, "loc": { "start": { "line": 588, @@ -85308,8 +85320,8 @@ }, "object": { "type": "Identifier", - "start": 24191, - "end": 24203, + "start": 24234, + "end": 24246, "loc": { "start": { "line": 588, @@ -85326,8 +85338,8 @@ }, "property": { "type": "Identifier", - "start": 24204, - "end": 24210, + "start": 24247, + "end": 24253, "loc": { "start": { "line": 588, @@ -85346,8 +85358,8 @@ }, "right": { "type": "Identifier", - "start": 24213, - "end": 24219, + "start": 24256, + "end": 24262, "loc": { "start": { "line": 588, @@ -85367,8 +85379,8 @@ { "type": "CommentLine", "value": " Store the pathID", - "start": 24166, - "end": 24185, + "start": 24209, + "end": 24228, "loc": { "start": { "line": 587, @@ -85385,8 +85397,8 @@ { "type": "CommentLine", "value": " Call event when path is found", - "start": 24226, - "end": 24258, + "start": 24269, + "end": 24301, "loc": { "start": { "line": 589, @@ -85402,8 +85414,8 @@ }, { "type": "IfStatement", - "start": 24264, - "end": 24382, + "start": 24307, + "end": 24425, "loc": { "start": { "line": 590, @@ -85416,8 +85428,8 @@ }, "test": { "type": "BinaryExpression", - "start": 24268, - "end": 24322, + "start": 24311, + "end": 24365, "loc": { "start": { "line": 590, @@ -85430,8 +85442,8 @@ }, "left": { "type": "UnaryExpression", - "start": 24268, - "end": 24307, + "start": 24311, + "end": 24350, "loc": { "start": { "line": 590, @@ -85446,8 +85458,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24275, - "end": 24306, + "start": 24318, + "end": 24349, "loc": { "start": { "line": 590, @@ -85460,8 +85472,8 @@ }, "object": { "type": "MemberExpression", - "start": 24275, - "end": 24294, + "start": 24318, + "end": 24337, "loc": { "start": { "line": 590, @@ -85474,8 +85486,8 @@ }, "object": { "type": "Identifier", - "start": 24275, - "end": 24287, + "start": 24318, + "end": 24330, "loc": { "start": { "line": 590, @@ -85492,8 +85504,8 @@ }, "property": { "type": "Identifier", - "start": 24288, - "end": 24294, + "start": 24331, + "end": 24337, "loc": { "start": { "line": 590, @@ -85512,8 +85524,8 @@ }, "property": { "type": "Identifier", - "start": 24295, - "end": 24306, + "start": 24338, + "end": 24349, "loc": { "start": { "line": 590, @@ -85531,7 +85543,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 24274 + "parenStart": 24317 } }, "extra": { @@ -85542,8 +85554,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 24312, - "end": 24322, + "start": 24355, + "end": 24365, "loc": { "start": { "line": 590, @@ -85564,8 +85576,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 24324, - "end": 24382, + "start": 24367, + "end": 24425, "loc": { "start": { "line": 590, @@ -85579,8 +85591,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 24332, - "end": 24375, + "start": 24375, + "end": 24418, "loc": { "start": { "line": 591, @@ -85593,8 +85605,8 @@ }, "expression": { "type": "CallExpression", - "start": 24332, - "end": 24374, + "start": 24375, + "end": 24417, "loc": { "start": { "line": 591, @@ -85607,8 +85619,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24332, - "end": 24363, + "start": 24375, + "end": 24406, "loc": { "start": { "line": 591, @@ -85621,8 +85633,8 @@ }, "object": { "type": "MemberExpression", - "start": 24332, - "end": 24351, + "start": 24375, + "end": 24394, "loc": { "start": { "line": 591, @@ -85635,8 +85647,8 @@ }, "object": { "type": "Identifier", - "start": 24332, - "end": 24344, + "start": 24375, + "end": 24387, "loc": { "start": { "line": 591, @@ -85652,8 +85664,8 @@ }, "property": { "type": "Identifier", - "start": 24345, - "end": 24351, + "start": 24388, + "end": 24394, "loc": { "start": { "line": 591, @@ -85671,8 +85683,8 @@ }, "property": { "type": "Identifier", - "start": 24352, - "end": 24363, + "start": 24395, + "end": 24406, "loc": { "start": { "line": 591, @@ -85691,8 +85703,8 @@ "arguments": [ { "type": "ArrayExpression", - "start": 24364, - "end": 24373, + "start": 24407, + "end": 24416, "loc": { "start": { "line": 591, @@ -85706,8 +85718,8 @@ "elements": [ { "type": "SpreadElement", - "start": 24365, - "end": 24372, + "start": 24408, + "end": 24415, "loc": { "start": { "line": 591, @@ -85720,8 +85732,8 @@ }, "argument": { "type": "Identifier", - "start": 24368, - "end": 24372, + "start": 24411, + "end": 24415, "loc": { "start": { "line": 591, @@ -85749,8 +85761,8 @@ { "type": "CommentLine", "value": " Call event when path is found", - "start": 24226, - "end": 24258, + "start": 24269, + "end": 24301, "loc": { "start": { "line": 589, @@ -85769,8 +85781,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 24394, - "end": 24663, + "start": 24437, + "end": 24706, "loc": { "start": { "line": 593, @@ -85784,8 +85796,8 @@ "body": [ { "type": "IfStatement", - "start": 24442, - "end": 24557, + "start": 24485, + "end": 24600, "loc": { "start": { "line": 595, @@ -85798,8 +85810,8 @@ }, "test": { "type": "BinaryExpression", - "start": 24446, - "end": 24503, + "start": 24489, + "end": 24546, "loc": { "start": { "line": 595, @@ -85812,8 +85824,8 @@ }, "left": { "type": "UnaryExpression", - "start": 24446, - "end": 24488, + "start": 24489, + "end": 24531, "loc": { "start": { "line": 595, @@ -85828,8 +85840,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 24453, - "end": 24487, + "start": 24496, + "end": 24530, "loc": { "start": { "line": 595, @@ -85842,8 +85854,8 @@ }, "object": { "type": "MemberExpression", - "start": 24453, - "end": 24472, + "start": 24496, + "end": 24515, "loc": { "start": { "line": 595, @@ -85856,8 +85868,8 @@ }, "object": { "type": "Identifier", - "start": 24453, - "end": 24465, + "start": 24496, + "end": 24508, "loc": { "start": { "line": 595, @@ -85874,8 +85886,8 @@ }, "property": { "type": "Identifier", - "start": 24466, - "end": 24472, + "start": 24509, + "end": 24515, "loc": { "start": { "line": 595, @@ -85894,8 +85906,8 @@ }, "property": { "type": "Identifier", - "start": 24473, - "end": 24487, + "start": 24516, + "end": 24530, "loc": { "start": { "line": 595, @@ -85913,7 +85925,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 24452 + "parenStart": 24495 } }, "extra": { @@ -85924,8 +85936,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 24493, - "end": 24503, + "start": 24536, + "end": 24546, "loc": { "start": { "line": 595, @@ -85946,8 +85958,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 24505, - "end": 24557, + "start": 24548, + "end": 24600, "loc": { "start": { "line": 595, @@ -85961,8 +85973,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 24513, - "end": 24550, + "start": 24556, + "end": 24593, "loc": { "start": { "line": 596, @@ -85975,8 +85987,8 @@ }, "expression": { "type": "CallExpression", - "start": 24513, - "end": 24549, + "start": 24556, + "end": 24592, "loc": { "start": { "line": 596, @@ -85989,8 +86001,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24513, - "end": 24547, + "start": 24556, + "end": 24590, "loc": { "start": { "line": 596, @@ -86003,8 +86015,8 @@ }, "object": { "type": "MemberExpression", - "start": 24513, - "end": 24532, + "start": 24556, + "end": 24575, "loc": { "start": { "line": 596, @@ -86017,8 +86029,8 @@ }, "object": { "type": "Identifier", - "start": 24513, - "end": 24525, + "start": 24556, + "end": 24568, "loc": { "start": { "line": 596, @@ -86034,8 +86046,8 @@ }, "property": { "type": "Identifier", - "start": 24526, - "end": 24532, + "start": 24569, + "end": 24575, "loc": { "start": { "line": 596, @@ -86053,8 +86065,8 @@ }, "property": { "type": "Identifier", - "start": 24533, - "end": 24547, + "start": 24576, + "end": 24590, "loc": { "start": { "line": 596, @@ -86082,8 +86094,8 @@ { "type": "CommentLine", "value": " Call event when no path is found", - "start": 24401, - "end": 24436, + "start": 24444, + "end": 24479, "loc": { "start": { "line": 594, @@ -86100,8 +86112,8 @@ { "type": "CommentLine", "value": " If no path is found then we end the pathfinding on this instance.", - "start": 24563, - "end": 24631, + "start": 24606, + "end": 24674, "loc": { "start": { "line": 598, @@ -86117,8 +86129,8 @@ }, { "type": "ExpressionStatement", - "start": 24637, - "end": 24657, + "start": 24680, + "end": 24700, "loc": { "start": { "line": 599, @@ -86131,8 +86143,8 @@ }, "expression": { "type": "CallExpression", - "start": 24637, - "end": 24656, + "start": 24680, + "end": 24699, "loc": { "start": { "line": 599, @@ -86145,8 +86157,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24637, - "end": 24645, + "start": 24680, + "end": 24688, "loc": { "start": { "line": 599, @@ -86159,8 +86171,8 @@ }, "object": { "type": "ThisExpression", - "start": 24637, - "end": 24641, + "start": 24680, + "end": 24684, "loc": { "start": { "line": 599, @@ -86175,8 +86187,8 @@ }, "property": { "type": "Identifier", - "start": 24642, - "end": 24645, + "start": 24685, + "end": 24688, "loc": { "start": { "line": 599, @@ -86196,8 +86208,8 @@ "arguments": [ { "type": "Identifier", - "start": 24646, - "end": 24655, + "start": 24689, + "end": 24698, "loc": { "start": { "line": 599, @@ -86218,8 +86230,8 @@ { "type": "CommentLine", "value": " If no path is found then we end the pathfinding on this instance.", - "start": 24563, - "end": 24631, + "start": 24606, + "end": 24674, "loc": { "start": { "line": 598, @@ -86240,8 +86252,8 @@ { "type": "CommentLine", "value": " Check if the path is valid.", - "start": 23703, - "end": 23733, + "start": 23746, + "end": 23776, "loc": { "start": { "line": 570, @@ -86269,8 +86281,8 @@ { "type": "CommentLine", "value": " Find the path", - "start": 23566, - "end": 23582, + "start": 23609, + "end": 23625, "loc": { "start": { "line": 568, @@ -86287,8 +86299,8 @@ { "type": "CommentLine", "value": " Track pInstance as an active instance.", - "start": 24674, - "end": 24715, + "start": 24717, + "end": 24758, "loc": { "start": { "line": 602, @@ -86304,8 +86316,8 @@ }, { "type": "ExpressionStatement", - "start": 24719, - "end": 24741, + "start": 24762, + "end": 24784, "loc": { "start": { "line": 603, @@ -86318,8 +86330,8 @@ }, "expression": { "type": "CallExpression", - "start": 24719, - "end": 24740, + "start": 24762, + "end": 24783, "loc": { "start": { "line": 603, @@ -86332,8 +86344,8 @@ }, "callee": { "type": "MemberExpression", - "start": 24719, - "end": 24729, + "start": 24762, + "end": 24772, "loc": { "start": { "line": 603, @@ -86346,8 +86358,8 @@ }, "object": { "type": "ThisExpression", - "start": 24719, - "end": 24723, + "start": 24762, + "end": 24766, "loc": { "start": { "line": 603, @@ -86362,8 +86374,8 @@ }, "property": { "type": "Identifier", - "start": 24724, - "end": 24729, + "start": 24767, + "end": 24772, "loc": { "start": { "line": 603, @@ -86383,8 +86395,8 @@ "arguments": [ { "type": "Identifier", - "start": 24730, - "end": 24739, + "start": 24773, + "end": 24782, "loc": { "start": { "line": 603, @@ -86405,8 +86417,8 @@ { "type": "CommentLine", "value": " Track pInstance as an active instance.", - "start": 24674, - "end": 24715, + "start": 24717, + "end": 24758, "loc": { "start": { "line": 602, @@ -86428,8 +86440,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t ", - "start": 22711, - "end": 23306, + "start": 22754, + "end": 23349, "loc": { "start": { "line": 549, @@ -86446,8 +86458,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t ", - "start": 24748, - "end": 24980, + "start": 24791, + "end": 25023, "loc": { "start": { "line": 605, @@ -86463,8 +86475,8 @@ }, { "type": "ClassMethod", - "start": 24983, - "end": 25184, + "start": 25026, + "end": 25227, "loc": { "start": { "line": 612, @@ -86479,8 +86491,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 24983, - "end": 25004, + "start": 25026, + "end": 25047, "loc": { "start": { "line": 612, @@ -86503,8 +86515,8 @@ "params": [ { "type": "Identifier", - "start": 25005, - "end": 25011, + "start": 25048, + "end": 25054, "loc": { "start": { "line": 612, @@ -86520,8 +86532,8 @@ }, { "type": "Identifier", - "start": 25013, - "end": 25030, + "start": 25056, + "end": 25073, "loc": { "start": { "line": 612, @@ -86538,8 +86550,8 @@ ], "body": { "type": "BlockStatement", - "start": 25032, - "end": 25184, + "start": 25075, + "end": 25227, "loc": { "start": { "line": 612, @@ -86553,8 +86565,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 25037, - "end": 25047, + "start": 25080, + "end": 25090, "loc": { "start": { "line": 613, @@ -86568,8 +86580,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25041, - "end": 25046, + "start": 25084, + "end": 25089, "loc": { "start": { "line": 613, @@ -86582,8 +86594,8 @@ }, "id": { "type": "Identifier", - "start": 25041, - "end": 25042, + "start": 25084, + "end": 25085, "loc": { "start": { "line": 613, @@ -86599,8 +86611,8 @@ }, "init": { "type": "NumericLiteral", - "start": 25045, - "end": 25046, + "start": 25088, + "end": 25089, "loc": { "start": { "line": 613, @@ -86623,8 +86635,8 @@ }, { "type": "VariableDeclaration", - "start": 25051, - "end": 25069, + "start": 25094, + "end": 25112, "loc": { "start": { "line": 614, @@ -86638,8 +86650,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25057, - "end": 25068, + "start": 25100, + "end": 25111, "loc": { "start": { "line": 614, @@ -86652,8 +86664,8 @@ }, "id": { "type": "Identifier", - "start": 25057, - "end": 25063, + "start": 25100, + "end": 25106, "loc": { "start": { "line": 614, @@ -86669,8 +86681,8 @@ }, "init": { "type": "ArrayExpression", - "start": 25066, - "end": 25068, + "start": 25109, + "end": 25111, "loc": { "start": { "line": 614, @@ -86689,8 +86701,8 @@ }, { "type": "WhileStatement", - "start": 25073, - "end": 25162, + "start": 25116, + "end": 25205, "loc": { "start": { "line": 615, @@ -86703,8 +86715,8 @@ }, "test": { "type": "BinaryExpression", - "start": 25080, - "end": 25097, + "start": 25123, + "end": 25140, "loc": { "start": { "line": 615, @@ -86717,8 +86729,8 @@ }, "left": { "type": "Identifier", - "start": 25080, - "end": 25081, + "start": 25123, + "end": 25124, "loc": { "start": { "line": 615, @@ -86735,8 +86747,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 25084, - "end": 25097, + "start": 25127, + "end": 25140, "loc": { "start": { "line": 615, @@ -86749,8 +86761,8 @@ }, "object": { "type": "Identifier", - "start": 25084, - "end": 25090, + "start": 25127, + "end": 25133, "loc": { "start": { "line": 615, @@ -86766,8 +86778,8 @@ }, "property": { "type": "Identifier", - "start": 25091, - "end": 25097, + "start": 25134, + "end": 25140, "loc": { "start": { "line": 615, @@ -86786,8 +86798,8 @@ }, "body": { "type": "BlockStatement", - "start": 25099, - "end": 25162, + "start": 25142, + "end": 25205, "loc": { "start": { "line": 615, @@ -86801,8 +86813,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 25105, - "end": 25157, + "start": 25148, + "end": 25200, "loc": { "start": { "line": 616, @@ -86815,8 +86827,8 @@ }, "expression": { "type": "CallExpression", - "start": 25105, - "end": 25156, + "start": 25148, + "end": 25199, "loc": { "start": { "line": 616, @@ -86829,8 +86841,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25105, - "end": 25116, + "start": 25148, + "end": 25159, "loc": { "start": { "line": 616, @@ -86843,8 +86855,8 @@ }, "object": { "type": "Identifier", - "start": 25105, - "end": 25111, + "start": 25148, + "end": 25154, "loc": { "start": { "line": 616, @@ -86860,8 +86872,8 @@ }, "property": { "type": "Identifier", - "start": 25112, - "end": 25116, + "start": 25155, + "end": 25159, "loc": { "start": { "line": 616, @@ -86880,8 +86892,8 @@ "arguments": [ { "type": "CallExpression", - "start": 25117, - "end": 25155, + "start": 25160, + "end": 25198, "loc": { "start": { "line": 616, @@ -86894,8 +86906,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25117, - "end": 25129, + "start": 25160, + "end": 25172, "loc": { "start": { "line": 616, @@ -86908,8 +86920,8 @@ }, "object": { "type": "Identifier", - "start": 25117, - "end": 25123, + "start": 25160, + "end": 25166, "loc": { "start": { "line": 616, @@ -86925,8 +86937,8 @@ }, "property": { "type": "Identifier", - "start": 25124, - "end": 25129, + "start": 25167, + "end": 25172, "loc": { "start": { "line": 616, @@ -86945,8 +86957,8 @@ "arguments": [ { "type": "Identifier", - "start": 25130, - "end": 25131, + "start": 25173, + "end": 25174, "loc": { "start": { "line": 616, @@ -86962,8 +86974,8 @@ }, { "type": "AssignmentExpression", - "start": 25133, - "end": 25154, + "start": 25176, + "end": 25197, "loc": { "start": { "line": 616, @@ -86977,8 +86989,8 @@ "operator": "+=", "left": { "type": "Identifier", - "start": 25133, - "end": 25134, + "start": 25176, + "end": 25177, "loc": { "start": { "line": 616, @@ -86994,8 +87006,8 @@ }, "right": { "type": "Identifier", - "start": 25137, - "end": 25154, + "start": 25180, + "end": 25197, "loc": { "start": { "line": 616, @@ -87021,8 +87033,8 @@ }, { "type": "ReturnStatement", - "start": 25166, - "end": 25180, + "start": 25209, + "end": 25223, "loc": { "start": { "line": 618, @@ -87035,8 +87047,8 @@ }, "argument": { "type": "Identifier", - "start": 25173, - "end": 25179, + "start": 25216, + "end": 25222, "loc": { "start": { "line": 618, @@ -87059,8 +87071,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t ", - "start": 24748, - "end": 24980, + "start": 24791, + "end": 25023, "loc": { "start": { "line": 605, @@ -87077,8 +87089,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t ", - "start": 25187, - "end": 25356, + "start": 25230, + "end": 25399, "loc": { "start": { "line": 620, @@ -87094,8 +87106,8 @@ }, { "type": "ClassMethod", - "start": 25359, - "end": 25885, + "start": 25402, + "end": 25928, "loc": { "start": { "line": 626, @@ -87110,8 +87122,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 25359, - "end": 25369, + "start": 25402, + "end": 25412, "loc": { "start": { "line": 626, @@ -87134,8 +87146,8 @@ "params": [ { "type": "Identifier", - "start": 25370, - "end": 25375, + "start": 25413, + "end": 25418, "loc": { "start": { "line": 626, @@ -87152,8 +87164,8 @@ ], "body": { "type": "BlockStatement", - "start": 25377, - "end": 25885, + "start": 25420, + "end": 25928, "loc": { "start": { "line": 626, @@ -87167,8 +87179,8 @@ "body": [ { "type": "IfStatement", - "start": 25382, - "end": 25881, + "start": 25425, + "end": 25924, "loc": { "start": { "line": 627, @@ -87181,8 +87193,8 @@ }, "test": { "type": "BinaryExpression", - "start": 25386, - "end": 25420, + "start": 25429, + "end": 25463, "loc": { "start": { "line": 627, @@ -87195,8 +87207,8 @@ }, "left": { "type": "UnaryExpression", - "start": 25386, - "end": 25407, + "start": 25429, + "end": 25450, "loc": { "start": { "line": 627, @@ -87211,8 +87223,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 25393, - "end": 25406, + "start": 25436, + "end": 25449, "loc": { "start": { "line": 627, @@ -87225,8 +87237,8 @@ }, "object": { "type": "Identifier", - "start": 25393, - "end": 25398, + "start": 25436, + "end": 25441, "loc": { "start": { "line": 627, @@ -87242,8 +87254,8 @@ }, "property": { "type": "Identifier", - "start": 25399, - "end": 25406, + "start": 25442, + "end": 25449, "loc": { "start": { "line": 627, @@ -87260,7 +87272,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 25392 + "parenStart": 25435 } }, "extra": { @@ -87270,8 +87282,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 25412, - "end": 25420, + "start": 25455, + "end": 25463, "loc": { "start": { "line": 627, @@ -87291,8 +87303,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 25422, - "end": 25787, + "start": 25465, + "end": 25830, "loc": { "start": { "line": 627, @@ -87306,8 +87318,8 @@ "body": [ { "type": "IfStatement", - "start": 25428, - "end": 25782, + "start": 25471, + "end": 25825, "loc": { "start": { "line": 628, @@ -87320,8 +87332,8 @@ }, "test": { "type": "MemberExpression", - "start": 25432, - "end": 25478, + "start": 25475, + "end": 25521, "loc": { "start": { "line": 628, @@ -87334,8 +87346,8 @@ }, "object": { "type": "MemberExpression", - "start": 25432, - "end": 25463, + "start": 25475, + "end": 25506, "loc": { "start": { "line": 628, @@ -87348,8 +87360,8 @@ }, "object": { "type": "Identifier", - "start": 25432, - "end": 25448, + "start": 25475, + "end": 25491, "loc": { "start": { "line": 628, @@ -87365,8 +87377,8 @@ }, "property": { "type": "Identifier", - "start": 25449, - "end": 25463, + "start": 25492, + "end": 25506, "loc": { "start": { "line": 628, @@ -87384,8 +87396,8 @@ }, "property": { "type": "MemberExpression", - "start": 25464, - "end": 25477, + "start": 25507, + "end": 25520, "loc": { "start": { "line": 628, @@ -87398,8 +87410,8 @@ }, "object": { "type": "Identifier", - "start": 25464, - "end": 25469, + "start": 25507, + "end": 25512, "loc": { "start": { "line": 628, @@ -87415,8 +87427,8 @@ }, "property": { "type": "Identifier", - "start": 25470, - "end": 25477, + "start": 25513, + "end": 25520, "loc": { "start": { "line": 628, @@ -87436,8 +87448,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 25480, - "end": 25659, + "start": 25523, + "end": 25702, "loc": { "start": { "line": 628, @@ -87451,8 +87463,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 25487, - "end": 25587, + "start": 25530, + "end": 25630, "loc": { "start": { "line": 629, @@ -87466,8 +87478,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25493, - "end": 25586, + "start": 25536, + "end": 25629, "loc": { "start": { "line": 629, @@ -87480,8 +87492,8 @@ }, "id": { "type": "Identifier", - "start": 25493, - "end": 25498, + "start": 25536, + "end": 25541, "loc": { "start": { "line": 629, @@ -87497,8 +87509,8 @@ }, "init": { "type": "CallExpression", - "start": 25501, - "end": 25586, + "start": 25544, + "end": 25629, "loc": { "start": { "line": 629, @@ -87511,8 +87523,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25501, - "end": 25523, + "start": 25544, + "end": 25566, "loc": { "start": { "line": 629, @@ -87525,8 +87537,8 @@ }, "object": { "type": "ThisExpression", - "start": 25501, - "end": 25505, + "start": 25544, + "end": 25548, "loc": { "start": { "line": 629, @@ -87540,8 +87552,8 @@ }, "property": { "type": "Identifier", - "start": 25506, - "end": 25523, + "start": 25549, + "end": 25566, "loc": { "start": { "line": 629, @@ -87560,8 +87572,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 25524, - "end": 25578, + "start": 25567, + "end": 25621, "loc": { "start": { "line": 629, @@ -87574,8 +87586,8 @@ }, "object": { "type": "MemberExpression", - "start": 25524, - "end": 25570, + "start": 25567, + "end": 25613, "loc": { "start": { "line": 629, @@ -87588,8 +87600,8 @@ }, "object": { "type": "MemberExpression", - "start": 25524, - "end": 25555, + "start": 25567, + "end": 25598, "loc": { "start": { "line": 629, @@ -87602,8 +87614,8 @@ }, "object": { "type": "Identifier", - "start": 25524, - "end": 25540, + "start": 25567, + "end": 25583, "loc": { "start": { "line": 629, @@ -87619,8 +87631,8 @@ }, "property": { "type": "Identifier", - "start": 25541, - "end": 25555, + "start": 25584, + "end": 25598, "loc": { "start": { "line": 629, @@ -87638,8 +87650,8 @@ }, "property": { "type": "MemberExpression", - "start": 25556, - "end": 25569, + "start": 25599, + "end": 25612, "loc": { "start": { "line": 629, @@ -87652,8 +87664,8 @@ }, "object": { "type": "Identifier", - "start": 25556, - "end": 25561, + "start": 25599, + "end": 25604, "loc": { "start": { "line": 629, @@ -87669,8 +87681,8 @@ }, "property": { "type": "Identifier", - "start": 25562, - "end": 25569, + "start": 25605, + "end": 25612, "loc": { "start": { "line": 629, @@ -87690,8 +87702,8 @@ }, "property": { "type": "Identifier", - "start": 25571, - "end": 25578, + "start": 25614, + "end": 25621, "loc": { "start": { "line": 629, @@ -87709,8 +87721,8 @@ }, { "type": "Identifier", - "start": 25580, - "end": 25585, + "start": 25623, + "end": 25628, "loc": { "start": { "line": 629, @@ -87732,8 +87744,8 @@ }, { "type": "VariableDeclaration", - "start": 25593, - "end": 25635, + "start": 25636, + "end": 25678, "loc": { "start": { "line": 630, @@ -87747,8 +87759,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 25599, - "end": 25634, + "start": 25642, + "end": 25677, "loc": { "start": { "line": 630, @@ -87761,8 +87773,8 @@ }, "id": { "type": "Identifier", - "start": 25599, - "end": 25603, + "start": 25642, + "end": 25646, "loc": { "start": { "line": 630, @@ -87778,8 +87790,8 @@ }, "init": { "type": "ObjectExpression", - "start": 25606, - "end": 25634, + "start": 25649, + "end": 25677, "loc": { "start": { "line": 630, @@ -87793,8 +87805,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 25608, - "end": 25619, + "start": 25651, + "end": 25662, "loc": { "start": { "line": 630, @@ -87810,8 +87822,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 25608, - "end": 25609, + "start": 25651, + "end": 25652, "loc": { "start": { "line": 630, @@ -87827,8 +87839,8 @@ }, "value": { "type": "MemberExpression", - "start": 25611, - "end": 25619, + "start": 25654, + "end": 25662, "loc": { "start": { "line": 630, @@ -87841,8 +87853,8 @@ }, "object": { "type": "Identifier", - "start": 25611, - "end": 25616, + "start": 25654, + "end": 25659, "loc": { "start": { "line": 630, @@ -87858,8 +87870,8 @@ }, "property": { "type": "NumericLiteral", - "start": 25617, - "end": 25618, + "start": 25660, + "end": 25661, "loc": { "start": { "line": 630, @@ -87881,8 +87893,8 @@ }, { "type": "ObjectProperty", - "start": 25621, - "end": 25632, + "start": 25664, + "end": 25675, "loc": { "start": { "line": 630, @@ -87898,8 +87910,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 25621, - "end": 25622, + "start": 25664, + "end": 25665, "loc": { "start": { "line": 630, @@ -87915,8 +87927,8 @@ }, "value": { "type": "MemberExpression", - "start": 25624, - "end": 25632, + "start": 25667, + "end": 25675, "loc": { "start": { "line": 630, @@ -87929,8 +87941,8 @@ }, "object": { "type": "Identifier", - "start": 25624, - "end": 25629, + "start": 25667, + "end": 25672, "loc": { "start": { "line": 630, @@ -87946,8 +87958,8 @@ }, "property": { "type": "NumericLiteral", - "start": 25630, - "end": 25631, + "start": 25673, + "end": 25674, "loc": { "start": { "line": 630, @@ -87975,8 +87987,8 @@ }, { "type": "ReturnStatement", - "start": 25641, - "end": 25653, + "start": 25684, + "end": 25696, "loc": { "start": { "line": 631, @@ -87989,8 +88001,8 @@ }, "argument": { "type": "Identifier", - "start": 25648, - "end": 25652, + "start": 25691, + "end": 25695, "loc": { "start": { "line": 631, @@ -88010,8 +88022,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 25665, - "end": 25782, + "start": 25708, + "end": 25825, "loc": { "start": { "line": 632, @@ -88025,8 +88037,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 25672, - "end": 25776, + "start": 25715, + "end": 25819, "loc": { "start": { "line": 633, @@ -88039,8 +88051,8 @@ }, "expression": { "type": "CallExpression", - "start": 25672, - "end": 25775, + "start": 25715, + "end": 25818, "loc": { "start": { "line": 633, @@ -88053,8 +88065,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25672, - "end": 25714, + "start": 25715, + "end": 25757, "loc": { "start": { "line": 633, @@ -88067,8 +88079,8 @@ }, "object": { "type": "CallExpression", - "start": 25672, - "end": 25708, + "start": 25715, + "end": 25751, "loc": { "start": { "line": 633, @@ -88081,8 +88093,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25672, - "end": 25690, + "start": 25715, + "end": 25733, "loc": { "start": { "line": 633, @@ -88095,8 +88107,8 @@ }, "object": { "type": "MemberExpression", - "start": 25672, - "end": 25683, + "start": 25715, + "end": 25726, "loc": { "start": { "line": 633, @@ -88109,8 +88121,8 @@ }, "object": { "type": "ThisExpression", - "start": 25672, - "end": 25676, + "start": 25715, + "end": 25719, "loc": { "start": { "line": 633, @@ -88124,8 +88136,8 @@ }, "property": { "type": "Identifier", - "start": 25677, - "end": 25683, + "start": 25720, + "end": 25726, "loc": { "start": { "line": 633, @@ -88143,8 +88155,8 @@ }, "property": { "type": "Identifier", - "start": 25684, - "end": 25690, + "start": 25727, + "end": 25733, "loc": { "start": { "line": 633, @@ -88163,8 +88175,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25691, - "end": 25707, + "start": 25734, + "end": 25750, "loc": { "start": { "line": 633, @@ -88185,8 +88197,8 @@ }, "property": { "type": "Identifier", - "start": 25709, - "end": 25714, + "start": 25752, + "end": 25757, "loc": { "start": { "line": 633, @@ -88205,8 +88217,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25715, - "end": 25774, + "start": 25758, + "end": 25817, "loc": { "start": { "line": 633, @@ -88235,8 +88247,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 25793, - "end": 25881, + "start": 25836, + "end": 25924, "loc": { "start": { "line": 635, @@ -88250,8 +88262,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 25799, - "end": 25876, + "start": 25842, + "end": 25919, "loc": { "start": { "line": 636, @@ -88264,8 +88276,8 @@ }, "expression": { "type": "CallExpression", - "start": 25799, - "end": 25875, + "start": 25842, + "end": 25918, "loc": { "start": { "line": 636, @@ -88278,8 +88290,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25799, - "end": 25841, + "start": 25842, + "end": 25884, "loc": { "start": { "line": 636, @@ -88292,8 +88304,8 @@ }, "object": { "type": "CallExpression", - "start": 25799, - "end": 25835, + "start": 25842, + "end": 25878, "loc": { "start": { "line": 636, @@ -88306,8 +88318,8 @@ }, "callee": { "type": "MemberExpression", - "start": 25799, - "end": 25817, + "start": 25842, + "end": 25860, "loc": { "start": { "line": 636, @@ -88320,8 +88332,8 @@ }, "object": { "type": "MemberExpression", - "start": 25799, - "end": 25810, + "start": 25842, + "end": 25853, "loc": { "start": { "line": 636, @@ -88334,8 +88346,8 @@ }, "object": { "type": "ThisExpression", - "start": 25799, - "end": 25803, + "start": 25842, + "end": 25846, "loc": { "start": { "line": 636, @@ -88349,8 +88361,8 @@ }, "property": { "type": "Identifier", - "start": 25804, - "end": 25810, + "start": 25847, + "end": 25853, "loc": { "start": { "line": 636, @@ -88368,8 +88380,8 @@ }, "property": { "type": "Identifier", - "start": 25811, - "end": 25817, + "start": 25854, + "end": 25860, "loc": { "start": { "line": 636, @@ -88388,8 +88400,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25818, - "end": 25834, + "start": 25861, + "end": 25877, "loc": { "start": { "line": 636, @@ -88410,8 +88422,8 @@ }, "property": { "type": "Identifier", - "start": 25836, - "end": 25841, + "start": 25879, + "end": 25884, "loc": { "start": { "line": 636, @@ -88430,8 +88442,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 25842, - "end": 25874, + "start": 25885, + "end": 25917, "loc": { "start": { "line": 636, @@ -88463,8 +88475,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t ", - "start": 25187, - "end": 25356, + "start": 25230, + "end": 25399, "loc": { "start": { "line": 620, @@ -88481,8 +88493,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t ", - "start": 25888, - "end": 26208, + "start": 25931, + "end": 26251, "loc": { "start": { "line": 639, @@ -88498,8 +88510,8 @@ }, { "type": "ClassMethod", - "start": 26211, - "end": 26395, + "start": 26254, + "end": 26438, "loc": { "start": { "line": 646, @@ -88514,8 +88526,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 26211, - "end": 26228, + "start": 26254, + "end": 26271, "loc": { "start": { "line": 646, @@ -88538,8 +88550,8 @@ "params": [ { "type": "Identifier", - "start": 26229, - "end": 26235, + "start": 26272, + "end": 26278, "loc": { "start": { "line": 646, @@ -88555,8 +88567,8 @@ }, { "type": "Identifier", - "start": 26237, - "end": 26243, + "start": 26280, + "end": 26286, "loc": { "start": { "line": 646, @@ -88573,8 +88585,8 @@ ], "body": { "type": "BlockStatement", - "start": 26245, - "end": 26395, + "start": 26288, + "end": 26438, "loc": { "start": { "line": 646, @@ -88588,8 +88600,8 @@ "body": [ { "type": "ForStatement", - "start": 26250, - "end": 26391, + "start": 26293, + "end": 26434, "loc": { "start": { "line": 647, @@ -88602,8 +88614,8 @@ }, "init": { "type": "VariableDeclaration", - "start": 26255, - "end": 26264, + "start": 26298, + "end": 26307, "loc": { "start": { "line": 647, @@ -88617,8 +88629,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 26259, - "end": 26264, + "start": 26302, + "end": 26307, "loc": { "start": { "line": 647, @@ -88631,8 +88643,8 @@ }, "id": { "type": "Identifier", - "start": 26259, - "end": 26260, + "start": 26302, + "end": 26303, "loc": { "start": { "line": 647, @@ -88648,8 +88660,8 @@ }, "init": { "type": "NumericLiteral", - "start": 26263, - "end": 26264, + "start": 26306, + "end": 26307, "loc": { "start": { "line": 647, @@ -88672,8 +88684,8 @@ }, "test": { "type": "BinaryExpression", - "start": 26266, - "end": 26283, + "start": 26309, + "end": 26326, "loc": { "start": { "line": 647, @@ -88686,8 +88698,8 @@ }, "left": { "type": "Identifier", - "start": 26266, - "end": 26267, + "start": 26309, + "end": 26310, "loc": { "start": { "line": 647, @@ -88704,8 +88716,8 @@ "operator": "<", "right": { "type": "MemberExpression", - "start": 26270, - "end": 26283, + "start": 26313, + "end": 26326, "loc": { "start": { "line": 647, @@ -88718,8 +88730,8 @@ }, "object": { "type": "Identifier", - "start": 26270, - "end": 26276, + "start": 26313, + "end": 26319, "loc": { "start": { "line": 647, @@ -88735,8 +88747,8 @@ }, "property": { "type": "Identifier", - "start": 26277, - "end": 26283, + "start": 26320, + "end": 26326, "loc": { "start": { "line": 647, @@ -88755,8 +88767,8 @@ }, "update": { "type": "UpdateExpression", - "start": 26285, - "end": 26288, + "start": 26328, + "end": 26331, "loc": { "start": { "line": 647, @@ -88771,8 +88783,8 @@ "prefix": false, "argument": { "type": "Identifier", - "start": 26285, - "end": 26286, + "start": 26328, + "end": 26329, "loc": { "start": { "line": 647, @@ -88789,8 +88801,8 @@ }, "body": { "type": "BlockStatement", - "start": 26290, - "end": 26391, + "start": 26333, + "end": 26434, "loc": { "start": { "line": 647, @@ -88804,8 +88816,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 26296, - "end": 26334, + "start": 26339, + "end": 26377, "loc": { "start": { "line": 648, @@ -88819,8 +88831,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 26300, - "end": 26333, + "start": 26343, + "end": 26376, "loc": { "start": { "line": 648, @@ -88833,8 +88845,8 @@ }, "id": { "type": "Identifier", - "start": 26300, - "end": 26305, + "start": 26343, + "end": 26348, "loc": { "start": { "line": 648, @@ -88850,8 +88862,8 @@ }, "init": { "type": "CallExpression", - "start": 26308, - "end": 26333, + "start": 26351, + "end": 26376, "loc": { "start": { "line": 648, @@ -88864,8 +88876,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26308, - "end": 26325, + "start": 26351, + "end": 26368, "loc": { "start": { "line": 648, @@ -88878,8 +88890,8 @@ }, "object": { "type": "MemberExpression", - "start": 26308, - "end": 26317, + "start": 26351, + "end": 26360, "loc": { "start": { "line": 648, @@ -88892,8 +88904,8 @@ }, "object": { "type": "Identifier", - "start": 26308, - "end": 26314, + "start": 26351, + "end": 26357, "loc": { "start": { "line": 648, @@ -88909,8 +88921,8 @@ }, "property": { "type": "Identifier", - "start": 26315, - "end": 26316, + "start": 26358, + "end": 26359, "loc": { "start": { "line": 648, @@ -88928,8 +88940,8 @@ }, "property": { "type": "Identifier", - "start": 26318, - "end": 26325, + "start": 26361, + "end": 26368, "loc": { "start": { "line": 648, @@ -88948,8 +88960,8 @@ "arguments": [ { "type": "Identifier", - "start": 26326, - "end": 26332, + "start": 26369, + "end": 26375, "loc": { "start": { "line": 648, @@ -88971,8 +88983,8 @@ }, { "type": "IfStatement", - "start": 26339, - "end": 26386, + "start": 26382, + "end": 26429, "loc": { "start": { "line": 649, @@ -88985,8 +88997,8 @@ }, "test": { "type": "BinaryExpression", - "start": 26343, - "end": 26353, + "start": 26386, + "end": 26396, "loc": { "start": { "line": 649, @@ -88999,8 +89011,8 @@ }, "left": { "type": "Identifier", - "start": 26343, - "end": 26348, + "start": 26386, + "end": 26391, "loc": { "start": { "line": 649, @@ -89017,8 +89029,8 @@ "operator": ">", "right": { "type": "UnaryExpression", - "start": 26351, - "end": 26353, + "start": 26394, + "end": 26396, "loc": { "start": { "line": 649, @@ -89033,8 +89045,8 @@ "prefix": true, "argument": { "type": "NumericLiteral", - "start": 26352, - "end": 26353, + "start": 26395, + "end": 26396, "loc": { "start": { "line": 649, @@ -89058,8 +89070,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 26355, - "end": 26386, + "start": 26398, + "end": 26429, "loc": { "start": { "line": 649, @@ -89073,8 +89085,8 @@ "body": [ { "type": "ReturnStatement", - "start": 26362, - "end": 26380, + "start": 26405, + "end": 26423, "loc": { "start": { "line": 650, @@ -89087,8 +89099,8 @@ }, "argument": { "type": "ArrayExpression", - "start": 26369, - "end": 26379, + "start": 26412, + "end": 26422, "loc": { "start": { "line": 650, @@ -89102,8 +89114,8 @@ "elements": [ { "type": "Identifier", - "start": 26370, - "end": 26371, + "start": 26413, + "end": 26414, "loc": { "start": { "line": 650, @@ -89119,8 +89131,8 @@ }, { "type": "Identifier", - "start": 26373, - "end": 26378, + "start": 26416, + "end": 26421, "loc": { "start": { "line": 650, @@ -89154,8 +89166,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t ", - "start": 25888, - "end": 26208, + "start": 25931, + "end": 26251, "loc": { "start": { "line": 639, @@ -89172,8 +89184,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t ", - "start": 26398, - "end": 26779, + "start": 26441, + "end": 26822, "loc": { "start": { "line": 654, @@ -89189,8 +89201,8 @@ }, { "type": "ClassMethod", - "start": 26782, - "end": 30525, + "start": 26825, + "end": 30568, "loc": { "start": { "line": 661, @@ -89205,8 +89217,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 26782, - "end": 26796, + "start": 26825, + "end": 26839, "loc": { "start": { "line": 661, @@ -89229,8 +89241,8 @@ "params": [ { "type": "Identifier", - "start": 26797, - "end": 26805, + "start": 26840, + "end": 26848, "loc": { "start": { "line": 661, @@ -89246,8 +89258,8 @@ }, { "type": "Identifier", - "start": 26807, - "end": 26821, + "start": 26850, + "end": 26864, "loc": { "start": { "line": 661, @@ -89264,8 +89276,8 @@ ], "body": { "type": "BlockStatement", - "start": 26823, - "end": 30525, + "start": 26866, + "end": 30568, "loc": { "start": { "line": 661, @@ -89279,8 +89291,8 @@ "body": [ { "type": "IfStatement", - "start": 26828, - "end": 30521, + "start": 26871, + "end": 30564, "loc": { "start": { "line": 662, @@ -89293,8 +89305,8 @@ }, "test": { "type": "BinaryExpression", - "start": 26832, - "end": 26861, + "start": 26875, + "end": 26904, "loc": { "start": { "line": 662, @@ -89307,8 +89319,8 @@ }, "left": { "type": "UnaryExpression", - "start": 26832, - "end": 26848, + "start": 26875, + "end": 26891, "loc": { "start": { "line": 662, @@ -89323,8 +89335,8 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 26839, - "end": 26847, + "start": 26882, + "end": 26890, "loc": { "start": { "line": 662, @@ -89339,7 +89351,7 @@ "name": "pMapName", "extra": { "parenthesized": true, - "parenStart": 26838 + "parenStart": 26881 } }, "extra": { @@ -89349,8 +89361,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 26853, - "end": 26861, + "start": 26896, + "end": 26904, "loc": { "start": { "line": 662, @@ -89370,8 +89382,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 26863, - "end": 30431, + "start": 26906, + "end": 30474, "loc": { "start": { "line": 662, @@ -89385,8 +89397,8 @@ "body": [ { "type": "IfStatement", - "start": 26869, - "end": 30426, + "start": 26912, + "end": 30469, "loc": { "start": { "line": 663, @@ -89399,8 +89411,8 @@ }, "test": { "type": "CallExpression", - "start": 26873, - "end": 26902, + "start": 26916, + "end": 26945, "loc": { "start": { "line": 663, @@ -89413,8 +89425,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26873, - "end": 26886, + "start": 26916, + "end": 26929, "loc": { "start": { "line": 663, @@ -89427,8 +89439,8 @@ }, "object": { "type": "Identifier", - "start": 26873, - "end": 26878, + "start": 26916, + "end": 26921, "loc": { "start": { "line": 663, @@ -89444,8 +89456,8 @@ }, "property": { "type": "Identifier", - "start": 26879, - "end": 26886, + "start": 26922, + "end": 26929, "loc": { "start": { "line": 663, @@ -89464,8 +89476,8 @@ "arguments": [ { "type": "Identifier", - "start": 26887, - "end": 26901, + "start": 26930, + "end": 26944, "loc": { "start": { "line": 663, @@ -89483,8 +89495,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 26904, - "end": 30328, + "start": 26947, + "end": 30371, "loc": { "start": { "line": 663, @@ -89498,8 +89510,8 @@ "body": [ { "type": "IfStatement", - "start": 26970, - "end": 30322, + "start": 27013, + "end": 30365, "loc": { "start": { "line": 665, @@ -89512,8 +89524,8 @@ }, "test": { "type": "CallExpression", - "start": 26974, - "end": 27011, + "start": 27017, + "end": 27054, "loc": { "start": { "line": 665, @@ -89526,8 +89538,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26974, - "end": 27001, + "start": 27017, + "end": 27044, "loc": { "start": { "line": 665, @@ -89540,8 +89552,8 @@ }, "object": { "type": "CallExpression", - "start": 26974, - "end": 26992, + "start": 27017, + "end": 27035, "loc": { "start": { "line": 665, @@ -89554,8 +89566,8 @@ }, "callee": { "type": "MemberExpression", - "start": 26974, - "end": 26990, + "start": 27017, + "end": 27033, "loc": { "start": { "line": 665, @@ -89568,8 +89580,8 @@ }, "object": { "type": "MemberExpression", - "start": 26974, - "end": 26982, + "start": 27017, + "end": 27025, "loc": { "start": { "line": 665, @@ -89582,8 +89594,8 @@ }, "object": { "type": "Identifier", - "start": 26974, - "end": 26978, + "start": 27017, + "end": 27021, "loc": { "start": { "line": 665, @@ -89600,8 +89612,8 @@ }, "property": { "type": "Identifier", - "start": 26979, - "end": 26982, + "start": 27022, + "end": 27025, "loc": { "start": { "line": 665, @@ -89620,8 +89632,8 @@ }, "property": { "type": "Identifier", - "start": 26983, - "end": 26990, + "start": 27026, + "end": 27033, "loc": { "start": { "line": 665, @@ -89643,8 +89655,8 @@ }, "property": { "type": "Identifier", - "start": 26993, - "end": 27001, + "start": 27036, + "end": 27044, "loc": { "start": { "line": 665, @@ -89664,8 +89676,8 @@ "arguments": [ { "type": "Identifier", - "start": 27002, - "end": 27010, + "start": 27045, + "end": 27053, "loc": { "start": { "line": 665, @@ -89684,8 +89696,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 27013, - "end": 30209, + "start": 27056, + "end": 30252, "loc": { "start": { "line": 665, @@ -89699,8 +89711,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 27073, - "end": 27088, + "start": 27116, + "end": 27131, "loc": { "start": { "line": 667, @@ -89714,8 +89726,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27077, - "end": 27087, + "start": 27120, + "end": 27130, "loc": { "start": { "line": 667, @@ -89728,8 +89740,8 @@ }, "id": { "type": "Identifier", - "start": 27077, - "end": 27087, + "start": 27120, + "end": 27130, "loc": { "start": { "line": 667, @@ -89753,8 +89765,8 @@ { "type": "CommentLine", "value": " An array of tiles that we get from the map", - "start": 27021, - "end": 27066, + "start": 27064, + "end": 27109, "loc": { "start": { "line": 666, @@ -89771,8 +89783,8 @@ { "type": "CommentLine", "value": " An array of accepted tiles to be walked on.", - "start": 27095, - "end": 27141, + "start": 27138, + "end": 27184, "loc": { "start": { "line": 668, @@ -89788,8 +89800,8 @@ }, { "type": "VariableDeclaration", - "start": 27148, - "end": 27174, + "start": 27191, + "end": 27217, "loc": { "start": { "line": 669, @@ -89803,8 +89815,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27154, - "end": 27173, + "start": 27197, + "end": 27216, "loc": { "start": { "line": 669, @@ -89817,8 +89829,8 @@ }, "id": { "type": "Identifier", - "start": 27154, - "end": 27167, + "start": 27197, + "end": 27210, "loc": { "start": { "line": 669, @@ -89835,8 +89847,8 @@ }, "init": { "type": "ArrayExpression", - "start": 27170, - "end": 27173, + "start": 27213, + "end": 27216, "loc": { "start": { "line": 669, @@ -89850,8 +89862,8 @@ "elements": [ { "type": "NumericLiteral", - "start": 27171, - "end": 27172, + "start": 27214, + "end": 27215, "loc": { "start": { "line": 669, @@ -89878,8 +89890,8 @@ { "type": "CommentLine", "value": " An array of accepted tiles to be walked on.", - "start": 27095, - "end": 27141, + "start": 27138, + "end": 27184, "loc": { "start": { "line": 668, @@ -89896,8 +89908,8 @@ { "type": "CommentLine", "value": " An array holding the weights of tiles.", - "start": 27181, - "end": 27222, + "start": 27224, + "end": 27265, "loc": { "start": { "line": 670, @@ -89913,8 +89925,8 @@ }, { "type": "VariableDeclaration", - "start": 27229, - "end": 27248, + "start": 27272, + "end": 27291, "loc": { "start": { "line": 671, @@ -89928,8 +89940,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27235, - "end": 27247, + "start": 27278, + "end": 27290, "loc": { "start": { "line": 671, @@ -89942,8 +89954,8 @@ }, "id": { "type": "Identifier", - "start": 27235, - "end": 27242, + "start": 27278, + "end": 27285, "loc": { "start": { "line": 671, @@ -89960,8 +89972,8 @@ }, "init": { "type": "ArrayExpression", - "start": 27245, - "end": 27247, + "start": 27288, + "end": 27290, "loc": { "start": { "line": 671, @@ -89982,8 +89994,8 @@ { "type": "CommentLine", "value": " An array holding the weights of tiles.", - "start": 27181, - "end": 27222, + "start": 27224, + "end": 27265, "loc": { "start": { "line": 670, @@ -90000,8 +90012,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 27255, - "end": 27304, + "start": 27298, + "end": 27347, "loc": { "start": { "line": 672, @@ -90017,8 +90029,8 @@ }, { "type": "VariableDeclaration", - "start": 27311, - "end": 27357, + "start": 27354, + "end": 27400, "loc": { "start": { "line": 673, @@ -90032,8 +90044,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27317, - "end": 27356, + "start": 27360, + "end": 27399, "loc": { "start": { "line": 673, @@ -90046,8 +90058,8 @@ }, "id": { "type": "Identifier", - "start": 27317, - "end": 27324, + "start": 27360, + "end": 27367, "loc": { "start": { "line": 673, @@ -90064,8 +90076,8 @@ }, "init": { "type": "CallExpression", - "start": 27327, - "end": 27356, + "start": 27370, + "end": 27399, "loc": { "start": { "line": 673, @@ -90078,8 +90090,8 @@ }, "callee": { "type": "MemberExpression", - "start": 27327, - "end": 27346, + "start": 27370, + "end": 27389, "loc": { "start": { "line": 673, @@ -90092,8 +90104,8 @@ }, "object": { "type": "MemberExpression", - "start": 27327, - "end": 27335, + "start": 27370, + "end": 27378, "loc": { "start": { "line": 673, @@ -90106,8 +90118,8 @@ }, "object": { "type": "Identifier", - "start": 27327, - "end": 27331, + "start": 27370, + "end": 27374, "loc": { "start": { "line": 673, @@ -90123,8 +90135,8 @@ }, "property": { "type": "Identifier", - "start": 27332, - "end": 27335, + "start": 27375, + "end": 27378, "loc": { "start": { "line": 673, @@ -90142,8 +90154,8 @@ }, "property": { "type": "Identifier", - "start": 27336, - "end": 27346, + "start": 27379, + "end": 27389, "loc": { "start": { "line": 673, @@ -90162,8 +90174,8 @@ "arguments": [ { "type": "Identifier", - "start": 27347, - "end": 27355, + "start": 27390, + "end": 27398, "loc": { "start": { "line": 673, @@ -90187,8 +90199,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 27255, - "end": 27304, + "start": 27298, + "end": 27347, "loc": { "start": { "line": 672, @@ -90205,8 +90217,8 @@ { "type": "CommentLine", "value": " We check if we have stored tiles from this map before. If so we cache them.", - "start": 27366, - "end": 27444, + "start": 27409, + "end": 27487, "loc": { "start": { "line": 675, @@ -90222,8 +90234,8 @@ }, { "type": "IfStatement", - "start": 27451, - "end": 27855, + "start": 27494, + "end": 27898, "loc": { "start": { "line": 676, @@ -90236,8 +90248,8 @@ }, "test": { "type": "MemberExpression", - "start": 27455, - "end": 27496, + "start": 27498, + "end": 27539, "loc": { "start": { "line": 676, @@ -90250,8 +90262,8 @@ }, "object": { "type": "MemberExpression", - "start": 27455, - "end": 27486, + "start": 27498, + "end": 27529, "loc": { "start": { "line": 676, @@ -90264,8 +90276,8 @@ }, "object": { "type": "Identifier", - "start": 27455, - "end": 27471, + "start": 27498, + "end": 27514, "loc": { "start": { "line": 676, @@ -90282,8 +90294,8 @@ }, "property": { "type": "Identifier", - "start": 27472, - "end": 27486, + "start": 27515, + "end": 27529, "loc": { "start": { "line": 676, @@ -90302,8 +90314,8 @@ }, "property": { "type": "Identifier", - "start": 27487, - "end": 27495, + "start": 27530, + "end": 27538, "loc": { "start": { "line": 676, @@ -90322,8 +90334,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 27498, - "end": 27621, + "start": 27541, + "end": 27664, "loc": { "start": { "line": 676, @@ -90337,8 +90349,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 27552, - "end": 27613, + "start": 27595, + "end": 27656, "loc": { "start": { "line": 678, @@ -90351,8 +90363,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 27552, - "end": 27612, + "start": 27595, + "end": 27655, "loc": { "start": { "line": 678, @@ -90366,8 +90378,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 27552, - "end": 27562, + "start": 27595, + "end": 27605, "loc": { "start": { "line": 678, @@ -90384,8 +90396,8 @@ }, "right": { "type": "MemberExpression", - "start": 27565, - "end": 27612, + "start": 27608, + "end": 27655, "loc": { "start": { "line": 678, @@ -90398,8 +90410,8 @@ }, "object": { "type": "MemberExpression", - "start": 27565, - "end": 27606, + "start": 27608, + "end": 27649, "loc": { "start": { "line": 678, @@ -90412,8 +90424,8 @@ }, "object": { "type": "MemberExpression", - "start": 27565, - "end": 27596, + "start": 27608, + "end": 27639, "loc": { "start": { "line": 678, @@ -90426,8 +90438,8 @@ }, "object": { "type": "Identifier", - "start": 27565, - "end": 27581, + "start": 27608, + "end": 27624, "loc": { "start": { "line": 678, @@ -90443,8 +90455,8 @@ }, "property": { "type": "Identifier", - "start": 27582, - "end": 27596, + "start": 27625, + "end": 27639, "loc": { "start": { "line": 678, @@ -90462,8 +90474,8 @@ }, "property": { "type": "Identifier", - "start": 27597, - "end": 27605, + "start": 27640, + "end": 27648, "loc": { "start": { "line": 678, @@ -90481,8 +90493,8 @@ }, "property": { "type": "Identifier", - "start": 27607, - "end": 27612, + "start": 27650, + "end": 27655, "loc": { "start": { "line": 678, @@ -90504,8 +90516,8 @@ { "type": "CommentLine", "value": " We get the tile array from memory.", - "start": 27507, - "end": 27544, + "start": 27550, + "end": 27587, "loc": { "start": { "line": 677, @@ -90524,8 +90536,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 27627, - "end": 27855, + "start": 27670, + "end": 27898, "loc": { "start": { "line": 679, @@ -90539,8 +90551,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 27636, - "end": 27677, + "start": 27679, + "end": 27720, "loc": { "start": { "line": 680, @@ -90553,8 +90565,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 27636, - "end": 27676, + "start": 27679, + "end": 27719, "loc": { "start": { "line": 680, @@ -90568,8 +90580,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 27636, - "end": 27646, + "start": 27679, + "end": 27689, "loc": { "start": { "line": 680, @@ -90585,8 +90597,8 @@ }, "right": { "type": "CallExpression", - "start": 27649, - "end": 27676, + "start": 27692, + "end": 27719, "loc": { "start": { "line": 680, @@ -90599,8 +90611,8 @@ }, "callee": { "type": "MemberExpression", - "start": 27649, - "end": 27666, + "start": 27692, + "end": 27709, "loc": { "start": { "line": 680, @@ -90613,8 +90625,8 @@ }, "object": { "type": "MemberExpression", - "start": 27649, - "end": 27657, + "start": 27692, + "end": 27700, "loc": { "start": { "line": 680, @@ -90627,8 +90639,8 @@ }, "object": { "type": "Identifier", - "start": 27649, - "end": 27653, + "start": 27692, + "end": 27696, "loc": { "start": { "line": 680, @@ -90644,8 +90656,8 @@ }, "property": { "type": "Identifier", - "start": 27654, - "end": 27657, + "start": 27697, + "end": 27700, "loc": { "start": { "line": 680, @@ -90663,8 +90675,8 @@ }, "property": { "type": "Identifier", - "start": 27658, - "end": 27666, + "start": 27701, + "end": 27709, "loc": { "start": { "line": 680, @@ -90683,8 +90695,8 @@ "arguments": [ { "type": "Identifier", - "start": 27667, - "end": 27675, + "start": 27710, + "end": 27718, "loc": { "start": { "line": 680, @@ -90705,8 +90717,8 @@ { "type": "CommentLine", "value": " We store this tiles array", - "start": 27685, - "end": 27713, + "start": 27728, + "end": 27756, "loc": { "start": { "line": 681, @@ -90722,8 +90734,8 @@ }, { "type": "ExpressionStatement", - "start": 27721, - "end": 27847, + "start": 27764, + "end": 27890, "loc": { "start": { "line": 682, @@ -90736,8 +90748,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 27721, - "end": 27846, + "start": 27764, + "end": 27889, "loc": { "start": { "line": 682, @@ -90751,8 +90763,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 27721, - "end": 27762, + "start": 27764, + "end": 27805, "loc": { "start": { "line": 682, @@ -90765,8 +90777,8 @@ }, "object": { "type": "MemberExpression", - "start": 27721, - "end": 27752, + "start": 27764, + "end": 27795, "loc": { "start": { "line": 682, @@ -90779,8 +90791,8 @@ }, "object": { "type": "Identifier", - "start": 27721, - "end": 27737, + "start": 27764, + "end": 27780, "loc": { "start": { "line": 682, @@ -90797,8 +90809,8 @@ }, "property": { "type": "Identifier", - "start": 27738, - "end": 27752, + "start": 27781, + "end": 27795, "loc": { "start": { "line": 682, @@ -90817,8 +90829,8 @@ }, "property": { "type": "Identifier", - "start": 27753, - "end": 27761, + "start": 27796, + "end": 27804, "loc": { "start": { "line": 682, @@ -90837,8 +90849,8 @@ }, "right": { "type": "ObjectExpression", - "start": 27765, - "end": 27846, + "start": 27808, + "end": 27889, "loc": { "start": { "line": 682, @@ -90852,8 +90864,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 27767, - "end": 27784, + "start": 27810, + "end": 27827, "loc": { "start": { "line": 682, @@ -90869,8 +90881,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 27767, - "end": 27772, + "start": 27810, + "end": 27815, "loc": { "start": { "line": 682, @@ -90886,8 +90898,8 @@ }, "value": { "type": "Identifier", - "start": 27774, - "end": 27784, + "start": 27817, + "end": 27827, "loc": { "start": { "line": 682, @@ -90904,8 +90916,8 @@ }, { "type": "ObjectProperty", - "start": 27786, - "end": 27844, + "start": 27829, + "end": 27887, "loc": { "start": { "line": 682, @@ -90921,8 +90933,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 27786, - "end": 27793, + "start": 27829, + "end": 27836, "loc": { "start": { "line": 682, @@ -90938,8 +90950,8 @@ }, "value": { "type": "CallExpression", - "start": 27795, - "end": 27844, + "start": 27838, + "end": 27887, "loc": { "start": { "line": 682, @@ -90952,8 +90964,8 @@ }, "callee": { "type": "MemberExpression", - "start": 27795, - "end": 27821, + "start": 27838, + "end": 27864, "loc": { "start": { "line": 682, @@ -90966,8 +90978,8 @@ }, "object": { "type": "ThisExpression", - "start": 27795, - "end": 27799, + "start": 27838, + "end": 27842, "loc": { "start": { "line": 682, @@ -90981,8 +90993,8 @@ }, "property": { "type": "Identifier", - "start": 27800, - "end": 27821, + "start": 27843, + "end": 27864, "loc": { "start": { "line": 682, @@ -91001,8 +91013,8 @@ "arguments": [ { "type": "Identifier", - "start": 27822, - "end": 27832, + "start": 27865, + "end": 27875, "loc": { "start": { "line": 682, @@ -91018,8 +91030,8 @@ }, { "type": "MemberExpression", - "start": 27834, - "end": 27843, + "start": 27877, + "end": 27886, "loc": { "start": { "line": 682, @@ -91032,8 +91044,8 @@ }, "object": { "type": "Identifier", - "start": 27834, - "end": 27841, + "start": 27877, + "end": 27884, "loc": { "start": { "line": 682, @@ -91049,8 +91061,8 @@ }, "property": { "type": "Identifier", - "start": 27842, - "end": 27843, + "start": 27885, + "end": 27886, "loc": { "start": { "line": 682, @@ -91077,8 +91089,8 @@ { "type": "CommentLine", "value": " We store this tiles array", - "start": 27685, - "end": 27713, + "start": 27728, + "end": 27756, "loc": { "start": { "line": 681, @@ -91100,8 +91112,8 @@ { "type": "CommentLine", "value": " We check if we have stored tiles from this map before. If so we cache them.", - "start": 27366, - "end": 27444, + "start": 27409, + "end": 27487, "loc": { "start": { "line": 675, @@ -91118,8 +91130,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 27864, - "end": 27984, + "start": 27907, + "end": 28027, "loc": { "start": { "line": 685, @@ -91135,8 +91147,8 @@ }, { "type": "VariableDeclaration", - "start": 27991, - "end": 28207, + "start": 28034, + "end": 28250, "loc": { "start": { "line": 686, @@ -91150,8 +91162,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 27997, - "end": 28206, + "start": 28040, + "end": 28249, "loc": { "start": { "line": 686, @@ -91164,8 +91176,8 @@ }, "id": { "type": "Identifier", - "start": 27997, - "end": 28009, + "start": 28040, + "end": 28052, "loc": { "start": { "line": 686, @@ -91182,8 +91194,8 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 28012, - "end": 28206, + "start": 28055, + "end": 28249, "loc": { "start": { "line": 686, @@ -91201,8 +91213,8 @@ "params": [ { "type": "Identifier", - "start": 28013, - "end": 28022, + "start": 28056, + "end": 28065, "loc": { "start": { "line": 686, @@ -91219,8 +91231,8 @@ ], "body": { "type": "LogicalExpression", - "start": 28027, - "end": 28206, + "start": 28070, + "end": 28249, "loc": { "start": { "line": 686, @@ -91233,8 +91245,8 @@ }, "left": { "type": "BinaryExpression", - "start": 28028, - "end": 28090, + "start": 28071, + "end": 28133, "loc": { "start": { "line": 686, @@ -91247,8 +91259,8 @@ }, "left": { "type": "MemberExpression", - "start": 28028, - "end": 28051, + "start": 28071, + "end": 28094, "loc": { "start": { "line": 686, @@ -91261,8 +91273,8 @@ }, "object": { "type": "Identifier", - "start": 28028, - "end": 28037, + "start": 28071, + "end": 28080, "loc": { "start": { "line": 686, @@ -91278,8 +91290,8 @@ }, "property": { "type": "Identifier", - "start": 28038, - "end": 28051, + "start": 28081, + "end": 28094, "loc": { "start": { "line": 686, @@ -91298,8 +91310,8 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 28056, - "end": 28090, + "start": 28099, + "end": 28133, "loc": { "start": { "line": 686, @@ -91312,8 +91324,8 @@ }, "object": { "type": "Identifier", - "start": 28056, - "end": 28072, + "start": 28099, + "end": 28115, "loc": { "start": { "line": 686, @@ -91329,8 +91341,8 @@ }, "property": { "type": "Identifier", - "start": 28073, - "end": 28090, + "start": 28116, + "end": 28133, "loc": { "start": { "line": 686, @@ -91348,14 +91360,14 @@ }, "extra": { "parenthesized": true, - "parenStart": 28027 + "parenStart": 28070 } }, "operator": "||", "right": { "type": "LogicalExpression", - "start": 28095, - "end": 28206, + "start": 28138, + "end": 28249, "loc": { "start": { "line": 686, @@ -91368,8 +91380,8 @@ }, "left": { "type": "MemberExpression", - "start": 28095, - "end": 28112, + "start": 28138, + "end": 28155, "loc": { "start": { "line": 686, @@ -91382,8 +91394,8 @@ }, "object": { "type": "Identifier", - "start": 28095, - "end": 28104, + "start": 28138, + "end": 28147, "loc": { "start": { "line": 686, @@ -91399,8 +91411,8 @@ }, "property": { "type": "Identifier", - "start": 28105, - "end": 28112, + "start": 28148, + "end": 28155, "loc": { "start": { "line": 686, @@ -91419,8 +91431,8 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 28117, - "end": 28205, + "start": 28160, + "end": 28248, "loc": { "start": { "line": 686, @@ -91433,8 +91445,8 @@ }, "left": { "type": "UnaryExpression", - "start": 28117, - "end": 28141, + "start": 28160, + "end": 28184, "loc": { "start": { "line": 686, @@ -91449,8 +91461,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 28118, - "end": 28141, + "start": 28161, + "end": 28184, "loc": { "start": { "line": 686, @@ -91463,8 +91475,8 @@ }, "object": { "type": "Identifier", - "start": 28118, - "end": 28127, + "start": 28161, + "end": 28170, "loc": { "start": { "line": 686, @@ -91480,8 +91492,8 @@ }, "property": { "type": "Identifier", - "start": 28128, - "end": 28141, + "start": 28171, + "end": 28184, "loc": { "start": { "line": 686, @@ -91504,8 +91516,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 28145, - "end": 28205, + "start": 28188, + "end": 28248, "loc": { "start": { "line": 686, @@ -91518,8 +91530,8 @@ }, "left": { "type": "MemberExpression", - "start": 28145, - "end": 28168, + "start": 28188, + "end": 28211, "loc": { "start": { "line": 686, @@ -91532,8 +91544,8 @@ }, "object": { "type": "Identifier", - "start": 28145, - "end": 28154, + "start": 28188, + "end": 28197, "loc": { "start": { "line": 686, @@ -91549,8 +91561,8 @@ }, "property": { "type": "Identifier", - "start": 28155, - "end": 28168, + "start": 28198, + "end": 28211, "loc": { "start": { "line": 686, @@ -91569,8 +91581,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 28173, - "end": 28205, + "start": 28216, + "end": 28248, "loc": { "start": { "line": 686, @@ -91583,8 +91595,8 @@ }, "object": { "type": "Identifier", - "start": 28173, - "end": 28189, + "start": 28216, + "end": 28232, "loc": { "start": { "line": 686, @@ -91600,8 +91612,8 @@ }, "property": { "type": "Identifier", - "start": 28190, - "end": 28205, + "start": 28233, + "end": 28248, "loc": { "start": { "line": 686, @@ -91620,7 +91632,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 28116 + "parenStart": 28159 } } } @@ -91634,8 +91646,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 27864, - "end": 27984, + "start": 27907, + "end": 28027, "loc": { "start": { "line": 685, @@ -91652,8 +91664,8 @@ { "type": "CommentLine", "value": " Loop through the tiles array to build weights and accepted tile lists.", - "start": 28221, - "end": 28294, + "start": 28264, + "end": 28337, "loc": { "start": { "line": 688, @@ -91669,8 +91681,8 @@ }, { "type": "VariableDeclaration", - "start": 28301, - "end": 30047, + "start": 28344, + "end": 30090, "loc": { "start": { "line": 689, @@ -91684,8 +91696,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 28307, - "end": 30046, + "start": 28350, + "end": 30089, "loc": { "start": { "line": 689, @@ -91698,8 +91710,8 @@ }, "id": { "type": "Identifier", - "start": 28307, - "end": 28311, + "start": 28350, + "end": 28354, "loc": { "start": { "line": 689, @@ -91716,8 +91728,8 @@ }, "init": { "type": "CallExpression", - "start": 28314, - "end": 30046, + "start": 28357, + "end": 30089, "loc": { "start": { "line": 689, @@ -91730,8 +91742,8 @@ }, "callee": { "type": "MemberExpression", - "start": 28314, - "end": 28328, + "start": 28357, + "end": 28371, "loc": { "start": { "line": 689, @@ -91744,8 +91756,8 @@ }, "object": { "type": "Identifier", - "start": 28314, - "end": 28324, + "start": 28357, + "end": 28367, "loc": { "start": { "line": 689, @@ -91761,8 +91773,8 @@ }, "property": { "type": "Identifier", - "start": 28325, - "end": 28328, + "start": 28368, + "end": 28371, "loc": { "start": { "line": 689, @@ -91781,8 +91793,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 28329, - "end": 30045, + "start": 28372, + "end": 30088, "loc": { "start": { "line": 689, @@ -91800,8 +91812,8 @@ "params": [ { "type": "Identifier", - "start": 28330, - "end": 28335, + "start": 28373, + "end": 28378, "loc": { "start": { "line": 689, @@ -91818,8 +91830,8 @@ ], "body": { "type": "BlockStatement", - "start": 28340, - "end": 30045, + "start": 28383, + "end": 30088, "loc": { "start": { "line": 689, @@ -91833,8 +91845,8 @@ "body": [ { "type": "IfStatement", - "start": 28618, - "end": 28694, + "start": 28661, + "end": 28737, "loc": { "start": { "line": 692, @@ -91847,8 +91859,8 @@ }, "test": { "type": "CallExpression", - "start": 28622, - "end": 28652, + "start": 28665, + "end": 28695, "loc": { "start": { "line": 692, @@ -91861,8 +91873,8 @@ }, "callee": { "type": "MemberExpression", - "start": 28622, - "end": 28645, + "start": 28665, + "end": 28688, "loc": { "start": { "line": 692, @@ -91875,8 +91887,8 @@ }, "object": { "type": "Identifier", - "start": 28622, - "end": 28636, + "start": 28665, + "end": 28679, "loc": { "start": { "line": 692, @@ -91893,8 +91905,8 @@ }, "property": { "type": "Identifier", - "start": 28637, - "end": 28645, + "start": 28680, + "end": 28688, "loc": { "start": { "line": 692, @@ -91914,8 +91926,8 @@ "arguments": [ { "type": "Identifier", - "start": 28646, - "end": 28651, + "start": 28689, + "end": 28694, "loc": { "start": { "line": 692, @@ -91934,8 +91946,8 @@ }, "consequent": { "type": "ReturnStatement", - "start": 28654, - "end": 28694, + "start": 28697, + "end": 28737, "loc": { "start": { "line": 692, @@ -91948,8 +91960,8 @@ }, "argument": { "type": "MemberExpression", - "start": 28661, - "end": 28693, + "start": 28704, + "end": 28736, "loc": { "start": { "line": 692, @@ -91962,8 +91974,8 @@ }, "object": { "type": "Identifier", - "start": 28661, - "end": 28677, + "start": 28704, + "end": 28720, "loc": { "start": { "line": 692, @@ -91979,8 +91991,8 @@ }, "property": { "type": "Identifier", - "start": 28678, - "end": 28693, + "start": 28721, + "end": 28736, "loc": { "start": { "line": 692, @@ -92003,8 +92015,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is passable. This prevents the tile's contents from being searched. ", - "start": 28349, - "end": 28473, + "start": 28392, + "end": 28516, "loc": { "start": { "line": 690, @@ -92019,8 +92031,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 28481, - "end": 28610, + "start": 28524, + "end": 28653, "loc": { "start": { "line": 691, @@ -92037,8 +92049,8 @@ { "type": "CommentLine", "value": " A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.", - "start": 28704, - "end": 28772, + "start": 28747, + "end": 28815, "loc": { "start": { "line": 694, @@ -92054,8 +92066,8 @@ }, { "type": "VariableDeclaration", - "start": 28780, - "end": 28891, + "start": 28823, + "end": 28934, "loc": { "start": { "line": 695, @@ -92069,8 +92081,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 28784, - "end": 28890, + "start": 28827, + "end": 28933, "loc": { "start": { "line": 695, @@ -92083,8 +92095,8 @@ }, "id": { "type": "Identifier", - "start": 28784, - "end": 28790, + "start": 28827, + "end": 28833, "loc": { "start": { "line": 695, @@ -92101,8 +92113,8 @@ }, "init": { "type": "ConditionalExpression", - "start": 28793, - "end": 28890, + "start": 28836, + "end": 28933, "loc": { "start": { "line": 695, @@ -92115,8 +92127,8 @@ }, "test": { "type": "BinaryExpression", - "start": 28793, - "end": 28833, + "start": 28836, + "end": 28876, "loc": { "start": { "line": 695, @@ -92129,8 +92141,8 @@ }, "left": { "type": "UnaryExpression", - "start": 28793, - "end": 28820, + "start": 28836, + "end": 28863, "loc": { "start": { "line": 695, @@ -92145,8 +92157,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 28800, - "end": 28819, + "start": 28843, + "end": 28862, "loc": { "start": { "line": 695, @@ -92159,8 +92171,8 @@ }, "object": { "type": "Identifier", - "start": 28800, - "end": 28805, + "start": 28843, + "end": 28848, "loc": { "start": { "line": 695, @@ -92176,8 +92188,8 @@ }, "property": { "type": "Identifier", - "start": 28806, - "end": 28819, + "start": 28849, + "end": 28862, "loc": { "start": { "line": 695, @@ -92194,7 +92206,7 @@ "computed": false, "extra": { "parenthesized": true, - "parenStart": 28799 + "parenStart": 28842 } }, "extra": { @@ -92204,8 +92216,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 28825, - "end": 28833, + "start": 28868, + "end": 28876, "loc": { "start": { "line": 695, @@ -92225,8 +92237,8 @@ }, "consequent": { "type": "MemberExpression", - "start": 28836, - "end": 28855, + "start": 28879, + "end": 28898, "loc": { "start": { "line": 695, @@ -92239,8 +92251,8 @@ }, "object": { "type": "Identifier", - "start": 28836, - "end": 28841, + "start": 28879, + "end": 28884, "loc": { "start": { "line": 695, @@ -92256,8 +92268,8 @@ }, "property": { "type": "Identifier", - "start": 28842, - "end": 28855, + "start": 28885, + "end": 28898, "loc": { "start": { "line": 695, @@ -92275,8 +92287,8 @@ }, "alternate": { "type": "MemberExpression", - "start": 28858, - "end": 28890, + "start": 28901, + "end": 28933, "loc": { "start": { "line": 695, @@ -92289,8 +92301,8 @@ }, "object": { "type": "Identifier", - "start": 28858, - "end": 28874, + "start": 28901, + "end": 28917, "loc": { "start": { "line": 695, @@ -92306,8 +92318,8 @@ }, "property": { "type": "Identifier", - "start": 28875, - "end": 28890, + "start": 28918, + "end": 28933, "loc": { "start": { "line": 695, @@ -92332,8 +92344,8 @@ { "type": "CommentLine", "value": " A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.", - "start": 28704, - "end": 28772, + "start": 28747, + "end": 28815, "loc": { "start": { "line": 694, @@ -92350,8 +92362,8 @@ { "type": "CommentLine", "value": " If this tile is not accessible, we cannot pass it, so we skip this tile.", - "start": 28907, - "end": 28982, + "start": 28950, + "end": 29025, "loc": { "start": { "line": 697, @@ -92367,8 +92379,8 @@ }, { "type": "IfStatement", - "start": 28990, - "end": 29102, + "start": 29033, + "end": 29145, "loc": { "start": { "line": 698, @@ -92381,8 +92393,8 @@ }, "test": { "type": "UnaryExpression", - "start": 28994, - "end": 29039, + "start": 29037, + "end": 29082, "loc": { "start": { "line": 698, @@ -92397,8 +92409,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 28995, - "end": 29039, + "start": 29038, + "end": 29082, "loc": { "start": { "line": 698, @@ -92411,8 +92423,8 @@ }, "callee": { "type": "MemberExpression", - "start": 28995, - "end": 29016, + "start": 29038, + "end": 29059, "loc": { "start": { "line": 698, @@ -92425,8 +92437,8 @@ }, "object": { "type": "ThisExpression", - "start": 28995, - "end": 28999, + "start": 29038, + "end": 29042, "loc": { "start": { "line": 698, @@ -92441,8 +92453,8 @@ }, "property": { "type": "Identifier", - "start": 29000, - "end": 29016, + "start": 29043, + "end": 29059, "loc": { "start": { "line": 698, @@ -92462,8 +92474,8 @@ "arguments": [ { "type": "Identifier", - "start": 29017, - "end": 29022, + "start": 29060, + "end": 29065, "loc": { "start": { "line": 698, @@ -92479,8 +92491,8 @@ }, { "type": "Identifier", - "start": 29024, - "end": 29038, + "start": 29067, + "end": 29081, "loc": { "start": { "line": 698, @@ -92504,8 +92516,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29041, - "end": 29102, + "start": 29084, + "end": 29145, "loc": { "start": { "line": 698, @@ -92519,8 +92531,8 @@ "body": [ { "type": "ReturnStatement", - "start": 29051, - "end": 29093, + "start": 29094, + "end": 29136, "loc": { "start": { "line": 699, @@ -92533,8 +92545,8 @@ }, "argument": { "type": "MemberExpression", - "start": 29058, - "end": 29092, + "start": 29101, + "end": 29135, "loc": { "start": { "line": 699, @@ -92547,8 +92559,8 @@ }, "object": { "type": "Identifier", - "start": 29058, - "end": 29074, + "start": 29101, + "end": 29117, "loc": { "start": { "line": 699, @@ -92564,8 +92576,8 @@ }, "property": { "type": "Identifier", - "start": 29075, - "end": 29092, + "start": 29118, + "end": 29135, "loc": { "start": { "line": 699, @@ -92591,8 +92603,8 @@ { "type": "CommentLine", "value": " If this tile is not accessible, we cannot pass it, so we skip this tile.", - "start": 28907, - "end": 28982, + "start": 28950, + "end": 29025, "loc": { "start": { "line": 697, @@ -92609,8 +92621,8 @@ { "type": "CommentLine", "value": " Accumulate weights of instances on the tile", - "start": 29112, - "end": 29158, + "start": 29155, + "end": 29201, "loc": { "start": { "line": 702, @@ -92626,8 +92638,8 @@ }, { "type": "ForOfStatement", - "start": 29166, - "end": 29700, + "start": 29209, + "end": 29743, "loc": { "start": { "line": 703, @@ -92640,8 +92652,8 @@ }, "left": { "type": "VariableDeclaration", - "start": 29171, - "end": 29185, + "start": 29214, + "end": 29228, "loc": { "start": { "line": 703, @@ -92655,8 +92667,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 29177, - "end": 29185, + "start": 29220, + "end": 29228, "loc": { "start": { "line": 703, @@ -92669,8 +92681,8 @@ }, "id": { "type": "Identifier", - "start": 29177, - "end": 29185, + "start": 29220, + "end": 29228, "loc": { "start": { "line": 703, @@ -92694,8 +92706,8 @@ }, "right": { "type": "CallExpression", - "start": 29189, - "end": 29208, + "start": 29232, + "end": 29251, "loc": { "start": { "line": 703, @@ -92708,8 +92720,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29189, - "end": 29206, + "start": 29232, + "end": 29249, "loc": { "start": { "line": 703, @@ -92722,8 +92734,8 @@ }, "object": { "type": "Identifier", - "start": 29189, - "end": 29194, + "start": 29232, + "end": 29237, "loc": { "start": { "line": 703, @@ -92739,8 +92751,8 @@ }, "property": { "type": "Identifier", - "start": 29195, - "end": 29206, + "start": 29238, + "end": 29249, "loc": { "start": { "line": 703, @@ -92760,8 +92772,8 @@ }, "body": { "type": "BlockStatement", - "start": 29210, - "end": 29700, + "start": 29253, + "end": 29743, "loc": { "start": { "line": 703, @@ -92775,8 +92787,8 @@ "body": [ { "type": "IfStatement", - "start": 29298, - "end": 29346, + "start": 29341, + "end": 29389, "loc": { "start": { "line": 705, @@ -92789,8 +92801,8 @@ }, "test": { "type": "CallExpression", - "start": 29302, - "end": 29335, + "start": 29345, + "end": 29378, "loc": { "start": { "line": 705, @@ -92803,8 +92815,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29302, - "end": 29325, + "start": 29345, + "end": 29368, "loc": { "start": { "line": 705, @@ -92817,8 +92829,8 @@ }, "object": { "type": "Identifier", - "start": 29302, - "end": 29316, + "start": 29345, + "end": 29359, "loc": { "start": { "line": 705, @@ -92835,8 +92847,8 @@ }, "property": { "type": "Identifier", - "start": 29317, - "end": 29325, + "start": 29360, + "end": 29368, "loc": { "start": { "line": 705, @@ -92856,8 +92868,8 @@ "arguments": [ { "type": "Identifier", - "start": 29326, - "end": 29334, + "start": 29369, + "end": 29377, "loc": { "start": { "line": 705, @@ -92876,8 +92888,8 @@ }, "consequent": { "type": "ContinueStatement", - "start": 29337, - "end": 29346, + "start": 29380, + "end": 29389, "loc": { "start": { "line": 705, @@ -92897,8 +92909,8 @@ { "type": "CommentLine", "value": " If this instance is to be excluded. We don't calculate its weight.", - "start": 29220, - "end": 29289, + "start": 29263, + "end": 29332, "loc": { "start": { "line": 704, @@ -92915,8 +92927,8 @@ { "type": "CommentLine", "value": " If this instance is impassable we skip this tile.", - "start": 29357, - "end": 29409, + "start": 29400, + "end": 29452, "loc": { "start": { "line": 707, @@ -92932,8 +92944,8 @@ }, { "type": "IfStatement", - "start": 29418, - "end": 29691, + "start": 29461, + "end": 29734, "loc": { "start": { "line": 708, @@ -92946,8 +92958,8 @@ }, "test": { "type": "CallExpression", - "start": 29422, - "end": 29444, + "start": 29465, + "end": 29487, "loc": { "start": { "line": 708, @@ -92960,8 +92972,8 @@ }, "callee": { "type": "Identifier", - "start": 29422, - "end": 29434, + "start": 29465, + "end": 29477, "loc": { "start": { "line": 708, @@ -92979,8 +92991,8 @@ "arguments": [ { "type": "Identifier", - "start": 29435, - "end": 29443, + "start": 29478, + "end": 29486, "loc": { "start": { "line": 708, @@ -92999,8 +93011,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29446, - "end": 29509, + "start": 29489, + "end": 29552, "loc": { "start": { "line": 708, @@ -93014,8 +93026,8 @@ "body": [ { "type": "ReturnStatement", - "start": 29457, - "end": 29499, + "start": 29500, + "end": 29542, "loc": { "start": { "line": 709, @@ -93028,8 +93040,8 @@ }, "argument": { "type": "MemberExpression", - "start": 29464, - "end": 29498, + "start": 29507, + "end": 29541, "loc": { "start": { "line": 709, @@ -93042,8 +93054,8 @@ }, "object": { "type": "Identifier", - "start": 29464, - "end": 29480, + "start": 29507, + "end": 29523, "loc": { "start": { "line": 709, @@ -93059,8 +93071,8 @@ }, "property": { "type": "Identifier", - "start": 29481, - "end": 29498, + "start": 29524, + "end": 29541, "loc": { "start": { "line": 709, @@ -93082,8 +93094,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 29515, - "end": 29691, + "start": 29558, + "end": 29734, "loc": { "start": { "line": 710, @@ -93097,8 +93109,8 @@ "body": [ { "type": "IfStatement", - "start": 29576, - "end": 29681, + "start": 29619, + "end": 29724, "loc": { "start": { "line": 712, @@ -93111,8 +93123,8 @@ }, "test": { "type": "BinaryExpression", - "start": 29580, - "end": 29623, + "start": 29623, + "end": 29666, "loc": { "start": { "line": 712, @@ -93125,8 +93137,8 @@ }, "left": { "type": "UnaryExpression", - "start": 29580, - "end": 29610, + "start": 29623, + "end": 29653, "loc": { "start": { "line": 712, @@ -93141,8 +93153,8 @@ "prefix": true, "argument": { "type": "MemberExpression", - "start": 29587, - "end": 29609, + "start": 29630, + "end": 29652, "loc": { "start": { "line": 712, @@ -93155,8 +93167,8 @@ }, "object": { "type": "Identifier", - "start": 29587, - "end": 29595, + "start": 29630, + "end": 29638, "loc": { "start": { "line": 712, @@ -93173,8 +93185,8 @@ }, "property": { "type": "Identifier", - "start": 29596, - "end": 29609, + "start": 29639, + "end": 29652, "loc": { "start": { "line": 712, @@ -93192,7 +93204,7 @@ "leadingComments": null, "extra": { "parenthesized": true, - "parenStart": 29586 + "parenStart": 29629 } }, "extra": { @@ -93203,8 +93215,8 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 29615, - "end": 29623, + "start": 29658, + "end": 29666, "loc": { "start": { "line": 712, @@ -93225,8 +93237,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29625, - "end": 29681, + "start": 29668, + "end": 29724, "loc": { "start": { "line": 712, @@ -93240,8 +93252,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 29637, - "end": 29670, + "start": 29680, + "end": 29713, "loc": { "start": { "line": 713, @@ -93254,8 +93266,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 29637, - "end": 29669, + "start": 29680, + "end": 29712, "loc": { "start": { "line": 713, @@ -93269,8 +93281,8 @@ "operator": "+=", "left": { "type": "Identifier", - "start": 29637, - "end": 29643, + "start": 29680, + "end": 29686, "loc": { "start": { "line": 713, @@ -93286,8 +93298,8 @@ }, "right": { "type": "MemberExpression", - "start": 29647, - "end": 29669, + "start": 29690, + "end": 29712, "loc": { "start": { "line": 713, @@ -93300,8 +93312,8 @@ }, "object": { "type": "Identifier", - "start": 29647, - "end": 29655, + "start": 29690, + "end": 29698, "loc": { "start": { "line": 713, @@ -93317,8 +93329,8 @@ }, "property": { "type": "Identifier", - "start": 29656, - "end": 29669, + "start": 29699, + "end": 29712, "loc": { "start": { "line": 713, @@ -93344,8 +93356,8 @@ { "type": "CommentLine", "value": " We accumulate the weight of instances", - "start": 29526, - "end": 29566, + "start": 29569, + "end": 29609, "loc": { "start": { "line": 711, @@ -93366,8 +93378,8 @@ { "type": "CommentLine", "value": " If this instance is impassable we skip this tile.", - "start": 29357, - "end": 29409, + "start": 29400, + "end": 29452, "loc": { "start": { "line": 707, @@ -93389,8 +93401,8 @@ { "type": "CommentLine", "value": " Accumulate weights of instances on the tile", - "start": 29112, - "end": 29158, + "start": 29155, + "end": 29201, "loc": { "start": { "line": 702, @@ -93407,8 +93419,8 @@ { "type": "CommentLine", "value": " Add weight to acceptedTiles if not already present", - "start": 29710, - "end": 29763, + "start": 29753, + "end": 29806, "loc": { "start": { "line": 718, @@ -93424,8 +93436,8 @@ }, { "type": "IfStatement", - "start": 29771, - "end": 30013, + "start": 29814, + "end": 30056, "loc": { "start": { "line": 719, @@ -93438,8 +93450,8 @@ }, "test": { "type": "LogicalExpression", - "start": 29775, - "end": 29867, + "start": 29818, + "end": 29910, "loc": { "start": { "line": 719, @@ -93452,8 +93464,8 @@ }, "left": { "type": "BinaryExpression", - "start": 29775, - "end": 29820, + "start": 29818, + "end": 29863, "loc": { "start": { "line": 719, @@ -93466,8 +93478,8 @@ }, "left": { "type": "Identifier", - "start": 29775, - "end": 29781, + "start": 29818, + "end": 29824, "loc": { "start": { "line": 719, @@ -93485,8 +93497,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 29786, - "end": 29820, + "start": 29829, + "end": 29863, "loc": { "start": { "line": 719, @@ -93499,8 +93511,8 @@ }, "object": { "type": "Identifier", - "start": 29786, - "end": 29802, + "start": 29829, + "end": 29845, "loc": { "start": { "line": 719, @@ -93516,8 +93528,8 @@ }, "property": { "type": "Identifier", - "start": 29803, - "end": 29820, + "start": 29846, + "end": 29863, "loc": { "start": { "line": 719, @@ -93538,8 +93550,8 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 29824, - "end": 29867, + "start": 29867, + "end": 29910, "loc": { "start": { "line": 719, @@ -93552,8 +93564,8 @@ }, "left": { "type": "Identifier", - "start": 29824, - "end": 29830, + "start": 29867, + "end": 29873, "loc": { "start": { "line": 719, @@ -93570,8 +93582,8 @@ "operator": "!==", "right": { "type": "MemberExpression", - "start": 29835, - "end": 29867, + "start": 29878, + "end": 29910, "loc": { "start": { "line": 719, @@ -93584,8 +93596,8 @@ }, "object": { "type": "Identifier", - "start": 29835, - "end": 29851, + "start": 29878, + "end": 29894, "loc": { "start": { "line": 719, @@ -93601,8 +93613,8 @@ }, "property": { "type": "Identifier", - "start": 29852, - "end": 29867, + "start": 29895, + "end": 29910, "loc": { "start": { "line": 719, @@ -93623,8 +93635,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 29869, - "end": 30013, + "start": 29912, + "end": 30056, "loc": { "start": { "line": 719, @@ -93638,8 +93650,8 @@ "body": [ { "type": "IfStatement", - "start": 29879, - "end": 29943, + "start": 29922, + "end": 29986, "loc": { "start": { "line": 720, @@ -93652,8 +93664,8 @@ }, "test": { "type": "UnaryExpression", - "start": 29883, - "end": 29914, + "start": 29926, + "end": 29957, "loc": { "start": { "line": 720, @@ -93668,8 +93680,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 29884, - "end": 29914, + "start": 29927, + "end": 29957, "loc": { "start": { "line": 720, @@ -93682,8 +93694,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29884, - "end": 29906, + "start": 29927, + "end": 29949, "loc": { "start": { "line": 720, @@ -93696,8 +93708,8 @@ }, "object": { "type": "Identifier", - "start": 29884, - "end": 29897, + "start": 29927, + "end": 29940, "loc": { "start": { "line": 720, @@ -93713,8 +93725,8 @@ }, "property": { "type": "Identifier", - "start": 29898, - "end": 29906, + "start": 29941, + "end": 29949, "loc": { "start": { "line": 720, @@ -93733,8 +93745,8 @@ "arguments": [ { "type": "Identifier", - "start": 29907, - "end": 29913, + "start": 29950, + "end": 29956, "loc": { "start": { "line": 720, @@ -93756,8 +93768,8 @@ }, "consequent": { "type": "ExpressionStatement", - "start": 29916, - "end": 29943, + "start": 29959, + "end": 29986, "loc": { "start": { "line": 720, @@ -93770,8 +93782,8 @@ }, "expression": { "type": "CallExpression", - "start": 29916, - "end": 29942, + "start": 29959, + "end": 29985, "loc": { "start": { "line": 720, @@ -93784,8 +93796,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29916, - "end": 29934, + "start": 29959, + "end": 29977, "loc": { "start": { "line": 720, @@ -93798,8 +93810,8 @@ }, "object": { "type": "Identifier", - "start": 29916, - "end": 29929, + "start": 29959, + "end": 29972, "loc": { "start": { "line": 720, @@ -93815,8 +93827,8 @@ }, "property": { "type": "Identifier", - "start": 29930, - "end": 29934, + "start": 29973, + "end": 29977, "loc": { "start": { "line": 720, @@ -93835,8 +93847,8 @@ "arguments": [ { "type": "Identifier", - "start": 29935, - "end": 29941, + "start": 29978, + "end": 29984, "loc": { "start": { "line": 720, @@ -93857,8 +93869,8 @@ }, { "type": "IfStatement", - "start": 29952, - "end": 30004, + "start": 29995, + "end": 30047, "loc": { "start": { "line": 721, @@ -93871,8 +93883,8 @@ }, "test": { "type": "UnaryExpression", - "start": 29956, - "end": 29981, + "start": 29999, + "end": 30024, "loc": { "start": { "line": 721, @@ -93887,8 +93899,8 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 29957, - "end": 29981, + "start": 30000, + "end": 30024, "loc": { "start": { "line": 721, @@ -93901,8 +93913,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29957, - "end": 29973, + "start": 30000, + "end": 30016, "loc": { "start": { "line": 721, @@ -93915,8 +93927,8 @@ }, "object": { "type": "Identifier", - "start": 29957, - "end": 29964, + "start": 30000, + "end": 30007, "loc": { "start": { "line": 721, @@ -93932,8 +93944,8 @@ }, "property": { "type": "Identifier", - "start": 29965, - "end": 29973, + "start": 30008, + "end": 30016, "loc": { "start": { "line": 721, @@ -93952,8 +93964,8 @@ "arguments": [ { "type": "Identifier", - "start": 29974, - "end": 29980, + "start": 30017, + "end": 30023, "loc": { "start": { "line": 721, @@ -93975,8 +93987,8 @@ }, "consequent": { "type": "ExpressionStatement", - "start": 29983, - "end": 30004, + "start": 30026, + "end": 30047, "loc": { "start": { "line": 721, @@ -93989,8 +94001,8 @@ }, "expression": { "type": "CallExpression", - "start": 29983, - "end": 30003, + "start": 30026, + "end": 30046, "loc": { "start": { "line": 721, @@ -94003,8 +94015,8 @@ }, "callee": { "type": "MemberExpression", - "start": 29983, - "end": 29995, + "start": 30026, + "end": 30038, "loc": { "start": { "line": 721, @@ -94017,8 +94029,8 @@ }, "object": { "type": "Identifier", - "start": 29983, - "end": 29990, + "start": 30026, + "end": 30033, "loc": { "start": { "line": 721, @@ -94034,8 +94046,8 @@ }, "property": { "type": "Identifier", - "start": 29991, - "end": 29995, + "start": 30034, + "end": 30038, "loc": { "start": { "line": 721, @@ -94054,8 +94066,8 @@ "arguments": [ { "type": "Identifier", - "start": 29996, - "end": 30002, + "start": 30039, + "end": 30045, "loc": { "start": { "line": 721, @@ -94082,8 +94094,8 @@ { "type": "CommentLine", "value": " Add weight to acceptedTiles if not already present", - "start": 29710, - "end": 29763, + "start": 29753, + "end": 29806, "loc": { "start": { "line": 718, @@ -94099,8 +94111,8 @@ }, { "type": "ReturnStatement", - "start": 30023, - "end": 30037, + "start": 30066, + "end": 30080, "loc": { "start": { "line": 724, @@ -94113,8 +94125,8 @@ }, "argument": { "type": "Identifier", - "start": 30030, - "end": 30036, + "start": 30073, + "end": 30079, "loc": { "start": { "line": 724, @@ -94143,8 +94155,8 @@ { "type": "CommentLine", "value": " Loop through the tiles array to build weights and accepted tile lists.", - "start": 28221, - "end": 28294, + "start": 28264, + "end": 28337, "loc": { "start": { "line": 688, @@ -94160,8 +94172,8 @@ }, { "type": "ReturnStatement", - "start": 30056, - "end": 30202, + "start": 30099, + "end": 30245, "loc": { "start": { "line": 727, @@ -94174,8 +94186,8 @@ }, "argument": { "type": "ObjectExpression", - "start": 30063, - "end": 30201, + "start": 30106, + "end": 30244, "loc": { "start": { "line": 727, @@ -94189,8 +94201,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 30073, - "end": 30103, + "start": 30116, + "end": 30146, "loc": { "start": { "line": 728, @@ -94206,8 +94218,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 30073, - "end": 30088, + "start": 30116, + "end": 30131, "loc": { "start": { "line": 728, @@ -94226,8 +94238,8 @@ }, "value": { "type": "Identifier", - "start": 30090, - "end": 30103, + "start": 30133, + "end": 30146, "loc": { "start": { "line": 728, @@ -94244,8 +94256,8 @@ }, { "type": "ObjectProperty", - "start": 30113, - "end": 30164, + "start": 30156, + "end": 30207, "loc": { "start": { "line": 729, @@ -94261,8 +94273,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 30113, - "end": 30119, + "start": 30156, + "end": 30162, "loc": { "start": { "line": 729, @@ -94281,8 +94293,8 @@ }, "value": { "type": "CallExpression", - "start": 30121, - "end": 30164, + "start": 30164, + "end": 30207, "loc": { "start": { "line": 729, @@ -94295,8 +94307,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30121, - "end": 30147, + "start": 30164, + "end": 30190, "loc": { "start": { "line": 729, @@ -94309,8 +94321,8 @@ }, "object": { "type": "ThisExpression", - "start": 30121, - "end": 30125, + "start": 30164, + "end": 30168, "loc": { "start": { "line": 729, @@ -94324,8 +94336,8 @@ }, "property": { "type": "Identifier", - "start": 30126, - "end": 30147, + "start": 30169, + "end": 30190, "loc": { "start": { "line": 729, @@ -94344,8 +94356,8 @@ "arguments": [ { "type": "Identifier", - "start": 30148, - "end": 30152, + "start": 30191, + "end": 30195, "loc": { "start": { "line": 729, @@ -94361,8 +94373,8 @@ }, { "type": "MemberExpression", - "start": 30154, - "end": 30163, + "start": 30197, + "end": 30206, "loc": { "start": { "line": 729, @@ -94375,8 +94387,8 @@ }, "object": { "type": "Identifier", - "start": 30154, - "end": 30161, + "start": 30197, + "end": 30204, "loc": { "start": { "line": 729, @@ -94392,8 +94404,8 @@ }, "property": { "type": "Identifier", - "start": 30162, - "end": 30163, + "start": 30205, + "end": 30206, "loc": { "start": { "line": 729, @@ -94414,8 +94426,8 @@ }, { "type": "ObjectProperty", - "start": 30174, - "end": 30192, + "start": 30217, + "end": 30235, "loc": { "start": { "line": 730, @@ -94431,8 +94443,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 30174, - "end": 30183, + "start": 30217, + "end": 30226, "loc": { "start": { "line": 730, @@ -94451,8 +94463,8 @@ }, "value": { "type": "Identifier", - "start": 30185, - "end": 30192, + "start": 30228, + "end": 30235, "loc": { "start": { "line": 730, @@ -94475,8 +94487,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 30215, - "end": 30322, + "start": 30258, + "end": 30365, "loc": { "start": { "line": 732, @@ -94490,8 +94502,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 30223, - "end": 30301, + "start": 30266, + "end": 30344, "loc": { "start": { "line": 733, @@ -94504,8 +94516,8 @@ }, "expression": { "type": "CallExpression", - "start": 30223, - "end": 30300, + "start": 30266, + "end": 30343, "loc": { "start": { "line": 733, @@ -94518,8 +94530,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30223, - "end": 30265, + "start": 30266, + "end": 30308, "loc": { "start": { "line": 733, @@ -94532,8 +94544,8 @@ }, "object": { "type": "CallExpression", - "start": 30223, - "end": 30259, + "start": 30266, + "end": 30302, "loc": { "start": { "line": 733, @@ -94546,8 +94558,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30223, - "end": 30241, + "start": 30266, + "end": 30284, "loc": { "start": { "line": 733, @@ -94560,8 +94572,8 @@ }, "object": { "type": "MemberExpression", - "start": 30223, - "end": 30234, + "start": 30266, + "end": 30277, "loc": { "start": { "line": 733, @@ -94574,8 +94586,8 @@ }, "object": { "type": "ThisExpression", - "start": 30223, - "end": 30227, + "start": 30266, + "end": 30270, "loc": { "start": { "line": 733, @@ -94589,8 +94601,8 @@ }, "property": { "type": "Identifier", - "start": 30228, - "end": 30234, + "start": 30271, + "end": 30277, "loc": { "start": { "line": 733, @@ -94608,8 +94620,8 @@ }, "property": { "type": "Identifier", - "start": 30235, - "end": 30241, + "start": 30278, + "end": 30284, "loc": { "start": { "line": 733, @@ -94628,8 +94640,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30242, - "end": 30258, + "start": 30285, + "end": 30301, "loc": { "start": { "line": 733, @@ -94650,8 +94662,8 @@ }, "property": { "type": "Identifier", - "start": 30260, - "end": 30265, + "start": 30303, + "end": 30308, "loc": { "start": { "line": 733, @@ -94670,8 +94682,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30266, - "end": 30299, + "start": 30309, + "end": 30342, "loc": { "start": { "line": 733, @@ -94693,8 +94705,8 @@ }, { "type": "ReturnStatement", - "start": 30308, - "end": 30315, + "start": 30351, + "end": 30358, "loc": { "start": { "line": 734, @@ -94714,8 +94726,8 @@ { "type": "CommentLine", "value": " We check if this is a valid mapname found in VYLO.", - "start": 26911, - "end": 26964, + "start": 26954, + "end": 27007, "loc": { "start": { "line": 664, @@ -94734,8 +94746,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 30334, - "end": 30426, + "start": 30377, + "end": 30469, "loc": { "start": { "line": 736, @@ -94749,8 +94761,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 30341, - "end": 30420, + "start": 30384, + "end": 30463, "loc": { "start": { "line": 737, @@ -94763,8 +94775,8 @@ }, "expression": { "type": "CallExpression", - "start": 30341, - "end": 30419, + "start": 30384, + "end": 30462, "loc": { "start": { "line": 737, @@ -94777,8 +94789,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30341, - "end": 30383, + "start": 30384, + "end": 30426, "loc": { "start": { "line": 737, @@ -94791,8 +94803,8 @@ }, "object": { "type": "CallExpression", - "start": 30341, - "end": 30377, + "start": 30384, + "end": 30420, "loc": { "start": { "line": 737, @@ -94805,8 +94817,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30341, - "end": 30359, + "start": 30384, + "end": 30402, "loc": { "start": { "line": 737, @@ -94819,8 +94831,8 @@ }, "object": { "type": "MemberExpression", - "start": 30341, - "end": 30352, + "start": 30384, + "end": 30395, "loc": { "start": { "line": 737, @@ -94833,8 +94845,8 @@ }, "object": { "type": "ThisExpression", - "start": 30341, - "end": 30345, + "start": 30384, + "end": 30388, "loc": { "start": { "line": 737, @@ -94848,8 +94860,8 @@ }, "property": { "type": "Identifier", - "start": 30346, - "end": 30352, + "start": 30389, + "end": 30395, "loc": { "start": { "line": 737, @@ -94867,8 +94879,8 @@ }, "property": { "type": "Identifier", - "start": 30353, - "end": 30359, + "start": 30396, + "end": 30402, "loc": { "start": { "line": 737, @@ -94887,8 +94899,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30360, - "end": 30376, + "start": 30403, + "end": 30419, "loc": { "start": { "line": 737, @@ -94909,8 +94921,8 @@ }, "property": { "type": "Identifier", - "start": 30378, - "end": 30383, + "start": 30421, + "end": 30426, "loc": { "start": { "line": 737, @@ -94929,8 +94941,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30384, - "end": 30418, + "start": 30427, + "end": 30461, "loc": { "start": { "line": 737, @@ -94959,8 +94971,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 30437, - "end": 30521, + "start": 30480, + "end": 30564, "loc": { "start": { "line": 739, @@ -94974,8 +94986,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 30443, - "end": 30516, + "start": 30486, + "end": 30559, "loc": { "start": { "line": 740, @@ -94988,8 +95000,8 @@ }, "expression": { "type": "CallExpression", - "start": 30443, - "end": 30515, + "start": 30486, + "end": 30558, "loc": { "start": { "line": 740, @@ -95002,8 +95014,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30443, - "end": 30485, + "start": 30486, + "end": 30528, "loc": { "start": { "line": 740, @@ -95016,8 +95028,8 @@ }, "object": { "type": "CallExpression", - "start": 30443, - "end": 30479, + "start": 30486, + "end": 30522, "loc": { "start": { "line": 740, @@ -95030,8 +95042,8 @@ }, "callee": { "type": "MemberExpression", - "start": 30443, - "end": 30461, + "start": 30486, + "end": 30504, "loc": { "start": { "line": 740, @@ -95044,8 +95056,8 @@ }, "object": { "type": "MemberExpression", - "start": 30443, - "end": 30454, + "start": 30486, + "end": 30497, "loc": { "start": { "line": 740, @@ -95058,8 +95070,8 @@ }, "object": { "type": "ThisExpression", - "start": 30443, - "end": 30447, + "start": 30486, + "end": 30490, "loc": { "start": { "line": 740, @@ -95073,8 +95085,8 @@ }, "property": { "type": "Identifier", - "start": 30448, - "end": 30454, + "start": 30491, + "end": 30497, "loc": { "start": { "line": 740, @@ -95092,8 +95104,8 @@ }, "property": { "type": "Identifier", - "start": 30455, - "end": 30461, + "start": 30498, + "end": 30504, "loc": { "start": { "line": 740, @@ -95112,8 +95124,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30462, - "end": 30478, + "start": 30505, + "end": 30521, "loc": { "start": { "line": 740, @@ -95134,8 +95146,8 @@ }, "property": { "type": "Identifier", - "start": 30480, - "end": 30485, + "start": 30523, + "end": 30528, "loc": { "start": { "line": 740, @@ -95154,8 +95166,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 30486, - "end": 30514, + "start": 30529, + "end": 30557, "loc": { "start": { "line": 740, @@ -95186,8 +95198,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t ", - "start": 26398, - "end": 26779, + "start": 26441, + "end": 26822, "loc": { "start": { "line": 654, @@ -95226,8 +95238,8 @@ { "type": "CommentBlock", "value": "*\r\n * The module instantiated for use.\r\n * @type {PathwaySingleton}\r\n ", - "start": 30530, - "end": 30604, + "start": 30573, + "end": 30647, "loc": { "start": { "line": 744, @@ -95588,9 +95600,9 @@ }, { "type": "CommentLine", - "value": " If this instance is not on a mapname.", + "value": " If this instance is not on a map.", "start": 5027, - "end": 5067, + "end": 5063, "loc": { "start": { "line": 137, @@ -95598,15 +95610,15 @@ }, "end": { "line": 137, - "column": 43 + "column": 39 } } }, { "type": "CommentLine", "value": " If there is no destination object passed return.", - "start": 5226, - "end": 5277, + "start": 5222, + "end": 5273, "loc": { "start": { "line": 143, @@ -95621,8 +95633,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 5459, - "end": 5501, + "start": 5455, + "end": 5497, "loc": { "start": { "line": 149, @@ -95637,8 +95649,8 @@ { "type": "CommentLine", "value": " Set the instance data", - "start": 5594, - "end": 5618, + "start": 5590, + "end": 5614, "loc": { "start": { "line": 153, @@ -95653,8 +95665,8 @@ { "type": "CommentLine", "value": " The current position of the instance.", - "start": 5749, - "end": 5789, + "start": 5745, + "end": 5785, "loc": { "start": { "line": 161, @@ -95669,8 +95681,8 @@ { "type": "CommentLine", "value": " The previous position of the instance in the tick before.", - "start": 5835, - "end": 5895, + "start": 5831, + "end": 5891, "loc": { "start": { "line": 163, @@ -95685,8 +95697,8 @@ { "type": "CommentLine", "value": " The stuck counter of this instance. When this instance is in the same position for multiple ticks, this value is added onto up until -", - "start": 5942, - "end": 6079, + "start": 5938, + "end": 6075, "loc": { "start": { "line": 165, @@ -95701,8 +95713,8 @@ { "type": "CommentLine", "value": " the max stuck counter is reached and the `stuck` event is called.", - "start": 6086, - "end": 6154, + "start": 6082, + "end": 6150, "loc": { "start": { "line": 166, @@ -95717,8 +95729,8 @@ { "type": "CommentLine", "value": " ID of the path that was generated. Used to cancel the path.", - "start": 6257, - "end": 6319, + "start": 6253, + "end": 6315, "loc": { "start": { "line": 169, @@ -95733,8 +95745,8 @@ { "type": "CommentLine", "value": " If you have a large grid, then it is possible that these calculations could slow down the browser. ", - "start": 6710, - "end": 6812, + "start": 6706, + "end": 6808, "loc": { "start": { "line": 183, @@ -95749,8 +95761,8 @@ { "type": "CommentLine", "value": " For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation", - "start": 6818, - "end": 6913, + "start": 6814, + "end": 6909, "loc": { "start": { "line": 184, @@ -95765,8 +95777,8 @@ { "type": "CommentLine", "value": " https://github.com/prettymuchbryce/easystarjs", - "start": 6919, - "end": 6967, + "start": 6915, + "end": 6963, "loc": { "start": { "line": 185, @@ -95781,8 +95793,8 @@ { "type": "CommentLine", "value": " Assign the instance data", - "start": 7035, - "end": 7062, + "start": 7031, + "end": 7058, "loc": { "start": { "line": 187, @@ -95797,8 +95809,8 @@ { "type": "CommentLine", "value": " If this instance has data already, we reset it", - "start": 7137, - "end": 7186, + "start": 7133, + "end": 7182, "loc": { "start": { "line": 190, @@ -95812,9 +95824,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n\t\t\t * An exclusion list of tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", - "start": 7225, - "end": 7292, + "value": "*\r\n\t\t\t * An exclusion list of instances and tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", + "start": 7221, + "end": 7302, "loc": { "start": { "line": 194, @@ -95829,8 +95841,8 @@ { "type": "CommentLine", "value": " If there are options passed. Parse them.", - "start": 7325, - "end": 7368, + "start": 7335, + "end": 7378, "loc": { "start": { "line": 200, @@ -95845,8 +95857,8 @@ { "type": "CommentLine", "value": " If max stuck counter is found in options, set it.", - "start": 7415, - "end": 7467, + "start": 7425, + "end": 7477, "loc": { "start": { "line": 202, @@ -95861,8 +95873,8 @@ { "type": "CommentLine", "value": " Enable diagonals if found in passed options.", - "start": 7603, - "end": 7650, + "start": 7613, + "end": 7660, "loc": { "start": { "line": 207, @@ -95877,8 +95889,8 @@ { "type": "CommentLine", "value": " This can cause some \"issues\" such as trying to cut through corners.", - "start": 7656, - "end": 7726, + "start": 7666, + "end": 7736, "loc": { "start": { "line": 208, @@ -95893,8 +95905,8 @@ { "type": "CommentLine", "value": " Set the positioning mode", - "start": 7869, - "end": 7896, + "start": 7879, + "end": 7906, "loc": { "start": { "line": 214, @@ -95909,8 +95921,8 @@ { "type": "CommentLine", "value": " Get the mode, if an invalid mode is passed, we default to the default mode.", - "start": 7929, - "end": 8007, + "start": 7939, + "end": 8017, "loc": { "start": { "line": 216, @@ -95925,8 +95937,8 @@ { "type": "CommentLine", "value": " Assign pixels per second ", - "start": 8186, - "end": 8214, + "start": 8196, + "end": 8224, "loc": { "start": { "line": 221, @@ -95941,8 +95953,8 @@ { "type": "CommentLine", "value": " Assign the min distance", - "start": 8350, - "end": 8376, + "start": 8360, + "end": 8386, "loc": { "start": { "line": 226, @@ -95957,8 +95969,8 @@ { "type": "CommentLine", "value": " Assign events", - "start": 8500, - "end": 8516, + "start": 8510, + "end": 8526, "loc": { "start": { "line": 231, @@ -95972,9 +95984,9 @@ }, { "type": "CommentLine", - "value": " Copy the contents of the exclude array to the exclude list we manage.", - "start": 9048, - "end": 9120, + "value": " Copy the contents of the exclude array to the exclude array we manage.", + "start": 9058, + "end": 9131, "loc": { "start": { "line": 248, @@ -95982,15 +95994,15 @@ }, "end": { "line": 248, - "column": 76 + "column": 77 } } }, { "type": "CommentLine", - "value": " We add the instance to the exclude list so that it is excluded.", - "start": 9229, - "end": 9295, + "value": " We add the instance to the exclude array so that it is excluded.", + "start": 9240, + "end": 9307, "loc": { "start": { "line": 254, @@ -95998,15 +96010,15 @@ }, "end": { "line": 254, - "column": 69 + "column": 70 } } }, { "type": "CommentLine", "value": " Build the 2D array grid that represents the map", - "start": 9386, - "end": 9436, + "start": 9398, + "end": 9448, "loc": { "start": { "line": 259, @@ -96021,8 +96033,8 @@ { "type": "CommentLine", "value": " Assign the grid to easystar", - "start": 9520, - "end": 9550, + "start": 9532, + "end": 9562, "loc": { "start": { "line": 262, @@ -96037,8 +96049,8 @@ { "type": "CommentLine", "value": " Assign the weight of each tile", - "start": 9610, - "end": 9643, + "start": 9622, + "end": 9655, "loc": { "start": { "line": 265, @@ -96053,8 +96065,8 @@ { "type": "CommentLine", "value": " Assign what tiles can be used", - "start": 9760, - "end": 9792, + "start": 9772, + "end": 9804, "loc": { "start": { "line": 270, @@ -96069,8 +96081,8 @@ { "type": "CommentLine", "value": " Grab the pos of the instance so we can locate the starting tile its on.", - "start": 9869, - "end": 9943, + "start": 9881, + "end": 9955, "loc": { "start": { "line": 273, @@ -96085,8 +96097,8 @@ { "type": "CommentLine", "value": " This is also used as the startingNode position.", - "start": 9948, - "end": 9998, + "start": 9960, + "end": 10010, "loc": { "start": { "line": 274, @@ -96101,8 +96113,8 @@ { "type": "CommentLine", "value": " Get the origin tile the instance is on.", - "start": 10073, - "end": 10115, + "start": 10085, + "end": 10127, "loc": { "start": { "line": 276, @@ -96117,8 +96129,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 10224, - "end": 10273, + "start": 10236, + "end": 10285, "loc": { "start": { "line": 278, @@ -96133,8 +96145,8 @@ { "type": "CommentLine", "value": " Get the end nodes position so we can get the destinationTile", - "start": 10340, - "end": 10403, + "start": 10352, + "end": 10415, "loc": { "start": { "line": 281, @@ -96148,9 +96160,9 @@ }, { "type": "CommentLine", - "value": " Get the end time tile", - "start": 10739, - "end": 10763, + "value": " Get the end tile", + "start": 10751, + "end": 10770, "loc": { "start": { "line": 284, @@ -96158,15 +96170,15 @@ }, "end": { "line": 284, - "column": 27 + "column": 22 } } }, { "type": "CommentLine", "value": " Make sure these have resolved to actual tiles.", - "start": 10862, - "end": 10911, + "start": 10869, + "end": 10918, "loc": { "start": { "line": 287, @@ -96178,18 +96190,34 @@ } } }, + { + "type": "CommentLine", + "value": " Check if the origin and end tile are accessible", + "start": 10965, + "end": 11015, + "loc": { + "start": { + "line": 289, + "column": 4 + }, + "end": { + "line": 289, + "column": 54 + } + } + }, { "type": "CommentLine", "value": " Get the start node from the originTile", - "start": 11073, - "end": 11114, + "start": 11136, + "end": 11177, "loc": { "start": { - "line": 290, + "line": 291, "column": 5 }, "end": { - "line": 290, + "line": 291, "column": 46 } } @@ -96197,15 +96225,15 @@ { "type": "CommentLine", "value": " Get the end node from the destinationTile", - "start": 11179, - "end": 11223, + "start": 11242, + "end": 11286, "loc": { "start": { - "line": 293, + "line": 294, "column": 5 }, "end": { - "line": 293, + "line": 294, "column": 49 } } @@ -96213,15 +96241,15 @@ { "type": "CommentLine", "value": " Generate the path for the player", - "start": 11286, - "end": 11321, + "start": 11349, + "end": 11384, "loc": { "start": { - "line": 296, + "line": 297, "column": 5 }, "end": { - "line": 296, + "line": 297, "column": 40 } } @@ -96229,40 +96257,40 @@ { "type": "CommentLine", "value": " If the origin tile or end tile is not accessible to be walked on then return no path found.", - "start": 11430, - "end": 11524, + "start": 11493, + "end": 11587, "loc": { "start": { - "line": 298, + "line": 299, "column": 4 }, "end": { - "line": 298, + "line": 299, "column": 98 } } }, { "type": "CommentLine", - "value": " So fire the path not found event.\t", - "start": 11545, - "end": 11582, + "value": " Fire the path not found event.\t", + "start": 11608, + "end": 11642, "loc": { "start": { - "line": 300, + "line": 301, "column": 5 }, "end": { - "line": 300, - "column": 42 + "line": 301, + "column": 39 } } }, { "type": "CommentBlock", "value": "*\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t ", - "start": 12018, - "end": 12134, + "start": 12064, + "end": 12180, "loc": { "start": { "line": 315, @@ -96277,8 +96305,8 @@ { "type": "CommentLine", "value": " Add this instance to being tracked.", - "start": 12159, - "end": 12197, + "start": 12205, + "end": 12243, "loc": { "start": { "line": 321, @@ -96293,8 +96321,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t ", - "start": 12303, - "end": 12448, + "start": 12349, + "end": 12494, "loc": { "start": { "line": 326, @@ -96309,8 +96337,8 @@ { "type": "CommentLine", "value": " Remove this instance from being tracked.", - "start": 12475, - "end": 12518, + "start": 12521, + "end": 12564, "loc": { "start": { "line": 332, @@ -96325,8 +96353,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t ", - "start": 12658, - "end": 12791, + "start": 12704, + "end": 12837, "loc": { "start": { "line": 337, @@ -96341,8 +96369,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 12814, - "end": 12856, + "start": 12860, + "end": 12902, "loc": { "start": { "line": 342, @@ -96357,8 +96385,8 @@ { "type": "CommentLine", "value": " We are ending the pathfinding. So we get the path ID so we can cancel calculations being made for this path.", - "start": 12945, - "end": 13056, + "start": 12991, + "end": 13102, "loc": { "start": { "line": 345, @@ -96373,8 +96401,8 @@ { "type": "CommentLine", "value": " Disable diagonals in the event they were enabled in a previous call", - "start": 13191, - "end": 13261, + "start": 13237, + "end": 13307, "loc": { "start": { "line": 350, @@ -96389,8 +96417,8 @@ { "type": "CommentLine", "value": " Disable corner cutting in the event it was enabled in a previous call", - "start": 13312, - "end": 13384, + "start": 13358, + "end": 13430, "loc": { "start": { "line": 352, @@ -96405,8 +96433,8 @@ { "type": "CommentLine", "value": " Reset trajectory data", - "start": 13439, - "end": 13463, + "start": 13485, + "end": 13509, "loc": { "start": { "line": 354, @@ -96421,8 +96449,8 @@ { "type": "CommentLine", "value": " Reset events", - "start": 13625, - "end": 13640, + "start": 13671, + "end": 13686, "loc": { "start": { "line": 359, @@ -96437,8 +96465,8 @@ { "type": "CommentLine", "value": " Reset stuck counter", - "start": 13827, - "end": 13849, + "start": 13873, + "end": 13895, "loc": { "start": { "line": 364, @@ -96453,8 +96481,8 @@ { "type": "CommentLine", "value": " Reset the max stuck counter", - "start": 13889, - "end": 13919, + "start": 13935, + "end": 13965, "loc": { "start": { "line": 366, @@ -96468,9 +96496,9 @@ }, { "type": "CommentLine", - "value": " Empty path(s) array", - "start": 13995, - "end": 14017, + "value": " Empty path array", + "start": 14041, + "end": 14060, "loc": { "start": { "line": 368, @@ -96478,15 +96506,15 @@ }, "end": { "line": 368, - "column": 25 + "column": 22 } } }, { "type": "CommentLine", "value": " Reset it to not being moved.", - "start": 14056, - "end": 14087, + "start": 14099, + "end": 14130, "loc": { "start": { "line": 370, @@ -96501,8 +96529,8 @@ { "type": "CommentLine", "value": " Reset the mode", - "start": 14125, - "end": 14142, + "start": 14168, + "end": 14185, "loc": { "start": { "line": 372, @@ -96517,8 +96545,8 @@ { "type": "CommentLine", "value": " Reset the pixels per second.", - "start": 14184, - "end": 14215, + "start": 14227, + "end": 14258, "loc": { "start": { "line": 374, @@ -96533,8 +96561,8 @@ { "type": "CommentLine", "value": " Reset the min distance", - "start": 14299, - "end": 14324, + "start": 14342, + "end": 14367, "loc": { "start": { "line": 376, @@ -96549,8 +96577,8 @@ { "type": "CommentLine", "value": " Stop instance from moving via VYLO API.", - "start": 14403, - "end": 14445, + "start": 14446, + "end": 14488, "loc": { "start": { "line": 378, @@ -96565,8 +96593,8 @@ { "type": "CommentLine", "value": " Untrack pInstance as an active instance.", - "start": 14472, - "end": 14515, + "start": 14515, + "end": 14558, "loc": { "start": { "line": 380, @@ -96581,8 +96609,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t ", - "start": 14703, - "end": 14965, + "start": 14746, + "end": 15008, "loc": { "start": { "line": 386, @@ -96597,8 +96625,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t ", - "start": 15350, - "end": 15422, + "start": 15393, + "end": 15465, "loc": { "start": { "line": 400, @@ -96613,8 +96641,8 @@ { "type": "CommentLine", "value": " Get current timestamp", - "start": 15439, - "end": 15463, + "start": 15482, + "end": 15506, "loc": { "start": { "line": 405, @@ -96629,8 +96657,8 @@ { "type": "CommentLine", "value": " Get the elapsed ms from the last tick", - "start": 15494, - "end": 15534, + "start": 15537, + "end": 15577, "loc": { "start": { "line": 407, @@ -96645,8 +96673,8 @@ { "type": "CommentLine", "value": " Get the delta time between the last tick", - "start": 15579, - "end": 15622, + "start": 15622, + "end": 15665, "loc": { "start": { "line": 409, @@ -96661,8 +96689,8 @@ { "type": "CommentLine", "value": " If the delta time grows too large, we clamp it", - "start": 15671, - "end": 15720, + "start": 15714, + "end": 15763, "loc": { "start": { "line": 411, @@ -96677,8 +96705,8 @@ { "type": "CommentLine", "value": " Loop active instances and update.", - "start": 15843, - "end": 15879, + "start": 15886, + "end": 15922, "loc": { "start": { "line": 415, @@ -96693,8 +96721,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 15933, - "end": 15975, + "start": 15976, + "end": 16018, "loc": { "start": { "line": 417, @@ -96709,8 +96737,8 @@ { "type": "CommentLine", "value": " Calculate the path", - "start": 16067, - "end": 16088, + "start": 16110, + "end": 16131, "loc": { "start": { "line": 420, @@ -96725,8 +96753,8 @@ { "type": "CommentLine", "value": " If this instance is being moved", - "start": 16136, - "end": 16170, + "start": 16179, + "end": 16213, "loc": { "start": { "line": 423, @@ -96741,8 +96769,8 @@ { "type": "CommentLine", "value": " Get the position of the instance", - "start": 16275, - "end": 16310, + "start": 16318, + "end": 16353, "loc": { "start": { "line": 425, @@ -96757,8 +96785,8 @@ { "type": "CommentLine", "value": " If the instance is not moving", - "start": 16389, - "end": 16421, + "start": 16432, + "end": 16464, "loc": { "start": { "line": 427, @@ -96773,8 +96801,8 @@ { "type": "CommentLine", "value": " Get the next node to travel to.", - "start": 16463, - "end": 16497, + "start": 16506, + "end": 16540, "loc": { "start": { "line": 429, @@ -96789,8 +96817,8 @@ { "type": "CommentLine", "value": " Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.", - "start": 16552, - "end": 16686, + "start": 16595, + "end": 16729, "loc": { "start": { "line": 431, @@ -96805,8 +96833,8 @@ { "type": "CommentLine", "value": " Store the next node position", - "start": 16871, - "end": 16902, + "start": 16914, + "end": 16945, "loc": { "start": { "line": 436, @@ -96821,8 +96849,8 @@ { "type": "CommentLine", "value": " Get the angle from the instance's position to the next node", - "start": 16964, - "end": 17026, + "start": 17007, + "end": 17069, "loc": { "start": { "line": 438, @@ -96837,8 +96865,8 @@ { "type": "CommentLine", "value": " Get the trajectory of where to move the instance based on the angle", - "start": 17145, - "end": 17215, + "start": 17188, + "end": 17258, "loc": { "start": { "line": 440, @@ -96853,8 +96881,8 @@ { "type": "CommentLine", "value": " Update the direction of the instance based on the angle to the next node", - "start": 17376, - "end": 17451, + "start": 17419, + "end": 17494, "loc": { "start": { "line": 443, @@ -96869,8 +96897,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 17533, - "end": 17592, + "start": 17576, + "end": 17635, "loc": { "start": { "line": 445, @@ -96885,8 +96913,8 @@ { "type": "CommentLine", "value": " Get the distance from the instance's position to the next node's position.", - "start": 18054, - "end": 18131, + "start": 18097, + "end": 18174, "loc": { "start": { "line": 454, @@ -96901,8 +96929,8 @@ { "type": "CommentLine", "value": " Stop moving when you are this close distance.", - "start": 18237, - "end": 18285, + "start": 18280, + "end": 18328, "loc": { "start": { "line": 456, @@ -96917,8 +96945,8 @@ { "type": "CommentLine", "value": " Stop moving", - "start": 18345, - "end": 18359, + "start": 18388, + "end": 18402, "loc": { "start": { "line": 458, @@ -96933,8 +96961,8 @@ { "type": "CommentLine", "value": " Reset stuck counter when moving has \"stopped\".", - "start": 18405, - "end": 18454, + "start": 18448, + "end": 18497, "loc": { "start": { "line": 460, @@ -96949,8 +96977,8 @@ { "type": "CommentLine", "value": " If there is no more nodes left in the path", - "start": 18502, - "end": 18547, + "start": 18545, + "end": 18590, "loc": { "start": { "line": 462, @@ -96965,8 +96993,8 @@ { "type": "CommentLine", "value": " You have completed the path. Call the event function if supplied.", - "start": 18598, - "end": 18666, + "start": 18641, + "end": 18709, "loc": { "start": { "line": 464, @@ -96981,8 +97009,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 19206, - "end": 19265, + "start": 19249, + "end": 19308, "loc": { "start": { "line": 475, @@ -96997,8 +97025,8 @@ { "type": "CommentLine", "value": " If the instance's position is in the same spot it was in the last tick", - "start": 19735, - "end": 19808, + "start": 19778, + "end": 19851, "loc": { "start": { "line": 485, @@ -97013,8 +97041,8 @@ { "type": "CommentLine", "value": " Increment the stuck counter", - "start": 19942, - "end": 19972, + "start": 19985, + "end": 20015, "loc": { "start": { "line": 487, @@ -97029,8 +97057,8 @@ { "type": "CommentLine", "value": " Chekck if the stuck counter is greater or equal to the max stuck counter", - "start": 20016, - "end": 20091, + "start": 20059, + "end": 20134, "loc": { "start": { "line": 489, @@ -97045,8 +97073,8 @@ { "type": "CommentLine", "value": " Call the stuck event if defined.", - "start": 20172, - "end": 20207, + "start": 20215, + "end": 20250, "loc": { "start": { "line": 491, @@ -97061,8 +97089,8 @@ { "type": "CommentLine", "value": " End this pathfinding.", - "start": 20340, - "end": 20364, + "start": 20383, + "end": 20407, "loc": { "start": { "line": 495, @@ -97077,8 +97105,8 @@ { "type": "CommentLine", "value": " Store the previous position as the position of this tick", - "start": 20433, - "end": 20492, + "start": 20476, + "end": 20535, "loc": { "start": { "line": 500, @@ -97093,8 +97121,8 @@ { "type": "CommentLine", "value": " Store this tick's time", - "start": 20572, - "end": 20597, + "start": 20615, + "end": 20640, "loc": { "start": { "line": 505, @@ -97109,8 +97137,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t ", - "start": 20628, - "end": 20735, + "start": 20671, + "end": 20778, "loc": { "start": { "line": 508, @@ -97125,8 +97153,8 @@ { "type": "CommentLine", "value": " Assign the tilesize width", - "start": 20988, - "end": 21016, + "start": 21031, + "end": 21059, "loc": { "start": { "line": 518, @@ -97141,8 +97169,8 @@ { "type": "CommentLine", "value": " Assign the tilesize height", - "start": 21099, - "end": 21128, + "start": 21142, + "end": 21171, "loc": { "start": { "line": 522, @@ -97157,8 +97185,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t ", - "start": 21316, - "end": 21588, + "start": 21359, + "end": 21631, "loc": { "start": { "line": 530, @@ -97173,8 +97201,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is accessible. This prevents the tile's contents from being searched. ", - "start": 21636, - "end": 21762, + "start": 21679, + "end": 21805, "loc": { "start": { "line": 538, @@ -97189,8 +97217,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 21766, - "end": 21895, + "start": 21809, + "end": 21938, "loc": { "start": { "line": 539, @@ -97205,8 +97233,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 21972, - "end": 22092, + "start": 22015, + "end": 22135, "loc": { "start": { "line": 541, @@ -97221,8 +97249,8 @@ { "type": "CommentLine", "value": " If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.", - "start": 22316, - "end": 22455, + "start": 22359, + "end": 22498, "loc": { "start": { "line": 543, @@ -97237,8 +97265,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t ", - "start": 22711, - "end": 23306, + "start": 22754, + "end": 23349, "loc": { "start": { "line": 549, @@ -97253,8 +97281,8 @@ { "type": "CommentLine", "value": " Get the instance data", - "start": 23356, - "end": 23380, + "start": 23399, + "end": 23423, "loc": { "start": { "line": 561, @@ -97269,8 +97297,8 @@ { "type": "CommentLine", "value": " Find the path", - "start": 23566, - "end": 23582, + "start": 23609, + "end": 23625, "loc": { "start": { "line": 568, @@ -97285,8 +97313,8 @@ { "type": "CommentLine", "value": " Check if the path is valid.", - "start": 23703, - "end": 23733, + "start": 23746, + "end": 23776, "loc": { "start": { "line": 570, @@ -97301,8 +97329,8 @@ { "type": "CommentBlock", "value": "*\r\n\t\t\t\t * The path generated.\r\n\t\t\t\t * @private\r\n\t\t\t\t * @type {Array}\r\n\t\t\t\t ", - "start": 23787, - "end": 23866, + "start": 23830, + "end": 23909, "loc": { "start": { "line": 572, @@ -97317,8 +97345,8 @@ { "type": "CommentLine", "value": " Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.", - "start": 23887, - "end": 23955, + "start": 23930, + "end": 23998, "loc": { "start": { "line": 578, @@ -97333,8 +97361,8 @@ { "type": "CommentLine", "value": " Remove the node you start on.", - "start": 24055, - "end": 24087, + "start": 24098, + "end": 24130, "loc": { "start": { "line": 583, @@ -97349,8 +97377,8 @@ { "type": "CommentLine", "value": " Store the path", - "start": 24112, - "end": 24129, + "start": 24155, + "end": 24172, "loc": { "start": { "line": 585, @@ -97365,8 +97393,8 @@ { "type": "CommentLine", "value": " Store the pathID", - "start": 24166, - "end": 24185, + "start": 24209, + "end": 24228, "loc": { "start": { "line": 587, @@ -97381,8 +97409,8 @@ { "type": "CommentLine", "value": " Call event when path is found", - "start": 24226, - "end": 24258, + "start": 24269, + "end": 24301, "loc": { "start": { "line": 589, @@ -97397,8 +97425,8 @@ { "type": "CommentLine", "value": " Call event when no path is found", - "start": 24401, - "end": 24436, + "start": 24444, + "end": 24479, "loc": { "start": { "line": 594, @@ -97413,8 +97441,8 @@ { "type": "CommentLine", "value": " If no path is found then we end the pathfinding on this instance.", - "start": 24563, - "end": 24631, + "start": 24606, + "end": 24674, "loc": { "start": { "line": 598, @@ -97429,8 +97457,8 @@ { "type": "CommentLine", "value": " Track pInstance as an active instance.", - "start": 24674, - "end": 24715, + "start": 24717, + "end": 24758, "loc": { "start": { "line": 602, @@ -97445,8 +97473,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t ", - "start": 24748, - "end": 24980, + "start": 24791, + "end": 25023, "loc": { "start": { "line": 605, @@ -97461,8 +97489,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t ", - "start": 25187, - "end": 25356, + "start": 25230, + "end": 25399, "loc": { "start": { "line": 620, @@ -97477,8 +97505,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t ", - "start": 25888, - "end": 26208, + "start": 25931, + "end": 26251, "loc": { "start": { "line": 639, @@ -97493,8 +97521,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t ", - "start": 26398, - "end": 26779, + "start": 26441, + "end": 26822, "loc": { "start": { "line": 654, @@ -97509,8 +97537,8 @@ { "type": "CommentLine", "value": " We check if this is a valid mapname found in VYLO.", - "start": 26911, - "end": 26964, + "start": 26954, + "end": 27007, "loc": { "start": { "line": 664, @@ -97525,8 +97553,8 @@ { "type": "CommentLine", "value": " An array of tiles that we get from the map", - "start": 27021, - "end": 27066, + "start": 27064, + "end": 27109, "loc": { "start": { "line": 666, @@ -97541,8 +97569,8 @@ { "type": "CommentLine", "value": " An array of accepted tiles to be walked on.", - "start": 27095, - "end": 27141, + "start": 27138, + "end": 27184, "loc": { "start": { "line": 668, @@ -97557,8 +97585,8 @@ { "type": "CommentLine", "value": " An array holding the weights of tiles.", - "start": 27181, - "end": 27222, + "start": 27224, + "end": 27265, "loc": { "start": { "line": 670, @@ -97573,8 +97601,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 27255, - "end": 27304, + "start": 27298, + "end": 27347, "loc": { "start": { "line": 672, @@ -97589,8 +97617,8 @@ { "type": "CommentLine", "value": " We check if we have stored tiles from this map before. If so we cache them.", - "start": 27366, - "end": 27444, + "start": 27409, + "end": 27487, "loc": { "start": { "line": 675, @@ -97605,8 +97633,8 @@ { "type": "CommentLine", "value": " We get the tile array from memory.", - "start": 27507, - "end": 27544, + "start": 27550, + "end": 27587, "loc": { "start": { "line": 677, @@ -97621,8 +97649,8 @@ { "type": "CommentLine", "value": " We store this tiles array", - "start": 27685, - "end": 27713, + "start": 27728, + "end": 27756, "loc": { "start": { "line": 681, @@ -97637,8 +97665,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 27864, - "end": 27984, + "start": 27907, + "end": 28027, "loc": { "start": { "line": 685, @@ -97653,8 +97681,8 @@ { "type": "CommentLine", "value": " Loop through the tiles array to build weights and accepted tile lists.", - "start": 28221, - "end": 28294, + "start": 28264, + "end": 28337, "loc": { "start": { "line": 688, @@ -97669,8 +97697,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is passable. This prevents the tile's contents from being searched. ", - "start": 28349, - "end": 28473, + "start": 28392, + "end": 28516, "loc": { "start": { "line": 690, @@ -97685,8 +97713,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 28481, - "end": 28610, + "start": 28524, + "end": 28653, "loc": { "start": { "line": 691, @@ -97701,8 +97729,8 @@ { "type": "CommentLine", "value": " A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.", - "start": 28704, - "end": 28772, + "start": 28747, + "end": 28815, "loc": { "start": { "line": 694, @@ -97717,8 +97745,8 @@ { "type": "CommentLine", "value": " If this tile is not accessible, we cannot pass it, so we skip this tile.", - "start": 28907, - "end": 28982, + "start": 28950, + "end": 29025, "loc": { "start": { "line": 697, @@ -97733,8 +97761,8 @@ { "type": "CommentLine", "value": " Accumulate weights of instances on the tile", - "start": 29112, - "end": 29158, + "start": 29155, + "end": 29201, "loc": { "start": { "line": 702, @@ -97749,8 +97777,8 @@ { "type": "CommentLine", "value": " If this instance is to be excluded. We don't calculate its weight.", - "start": 29220, - "end": 29289, + "start": 29263, + "end": 29332, "loc": { "start": { "line": 704, @@ -97765,8 +97793,8 @@ { "type": "CommentLine", "value": " If this instance is impassable we skip this tile.", - "start": 29357, - "end": 29409, + "start": 29400, + "end": 29452, "loc": { "start": { "line": 707, @@ -97781,8 +97809,8 @@ { "type": "CommentLine", "value": " We accumulate the weight of instances", - "start": 29526, - "end": 29566, + "start": 29569, + "end": 29609, "loc": { "start": { "line": 711, @@ -97797,8 +97825,8 @@ { "type": "CommentLine", "value": " Add weight to acceptedTiles if not already present", - "start": 29710, - "end": 29763, + "start": 29753, + "end": 29806, "loc": { "start": { "line": 718, @@ -97813,8 +97841,8 @@ { "type": "CommentBlock", "value": "*\r\n * The module instantiated for use.\r\n * @type {PathwaySingleton}\r\n ", - "start": 30530, - "end": 30604, + "start": 30573, + "end": 30647, "loc": { "start": { "line": 744, @@ -97829,8 +97857,8 @@ { "type": "CommentBlock", "value": "*\r\n * Check if this is a server environment\r\n * @ignore\r\n ", - "start": 30647, - "end": 30709, + "start": 30690, + "end": 30752, "loc": { "start": { "line": 749, @@ -97845,8 +97873,8 @@ { "type": "CommentBlock", "value": "*\r\n * Update API bound to Pathway\r\n * @ignore\r\n ", - "start": 30761, - "end": 30813, + "start": 30804, + "end": 30856, "loc": { "start": { "line": 754, @@ -97861,8 +97889,8 @@ { "type": "CommentLine", "value": " If on the server we use an interval", - "start": 30863, - "end": 30901, + "start": 30906, + "end": 30944, "loc": { "start": { "line": 760, @@ -97877,8 +97905,8 @@ { "type": "CommentLine", "value": " Update interval", - "start": 30919, - "end": 30937, + "start": 30962, + "end": 30980, "loc": { "start": { "line": 762, @@ -97893,8 +97921,8 @@ { "type": "CommentLine", "value": " Otherwise we use raf", - "start": 30989, - "end": 31012, + "start": 31032, + "end": 31055, "loc": { "start": { "line": 764, @@ -102433,9 +102461,9 @@ }, { "type": "CommentLine", - "value": " If this instance is not on a mapname.", + "value": " If this instance is not on a map.", "start": 5027, - "end": 5067, + "end": 5063, "loc": { "start": { "line": 137, @@ -102443,7 +102471,7 @@ }, "end": { "line": 137, - "column": 43 + "column": 39 } } }, @@ -102462,8 +102490,8 @@ "updateContext": null }, "value": "if", - "start": 5072, - "end": 5074, + "start": 5068, + "end": 5070, "loc": { "start": { "line": 138, @@ -102487,8 +102515,8 @@ "postfix": false, "binop": null }, - "start": 5075, - "end": 5076, + "start": 5071, + "end": 5072, "loc": { "start": { "line": 138, @@ -102514,8 +102542,8 @@ "updateContext": null }, "value": "!", - "start": 5076, - "end": 5077, + "start": 5072, + "end": 5073, "loc": { "start": { "line": 138, @@ -102540,8 +102568,8 @@ "binop": null }, "value": "pInstance", - "start": 5077, - "end": 5086, + "start": 5073, + "end": 5082, "loc": { "start": { "line": 138, @@ -102566,8 +102594,8 @@ "binop": null, "updateContext": null }, - "start": 5086, - "end": 5087, + "start": 5082, + "end": 5083, "loc": { "start": { "line": 138, @@ -102592,8 +102620,8 @@ "binop": null }, "value": "mapName", - "start": 5087, - "end": 5094, + "start": 5083, + "end": 5090, "loc": { "start": { "line": 138, @@ -102617,8 +102645,8 @@ "postfix": false, "binop": null }, - "start": 5094, - "end": 5095, + "start": 5090, + "end": 5091, "loc": { "start": { "line": 138, @@ -102642,8 +102670,8 @@ "postfix": false, "binop": null }, - "start": 5096, - "end": 5097, + "start": 5092, + "end": 5093, "loc": { "start": { "line": 138, @@ -102670,8 +102698,8 @@ "updateContext": null }, "value": "this", - "start": 5103, - "end": 5107, + "start": 5099, + "end": 5103, "loc": { "start": { "line": 139, @@ -102696,8 +102724,8 @@ "binop": null, "updateContext": null }, - "start": 5107, - "end": 5108, + "start": 5103, + "end": 5104, "loc": { "start": { "line": 139, @@ -102722,8 +102750,8 @@ "binop": null }, "value": "logger", - "start": 5108, - "end": 5114, + "start": 5104, + "end": 5110, "loc": { "start": { "line": 139, @@ -102748,8 +102776,8 @@ "binop": null, "updateContext": null }, - "start": 5114, - "end": 5115, + "start": 5110, + "end": 5111, "loc": { "start": { "line": 139, @@ -102774,8 +102802,8 @@ "binop": null }, "value": "prefix", - "start": 5115, - "end": 5121, + "start": 5111, + "end": 5117, "loc": { "start": { "line": 139, @@ -102799,8 +102827,8 @@ "postfix": false, "binop": null }, - "start": 5121, - "end": 5122, + "start": 5117, + "end": 5118, "loc": { "start": { "line": 139, @@ -102826,8 +102854,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 5122, - "end": 5138, + "start": 5118, + "end": 5134, "loc": { "start": { "line": 139, @@ -102851,8 +102879,8 @@ "postfix": false, "binop": null }, - "start": 5138, - "end": 5139, + "start": 5134, + "end": 5135, "loc": { "start": { "line": 139, @@ -102877,8 +102905,8 @@ "binop": null, "updateContext": null }, - "start": 5139, - "end": 5140, + "start": 5135, + "end": 5136, "loc": { "start": { "line": 139, @@ -102903,8 +102931,8 @@ "binop": null }, "value": "error", - "start": 5140, - "end": 5145, + "start": 5136, + "end": 5141, "loc": { "start": { "line": 139, @@ -102928,8 +102956,8 @@ "postfix": false, "binop": null }, - "start": 5145, - "end": 5146, + "start": 5141, + "end": 5142, "loc": { "start": { "line": 139, @@ -102955,8 +102983,8 @@ "updateContext": null }, "value": "Cannot generate a path. pInstance is not on a map.", - "start": 5146, - "end": 5198, + "start": 5142, + "end": 5194, "loc": { "start": { "line": 139, @@ -102980,8 +103008,8 @@ "postfix": false, "binop": null }, - "start": 5198, - "end": 5199, + "start": 5194, + "end": 5195, "loc": { "start": { "line": 139, @@ -103006,8 +103034,8 @@ "binop": null, "updateContext": null }, - "start": 5199, - "end": 5200, + "start": 5195, + "end": 5196, "loc": { "start": { "line": 139, @@ -103034,8 +103062,8 @@ "updateContext": null }, "value": "return", - "start": 5206, - "end": 5212, + "start": 5202, + "end": 5208, "loc": { "start": { "line": 140, @@ -103060,8 +103088,8 @@ "binop": null, "updateContext": null }, - "start": 5212, - "end": 5213, + "start": 5208, + "end": 5209, "loc": { "start": { "line": 140, @@ -103085,8 +103113,8 @@ "postfix": false, "binop": null }, - "start": 5218, - "end": 5219, + "start": 5214, + "end": 5215, "loc": { "start": { "line": 141, @@ -103101,8 +103129,8 @@ { "type": "CommentLine", "value": " If there is no destination object passed return.", - "start": 5226, - "end": 5277, + "start": 5222, + "end": 5273, "loc": { "start": { "line": 143, @@ -103129,8 +103157,8 @@ "updateContext": null }, "value": "if", - "start": 5282, - "end": 5284, + "start": 5278, + "end": 5280, "loc": { "start": { "line": 144, @@ -103154,8 +103182,8 @@ "postfix": false, "binop": null }, - "start": 5285, - "end": 5286, + "start": 5281, + "end": 5282, "loc": { "start": { "line": 144, @@ -103182,8 +103210,8 @@ "updateContext": null }, "value": "typeof", - "start": 5286, - "end": 5292, + "start": 5282, + "end": 5288, "loc": { "start": { "line": 144, @@ -103207,8 +103235,8 @@ "postfix": false, "binop": null }, - "start": 5292, - "end": 5293, + "start": 5288, + "end": 5289, "loc": { "start": { "line": 144, @@ -103233,8 +103261,8 @@ "binop": null }, "value": "pDestination", - "start": 5293, - "end": 5305, + "start": 5289, + "end": 5301, "loc": { "start": { "line": 144, @@ -103258,8 +103286,8 @@ "postfix": false, "binop": null }, - "start": 5305, - "end": 5306, + "start": 5301, + "end": 5302, "loc": { "start": { "line": 144, @@ -103285,8 +103313,8 @@ "updateContext": null }, "value": "!==", - "start": 5307, - "end": 5310, + "start": 5303, + "end": 5306, "loc": { "start": { "line": 144, @@ -103312,8 +103340,8 @@ "updateContext": null }, "value": "object", - "start": 5311, - "end": 5319, + "start": 5307, + "end": 5315, "loc": { "start": { "line": 144, @@ -103337,8 +103365,8 @@ "postfix": false, "binop": null }, - "start": 5319, - "end": 5320, + "start": 5315, + "end": 5316, "loc": { "start": { "line": 144, @@ -103362,8 +103390,8 @@ "postfix": false, "binop": null }, - "start": 5321, - "end": 5322, + "start": 5317, + "end": 5318, "loc": { "start": { "line": 144, @@ -103390,8 +103418,8 @@ "updateContext": null }, "value": "this", - "start": 5328, - "end": 5332, + "start": 5324, + "end": 5328, "loc": { "start": { "line": 145, @@ -103416,8 +103444,8 @@ "binop": null, "updateContext": null }, - "start": 5332, - "end": 5333, + "start": 5328, + "end": 5329, "loc": { "start": { "line": 145, @@ -103442,8 +103470,8 @@ "binop": null }, "value": "logger", - "start": 5333, - "end": 5339, + "start": 5329, + "end": 5335, "loc": { "start": { "line": 145, @@ -103468,8 +103496,8 @@ "binop": null, "updateContext": null }, - "start": 5339, - "end": 5340, + "start": 5335, + "end": 5336, "loc": { "start": { "line": 145, @@ -103494,8 +103522,8 @@ "binop": null }, "value": "prefix", - "start": 5340, - "end": 5346, + "start": 5336, + "end": 5342, "loc": { "start": { "line": 145, @@ -103519,8 +103547,8 @@ "postfix": false, "binop": null }, - "start": 5346, - "end": 5347, + "start": 5342, + "end": 5343, "loc": { "start": { "line": 145, @@ -103546,8 +103574,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 5347, - "end": 5363, + "start": 5343, + "end": 5359, "loc": { "start": { "line": 145, @@ -103571,8 +103599,8 @@ "postfix": false, "binop": null }, - "start": 5363, - "end": 5364, + "start": 5359, + "end": 5360, "loc": { "start": { "line": 145, @@ -103597,8 +103625,8 @@ "binop": null, "updateContext": null }, - "start": 5364, - "end": 5365, + "start": 5360, + "end": 5361, "loc": { "start": { "line": 145, @@ -103623,8 +103651,8 @@ "binop": null }, "value": "error", - "start": 5365, - "end": 5370, + "start": 5361, + "end": 5366, "loc": { "start": { "line": 145, @@ -103648,8 +103676,8 @@ "postfix": false, "binop": null }, - "start": 5370, - "end": 5371, + "start": 5366, + "end": 5367, "loc": { "start": { "line": 145, @@ -103675,8 +103703,8 @@ "updateContext": null }, "value": "Invalid type passed for pDestination. Expecting an object.", - "start": 5371, - "end": 5431, + "start": 5367, + "end": 5427, "loc": { "start": { "line": 145, @@ -103700,8 +103728,8 @@ "postfix": false, "binop": null }, - "start": 5431, - "end": 5432, + "start": 5427, + "end": 5428, "loc": { "start": { "line": 145, @@ -103726,8 +103754,8 @@ "binop": null, "updateContext": null }, - "start": 5432, - "end": 5433, + "start": 5428, + "end": 5429, "loc": { "start": { "line": 145, @@ -103754,8 +103782,8 @@ "updateContext": null }, "value": "return", - "start": 5439, - "end": 5445, + "start": 5435, + "end": 5441, "loc": { "start": { "line": 146, @@ -103780,8 +103808,8 @@ "binop": null, "updateContext": null }, - "start": 5445, - "end": 5446, + "start": 5441, + "end": 5442, "loc": { "start": { "line": 146, @@ -103805,8 +103833,8 @@ "postfix": false, "binop": null }, - "start": 5451, - "end": 5452, + "start": 5447, + "end": 5448, "loc": { "start": { "line": 147, @@ -103821,8 +103849,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 5459, - "end": 5501, + "start": 5455, + "end": 5497, "loc": { "start": { "line": 149, @@ -103849,8 +103877,8 @@ "updateContext": null }, "value": "let", - "start": 5506, - "end": 5509, + "start": 5502, + "end": 5505, "loc": { "start": { "line": 150, @@ -103875,8 +103903,8 @@ "binop": null }, "value": "instanceData", - "start": 5510, - "end": 5522, + "start": 5506, + "end": 5518, "loc": { "start": { "line": 150, @@ -103902,8 +103930,8 @@ "updateContext": null }, "value": "=", - "start": 5523, - "end": 5524, + "start": 5519, + "end": 5520, "loc": { "start": { "line": 150, @@ -103930,8 +103958,8 @@ "updateContext": null }, "value": "this", - "start": 5525, - "end": 5529, + "start": 5521, + "end": 5525, "loc": { "start": { "line": 150, @@ -103956,8 +103984,8 @@ "binop": null, "updateContext": null }, - "start": 5529, - "end": 5530, + "start": 5525, + "end": 5526, "loc": { "start": { "line": 150, @@ -103982,8 +104010,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 5530, - "end": 5545, + "start": 5526, + "end": 5541, "loc": { "start": { "line": 150, @@ -104008,8 +104036,8 @@ "binop": null, "updateContext": null }, - "start": 5545, - "end": 5546, + "start": 5541, + "end": 5542, "loc": { "start": { "line": 150, @@ -104034,8 +104062,8 @@ "binop": null }, "value": "get", - "start": 5546, - "end": 5549, + "start": 5542, + "end": 5545, "loc": { "start": { "line": 150, @@ -104059,8 +104087,8 @@ "postfix": false, "binop": null }, - "start": 5549, - "end": 5550, + "start": 5545, + "end": 5546, "loc": { "start": { "line": 150, @@ -104085,8 +104113,8 @@ "binop": null }, "value": "pInstance", - "start": 5550, - "end": 5559, + "start": 5546, + "end": 5555, "loc": { "start": { "line": 150, @@ -104110,8 +104138,8 @@ "postfix": false, "binop": null }, - "start": 5559, - "end": 5560, + "start": 5555, + "end": 5556, "loc": { "start": { "line": 150, @@ -104136,8 +104164,8 @@ "binop": null, "updateContext": null }, - "start": 5560, - "end": 5561, + "start": 5556, + "end": 5557, "loc": { "start": { "line": 150, @@ -104164,8 +104192,8 @@ "updateContext": null }, "value": "if", - "start": 5568, - "end": 5570, + "start": 5564, + "end": 5566, "loc": { "start": { "line": 152, @@ -104189,8 +104217,8 @@ "postfix": false, "binop": null }, - "start": 5571, - "end": 5572, + "start": 5567, + "end": 5568, "loc": { "start": { "line": 152, @@ -104216,8 +104244,8 @@ "updateContext": null }, "value": "!", - "start": 5572, - "end": 5573, + "start": 5568, + "end": 5569, "loc": { "start": { "line": 152, @@ -104242,8 +104270,8 @@ "binop": null }, "value": "instanceData", - "start": 5573, - "end": 5585, + "start": 5569, + "end": 5581, "loc": { "start": { "line": 152, @@ -104267,8 +104295,8 @@ "postfix": false, "binop": null }, - "start": 5585, - "end": 5586, + "start": 5581, + "end": 5582, "loc": { "start": { "line": 152, @@ -104292,8 +104320,8 @@ "postfix": false, "binop": null }, - "start": 5587, - "end": 5588, + "start": 5583, + "end": 5584, "loc": { "start": { "line": 152, @@ -104308,8 +104336,8 @@ { "type": "CommentLine", "value": " Set the instance data", - "start": 5594, - "end": 5618, + "start": 5590, + "end": 5614, "loc": { "start": { "line": 153, @@ -104334,8 +104362,8 @@ "binop": null }, "value": "instanceData", - "start": 5624, - "end": 5636, + "start": 5620, + "end": 5632, "loc": { "start": { "line": 154, @@ -104361,8 +104389,8 @@ "updateContext": null }, "value": "=", - "start": 5637, - "end": 5638, + "start": 5633, + "end": 5634, "loc": { "start": { "line": 154, @@ -104386,8 +104414,8 @@ "postfix": false, "binop": null }, - "start": 5639, - "end": 5640, + "start": 5635, + "end": 5636, "loc": { "start": { "line": 154, @@ -104412,8 +104440,8 @@ "binop": null }, "value": "trajectory", - "start": 5647, - "end": 5657, + "start": 5643, + "end": 5653, "loc": { "start": { "line": 155, @@ -104438,8 +104466,8 @@ "binop": null, "updateContext": null }, - "start": 5657, - "end": 5658, + "start": 5653, + "end": 5654, "loc": { "start": { "line": 155, @@ -104463,8 +104491,8 @@ "postfix": false, "binop": null }, - "start": 5659, - "end": 5660, + "start": 5655, + "end": 5656, "loc": { "start": { "line": 155, @@ -104489,8 +104517,8 @@ "binop": null }, "value": "angle", - "start": 5669, - "end": 5674, + "start": 5665, + "end": 5670, "loc": { "start": { "line": 156, @@ -104515,8 +104543,8 @@ "binop": null, "updateContext": null }, - "start": 5674, - "end": 5675, + "start": 5670, + "end": 5671, "loc": { "start": { "line": 156, @@ -104542,8 +104570,8 @@ "updateContext": null }, "value": 0, - "start": 5676, - "end": 5677, + "start": 5672, + "end": 5673, "loc": { "start": { "line": 156, @@ -104568,8 +104596,8 @@ "binop": null, "updateContext": null }, - "start": 5677, - "end": 5678, + "start": 5673, + "end": 5674, "loc": { "start": { "line": 156, @@ -104594,8 +104622,8 @@ "binop": null }, "value": "x", - "start": 5687, - "end": 5688, + "start": 5683, + "end": 5684, "loc": { "start": { "line": 157, @@ -104620,8 +104648,8 @@ "binop": null, "updateContext": null }, - "start": 5688, - "end": 5689, + "start": 5684, + "end": 5685, "loc": { "start": { "line": 157, @@ -104647,8 +104675,8 @@ "updateContext": null }, "value": 0, - "start": 5690, - "end": 5691, + "start": 5686, + "end": 5687, "loc": { "start": { "line": 157, @@ -104673,8 +104701,8 @@ "binop": null, "updateContext": null }, - "start": 5691, - "end": 5692, + "start": 5687, + "end": 5688, "loc": { "start": { "line": 157, @@ -104699,8 +104727,8 @@ "binop": null }, "value": "y", - "start": 5701, - "end": 5702, + "start": 5697, + "end": 5698, "loc": { "start": { "line": 158, @@ -104725,8 +104753,8 @@ "binop": null, "updateContext": null }, - "start": 5702, - "end": 5703, + "start": 5698, + "end": 5699, "loc": { "start": { "line": 158, @@ -104752,8 +104780,8 @@ "updateContext": null }, "value": 0, - "start": 5704, - "end": 5705, + "start": 5700, + "end": 5701, "loc": { "start": { "line": 158, @@ -104778,8 +104806,8 @@ "binop": null, "updateContext": null }, - "start": 5705, - "end": 5706, + "start": 5701, + "end": 5702, "loc": { "start": { "line": 158, @@ -104804,8 +104832,8 @@ "binop": null }, "value": "nextNodePos", - "start": 5715, - "end": 5726, + "start": 5711, + "end": 5722, "loc": { "start": { "line": 159, @@ -104830,8 +104858,8 @@ "binop": null, "updateContext": null }, - "start": 5726, - "end": 5727, + "start": 5722, + "end": 5723, "loc": { "start": { "line": 159, @@ -104858,8 +104886,8 @@ "updateContext": null }, "value": "null", - "start": 5728, - "end": 5732, + "start": 5724, + "end": 5728, "loc": { "start": { "line": 159, @@ -104884,8 +104912,8 @@ "binop": null, "updateContext": null }, - "start": 5732, - "end": 5733, + "start": 5728, + "end": 5729, "loc": { "start": { "line": 159, @@ -104909,8 +104937,8 @@ "postfix": false, "binop": null }, - "start": 5740, - "end": 5741, + "start": 5736, + "end": 5737, "loc": { "start": { "line": 160, @@ -104935,8 +104963,8 @@ "binop": null, "updateContext": null }, - "start": 5741, - "end": 5742, + "start": 5737, + "end": 5738, "loc": { "start": { "line": 160, @@ -104951,8 +104979,8 @@ { "type": "CommentLine", "value": " The current position of the instance.", - "start": 5749, - "end": 5789, + "start": 5745, + "end": 5785, "loc": { "start": { "line": 161, @@ -104977,8 +105005,8 @@ "binop": null }, "value": "currentPosition", - "start": 5796, - "end": 5811, + "start": 5792, + "end": 5807, "loc": { "start": { "line": 162, @@ -105003,8 +105031,8 @@ "binop": null, "updateContext": null }, - "start": 5811, - "end": 5812, + "start": 5807, + "end": 5808, "loc": { "start": { "line": 162, @@ -105028,8 +105056,8 @@ "postfix": false, "binop": null }, - "start": 5813, - "end": 5814, + "start": 5809, + "end": 5810, "loc": { "start": { "line": 162, @@ -105054,8 +105082,8 @@ "binop": null }, "value": "x", - "start": 5815, - "end": 5816, + "start": 5811, + "end": 5812, "loc": { "start": { "line": 162, @@ -105080,8 +105108,8 @@ "binop": null, "updateContext": null }, - "start": 5816, - "end": 5817, + "start": 5812, + "end": 5813, "loc": { "start": { "line": 162, @@ -105107,8 +105135,8 @@ "updateContext": null }, "value": 0, - "start": 5818, - "end": 5819, + "start": 5814, + "end": 5815, "loc": { "start": { "line": 162, @@ -105133,8 +105161,8 @@ "binop": null, "updateContext": null }, - "start": 5819, - "end": 5820, + "start": 5815, + "end": 5816, "loc": { "start": { "line": 162, @@ -105159,8 +105187,8 @@ "binop": null }, "value": "y", - "start": 5821, - "end": 5822, + "start": 5817, + "end": 5818, "loc": { "start": { "line": 162, @@ -105185,8 +105213,8 @@ "binop": null, "updateContext": null }, - "start": 5822, - "end": 5823, + "start": 5818, + "end": 5819, "loc": { "start": { "line": 162, @@ -105212,8 +105240,8 @@ "updateContext": null }, "value": 0, - "start": 5824, - "end": 5825, + "start": 5820, + "end": 5821, "loc": { "start": { "line": 162, @@ -105237,8 +105265,8 @@ "postfix": false, "binop": null }, - "start": 5826, - "end": 5827, + "start": 5822, + "end": 5823, "loc": { "start": { "line": 162, @@ -105263,8 +105291,8 @@ "binop": null, "updateContext": null }, - "start": 5827, - "end": 5828, + "start": 5823, + "end": 5824, "loc": { "start": { "line": 162, @@ -105279,8 +105307,8 @@ { "type": "CommentLine", "value": " The previous position of the instance in the tick before.", - "start": 5835, - "end": 5895, + "start": 5831, + "end": 5891, "loc": { "start": { "line": 163, @@ -105305,8 +105333,8 @@ "binop": null }, "value": "previousPosition", - "start": 5902, - "end": 5918, + "start": 5898, + "end": 5914, "loc": { "start": { "line": 164, @@ -105331,8 +105359,8 @@ "binop": null, "updateContext": null }, - "start": 5918, - "end": 5919, + "start": 5914, + "end": 5915, "loc": { "start": { "line": 164, @@ -105356,8 +105384,8 @@ "postfix": false, "binop": null }, - "start": 5920, - "end": 5921, + "start": 5916, + "end": 5917, "loc": { "start": { "line": 164, @@ -105382,8 +105410,8 @@ "binop": null }, "value": "x", - "start": 5922, - "end": 5923, + "start": 5918, + "end": 5919, "loc": { "start": { "line": 164, @@ -105408,8 +105436,8 @@ "binop": null, "updateContext": null }, - "start": 5923, - "end": 5924, + "start": 5919, + "end": 5920, "loc": { "start": { "line": 164, @@ -105435,8 +105463,8 @@ "updateContext": null }, "value": 0, - "start": 5925, - "end": 5926, + "start": 5921, + "end": 5922, "loc": { "start": { "line": 164, @@ -105461,8 +105489,8 @@ "binop": null, "updateContext": null }, - "start": 5926, - "end": 5927, + "start": 5922, + "end": 5923, "loc": { "start": { "line": 164, @@ -105487,8 +105515,8 @@ "binop": null }, "value": "y", - "start": 5928, - "end": 5929, + "start": 5924, + "end": 5925, "loc": { "start": { "line": 164, @@ -105513,8 +105541,8 @@ "binop": null, "updateContext": null }, - "start": 5929, - "end": 5930, + "start": 5925, + "end": 5926, "loc": { "start": { "line": 164, @@ -105540,8 +105568,8 @@ "updateContext": null }, "value": 0, - "start": 5931, - "end": 5932, + "start": 5927, + "end": 5928, "loc": { "start": { "line": 164, @@ -105565,8 +105593,8 @@ "postfix": false, "binop": null }, - "start": 5933, - "end": 5934, + "start": 5929, + "end": 5930, "loc": { "start": { "line": 164, @@ -105591,8 +105619,8 @@ "binop": null, "updateContext": null }, - "start": 5934, - "end": 5935, + "start": 5930, + "end": 5931, "loc": { "start": { "line": 164, @@ -105607,8 +105635,8 @@ { "type": "CommentLine", "value": " The stuck counter of this instance. When this instance is in the same position for multiple ticks, this value is added onto up until -", - "start": 5942, - "end": 6079, + "start": 5938, + "end": 6075, "loc": { "start": { "line": 165, @@ -105623,8 +105651,8 @@ { "type": "CommentLine", "value": " the max stuck counter is reached and the `stuck` event is called.", - "start": 6086, - "end": 6154, + "start": 6082, + "end": 6150, "loc": { "start": { "line": 166, @@ -105649,8 +105677,8 @@ "binop": null }, "value": "stuckCounter", - "start": 6161, - "end": 6173, + "start": 6157, + "end": 6169, "loc": { "start": { "line": 167, @@ -105675,8 +105703,8 @@ "binop": null, "updateContext": null }, - "start": 6173, - "end": 6174, + "start": 6169, + "end": 6170, "loc": { "start": { "line": 167, @@ -105702,8 +105730,8 @@ "updateContext": null }, "value": 0, - "start": 6175, - "end": 6176, + "start": 6171, + "end": 6172, "loc": { "start": { "line": 167, @@ -105728,8 +105756,8 @@ "binop": null, "updateContext": null }, - "start": 6176, - "end": 6177, + "start": 6172, + "end": 6173, "loc": { "start": { "line": 167, @@ -105754,8 +105782,8 @@ "binop": null }, "value": "maxStuckCounter", - "start": 6184, - "end": 6199, + "start": 6180, + "end": 6195, "loc": { "start": { "line": 168, @@ -105780,8 +105808,8 @@ "binop": null, "updateContext": null }, - "start": 6199, - "end": 6200, + "start": 6195, + "end": 6196, "loc": { "start": { "line": 168, @@ -105806,8 +105834,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 6201, - "end": 6217, + "start": 6197, + "end": 6213, "loc": { "start": { "line": 168, @@ -105832,8 +105860,8 @@ "binop": null, "updateContext": null }, - "start": 6217, - "end": 6218, + "start": 6213, + "end": 6214, "loc": { "start": { "line": 168, @@ -105858,8 +105886,8 @@ "binop": null }, "value": "MAX_STUCK_COUNTER", - "start": 6218, - "end": 6235, + "start": 6214, + "end": 6231, "loc": { "start": { "line": 168, @@ -105884,8 +105912,8 @@ "binop": null, "updateContext": null }, - "start": 6235, - "end": 6236, + "start": 6231, + "end": 6232, "loc": { "start": { "line": 168, @@ -105910,8 +105938,8 @@ "binop": null }, "value": "pathID", - "start": 6243, - "end": 6249, + "start": 6239, + "end": 6245, "loc": { "start": { "line": 169, @@ -105936,8 +105964,8 @@ "binop": null, "updateContext": null }, - "start": 6249, - "end": 6250, + "start": 6245, + "end": 6246, "loc": { "start": { "line": 169, @@ -105964,8 +105992,8 @@ "updateContext": null }, "value": "null", - "start": 6251, - "end": 6255, + "start": 6247, + "end": 6251, "loc": { "start": { "line": 169, @@ -105990,8 +106018,8 @@ "binop": null, "updateContext": null }, - "start": 6255, - "end": 6256, + "start": 6251, + "end": 6252, "loc": { "start": { "line": 169, @@ -106006,8 +106034,8 @@ { "type": "CommentLine", "value": " ID of the path that was generated. Used to cancel the path.", - "start": 6257, - "end": 6319, + "start": 6253, + "end": 6315, "loc": { "start": { "line": 169, @@ -106032,8 +106060,8 @@ "binop": null }, "value": "path", - "start": 6326, - "end": 6330, + "start": 6322, + "end": 6326, "loc": { "start": { "line": 170, @@ -106058,8 +106086,8 @@ "binop": null, "updateContext": null }, - "start": 6330, - "end": 6331, + "start": 6326, + "end": 6327, "loc": { "start": { "line": 170, @@ -106084,8 +106112,8 @@ "binop": null, "updateContext": null }, - "start": 6332, - "end": 6333, + "start": 6328, + "end": 6329, "loc": { "start": { "line": 170, @@ -106110,8 +106138,8 @@ "binop": null, "updateContext": null }, - "start": 6333, - "end": 6334, + "start": 6329, + "end": 6330, "loc": { "start": { "line": 170, @@ -106136,8 +106164,8 @@ "binop": null, "updateContext": null }, - "start": 6334, - "end": 6335, + "start": 6330, + "end": 6331, "loc": { "start": { "line": 170, @@ -106162,8 +106190,8 @@ "binop": null }, "value": "moving", - "start": 6342, - "end": 6348, + "start": 6338, + "end": 6344, "loc": { "start": { "line": 171, @@ -106188,8 +106216,8 @@ "binop": null, "updateContext": null }, - "start": 6348, - "end": 6349, + "start": 6344, + "end": 6345, "loc": { "start": { "line": 171, @@ -106216,8 +106244,8 @@ "updateContext": null }, "value": "null", - "start": 6350, - "end": 6354, + "start": 6346, + "end": 6350, "loc": { "start": { "line": 171, @@ -106242,8 +106270,8 @@ "binop": null, "updateContext": null }, - "start": 6354, - "end": 6355, + "start": 6350, + "end": 6351, "loc": { "start": { "line": 171, @@ -106268,8 +106296,8 @@ "binop": null }, "value": "mode", - "start": 6362, - "end": 6366, + "start": 6358, + "end": 6362, "loc": { "start": { "line": 172, @@ -106294,8 +106322,8 @@ "binop": null, "updateContext": null }, - "start": 6366, - "end": 6367, + "start": 6362, + "end": 6363, "loc": { "start": { "line": 172, @@ -106320,8 +106348,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 6368, - "end": 6384, + "start": 6364, + "end": 6380, "loc": { "start": { "line": 172, @@ -106346,8 +106374,8 @@ "binop": null, "updateContext": null }, - "start": 6384, - "end": 6385, + "start": 6380, + "end": 6381, "loc": { "start": { "line": 172, @@ -106372,8 +106400,8 @@ "binop": null }, "value": "DEFAULT_MODE", - "start": 6385, - "end": 6397, + "start": 6381, + "end": 6393, "loc": { "start": { "line": 172, @@ -106398,8 +106426,8 @@ "binop": null, "updateContext": null }, - "start": 6397, - "end": 6398, + "start": 6393, + "end": 6394, "loc": { "start": { "line": 172, @@ -106424,8 +106452,8 @@ "binop": null }, "value": "pixelsPerSecond", - "start": 6405, - "end": 6420, + "start": 6401, + "end": 6416, "loc": { "start": { "line": 173, @@ -106450,8 +106478,8 @@ "binop": null, "updateContext": null }, - "start": 6420, - "end": 6421, + "start": 6416, + "end": 6417, "loc": { "start": { "line": 173, @@ -106476,8 +106504,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 6422, - "end": 6438, + "start": 6418, + "end": 6434, "loc": { "start": { "line": 173, @@ -106502,8 +106530,8 @@ "binop": null, "updateContext": null }, - "start": 6438, - "end": 6439, + "start": 6434, + "end": 6435, "loc": { "start": { "line": 173, @@ -106528,8 +106556,8 @@ "binop": null }, "value": "DEFAULT_PIXELS_PER_SECOND", - "start": 6439, - "end": 6464, + "start": 6435, + "end": 6460, "loc": { "start": { "line": 173, @@ -106554,8 +106582,8 @@ "binop": null, "updateContext": null }, - "start": 6464, - "end": 6465, + "start": 6460, + "end": 6461, "loc": { "start": { "line": 173, @@ -106580,8 +106608,8 @@ "binop": null }, "value": "minDistance", - "start": 6472, - "end": 6483, + "start": 6468, + "end": 6479, "loc": { "start": { "line": 174, @@ -106606,8 +106634,8 @@ "binop": null, "updateContext": null }, - "start": 6483, - "end": 6484, + "start": 6479, + "end": 6480, "loc": { "start": { "line": 174, @@ -106632,8 +106660,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 6485, - "end": 6501, + "start": 6481, + "end": 6497, "loc": { "start": { "line": 174, @@ -106658,8 +106686,8 @@ "binop": null, "updateContext": null }, - "start": 6501, - "end": 6502, + "start": 6497, + "end": 6498, "loc": { "start": { "line": 174, @@ -106684,8 +106712,8 @@ "binop": null }, "value": "DEFAULT_MINIMUM_DISTANCE", - "start": 6502, - "end": 6526, + "start": 6498, + "end": 6522, "loc": { "start": { "line": 174, @@ -106710,8 +106738,8 @@ "binop": null, "updateContext": null }, - "start": 6526, - "end": 6527, + "start": 6522, + "end": 6523, "loc": { "start": { "line": 174, @@ -106736,8 +106764,8 @@ "binop": null }, "value": "events", - "start": 6534, - "end": 6540, + "start": 6530, + "end": 6536, "loc": { "start": { "line": 175, @@ -106762,8 +106790,8 @@ "binop": null, "updateContext": null }, - "start": 6540, - "end": 6541, + "start": 6536, + "end": 6537, "loc": { "start": { "line": 175, @@ -106787,8 +106815,8 @@ "postfix": false, "binop": null }, - "start": 6542, - "end": 6543, + "start": 6538, + "end": 6539, "loc": { "start": { "line": 175, @@ -106813,8 +106841,8 @@ "binop": null }, "value": "onPathStuck", - "start": 6551, - "end": 6562, + "start": 6547, + "end": 6558, "loc": { "start": { "line": 176, @@ -106839,8 +106867,8 @@ "binop": null, "updateContext": null }, - "start": 6562, - "end": 6563, + "start": 6558, + "end": 6559, "loc": { "start": { "line": 176, @@ -106867,8 +106895,8 @@ "updateContext": null }, "value": "null", - "start": 6564, - "end": 6568, + "start": 6560, + "end": 6564, "loc": { "start": { "line": 176, @@ -106893,8 +106921,8 @@ "binop": null, "updateContext": null }, - "start": 6568, - "end": 6569, + "start": 6564, + "end": 6565, "loc": { "start": { "line": 176, @@ -106919,8 +106947,8 @@ "binop": null }, "value": "onPathComplete", - "start": 6577, - "end": 6591, + "start": 6573, + "end": 6587, "loc": { "start": { "line": 177, @@ -106945,8 +106973,8 @@ "binop": null, "updateContext": null }, - "start": 6591, - "end": 6592, + "start": 6587, + "end": 6588, "loc": { "start": { "line": 177, @@ -106973,8 +107001,8 @@ "updateContext": null }, "value": "null", - "start": 6593, - "end": 6597, + "start": 6589, + "end": 6593, "loc": { "start": { "line": 177, @@ -106999,8 +107027,8 @@ "binop": null, "updateContext": null }, - "start": 6597, - "end": 6598, + "start": 6593, + "end": 6594, "loc": { "start": { "line": 177, @@ -107025,8 +107053,8 @@ "binop": null }, "value": "onPathFound", - "start": 6606, - "end": 6617, + "start": 6602, + "end": 6613, "loc": { "start": { "line": 178, @@ -107051,8 +107079,8 @@ "binop": null, "updateContext": null }, - "start": 6617, - "end": 6618, + "start": 6613, + "end": 6614, "loc": { "start": { "line": 178, @@ -107079,8 +107107,8 @@ "updateContext": null }, "value": "null", - "start": 6619, - "end": 6623, + "start": 6615, + "end": 6619, "loc": { "start": { "line": 178, @@ -107105,8 +107133,8 @@ "binop": null, "updateContext": null }, - "start": 6623, - "end": 6624, + "start": 6619, + "end": 6620, "loc": { "start": { "line": 178, @@ -107131,8 +107159,8 @@ "binop": null }, "value": "onPathNotFound", - "start": 6632, - "end": 6646, + "start": 6628, + "end": 6642, "loc": { "start": { "line": 179, @@ -107157,8 +107185,8 @@ "binop": null, "updateContext": null }, - "start": 6646, - "end": 6647, + "start": 6642, + "end": 6643, "loc": { "start": { "line": 179, @@ -107185,8 +107213,8 @@ "updateContext": null }, "value": "null", - "start": 6648, - "end": 6652, + "start": 6644, + "end": 6648, "loc": { "start": { "line": 179, @@ -107211,8 +107239,8 @@ "binop": null, "updateContext": null }, - "start": 6652, - "end": 6653, + "start": 6648, + "end": 6649, "loc": { "start": { "line": 179, @@ -107236,8 +107264,8 @@ "postfix": false, "binop": null }, - "start": 6660, - "end": 6661, + "start": 6656, + "end": 6657, "loc": { "start": { "line": 180, @@ -107262,8 +107290,8 @@ "binop": null, "updateContext": null }, - "start": 6661, - "end": 6662, + "start": 6657, + "end": 6658, "loc": { "start": { "line": 180, @@ -107288,8 +107316,8 @@ "binop": null }, "value": "easystar", - "start": 6669, - "end": 6677, + "start": 6665, + "end": 6673, "loc": { "start": { "line": 181, @@ -107314,8 +107342,8 @@ "binop": null, "updateContext": null }, - "start": 6677, - "end": 6678, + "start": 6673, + "end": 6674, "loc": { "start": { "line": 181, @@ -107342,8 +107370,8 @@ "updateContext": null }, "value": "new", - "start": 6679, - "end": 6682, + "start": 6675, + "end": 6678, "loc": { "start": { "line": 181, @@ -107368,8 +107396,8 @@ "binop": null }, "value": "EasyStar", - "start": 6683, - "end": 6691, + "start": 6679, + "end": 6687, "loc": { "start": { "line": 181, @@ -107394,8 +107422,8 @@ "binop": null, "updateContext": null }, - "start": 6691, - "end": 6692, + "start": 6687, + "end": 6688, "loc": { "start": { "line": 181, @@ -107420,8 +107448,8 @@ "binop": null }, "value": "js", - "start": 6692, - "end": 6694, + "start": 6688, + "end": 6690, "loc": { "start": { "line": 181, @@ -107445,8 +107473,8 @@ "postfix": false, "binop": null }, - "start": 6694, - "end": 6695, + "start": 6690, + "end": 6691, "loc": { "start": { "line": 181, @@ -107470,8 +107498,8 @@ "postfix": false, "binop": null }, - "start": 6695, - "end": 6696, + "start": 6691, + "end": 6692, "loc": { "start": { "line": 181, @@ -107495,8 +107523,8 @@ "postfix": false, "binop": null }, - "start": 6702, - "end": 6703, + "start": 6698, + "end": 6699, "loc": { "start": { "line": 182, @@ -107521,8 +107549,8 @@ "binop": null, "updateContext": null }, - "start": 6703, - "end": 6704, + "start": 6699, + "end": 6700, "loc": { "start": { "line": 182, @@ -107537,8 +107565,8 @@ { "type": "CommentLine", "value": " If you have a large grid, then it is possible that these calculations could slow down the browser. ", - "start": 6710, - "end": 6812, + "start": 6706, + "end": 6808, "loc": { "start": { "line": 183, @@ -107553,8 +107581,8 @@ { "type": "CommentLine", "value": " For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation", - "start": 6818, - "end": 6913, + "start": 6814, + "end": 6909, "loc": { "start": { "line": 184, @@ -107569,8 +107597,8 @@ { "type": "CommentLine", "value": " https://github.com/prettymuchbryce/easystarjs", - "start": 6919, - "end": 6967, + "start": 6915, + "end": 6963, "loc": { "start": { "line": 185, @@ -107595,8 +107623,8 @@ "binop": null }, "value": "instanceData", - "start": 6973, - "end": 6985, + "start": 6969, + "end": 6981, "loc": { "start": { "line": 186, @@ -107621,8 +107649,8 @@ "binop": null, "updateContext": null }, - "start": 6985, - "end": 6986, + "start": 6981, + "end": 6982, "loc": { "start": { "line": 186, @@ -107647,8 +107675,8 @@ "binop": null }, "value": "easystar", - "start": 6986, - "end": 6994, + "start": 6982, + "end": 6990, "loc": { "start": { "line": 186, @@ -107673,8 +107701,8 @@ "binop": null, "updateContext": null }, - "start": 6994, - "end": 6995, + "start": 6990, + "end": 6991, "loc": { "start": { "line": 186, @@ -107699,8 +107727,8 @@ "binop": null }, "value": "setIterationsPerCalculation", - "start": 6995, - "end": 7022, + "start": 6991, + "end": 7018, "loc": { "start": { "line": 186, @@ -107724,8 +107752,8 @@ "postfix": false, "binop": null }, - "start": 7022, - "end": 7023, + "start": 7018, + "end": 7019, "loc": { "start": { "line": 186, @@ -107751,8 +107779,8 @@ "updateContext": null }, "value": 1000, - "start": 7023, - "end": 7027, + "start": 7019, + "end": 7023, "loc": { "start": { "line": 186, @@ -107776,8 +107804,8 @@ "postfix": false, "binop": null }, - "start": 7027, - "end": 7028, + "start": 7023, + "end": 7024, "loc": { "start": { "line": 186, @@ -107802,8 +107830,8 @@ "binop": null, "updateContext": null }, - "start": 7028, - "end": 7029, + "start": 7024, + "end": 7025, "loc": { "start": { "line": 186, @@ -107818,8 +107846,8 @@ { "type": "CommentLine", "value": " Assign the instance data", - "start": 7035, - "end": 7062, + "start": 7031, + "end": 7058, "loc": { "start": { "line": 187, @@ -107846,8 +107874,8 @@ "updateContext": null }, "value": "this", - "start": 7068, - "end": 7072, + "start": 7064, + "end": 7068, "loc": { "start": { "line": 188, @@ -107872,8 +107900,8 @@ "binop": null, "updateContext": null }, - "start": 7072, - "end": 7073, + "start": 7068, + "end": 7069, "loc": { "start": { "line": 188, @@ -107898,8 +107926,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 7073, - "end": 7088, + "start": 7069, + "end": 7084, "loc": { "start": { "line": 188, @@ -107924,8 +107952,8 @@ "binop": null, "updateContext": null }, - "start": 7088, - "end": 7089, + "start": 7084, + "end": 7085, "loc": { "start": { "line": 188, @@ -107950,8 +107978,8 @@ "binop": null }, "value": "set", - "start": 7089, - "end": 7092, + "start": 7085, + "end": 7088, "loc": { "start": { "line": 188, @@ -107975,8 +108003,8 @@ "postfix": false, "binop": null }, - "start": 7092, - "end": 7093, + "start": 7088, + "end": 7089, "loc": { "start": { "line": 188, @@ -108001,8 +108029,8 @@ "binop": null }, "value": "pInstance", - "start": 7093, - "end": 7102, + "start": 7089, + "end": 7098, "loc": { "start": { "line": 188, @@ -108027,8 +108055,8 @@ "binop": null, "updateContext": null }, - "start": 7102, - "end": 7103, + "start": 7098, + "end": 7099, "loc": { "start": { "line": 188, @@ -108053,8 +108081,8 @@ "binop": null }, "value": "instanceData", - "start": 7104, - "end": 7116, + "start": 7100, + "end": 7112, "loc": { "start": { "line": 188, @@ -108078,8 +108106,8 @@ "postfix": false, "binop": null }, - "start": 7116, - "end": 7117, + "start": 7112, + "end": 7113, "loc": { "start": { "line": 188, @@ -108104,8 +108132,8 @@ "binop": null, "updateContext": null }, - "start": 7117, - "end": 7118, + "start": 7113, + "end": 7114, "loc": { "start": { "line": 188, @@ -108129,8 +108157,8 @@ "postfix": false, "binop": null }, - "start": 7123, - "end": 7124, + "start": 7119, + "end": 7120, "loc": { "start": { "line": 189, @@ -108157,8 +108185,8 @@ "updateContext": null }, "value": "else", - "start": 7125, - "end": 7129, + "start": 7121, + "end": 7125, "loc": { "start": { "line": 189, @@ -108182,8 +108210,8 @@ "postfix": false, "binop": null }, - "start": 7130, - "end": 7131, + "start": 7126, + "end": 7127, "loc": { "start": { "line": 189, @@ -108198,8 +108226,8 @@ { "type": "CommentLine", "value": " If this instance has data already, we reset it", - "start": 7137, - "end": 7186, + "start": 7133, + "end": 7182, "loc": { "start": { "line": 190, @@ -108226,8 +108254,8 @@ "updateContext": null }, "value": "this", - "start": 7192, - "end": 7196, + "start": 7188, + "end": 7192, "loc": { "start": { "line": 191, @@ -108252,8 +108280,8 @@ "binop": null, "updateContext": null }, - "start": 7196, - "end": 7197, + "start": 7192, + "end": 7193, "loc": { "start": { "line": 191, @@ -108278,8 +108306,8 @@ "binop": null }, "value": "end", - "start": 7197, - "end": 7200, + "start": 7193, + "end": 7196, "loc": { "start": { "line": 191, @@ -108303,8 +108331,8 @@ "postfix": false, "binop": null }, - "start": 7200, - "end": 7201, + "start": 7196, + "end": 7197, "loc": { "start": { "line": 191, @@ -108329,8 +108357,8 @@ "binop": null }, "value": "pInstance", - "start": 7201, - "end": 7210, + "start": 7197, + "end": 7206, "loc": { "start": { "line": 191, @@ -108354,8 +108382,8 @@ "postfix": false, "binop": null }, - "start": 7210, - "end": 7211, + "start": 7206, + "end": 7207, "loc": { "start": { "line": 191, @@ -108380,8 +108408,8 @@ "binop": null, "updateContext": null }, - "start": 7211, - "end": 7212, + "start": 7207, + "end": 7208, "loc": { "start": { "line": 191, @@ -108405,8 +108433,8 @@ "postfix": false, "binop": null }, - "start": 7217, - "end": 7218, + "start": 7213, + "end": 7214, "loc": { "start": { "line": 192, @@ -108420,9 +108448,9 @@ }, { "type": "CommentBlock", - "value": "*\r\n\t\t\t * An exclusion list of tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", - "start": 7225, - "end": 7292, + "value": "*\r\n\t\t\t * An exclusion list of instances and tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t ", + "start": 7221, + "end": 7302, "loc": { "start": { "line": 194, @@ -108449,8 +108477,8 @@ "updateContext": null }, "value": "let", - "start": 7297, - "end": 7300, + "start": 7307, + "end": 7310, "loc": { "start": { "line": 198, @@ -108475,8 +108503,8 @@ "binop": null }, "value": "excludeList", - "start": 7301, - "end": 7312, + "start": 7311, + "end": 7322, "loc": { "start": { "line": 198, @@ -108502,8 +108530,8 @@ "updateContext": null }, "value": "=", - "start": 7313, - "end": 7314, + "start": 7323, + "end": 7324, "loc": { "start": { "line": 198, @@ -108528,8 +108556,8 @@ "binop": null, "updateContext": null }, - "start": 7315, - "end": 7316, + "start": 7325, + "end": 7326, "loc": { "start": { "line": 198, @@ -108554,8 +108582,8 @@ "binop": null, "updateContext": null }, - "start": 7316, - "end": 7317, + "start": 7326, + "end": 7327, "loc": { "start": { "line": 198, @@ -108580,8 +108608,8 @@ "binop": null, "updateContext": null }, - "start": 7317, - "end": 7318, + "start": 7327, + "end": 7328, "loc": { "start": { "line": 198, @@ -108596,8 +108624,8 @@ { "type": "CommentLine", "value": " If there are options passed. Parse them.", - "start": 7325, - "end": 7368, + "start": 7335, + "end": 7378, "loc": { "start": { "line": 200, @@ -108624,8 +108652,8 @@ "updateContext": null }, "value": "if", - "start": 7373, - "end": 7375, + "start": 7383, + "end": 7385, "loc": { "start": { "line": 201, @@ -108649,8 +108677,8 @@ "postfix": false, "binop": null }, - "start": 7376, - "end": 7377, + "start": 7386, + "end": 7387, "loc": { "start": { "line": 201, @@ -108677,8 +108705,8 @@ "updateContext": null }, "value": "typeof", - "start": 7377, - "end": 7383, + "start": 7387, + "end": 7393, "loc": { "start": { "line": 201, @@ -108702,8 +108730,8 @@ "postfix": false, "binop": null }, - "start": 7383, - "end": 7384, + "start": 7393, + "end": 7394, "loc": { "start": { "line": 201, @@ -108728,8 +108756,8 @@ "binop": null }, "value": "pOptions", - "start": 7384, - "end": 7392, + "start": 7394, + "end": 7402, "loc": { "start": { "line": 201, @@ -108753,8 +108781,8 @@ "postfix": false, "binop": null }, - "start": 7392, - "end": 7393, + "start": 7402, + "end": 7403, "loc": { "start": { "line": 201, @@ -108780,8 +108808,8 @@ "updateContext": null }, "value": "===", - "start": 7394, - "end": 7397, + "start": 7404, + "end": 7407, "loc": { "start": { "line": 201, @@ -108807,8 +108835,8 @@ "updateContext": null }, "value": "object", - "start": 7398, - "end": 7406, + "start": 7408, + "end": 7416, "loc": { "start": { "line": 201, @@ -108832,8 +108860,8 @@ "postfix": false, "binop": null }, - "start": 7406, - "end": 7407, + "start": 7416, + "end": 7417, "loc": { "start": { "line": 201, @@ -108857,8 +108885,8 @@ "postfix": false, "binop": null }, - "start": 7408, - "end": 7409, + "start": 7418, + "end": 7419, "loc": { "start": { "line": 201, @@ -108873,8 +108901,8 @@ { "type": "CommentLine", "value": " If max stuck counter is found in options, set it.", - "start": 7415, - "end": 7467, + "start": 7425, + "end": 7477, "loc": { "start": { "line": 202, @@ -108901,8 +108929,8 @@ "updateContext": null }, "value": "if", - "start": 7473, - "end": 7475, + "start": 7483, + "end": 7485, "loc": { "start": { "line": 203, @@ -108926,8 +108954,8 @@ "postfix": false, "binop": null }, - "start": 7476, - "end": 7477, + "start": 7486, + "end": 7487, "loc": { "start": { "line": 203, @@ -108954,8 +108982,8 @@ "updateContext": null }, "value": "typeof", - "start": 7477, - "end": 7483, + "start": 7487, + "end": 7493, "loc": { "start": { "line": 203, @@ -108979,8 +109007,8 @@ "postfix": false, "binop": null }, - "start": 7483, - "end": 7484, + "start": 7493, + "end": 7494, "loc": { "start": { "line": 203, @@ -109005,8 +109033,8 @@ "binop": null }, "value": "pOptions", - "start": 7484, - "end": 7492, + "start": 7494, + "end": 7502, "loc": { "start": { "line": 203, @@ -109031,8 +109059,8 @@ "binop": null, "updateContext": null }, - "start": 7492, - "end": 7493, + "start": 7502, + "end": 7503, "loc": { "start": { "line": 203, @@ -109057,8 +109085,8 @@ "binop": null }, "value": "maxStuckCounter", - "start": 7493, - "end": 7508, + "start": 7503, + "end": 7518, "loc": { "start": { "line": 203, @@ -109082,8 +109110,8 @@ "postfix": false, "binop": null }, - "start": 7508, - "end": 7509, + "start": 7518, + "end": 7519, "loc": { "start": { "line": 203, @@ -109109,8 +109137,8 @@ "updateContext": null }, "value": "===", - "start": 7510, - "end": 7513, + "start": 7520, + "end": 7523, "loc": { "start": { "line": 203, @@ -109136,8 +109164,8 @@ "updateContext": null }, "value": "number", - "start": 7514, - "end": 7522, + "start": 7524, + "end": 7532, "loc": { "start": { "line": 203, @@ -109161,8 +109189,8 @@ "postfix": false, "binop": null }, - "start": 7522, - "end": 7523, + "start": 7532, + "end": 7533, "loc": { "start": { "line": 203, @@ -109186,8 +109214,8 @@ "postfix": false, "binop": null }, - "start": 7524, - "end": 7525, + "start": 7534, + "end": 7535, "loc": { "start": { "line": 203, @@ -109212,8 +109240,8 @@ "binop": null }, "value": "instanceData", - "start": 7532, - "end": 7544, + "start": 7542, + "end": 7554, "loc": { "start": { "line": 204, @@ -109238,8 +109266,8 @@ "binop": null, "updateContext": null }, - "start": 7544, - "end": 7545, + "start": 7554, + "end": 7555, "loc": { "start": { "line": 204, @@ -109264,8 +109292,8 @@ "binop": null }, "value": "maxStuckCounter", - "start": 7545, - "end": 7560, + "start": 7555, + "end": 7570, "loc": { "start": { "line": 204, @@ -109291,8 +109319,8 @@ "updateContext": null }, "value": "=", - "start": 7561, - "end": 7562, + "start": 7571, + "end": 7572, "loc": { "start": { "line": 204, @@ -109317,8 +109345,8 @@ "binop": null }, "value": "pOptions", - "start": 7563, - "end": 7571, + "start": 7573, + "end": 7581, "loc": { "start": { "line": 204, @@ -109343,8 +109371,8 @@ "binop": null, "updateContext": null }, - "start": 7571, - "end": 7572, + "start": 7581, + "end": 7582, "loc": { "start": { "line": 204, @@ -109369,8 +109397,8 @@ "binop": null }, "value": "maxStuckCounter", - "start": 7572, - "end": 7587, + "start": 7582, + "end": 7597, "loc": { "start": { "line": 204, @@ -109395,8 +109423,8 @@ "binop": null, "updateContext": null }, - "start": 7587, - "end": 7588, + "start": 7597, + "end": 7598, "loc": { "start": { "line": 204, @@ -109420,8 +109448,8 @@ "postfix": false, "binop": null }, - "start": 7594, - "end": 7595, + "start": 7604, + "end": 7605, "loc": { "start": { "line": 205, @@ -109436,8 +109464,8 @@ { "type": "CommentLine", "value": " Enable diagonals if found in passed options.", - "start": 7603, - "end": 7650, + "start": 7613, + "end": 7660, "loc": { "start": { "line": 207, @@ -109452,8 +109480,8 @@ { "type": "CommentLine", "value": " This can cause some \"issues\" such as trying to cut through corners.", - "start": 7656, - "end": 7726, + "start": 7666, + "end": 7736, "loc": { "start": { "line": 208, @@ -109480,8 +109508,8 @@ "updateContext": null }, "value": "if", - "start": 7732, - "end": 7734, + "start": 7742, + "end": 7744, "loc": { "start": { "line": 209, @@ -109505,8 +109533,8 @@ "postfix": false, "binop": null }, - "start": 7735, - "end": 7736, + "start": 7745, + "end": 7746, "loc": { "start": { "line": 209, @@ -109531,8 +109559,8 @@ "binop": null }, "value": "pOptions", - "start": 7736, - "end": 7744, + "start": 7746, + "end": 7754, "loc": { "start": { "line": 209, @@ -109557,8 +109585,8 @@ "binop": null, "updateContext": null }, - "start": 7744, - "end": 7745, + "start": 7754, + "end": 7755, "loc": { "start": { "line": 209, @@ -109583,8 +109611,8 @@ "binop": null }, "value": "diagonal", - "start": 7745, - "end": 7753, + "start": 7755, + "end": 7763, "loc": { "start": { "line": 209, @@ -109608,8 +109636,8 @@ "postfix": false, "binop": null }, - "start": 7753, - "end": 7754, + "start": 7763, + "end": 7764, "loc": { "start": { "line": 209, @@ -109633,8 +109661,8 @@ "postfix": false, "binop": null }, - "start": 7755, - "end": 7756, + "start": 7765, + "end": 7766, "loc": { "start": { "line": 209, @@ -109659,8 +109687,8 @@ "binop": null }, "value": "instanceData", - "start": 7763, - "end": 7775, + "start": 7773, + "end": 7785, "loc": { "start": { "line": 210, @@ -109685,8 +109713,8 @@ "binop": null, "updateContext": null }, - "start": 7775, - "end": 7776, + "start": 7785, + "end": 7786, "loc": { "start": { "line": 210, @@ -109711,8 +109739,8 @@ "binop": null }, "value": "easystar", - "start": 7776, - "end": 7784, + "start": 7786, + "end": 7794, "loc": { "start": { "line": 210, @@ -109737,8 +109765,8 @@ "binop": null, "updateContext": null }, - "start": 7784, - "end": 7785, + "start": 7794, + "end": 7795, "loc": { "start": { "line": 210, @@ -109763,8 +109791,8 @@ "binop": null }, "value": "enableDiagonals", - "start": 7785, - "end": 7800, + "start": 7795, + "end": 7810, "loc": { "start": { "line": 210, @@ -109788,8 +109816,8 @@ "postfix": false, "binop": null }, - "start": 7800, - "end": 7801, + "start": 7810, + "end": 7811, "loc": { "start": { "line": 210, @@ -109813,8 +109841,8 @@ "postfix": false, "binop": null }, - "start": 7801, - "end": 7802, + "start": 7811, + "end": 7812, "loc": { "start": { "line": 210, @@ -109839,8 +109867,8 @@ "binop": null, "updateContext": null }, - "start": 7802, - "end": 7803, + "start": 7812, + "end": 7813, "loc": { "start": { "line": 210, @@ -109865,8 +109893,8 @@ "binop": null }, "value": "instanceData", - "start": 7810, - "end": 7822, + "start": 7820, + "end": 7832, "loc": { "start": { "line": 211, @@ -109891,8 +109919,8 @@ "binop": null, "updateContext": null }, - "start": 7822, - "end": 7823, + "start": 7832, + "end": 7833, "loc": { "start": { "line": 211, @@ -109917,8 +109945,8 @@ "binop": null }, "value": "easystar", - "start": 7823, - "end": 7831, + "start": 7833, + "end": 7841, "loc": { "start": { "line": 211, @@ -109943,8 +109971,8 @@ "binop": null, "updateContext": null }, - "start": 7831, - "end": 7832, + "start": 7841, + "end": 7842, "loc": { "start": { "line": 211, @@ -109969,8 +109997,8 @@ "binop": null }, "value": "enableCornerCutting", - "start": 7832, - "end": 7851, + "start": 7842, + "end": 7861, "loc": { "start": { "line": 211, @@ -109994,8 +110022,8 @@ "postfix": false, "binop": null }, - "start": 7851, - "end": 7852, + "start": 7861, + "end": 7862, "loc": { "start": { "line": 211, @@ -110019,8 +110047,8 @@ "postfix": false, "binop": null }, - "start": 7852, - "end": 7853, + "start": 7862, + "end": 7863, "loc": { "start": { "line": 211, @@ -110045,8 +110073,8 @@ "binop": null, "updateContext": null }, - "start": 7853, - "end": 7854, + "start": 7863, + "end": 7864, "loc": { "start": { "line": 211, @@ -110070,8 +110098,8 @@ "postfix": false, "binop": null }, - "start": 7860, - "end": 7861, + "start": 7870, + "end": 7871, "loc": { "start": { "line": 212, @@ -110086,8 +110114,8 @@ { "type": "CommentLine", "value": " Set the positioning mode", - "start": 7869, - "end": 7896, + "start": 7879, + "end": 7906, "loc": { "start": { "line": 214, @@ -110114,8 +110142,8 @@ "updateContext": null }, "value": "if", - "start": 7902, - "end": 7904, + "start": 7912, + "end": 7914, "loc": { "start": { "line": 215, @@ -110139,8 +110167,8 @@ "postfix": false, "binop": null }, - "start": 7905, - "end": 7906, + "start": 7915, + "end": 7916, "loc": { "start": { "line": 215, @@ -110165,8 +110193,8 @@ "binop": null }, "value": "pOptions", - "start": 7906, - "end": 7914, + "start": 7916, + "end": 7924, "loc": { "start": { "line": 215, @@ -110191,8 +110219,8 @@ "binop": null, "updateContext": null }, - "start": 7914, - "end": 7915, + "start": 7924, + "end": 7925, "loc": { "start": { "line": 215, @@ -110217,8 +110245,8 @@ "binop": null }, "value": "mode", - "start": 7915, - "end": 7919, + "start": 7925, + "end": 7929, "loc": { "start": { "line": 215, @@ -110242,8 +110270,8 @@ "postfix": false, "binop": null }, - "start": 7919, - "end": 7920, + "start": 7929, + "end": 7930, "loc": { "start": { "line": 215, @@ -110267,8 +110295,8 @@ "postfix": false, "binop": null }, - "start": 7921, - "end": 7922, + "start": 7931, + "end": 7932, "loc": { "start": { "line": 215, @@ -110283,8 +110311,8 @@ { "type": "CommentLine", "value": " Get the mode, if an invalid mode is passed, we default to the default mode.", - "start": 7929, - "end": 8007, + "start": 7939, + "end": 8017, "loc": { "start": { "line": 216, @@ -110311,8 +110339,8 @@ "updateContext": null }, "value": "const", - "start": 8014, - "end": 8019, + "start": 8024, + "end": 8029, "loc": { "start": { "line": 217, @@ -110337,8 +110365,8 @@ "binop": null }, "value": "mode", - "start": 8020, - "end": 8024, + "start": 8030, + "end": 8034, "loc": { "start": { "line": 217, @@ -110364,8 +110392,8 @@ "updateContext": null }, "value": "=", - "start": 8025, - "end": 8026, + "start": 8035, + "end": 8036, "loc": { "start": { "line": 217, @@ -110389,8 +110417,8 @@ "postfix": false, "binop": null }, - "start": 8027, - "end": 8028, + "start": 8037, + "end": 8038, "loc": { "start": { "line": 217, @@ -110415,8 +110443,8 @@ "binop": null }, "value": "pOptions", - "start": 8028, - "end": 8036, + "start": 8038, + "end": 8046, "loc": { "start": { "line": 217, @@ -110441,8 +110469,8 @@ "binop": null, "updateContext": null }, - "start": 8036, - "end": 8037, + "start": 8046, + "end": 8047, "loc": { "start": { "line": 217, @@ -110467,8 +110495,8 @@ "binop": null }, "value": "mode", - "start": 8037, - "end": 8041, + "start": 8047, + "end": 8051, "loc": { "start": { "line": 217, @@ -110494,8 +110522,8 @@ "updateContext": null }, "value": "===", - "start": 8042, - "end": 8045, + "start": 8052, + "end": 8055, "loc": { "start": { "line": 217, @@ -110521,8 +110549,8 @@ "updateContext": null }, "value": "collision", - "start": 8046, - "end": 8057, + "start": 8056, + "end": 8067, "loc": { "start": { "line": 217, @@ -110548,8 +110576,8 @@ "updateContext": null }, "value": "||", - "start": 8058, - "end": 8060, + "start": 8068, + "end": 8070, "loc": { "start": { "line": 217, @@ -110574,8 +110602,8 @@ "binop": null }, "value": "pOptions", - "start": 8061, - "end": 8069, + "start": 8071, + "end": 8079, "loc": { "start": { "line": 217, @@ -110600,8 +110628,8 @@ "binop": null, "updateContext": null }, - "start": 8069, - "end": 8070, + "start": 8079, + "end": 8080, "loc": { "start": { "line": 217, @@ -110626,8 +110654,8 @@ "binop": null }, "value": "mode", - "start": 8070, - "end": 8074, + "start": 8080, + "end": 8084, "loc": { "start": { "line": 217, @@ -110653,8 +110681,8 @@ "updateContext": null }, "value": "===", - "start": 8075, - "end": 8078, + "start": 8085, + "end": 8088, "loc": { "start": { "line": 217, @@ -110680,8 +110708,8 @@ "updateContext": null }, "value": "position", - "start": 8079, - "end": 8089, + "start": 8089, + "end": 8099, "loc": { "start": { "line": 217, @@ -110705,8 +110733,8 @@ "postfix": false, "binop": null }, - "start": 8089, - "end": 8090, + "start": 8099, + "end": 8100, "loc": { "start": { "line": 217, @@ -110731,8 +110759,8 @@ "binop": null, "updateContext": null }, - "start": 8091, - "end": 8092, + "start": 8101, + "end": 8102, "loc": { "start": { "line": 217, @@ -110757,8 +110785,8 @@ "binop": null }, "value": "pOptions", - "start": 8093, - "end": 8101, + "start": 8103, + "end": 8111, "loc": { "start": { "line": 217, @@ -110783,8 +110811,8 @@ "binop": null, "updateContext": null }, - "start": 8101, - "end": 8102, + "start": 8111, + "end": 8112, "loc": { "start": { "line": 217, @@ -110809,8 +110837,8 @@ "binop": null }, "value": "mode", - "start": 8102, - "end": 8106, + "start": 8112, + "end": 8116, "loc": { "start": { "line": 217, @@ -110835,8 +110863,8 @@ "binop": null, "updateContext": null }, - "start": 8107, - "end": 8108, + "start": 8117, + "end": 8118, "loc": { "start": { "line": 217, @@ -110861,8 +110889,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 8109, - "end": 8125, + "start": 8119, + "end": 8135, "loc": { "start": { "line": 217, @@ -110887,8 +110915,8 @@ "binop": null, "updateContext": null }, - "start": 8125, - "end": 8126, + "start": 8135, + "end": 8136, "loc": { "start": { "line": 217, @@ -110913,8 +110941,8 @@ "binop": null }, "value": "DEFAULT_MODE", - "start": 8126, - "end": 8138, + "start": 8136, + "end": 8148, "loc": { "start": { "line": 217, @@ -110939,8 +110967,8 @@ "binop": null, "updateContext": null }, - "start": 8138, - "end": 8139, + "start": 8148, + "end": 8149, "loc": { "start": { "line": 217, @@ -110965,8 +110993,8 @@ "binop": null }, "value": "instanceData", - "start": 8146, - "end": 8158, + "start": 8156, + "end": 8168, "loc": { "start": { "line": 218, @@ -110991,8 +111019,8 @@ "binop": null, "updateContext": null }, - "start": 8158, - "end": 8159, + "start": 8168, + "end": 8169, "loc": { "start": { "line": 218, @@ -111017,8 +111045,8 @@ "binop": null }, "value": "mode", - "start": 8159, - "end": 8163, + "start": 8169, + "end": 8173, "loc": { "start": { "line": 218, @@ -111044,8 +111072,8 @@ "updateContext": null }, "value": "=", - "start": 8164, - "end": 8165, + "start": 8174, + "end": 8175, "loc": { "start": { "line": 218, @@ -111070,8 +111098,8 @@ "binop": null }, "value": "mode", - "start": 8166, - "end": 8170, + "start": 8176, + "end": 8180, "loc": { "start": { "line": 218, @@ -111096,8 +111124,8 @@ "binop": null, "updateContext": null }, - "start": 8170, - "end": 8171, + "start": 8180, + "end": 8181, "loc": { "start": { "line": 218, @@ -111121,8 +111149,8 @@ "postfix": false, "binop": null }, - "start": 8177, - "end": 8178, + "start": 8187, + "end": 8188, "loc": { "start": { "line": 219, @@ -111137,8 +111165,8 @@ { "type": "CommentLine", "value": " Assign pixels per second ", - "start": 8186, - "end": 8214, + "start": 8196, + "end": 8224, "loc": { "start": { "line": 221, @@ -111165,8 +111193,8 @@ "updateContext": null }, "value": "if", - "start": 8220, - "end": 8222, + "start": 8230, + "end": 8232, "loc": { "start": { "line": 222, @@ -111190,8 +111218,8 @@ "postfix": false, "binop": null }, - "start": 8223, - "end": 8224, + "start": 8233, + "end": 8234, "loc": { "start": { "line": 222, @@ -111218,8 +111246,8 @@ "updateContext": null }, "value": "typeof", - "start": 8224, - "end": 8230, + "start": 8234, + "end": 8240, "loc": { "start": { "line": 222, @@ -111243,8 +111271,8 @@ "postfix": false, "binop": null }, - "start": 8230, - "end": 8231, + "start": 8240, + "end": 8241, "loc": { "start": { "line": 222, @@ -111269,8 +111297,8 @@ "binop": null }, "value": "pOptions", - "start": 8231, - "end": 8239, + "start": 8241, + "end": 8249, "loc": { "start": { "line": 222, @@ -111295,8 +111323,8 @@ "binop": null, "updateContext": null }, - "start": 8239, - "end": 8240, + "start": 8249, + "end": 8250, "loc": { "start": { "line": 222, @@ -111321,8 +111349,8 @@ "binop": null }, "value": "pixelsPerSecond", - "start": 8240, - "end": 8255, + "start": 8250, + "end": 8265, "loc": { "start": { "line": 222, @@ -111346,8 +111374,8 @@ "postfix": false, "binop": null }, - "start": 8255, - "end": 8256, + "start": 8265, + "end": 8266, "loc": { "start": { "line": 222, @@ -111373,8 +111401,8 @@ "updateContext": null }, "value": "===", - "start": 8257, - "end": 8260, + "start": 8267, + "end": 8270, "loc": { "start": { "line": 222, @@ -111400,8 +111428,8 @@ "updateContext": null }, "value": "number", - "start": 8261, - "end": 8269, + "start": 8271, + "end": 8279, "loc": { "start": { "line": 222, @@ -111425,8 +111453,8 @@ "postfix": false, "binop": null }, - "start": 8269, - "end": 8270, + "start": 8279, + "end": 8280, "loc": { "start": { "line": 222, @@ -111450,8 +111478,8 @@ "postfix": false, "binop": null }, - "start": 8271, - "end": 8272, + "start": 8281, + "end": 8282, "loc": { "start": { "line": 222, @@ -111476,8 +111504,8 @@ "binop": null }, "value": "instanceData", - "start": 8279, - "end": 8291, + "start": 8289, + "end": 8301, "loc": { "start": { "line": 223, @@ -111502,8 +111530,8 @@ "binop": null, "updateContext": null }, - "start": 8291, - "end": 8292, + "start": 8301, + "end": 8302, "loc": { "start": { "line": 223, @@ -111528,8 +111556,8 @@ "binop": null }, "value": "pixelsPerSecond", - "start": 8292, - "end": 8307, + "start": 8302, + "end": 8317, "loc": { "start": { "line": 223, @@ -111555,8 +111583,8 @@ "updateContext": null }, "value": "=", - "start": 8308, - "end": 8309, + "start": 8318, + "end": 8319, "loc": { "start": { "line": 223, @@ -111581,8 +111609,8 @@ "binop": null }, "value": "pOptions", - "start": 8310, - "end": 8318, + "start": 8320, + "end": 8328, "loc": { "start": { "line": 223, @@ -111607,8 +111635,8 @@ "binop": null, "updateContext": null }, - "start": 8318, - "end": 8319, + "start": 8328, + "end": 8329, "loc": { "start": { "line": 223, @@ -111633,8 +111661,8 @@ "binop": null }, "value": "pixelsPerSecond", - "start": 8319, - "end": 8334, + "start": 8329, + "end": 8344, "loc": { "start": { "line": 223, @@ -111659,8 +111687,8 @@ "binop": null, "updateContext": null }, - "start": 8334, - "end": 8335, + "start": 8344, + "end": 8345, "loc": { "start": { "line": 223, @@ -111684,8 +111712,8 @@ "postfix": false, "binop": null }, - "start": 8341, - "end": 8342, + "start": 8351, + "end": 8352, "loc": { "start": { "line": 224, @@ -111700,8 +111728,8 @@ { "type": "CommentLine", "value": " Assign the min distance", - "start": 8350, - "end": 8376, + "start": 8360, + "end": 8386, "loc": { "start": { "line": 226, @@ -111728,8 +111756,8 @@ "updateContext": null }, "value": "if", - "start": 8382, - "end": 8384, + "start": 8392, + "end": 8394, "loc": { "start": { "line": 227, @@ -111753,8 +111781,8 @@ "postfix": false, "binop": null }, - "start": 8385, - "end": 8386, + "start": 8395, + "end": 8396, "loc": { "start": { "line": 227, @@ -111781,8 +111809,8 @@ "updateContext": null }, "value": "typeof", - "start": 8386, - "end": 8392, + "start": 8396, + "end": 8402, "loc": { "start": { "line": 227, @@ -111806,8 +111834,8 @@ "postfix": false, "binop": null }, - "start": 8392, - "end": 8393, + "start": 8402, + "end": 8403, "loc": { "start": { "line": 227, @@ -111832,8 +111860,8 @@ "binop": null }, "value": "pOptions", - "start": 8393, - "end": 8401, + "start": 8403, + "end": 8411, "loc": { "start": { "line": 227, @@ -111858,8 +111886,8 @@ "binop": null, "updateContext": null }, - "start": 8401, - "end": 8402, + "start": 8411, + "end": 8412, "loc": { "start": { "line": 227, @@ -111884,8 +111912,8 @@ "binop": null }, "value": "minDistance", - "start": 8402, - "end": 8413, + "start": 8412, + "end": 8423, "loc": { "start": { "line": 227, @@ -111909,8 +111937,8 @@ "postfix": false, "binop": null }, - "start": 8413, - "end": 8414, + "start": 8423, + "end": 8424, "loc": { "start": { "line": 227, @@ -111936,8 +111964,8 @@ "updateContext": null }, "value": "===", - "start": 8415, - "end": 8418, + "start": 8425, + "end": 8428, "loc": { "start": { "line": 227, @@ -111963,8 +111991,8 @@ "updateContext": null }, "value": "number", - "start": 8419, - "end": 8427, + "start": 8429, + "end": 8437, "loc": { "start": { "line": 227, @@ -111988,8 +112016,8 @@ "postfix": false, "binop": null }, - "start": 8427, - "end": 8428, + "start": 8437, + "end": 8438, "loc": { "start": { "line": 227, @@ -112013,8 +112041,8 @@ "postfix": false, "binop": null }, - "start": 8429, - "end": 8430, + "start": 8439, + "end": 8440, "loc": { "start": { "line": 227, @@ -112039,8 +112067,8 @@ "binop": null }, "value": "instanceData", - "start": 8437, - "end": 8449, + "start": 8447, + "end": 8459, "loc": { "start": { "line": 228, @@ -112065,8 +112093,8 @@ "binop": null, "updateContext": null }, - "start": 8449, - "end": 8450, + "start": 8459, + "end": 8460, "loc": { "start": { "line": 228, @@ -112091,8 +112119,8 @@ "binop": null }, "value": "minDistance", - "start": 8450, - "end": 8461, + "start": 8460, + "end": 8471, "loc": { "start": { "line": 228, @@ -112118,8 +112146,8 @@ "updateContext": null }, "value": "=", - "start": 8462, - "end": 8463, + "start": 8472, + "end": 8473, "loc": { "start": { "line": 228, @@ -112144,8 +112172,8 @@ "binop": null }, "value": "pOptions", - "start": 8464, - "end": 8472, + "start": 8474, + "end": 8482, "loc": { "start": { "line": 228, @@ -112170,8 +112198,8 @@ "binop": null, "updateContext": null }, - "start": 8472, - "end": 8473, + "start": 8482, + "end": 8483, "loc": { "start": { "line": 228, @@ -112196,8 +112224,8 @@ "binop": null }, "value": "minDistance", - "start": 8473, - "end": 8484, + "start": 8483, + "end": 8494, "loc": { "start": { "line": 228, @@ -112222,8 +112250,8 @@ "binop": null, "updateContext": null }, - "start": 8484, - "end": 8485, + "start": 8494, + "end": 8495, "loc": { "start": { "line": 228, @@ -112247,8 +112275,8 @@ "postfix": false, "binop": null }, - "start": 8491, - "end": 8492, + "start": 8501, + "end": 8502, "loc": { "start": { "line": 229, @@ -112263,8 +112291,8 @@ { "type": "CommentLine", "value": " Assign events", - "start": 8500, - "end": 8516, + "start": 8510, + "end": 8526, "loc": { "start": { "line": 231, @@ -112291,8 +112319,8 @@ "updateContext": null }, "value": "if", - "start": 8522, - "end": 8524, + "start": 8532, + "end": 8534, "loc": { "start": { "line": 232, @@ -112316,8 +112344,8 @@ "postfix": false, "binop": null }, - "start": 8525, - "end": 8526, + "start": 8535, + "end": 8536, "loc": { "start": { "line": 232, @@ -112344,8 +112372,8 @@ "updateContext": null }, "value": "typeof", - "start": 8526, - "end": 8532, + "start": 8536, + "end": 8542, "loc": { "start": { "line": 232, @@ -112369,8 +112397,8 @@ "postfix": false, "binop": null }, - "start": 8532, - "end": 8533, + "start": 8542, + "end": 8543, "loc": { "start": { "line": 232, @@ -112395,8 +112423,8 @@ "binop": null }, "value": "pOptions", - "start": 8533, - "end": 8541, + "start": 8543, + "end": 8551, "loc": { "start": { "line": 232, @@ -112421,8 +112449,8 @@ "binop": null, "updateContext": null }, - "start": 8541, - "end": 8542, + "start": 8551, + "end": 8552, "loc": { "start": { "line": 232, @@ -112447,8 +112475,8 @@ "binop": null }, "value": "onPathComplete", - "start": 8542, - "end": 8556, + "start": 8552, + "end": 8566, "loc": { "start": { "line": 232, @@ -112472,8 +112500,8 @@ "postfix": false, "binop": null }, - "start": 8556, - "end": 8557, + "start": 8566, + "end": 8567, "loc": { "start": { "line": 232, @@ -112499,8 +112527,8 @@ "updateContext": null }, "value": "===", - "start": 8558, - "end": 8561, + "start": 8568, + "end": 8571, "loc": { "start": { "line": 232, @@ -112526,8 +112554,8 @@ "updateContext": null }, "value": "function", - "start": 8562, - "end": 8572, + "start": 8572, + "end": 8582, "loc": { "start": { "line": 232, @@ -112551,8 +112579,8 @@ "postfix": false, "binop": null }, - "start": 8572, - "end": 8573, + "start": 8582, + "end": 8583, "loc": { "start": { "line": 232, @@ -112576,8 +112604,8 @@ "postfix": false, "binop": null }, - "start": 8574, - "end": 8575, + "start": 8584, + "end": 8585, "loc": { "start": { "line": 232, @@ -112602,8 +112630,8 @@ "binop": null }, "value": "instanceData", - "start": 8582, - "end": 8594, + "start": 8592, + "end": 8604, "loc": { "start": { "line": 233, @@ -112628,8 +112656,8 @@ "binop": null, "updateContext": null }, - "start": 8594, - "end": 8595, + "start": 8604, + "end": 8605, "loc": { "start": { "line": 233, @@ -112654,8 +112682,8 @@ "binop": null }, "value": "events", - "start": 8595, - "end": 8601, + "start": 8605, + "end": 8611, "loc": { "start": { "line": 233, @@ -112680,8 +112708,8 @@ "binop": null, "updateContext": null }, - "start": 8601, - "end": 8602, + "start": 8611, + "end": 8612, "loc": { "start": { "line": 233, @@ -112706,8 +112734,8 @@ "binop": null }, "value": "onPathComplete", - "start": 8602, - "end": 8616, + "start": 8612, + "end": 8626, "loc": { "start": { "line": 233, @@ -112733,8 +112761,8 @@ "updateContext": null }, "value": "=", - "start": 8617, - "end": 8618, + "start": 8627, + "end": 8628, "loc": { "start": { "line": 233, @@ -112759,8 +112787,8 @@ "binop": null }, "value": "pOptions", - "start": 8619, - "end": 8627, + "start": 8629, + "end": 8637, "loc": { "start": { "line": 233, @@ -112785,8 +112813,8 @@ "binop": null, "updateContext": null }, - "start": 8627, - "end": 8628, + "start": 8637, + "end": 8638, "loc": { "start": { "line": 233, @@ -112811,8 +112839,8 @@ "binop": null }, "value": "onPathComplete", - "start": 8628, - "end": 8642, + "start": 8638, + "end": 8652, "loc": { "start": { "line": 233, @@ -112837,8 +112865,8 @@ "binop": null, "updateContext": null }, - "start": 8642, - "end": 8643, + "start": 8652, + "end": 8653, "loc": { "start": { "line": 233, @@ -112862,8 +112890,8 @@ "postfix": false, "binop": null }, - "start": 8649, - "end": 8650, + "start": 8659, + "end": 8660, "loc": { "start": { "line": 234, @@ -112890,8 +112918,8 @@ "updateContext": null }, "value": "if", - "start": 8658, - "end": 8660, + "start": 8668, + "end": 8670, "loc": { "start": { "line": 236, @@ -112915,8 +112943,8 @@ "postfix": false, "binop": null }, - "start": 8661, - "end": 8662, + "start": 8671, + "end": 8672, "loc": { "start": { "line": 236, @@ -112943,8 +112971,8 @@ "updateContext": null }, "value": "typeof", - "start": 8662, - "end": 8668, + "start": 8672, + "end": 8678, "loc": { "start": { "line": 236, @@ -112968,8 +112996,8 @@ "postfix": false, "binop": null }, - "start": 8668, - "end": 8669, + "start": 8678, + "end": 8679, "loc": { "start": { "line": 236, @@ -112994,8 +113022,8 @@ "binop": null }, "value": "pOptions", - "start": 8669, - "end": 8677, + "start": 8679, + "end": 8687, "loc": { "start": { "line": 236, @@ -113020,8 +113048,8 @@ "binop": null, "updateContext": null }, - "start": 8677, - "end": 8678, + "start": 8687, + "end": 8688, "loc": { "start": { "line": 236, @@ -113046,8 +113074,8 @@ "binop": null }, "value": "onPathFound", - "start": 8678, - "end": 8689, + "start": 8688, + "end": 8699, "loc": { "start": { "line": 236, @@ -113071,8 +113099,8 @@ "postfix": false, "binop": null }, - "start": 8689, - "end": 8690, + "start": 8699, + "end": 8700, "loc": { "start": { "line": 236, @@ -113098,8 +113126,8 @@ "updateContext": null }, "value": "===", - "start": 8691, - "end": 8694, + "start": 8701, + "end": 8704, "loc": { "start": { "line": 236, @@ -113125,8 +113153,8 @@ "updateContext": null }, "value": "function", - "start": 8695, - "end": 8705, + "start": 8705, + "end": 8715, "loc": { "start": { "line": 236, @@ -113150,8 +113178,8 @@ "postfix": false, "binop": null }, - "start": 8705, - "end": 8706, + "start": 8715, + "end": 8716, "loc": { "start": { "line": 236, @@ -113175,8 +113203,8 @@ "postfix": false, "binop": null }, - "start": 8707, - "end": 8708, + "start": 8717, + "end": 8718, "loc": { "start": { "line": 236, @@ -113201,8 +113229,8 @@ "binop": null }, "value": "instanceData", - "start": 8715, - "end": 8727, + "start": 8725, + "end": 8737, "loc": { "start": { "line": 237, @@ -113227,8 +113255,8 @@ "binop": null, "updateContext": null }, - "start": 8727, - "end": 8728, + "start": 8737, + "end": 8738, "loc": { "start": { "line": 237, @@ -113253,8 +113281,8 @@ "binop": null }, "value": "events", - "start": 8728, - "end": 8734, + "start": 8738, + "end": 8744, "loc": { "start": { "line": 237, @@ -113279,8 +113307,8 @@ "binop": null, "updateContext": null }, - "start": 8734, - "end": 8735, + "start": 8744, + "end": 8745, "loc": { "start": { "line": 237, @@ -113305,8 +113333,8 @@ "binop": null }, "value": "onPathFound", - "start": 8735, - "end": 8746, + "start": 8745, + "end": 8756, "loc": { "start": { "line": 237, @@ -113332,8 +113360,8 @@ "updateContext": null }, "value": "=", - "start": 8747, - "end": 8748, + "start": 8757, + "end": 8758, "loc": { "start": { "line": 237, @@ -113358,8 +113386,8 @@ "binop": null }, "value": "pOptions", - "start": 8749, - "end": 8757, + "start": 8759, + "end": 8767, "loc": { "start": { "line": 237, @@ -113384,8 +113412,8 @@ "binop": null, "updateContext": null }, - "start": 8757, - "end": 8758, + "start": 8767, + "end": 8768, "loc": { "start": { "line": 237, @@ -113410,8 +113438,8 @@ "binop": null }, "value": "onPathFound", - "start": 8758, - "end": 8769, + "start": 8768, + "end": 8779, "loc": { "start": { "line": 237, @@ -113436,8 +113464,8 @@ "binop": null, "updateContext": null }, - "start": 8769, - "end": 8770, + "start": 8779, + "end": 8780, "loc": { "start": { "line": 237, @@ -113461,8 +113489,8 @@ "postfix": false, "binop": null }, - "start": 8776, - "end": 8777, + "start": 8786, + "end": 8787, "loc": { "start": { "line": 238, @@ -113489,8 +113517,8 @@ "updateContext": null }, "value": "if", - "start": 8785, - "end": 8787, + "start": 8795, + "end": 8797, "loc": { "start": { "line": 240, @@ -113514,8 +113542,8 @@ "postfix": false, "binop": null }, - "start": 8788, - "end": 8789, + "start": 8798, + "end": 8799, "loc": { "start": { "line": 240, @@ -113542,8 +113570,8 @@ "updateContext": null }, "value": "typeof", - "start": 8789, - "end": 8795, + "start": 8799, + "end": 8805, "loc": { "start": { "line": 240, @@ -113567,8 +113595,8 @@ "postfix": false, "binop": null }, - "start": 8795, - "end": 8796, + "start": 8805, + "end": 8806, "loc": { "start": { "line": 240, @@ -113593,8 +113621,8 @@ "binop": null }, "value": "pOptions", - "start": 8796, - "end": 8804, + "start": 8806, + "end": 8814, "loc": { "start": { "line": 240, @@ -113619,8 +113647,8 @@ "binop": null, "updateContext": null }, - "start": 8804, - "end": 8805, + "start": 8814, + "end": 8815, "loc": { "start": { "line": 240, @@ -113645,8 +113673,8 @@ "binop": null }, "value": "onPathNotFound", - "start": 8805, - "end": 8819, + "start": 8815, + "end": 8829, "loc": { "start": { "line": 240, @@ -113670,8 +113698,8 @@ "postfix": false, "binop": null }, - "start": 8819, - "end": 8820, + "start": 8829, + "end": 8830, "loc": { "start": { "line": 240, @@ -113697,8 +113725,8 @@ "updateContext": null }, "value": "===", - "start": 8821, - "end": 8824, + "start": 8831, + "end": 8834, "loc": { "start": { "line": 240, @@ -113724,8 +113752,8 @@ "updateContext": null }, "value": "function", - "start": 8825, - "end": 8835, + "start": 8835, + "end": 8845, "loc": { "start": { "line": 240, @@ -113749,8 +113777,8 @@ "postfix": false, "binop": null }, - "start": 8835, - "end": 8836, + "start": 8845, + "end": 8846, "loc": { "start": { "line": 240, @@ -113774,8 +113802,8 @@ "postfix": false, "binop": null }, - "start": 8837, - "end": 8838, + "start": 8847, + "end": 8848, "loc": { "start": { "line": 240, @@ -113800,8 +113828,8 @@ "binop": null }, "value": "instanceData", - "start": 8845, - "end": 8857, + "start": 8855, + "end": 8867, "loc": { "start": { "line": 241, @@ -113826,8 +113854,8 @@ "binop": null, "updateContext": null }, - "start": 8857, - "end": 8858, + "start": 8867, + "end": 8868, "loc": { "start": { "line": 241, @@ -113852,8 +113880,8 @@ "binop": null }, "value": "events", - "start": 8858, - "end": 8864, + "start": 8868, + "end": 8874, "loc": { "start": { "line": 241, @@ -113878,8 +113906,8 @@ "binop": null, "updateContext": null }, - "start": 8864, - "end": 8865, + "start": 8874, + "end": 8875, "loc": { "start": { "line": 241, @@ -113904,8 +113932,8 @@ "binop": null }, "value": "onPathNotFound", - "start": 8865, - "end": 8879, + "start": 8875, + "end": 8889, "loc": { "start": { "line": 241, @@ -113931,8 +113959,8 @@ "updateContext": null }, "value": "=", - "start": 8880, - "end": 8881, + "start": 8890, + "end": 8891, "loc": { "start": { "line": 241, @@ -113957,8 +113985,8 @@ "binop": null }, "value": "pOptions", - "start": 8882, - "end": 8890, + "start": 8892, + "end": 8900, "loc": { "start": { "line": 241, @@ -113983,8 +114011,8 @@ "binop": null, "updateContext": null }, - "start": 8890, - "end": 8891, + "start": 8900, + "end": 8901, "loc": { "start": { "line": 241, @@ -114009,8 +114037,8 @@ "binop": null }, "value": "onPathNotFound", - "start": 8891, - "end": 8905, + "start": 8901, + "end": 8915, "loc": { "start": { "line": 241, @@ -114035,8 +114063,8 @@ "binop": null, "updateContext": null }, - "start": 8905, - "end": 8906, + "start": 8915, + "end": 8916, "loc": { "start": { "line": 241, @@ -114060,8 +114088,8 @@ "postfix": false, "binop": null }, - "start": 8912, - "end": 8913, + "start": 8922, + "end": 8923, "loc": { "start": { "line": 242, @@ -114088,8 +114116,8 @@ "updateContext": null }, "value": "if", - "start": 8921, - "end": 8923, + "start": 8931, + "end": 8933, "loc": { "start": { "line": 244, @@ -114113,8 +114141,8 @@ "postfix": false, "binop": null }, - "start": 8924, - "end": 8925, + "start": 8934, + "end": 8935, "loc": { "start": { "line": 244, @@ -114141,8 +114169,8 @@ "updateContext": null }, "value": "typeof", - "start": 8925, - "end": 8931, + "start": 8935, + "end": 8941, "loc": { "start": { "line": 244, @@ -114166,8 +114194,8 @@ "postfix": false, "binop": null }, - "start": 8931, - "end": 8932, + "start": 8941, + "end": 8942, "loc": { "start": { "line": 244, @@ -114192,8 +114220,8 @@ "binop": null }, "value": "pOptions", - "start": 8932, - "end": 8940, + "start": 8942, + "end": 8950, "loc": { "start": { "line": 244, @@ -114218,8 +114246,8 @@ "binop": null, "updateContext": null }, - "start": 8940, - "end": 8941, + "start": 8950, + "end": 8951, "loc": { "start": { "line": 244, @@ -114244,8 +114272,8 @@ "binop": null }, "value": "onPathStuck", - "start": 8941, - "end": 8952, + "start": 8951, + "end": 8962, "loc": { "start": { "line": 244, @@ -114269,8 +114297,8 @@ "postfix": false, "binop": null }, - "start": 8952, - "end": 8953, + "start": 8962, + "end": 8963, "loc": { "start": { "line": 244, @@ -114296,8 +114324,8 @@ "updateContext": null }, "value": "===", - "start": 8954, - "end": 8957, + "start": 8964, + "end": 8967, "loc": { "start": { "line": 244, @@ -114323,8 +114351,8 @@ "updateContext": null }, "value": "function", - "start": 8958, - "end": 8968, + "start": 8968, + "end": 8978, "loc": { "start": { "line": 244, @@ -114348,8 +114376,8 @@ "postfix": false, "binop": null }, - "start": 8968, - "end": 8969, + "start": 8978, + "end": 8979, "loc": { "start": { "line": 244, @@ -114373,8 +114401,8 @@ "postfix": false, "binop": null }, - "start": 8970, - "end": 8971, + "start": 8980, + "end": 8981, "loc": { "start": { "line": 244, @@ -114399,8 +114427,8 @@ "binop": null }, "value": "instanceData", - "start": 8978, - "end": 8990, + "start": 8988, + "end": 9000, "loc": { "start": { "line": 245, @@ -114425,8 +114453,8 @@ "binop": null, "updateContext": null }, - "start": 8990, - "end": 8991, + "start": 9000, + "end": 9001, "loc": { "start": { "line": 245, @@ -114451,8 +114479,8 @@ "binop": null }, "value": "events", - "start": 8991, - "end": 8997, + "start": 9001, + "end": 9007, "loc": { "start": { "line": 245, @@ -114477,8 +114505,8 @@ "binop": null, "updateContext": null }, - "start": 8997, - "end": 8998, + "start": 9007, + "end": 9008, "loc": { "start": { "line": 245, @@ -114503,8 +114531,8 @@ "binop": null }, "value": "onPathStuck", - "start": 8998, - "end": 9009, + "start": 9008, + "end": 9019, "loc": { "start": { "line": 245, @@ -114530,8 +114558,8 @@ "updateContext": null }, "value": "=", - "start": 9010, - "end": 9011, + "start": 9020, + "end": 9021, "loc": { "start": { "line": 245, @@ -114556,8 +114584,8 @@ "binop": null }, "value": "pOptions", - "start": 9012, - "end": 9020, + "start": 9022, + "end": 9030, "loc": { "start": { "line": 245, @@ -114582,8 +114610,8 @@ "binop": null, "updateContext": null }, - "start": 9020, - "end": 9021, + "start": 9030, + "end": 9031, "loc": { "start": { "line": 245, @@ -114608,8 +114636,8 @@ "binop": null }, "value": "onPathStuck", - "start": 9021, - "end": 9032, + "start": 9031, + "end": 9042, "loc": { "start": { "line": 245, @@ -114634,8 +114662,8 @@ "binop": null, "updateContext": null }, - "start": 9032, - "end": 9033, + "start": 9042, + "end": 9043, "loc": { "start": { "line": 245, @@ -114659,8 +114687,8 @@ "postfix": false, "binop": null }, - "start": 9039, - "end": 9040, + "start": 9049, + "end": 9050, "loc": { "start": { "line": 246, @@ -114674,9 +114702,9 @@ }, { "type": "CommentLine", - "value": " Copy the contents of the exclude array to the exclude list we manage.", - "start": 9048, - "end": 9120, + "value": " Copy the contents of the exclude array to the exclude array we manage.", + "start": 9058, + "end": 9131, "loc": { "start": { "line": 248, @@ -114684,7 +114712,7 @@ }, "end": { "line": 248, - "column": 76 + "column": 77 } } }, @@ -114703,8 +114731,8 @@ "updateContext": null }, "value": "if", - "start": 9126, - "end": 9128, + "start": 9137, + "end": 9139, "loc": { "start": { "line": 249, @@ -114728,8 +114756,8 @@ "postfix": false, "binop": null }, - "start": 9129, - "end": 9130, + "start": 9140, + "end": 9141, "loc": { "start": { "line": 249, @@ -114754,8 +114782,8 @@ "binop": null }, "value": "Array", - "start": 9130, - "end": 9135, + "start": 9141, + "end": 9146, "loc": { "start": { "line": 249, @@ -114780,8 +114808,8 @@ "binop": null, "updateContext": null }, - "start": 9135, - "end": 9136, + "start": 9146, + "end": 9147, "loc": { "start": { "line": 249, @@ -114806,8 +114834,8 @@ "binop": null }, "value": "isArray", - "start": 9136, - "end": 9143, + "start": 9147, + "end": 9154, "loc": { "start": { "line": 249, @@ -114831,8 +114859,8 @@ "postfix": false, "binop": null }, - "start": 9143, - "end": 9144, + "start": 9154, + "end": 9155, "loc": { "start": { "line": 249, @@ -114857,8 +114885,8 @@ "binop": null }, "value": "pOptions", - "start": 9144, - "end": 9152, + "start": 9155, + "end": 9163, "loc": { "start": { "line": 249, @@ -114883,8 +114911,8 @@ "binop": null, "updateContext": null }, - "start": 9152, - "end": 9153, + "start": 9163, + "end": 9164, "loc": { "start": { "line": 249, @@ -114909,8 +114937,8 @@ "binop": null }, "value": "exclude", - "start": 9153, - "end": 9160, + "start": 9164, + "end": 9171, "loc": { "start": { "line": 249, @@ -114934,8 +114962,8 @@ "postfix": false, "binop": null }, - "start": 9160, - "end": 9161, + "start": 9171, + "end": 9172, "loc": { "start": { "line": 249, @@ -114959,8 +114987,8 @@ "postfix": false, "binop": null }, - "start": 9161, - "end": 9162, + "start": 9172, + "end": 9173, "loc": { "start": { "line": 249, @@ -114984,8 +115012,8 @@ "postfix": false, "binop": null }, - "start": 9163, - "end": 9164, + "start": 9174, + "end": 9175, "loc": { "start": { "line": 249, @@ -115010,8 +115038,8 @@ "binop": null }, "value": "excludeList", - "start": 9171, - "end": 9182, + "start": 9182, + "end": 9193, "loc": { "start": { "line": 250, @@ -115036,8 +115064,8 @@ "binop": null, "updateContext": null }, - "start": 9182, - "end": 9183, + "start": 9193, + "end": 9194, "loc": { "start": { "line": 250, @@ -115062,8 +115090,8 @@ "binop": null }, "value": "push", - "start": 9183, - "end": 9187, + "start": 9194, + "end": 9198, "loc": { "start": { "line": 250, @@ -115087,8 +115115,8 @@ "postfix": false, "binop": null }, - "start": 9187, - "end": 9188, + "start": 9198, + "end": 9199, "loc": { "start": { "line": 250, @@ -115113,8 +115141,8 @@ "binop": null, "updateContext": null }, - "start": 9188, - "end": 9191, + "start": 9199, + "end": 9202, "loc": { "start": { "line": 250, @@ -115139,8 +115167,8 @@ "binop": null }, "value": "pOptions", - "start": 9191, - "end": 9199, + "start": 9202, + "end": 9210, "loc": { "start": { "line": 250, @@ -115165,8 +115193,8 @@ "binop": null, "updateContext": null }, - "start": 9199, - "end": 9200, + "start": 9210, + "end": 9211, "loc": { "start": { "line": 250, @@ -115191,8 +115219,8 @@ "binop": null }, "value": "exclude", - "start": 9200, - "end": 9207, + "start": 9211, + "end": 9218, "loc": { "start": { "line": 250, @@ -115216,8 +115244,8 @@ "postfix": false, "binop": null }, - "start": 9207, - "end": 9208, + "start": 9218, + "end": 9219, "loc": { "start": { "line": 250, @@ -115242,8 +115270,8 @@ "binop": null, "updateContext": null }, - "start": 9208, - "end": 9209, + "start": 9219, + "end": 9220, "loc": { "start": { "line": 250, @@ -115267,8 +115295,8 @@ "postfix": false, "binop": null }, - "start": 9215, - "end": 9216, + "start": 9226, + "end": 9227, "loc": { "start": { "line": 251, @@ -115292,8 +115320,8 @@ "postfix": false, "binop": null }, - "start": 9221, - "end": 9222, + "start": 9232, + "end": 9233, "loc": { "start": { "line": 252, @@ -115307,9 +115335,9 @@ }, { "type": "CommentLine", - "value": " We add the instance to the exclude list so that it is excluded.", - "start": 9229, - "end": 9295, + "value": " We add the instance to the exclude array so that it is excluded.", + "start": 9240, + "end": 9307, "loc": { "start": { "line": 254, @@ -115317,7 +115345,7 @@ }, "end": { "line": 254, - "column": 69 + "column": 70 } } }, @@ -115336,8 +115364,8 @@ "updateContext": null }, "value": "if", - "start": 9300, - "end": 9302, + "start": 9312, + "end": 9314, "loc": { "start": { "line": 255, @@ -115361,8 +115389,8 @@ "postfix": false, "binop": null }, - "start": 9303, - "end": 9304, + "start": 9315, + "end": 9316, "loc": { "start": { "line": 255, @@ -115388,8 +115416,8 @@ "updateContext": null }, "value": "!", - "start": 9304, - "end": 9305, + "start": 9316, + "end": 9317, "loc": { "start": { "line": 255, @@ -115414,8 +115442,8 @@ "binop": null }, "value": "excludeList", - "start": 9305, - "end": 9316, + "start": 9317, + "end": 9328, "loc": { "start": { "line": 255, @@ -115440,8 +115468,8 @@ "binop": null, "updateContext": null }, - "start": 9316, - "end": 9317, + "start": 9328, + "end": 9329, "loc": { "start": { "line": 255, @@ -115466,8 +115494,8 @@ "binop": null }, "value": "includes", - "start": 9317, - "end": 9325, + "start": 9329, + "end": 9337, "loc": { "start": { "line": 255, @@ -115491,8 +115519,8 @@ "postfix": false, "binop": null }, - "start": 9325, - "end": 9326, + "start": 9337, + "end": 9338, "loc": { "start": { "line": 255, @@ -115517,8 +115545,8 @@ "binop": null }, "value": "pInstance", - "start": 9326, - "end": 9335, + "start": 9338, + "end": 9347, "loc": { "start": { "line": 255, @@ -115542,8 +115570,8 @@ "postfix": false, "binop": null }, - "start": 9335, - "end": 9336, + "start": 9347, + "end": 9348, "loc": { "start": { "line": 255, @@ -115567,8 +115595,8 @@ "postfix": false, "binop": null }, - "start": 9336, - "end": 9337, + "start": 9348, + "end": 9349, "loc": { "start": { "line": 255, @@ -115592,8 +115620,8 @@ "postfix": false, "binop": null }, - "start": 9338, - "end": 9339, + "start": 9350, + "end": 9351, "loc": { "start": { "line": 255, @@ -115618,8 +115646,8 @@ "binop": null }, "value": "excludeList", - "start": 9345, - "end": 9356, + "start": 9357, + "end": 9368, "loc": { "start": { "line": 256, @@ -115644,8 +115672,8 @@ "binop": null, "updateContext": null }, - "start": 9356, - "end": 9357, + "start": 9368, + "end": 9369, "loc": { "start": { "line": 256, @@ -115670,8 +115698,8 @@ "binop": null }, "value": "push", - "start": 9357, - "end": 9361, + "start": 9369, + "end": 9373, "loc": { "start": { "line": 256, @@ -115695,8 +115723,8 @@ "postfix": false, "binop": null }, - "start": 9361, - "end": 9362, + "start": 9373, + "end": 9374, "loc": { "start": { "line": 256, @@ -115721,8 +115749,8 @@ "binop": null }, "value": "pInstance", - "start": 9362, - "end": 9371, + "start": 9374, + "end": 9383, "loc": { "start": { "line": 256, @@ -115746,8 +115774,8 @@ "postfix": false, "binop": null }, - "start": 9371, - "end": 9372, + "start": 9383, + "end": 9384, "loc": { "start": { "line": 256, @@ -115772,8 +115800,8 @@ "binop": null, "updateContext": null }, - "start": 9372, - "end": 9373, + "start": 9384, + "end": 9385, "loc": { "start": { "line": 256, @@ -115797,8 +115825,8 @@ "postfix": false, "binop": null }, - "start": 9378, - "end": 9379, + "start": 9390, + "end": 9391, "loc": { "start": { "line": 257, @@ -115813,8 +115841,8 @@ { "type": "CommentLine", "value": " Build the 2D array grid that represents the map", - "start": 9386, - "end": 9436, + "start": 9398, + "end": 9448, "loc": { "start": { "line": 259, @@ -115841,8 +115869,8 @@ "updateContext": null }, "value": "const", - "start": 9441, - "end": 9446, + "start": 9453, + "end": 9458, "loc": { "start": { "line": 260, @@ -115867,8 +115895,8 @@ "binop": null }, "value": "gridInfo", - "start": 9447, - "end": 9455, + "start": 9459, + "end": 9467, "loc": { "start": { "line": 260, @@ -115894,8 +115922,8 @@ "updateContext": null }, "value": "=", - "start": 9456, - "end": 9457, + "start": 9468, + "end": 9469, "loc": { "start": { "line": 260, @@ -115922,8 +115950,8 @@ "updateContext": null }, "value": "this", - "start": 9458, - "end": 9462, + "start": 9470, + "end": 9474, "loc": { "start": { "line": 260, @@ -115948,8 +115976,8 @@ "binop": null, "updateContext": null }, - "start": 9462, - "end": 9463, + "start": 9474, + "end": 9475, "loc": { "start": { "line": 260, @@ -115974,8 +116002,8 @@ "binop": null }, "value": "mapTilesToGrid", - "start": 9463, - "end": 9477, + "start": 9475, + "end": 9489, "loc": { "start": { "line": 260, @@ -115999,8 +116027,8 @@ "postfix": false, "binop": null }, - "start": 9477, - "end": 9478, + "start": 9489, + "end": 9490, "loc": { "start": { "line": 260, @@ -116025,8 +116053,8 @@ "binop": null }, "value": "pInstance", - "start": 9478, - "end": 9487, + "start": 9490, + "end": 9499, "loc": { "start": { "line": 260, @@ -116051,8 +116079,8 @@ "binop": null, "updateContext": null }, - "start": 9487, - "end": 9488, + "start": 9499, + "end": 9500, "loc": { "start": { "line": 260, @@ -116077,8 +116105,8 @@ "binop": null }, "value": "mapName", - "start": 9488, - "end": 9495, + "start": 9500, + "end": 9507, "loc": { "start": { "line": 260, @@ -116103,8 +116131,8 @@ "binop": null, "updateContext": null }, - "start": 9495, - "end": 9496, + "start": 9507, + "end": 9508, "loc": { "start": { "line": 260, @@ -116129,8 +116157,8 @@ "binop": null }, "value": "excludeList", - "start": 9497, - "end": 9508, + "start": 9509, + "end": 9520, "loc": { "start": { "line": 260, @@ -116154,8 +116182,8 @@ "postfix": false, "binop": null }, - "start": 9508, - "end": 9509, + "start": 9520, + "end": 9521, "loc": { "start": { "line": 260, @@ -116180,8 +116208,8 @@ "binop": null, "updateContext": null }, - "start": 9509, - "end": 9510, + "start": 9521, + "end": 9522, "loc": { "start": { "line": 260, @@ -116196,8 +116224,8 @@ { "type": "CommentLine", "value": " Assign the grid to easystar", - "start": 9520, - "end": 9550, + "start": 9532, + "end": 9562, "loc": { "start": { "line": 262, @@ -116222,8 +116250,8 @@ "binop": null }, "value": "instanceData", - "start": 9555, - "end": 9567, + "start": 9567, + "end": 9579, "loc": { "start": { "line": 263, @@ -116248,8 +116276,8 @@ "binop": null, "updateContext": null }, - "start": 9567, - "end": 9568, + "start": 9579, + "end": 9580, "loc": { "start": { "line": 263, @@ -116274,8 +116302,8 @@ "binop": null }, "value": "easystar", - "start": 9568, - "end": 9576, + "start": 9580, + "end": 9588, "loc": { "start": { "line": 263, @@ -116300,8 +116328,8 @@ "binop": null, "updateContext": null }, - "start": 9576, - "end": 9577, + "start": 9588, + "end": 9589, "loc": { "start": { "line": 263, @@ -116326,8 +116354,8 @@ "binop": null }, "value": "setGrid", - "start": 9577, - "end": 9584, + "start": 9589, + "end": 9596, "loc": { "start": { "line": 263, @@ -116351,8 +116379,8 @@ "postfix": false, "binop": null }, - "start": 9584, - "end": 9585, + "start": 9596, + "end": 9597, "loc": { "start": { "line": 263, @@ -116377,8 +116405,8 @@ "binop": null }, "value": "gridInfo", - "start": 9585, - "end": 9593, + "start": 9597, + "end": 9605, "loc": { "start": { "line": 263, @@ -116403,8 +116431,8 @@ "binop": null, "updateContext": null }, - "start": 9593, - "end": 9594, + "start": 9605, + "end": 9606, "loc": { "start": { "line": 263, @@ -116429,8 +116457,8 @@ "binop": null }, "value": "grid", - "start": 9594, - "end": 9598, + "start": 9606, + "end": 9610, "loc": { "start": { "line": 263, @@ -116454,8 +116482,8 @@ "postfix": false, "binop": null }, - "start": 9598, - "end": 9599, + "start": 9610, + "end": 9611, "loc": { "start": { "line": 263, @@ -116480,8 +116508,8 @@ "binop": null, "updateContext": null }, - "start": 9599, - "end": 9600, + "start": 9611, + "end": 9612, "loc": { "start": { "line": 263, @@ -116496,8 +116524,8 @@ { "type": "CommentLine", "value": " Assign the weight of each tile", - "start": 9610, - "end": 9643, + "start": 9622, + "end": 9655, "loc": { "start": { "line": 265, @@ -116522,8 +116550,8 @@ "binop": null }, "value": "gridInfo", - "start": 9648, - "end": 9656, + "start": 9660, + "end": 9668, "loc": { "start": { "line": 266, @@ -116548,8 +116576,8 @@ "binop": null, "updateContext": null }, - "start": 9656, - "end": 9657, + "start": 9668, + "end": 9669, "loc": { "start": { "line": 266, @@ -116574,8 +116602,8 @@ "binop": null }, "value": "weights", - "start": 9657, - "end": 9664, + "start": 9669, + "end": 9676, "loc": { "start": { "line": 266, @@ -116600,8 +116628,8 @@ "binop": null, "updateContext": null }, - "start": 9664, - "end": 9665, + "start": 9676, + "end": 9677, "loc": { "start": { "line": 266, @@ -116626,8 +116654,8 @@ "binop": null }, "value": "forEach", - "start": 9665, - "end": 9672, + "start": 9677, + "end": 9684, "loc": { "start": { "line": 266, @@ -116651,8 +116679,8 @@ "postfix": false, "binop": null }, - "start": 9672, - "end": 9673, + "start": 9684, + "end": 9685, "loc": { "start": { "line": 266, @@ -116676,8 +116704,8 @@ "postfix": false, "binop": null }, - "start": 9673, - "end": 9674, + "start": 9685, + "end": 9686, "loc": { "start": { "line": 266, @@ -116702,8 +116730,8 @@ "binop": null }, "value": "pWeight", - "start": 9674, - "end": 9681, + "start": 9686, + "end": 9693, "loc": { "start": { "line": 266, @@ -116727,8 +116755,8 @@ "postfix": false, "binop": null }, - "start": 9681, - "end": 9682, + "start": 9693, + "end": 9694, "loc": { "start": { "line": 266, @@ -116753,8 +116781,8 @@ "binop": null, "updateContext": null }, - "start": 9683, - "end": 9685, + "start": 9695, + "end": 9697, "loc": { "start": { "line": 266, @@ -116778,8 +116806,8 @@ "postfix": false, "binop": null }, - "start": 9686, - "end": 9687, + "start": 9698, + "end": 9699, "loc": { "start": { "line": 266, @@ -116804,8 +116832,8 @@ "binop": null }, "value": "instanceData", - "start": 9693, - "end": 9705, + "start": 9705, + "end": 9717, "loc": { "start": { "line": 267, @@ -116830,8 +116858,8 @@ "binop": null, "updateContext": null }, - "start": 9705, - "end": 9706, + "start": 9717, + "end": 9718, "loc": { "start": { "line": 267, @@ -116856,8 +116884,8 @@ "binop": null }, "value": "easystar", - "start": 9706, - "end": 9714, + "start": 9718, + "end": 9726, "loc": { "start": { "line": 267, @@ -116882,8 +116910,8 @@ "binop": null, "updateContext": null }, - "start": 9714, - "end": 9715, + "start": 9726, + "end": 9727, "loc": { "start": { "line": 267, @@ -116908,8 +116936,8 @@ "binop": null }, "value": "setTileCost", - "start": 9715, - "end": 9726, + "start": 9727, + "end": 9738, "loc": { "start": { "line": 267, @@ -116933,8 +116961,8 @@ "postfix": false, "binop": null }, - "start": 9726, - "end": 9727, + "start": 9738, + "end": 9739, "loc": { "start": { "line": 267, @@ -116959,8 +116987,8 @@ "binop": null }, "value": "pWeight", - "start": 9727, - "end": 9734, + "start": 9739, + "end": 9746, "loc": { "start": { "line": 267, @@ -116985,8 +117013,8 @@ "binop": null, "updateContext": null }, - "start": 9734, - "end": 9735, + "start": 9746, + "end": 9747, "loc": { "start": { "line": 267, @@ -117011,8 +117039,8 @@ "binop": null }, "value": "pWeight", - "start": 9736, - "end": 9743, + "start": 9748, + "end": 9755, "loc": { "start": { "line": 267, @@ -117036,8 +117064,8 @@ "postfix": false, "binop": null }, - "start": 9743, - "end": 9744, + "start": 9755, + "end": 9756, "loc": { "start": { "line": 267, @@ -117062,8 +117090,8 @@ "binop": null, "updateContext": null }, - "start": 9744, - "end": 9745, + "start": 9756, + "end": 9757, "loc": { "start": { "line": 267, @@ -117087,8 +117115,8 @@ "postfix": false, "binop": null }, - "start": 9750, - "end": 9751, + "start": 9762, + "end": 9763, "loc": { "start": { "line": 268, @@ -117112,8 +117140,8 @@ "postfix": false, "binop": null }, - "start": 9751, - "end": 9752, + "start": 9763, + "end": 9764, "loc": { "start": { "line": 268, @@ -117138,8 +117166,8 @@ "binop": null, "updateContext": null }, - "start": 9752, - "end": 9753, + "start": 9764, + "end": 9765, "loc": { "start": { "line": 268, @@ -117154,8 +117182,8 @@ { "type": "CommentLine", "value": " Assign what tiles can be used", - "start": 9760, - "end": 9792, + "start": 9772, + "end": 9804, "loc": { "start": { "line": 270, @@ -117180,8 +117208,8 @@ "binop": null }, "value": "instanceData", - "start": 9797, - "end": 9809, + "start": 9809, + "end": 9821, "loc": { "start": { "line": 271, @@ -117206,8 +117234,8 @@ "binop": null, "updateContext": null }, - "start": 9809, - "end": 9810, + "start": 9821, + "end": 9822, "loc": { "start": { "line": 271, @@ -117232,8 +117260,8 @@ "binop": null }, "value": "easystar", - "start": 9810, - "end": 9818, + "start": 9822, + "end": 9830, "loc": { "start": { "line": 271, @@ -117258,8 +117286,8 @@ "binop": null, "updateContext": null }, - "start": 9818, - "end": 9819, + "start": 9830, + "end": 9831, "loc": { "start": { "line": 271, @@ -117284,8 +117312,8 @@ "binop": null }, "value": "setAcceptableTiles", - "start": 9819, - "end": 9837, + "start": 9831, + "end": 9849, "loc": { "start": { "line": 271, @@ -117309,8 +117337,8 @@ "postfix": false, "binop": null }, - "start": 9837, - "end": 9838, + "start": 9849, + "end": 9850, "loc": { "start": { "line": 271, @@ -117335,8 +117363,8 @@ "binop": null }, "value": "gridInfo", - "start": 9838, - "end": 9846, + "start": 9850, + "end": 9858, "loc": { "start": { "line": 271, @@ -117361,8 +117389,8 @@ "binop": null, "updateContext": null }, - "start": 9846, - "end": 9847, + "start": 9858, + "end": 9859, "loc": { "start": { "line": 271, @@ -117387,8 +117415,8 @@ "binop": null }, "value": "acceptedTiles", - "start": 9847, - "end": 9860, + "start": 9859, + "end": 9872, "loc": { "start": { "line": 271, @@ -117412,8 +117440,8 @@ "postfix": false, "binop": null }, - "start": 9860, - "end": 9861, + "start": 9872, + "end": 9873, "loc": { "start": { "line": 271, @@ -117438,8 +117466,8 @@ "binop": null, "updateContext": null }, - "start": 9861, - "end": 9862, + "start": 9873, + "end": 9874, "loc": { "start": { "line": 271, @@ -117454,8 +117482,8 @@ { "type": "CommentLine", "value": " Grab the pos of the instance so we can locate the starting tile its on.", - "start": 9869, - "end": 9943, + "start": 9881, + "end": 9955, "loc": { "start": { "line": 273, @@ -117470,8 +117498,8 @@ { "type": "CommentLine", "value": " This is also used as the startingNode position.", - "start": 9948, - "end": 9998, + "start": 9960, + "end": 10010, "loc": { "start": { "line": 274, @@ -117498,8 +117526,8 @@ "updateContext": null }, "value": "const", - "start": 10003, - "end": 10008, + "start": 10015, + "end": 10020, "loc": { "start": { "line": 275, @@ -117524,8 +117552,8 @@ "binop": null }, "value": "instancePosition", - "start": 10009, - "end": 10025, + "start": 10021, + "end": 10037, "loc": { "start": { "line": 275, @@ -117551,8 +117579,8 @@ "updateContext": null }, "value": "=", - "start": 10026, - "end": 10027, + "start": 10038, + "end": 10039, "loc": { "start": { "line": 275, @@ -117579,8 +117607,8 @@ "updateContext": null }, "value": "this", - "start": 10028, - "end": 10032, + "start": 10040, + "end": 10044, "loc": { "start": { "line": 275, @@ -117605,8 +117633,8 @@ "binop": null, "updateContext": null }, - "start": 10032, - "end": 10033, + "start": 10044, + "end": 10045, "loc": { "start": { "line": 275, @@ -117631,8 +117659,8 @@ "binop": null }, "value": "getPositionFromInstance", - "start": 10033, - "end": 10056, + "start": 10045, + "end": 10068, "loc": { "start": { "line": 275, @@ -117656,8 +117684,8 @@ "postfix": false, "binop": null }, - "start": 10056, - "end": 10057, + "start": 10068, + "end": 10069, "loc": { "start": { "line": 275, @@ -117682,8 +117710,8 @@ "binop": null }, "value": "pInstance", - "start": 10057, - "end": 10066, + "start": 10069, + "end": 10078, "loc": { "start": { "line": 275, @@ -117707,8 +117735,8 @@ "postfix": false, "binop": null }, - "start": 10066, - "end": 10067, + "start": 10078, + "end": 10079, "loc": { "start": { "line": 275, @@ -117733,8 +117761,8 @@ "binop": null, "updateContext": null }, - "start": 10067, - "end": 10068, + "start": 10079, + "end": 10080, "loc": { "start": { "line": 275, @@ -117749,8 +117777,8 @@ { "type": "CommentLine", "value": " Get the origin tile the instance is on.", - "start": 10073, - "end": 10115, + "start": 10085, + "end": 10127, "loc": { "start": { "line": 276, @@ -117777,8 +117805,8 @@ "updateContext": null }, "value": "const", - "start": 10120, - "end": 10125, + "start": 10132, + "end": 10137, "loc": { "start": { "line": 277, @@ -117803,8 +117831,8 @@ "binop": null }, "value": "originTile", - "start": 10126, - "end": 10136, + "start": 10138, + "end": 10148, "loc": { "start": { "line": 277, @@ -117830,8 +117858,8 @@ "updateContext": null }, "value": "=", - "start": 10137, - "end": 10138, + "start": 10149, + "end": 10150, "loc": { "start": { "line": 277, @@ -117856,8 +117884,8 @@ "binop": null }, "value": "VYLO", - "start": 10139, - "end": 10143, + "start": 10151, + "end": 10155, "loc": { "start": { "line": 277, @@ -117882,8 +117910,8 @@ "binop": null, "updateContext": null }, - "start": 10143, - "end": 10144, + "start": 10155, + "end": 10156, "loc": { "start": { "line": 277, @@ -117908,8 +117936,8 @@ "binop": null }, "value": "Map", - "start": 10144, - "end": 10147, + "start": 10156, + "end": 10159, "loc": { "start": { "line": 277, @@ -117934,8 +117962,8 @@ "binop": null, "updateContext": null }, - "start": 10147, - "end": 10148, + "start": 10159, + "end": 10160, "loc": { "start": { "line": 277, @@ -117960,8 +117988,8 @@ "binop": null }, "value": "getLocByPos", - "start": 10148, - "end": 10159, + "start": 10160, + "end": 10171, "loc": { "start": { "line": 277, @@ -117985,8 +118013,8 @@ "postfix": false, "binop": null }, - "start": 10159, - "end": 10160, + "start": 10171, + "end": 10172, "loc": { "start": { "line": 277, @@ -118011,8 +118039,8 @@ "binop": null }, "value": "instancePosition", - "start": 10160, - "end": 10176, + "start": 10172, + "end": 10188, "loc": { "start": { "line": 277, @@ -118037,8 +118065,8 @@ "binop": null, "updateContext": null }, - "start": 10176, - "end": 10177, + "start": 10188, + "end": 10189, "loc": { "start": { "line": 277, @@ -118063,8 +118091,8 @@ "binop": null }, "value": "x", - "start": 10177, - "end": 10178, + "start": 10189, + "end": 10190, "loc": { "start": { "line": 277, @@ -118089,8 +118117,8 @@ "binop": null, "updateContext": null }, - "start": 10178, - "end": 10179, + "start": 10190, + "end": 10191, "loc": { "start": { "line": 277, @@ -118115,8 +118143,8 @@ "binop": null }, "value": "instancePosition", - "start": 10180, - "end": 10196, + "start": 10192, + "end": 10208, "loc": { "start": { "line": 277, @@ -118141,8 +118169,8 @@ "binop": null, "updateContext": null }, - "start": 10196, - "end": 10197, + "start": 10208, + "end": 10209, "loc": { "start": { "line": 277, @@ -118167,8 +118195,8 @@ "binop": null }, "value": "y", - "start": 10197, - "end": 10198, + "start": 10209, + "end": 10210, "loc": { "start": { "line": 277, @@ -118193,8 +118221,8 @@ "binop": null, "updateContext": null }, - "start": 10198, - "end": 10199, + "start": 10210, + "end": 10211, "loc": { "start": { "line": 277, @@ -118219,8 +118247,8 @@ "binop": null }, "value": "pInstance", - "start": 10200, - "end": 10209, + "start": 10212, + "end": 10221, "loc": { "start": { "line": 277, @@ -118245,8 +118273,8 @@ "binop": null, "updateContext": null }, - "start": 10209, - "end": 10210, + "start": 10221, + "end": 10222, "loc": { "start": { "line": 277, @@ -118271,8 +118299,8 @@ "binop": null }, "value": "mapName", - "start": 10210, - "end": 10217, + "start": 10222, + "end": 10229, "loc": { "start": { "line": 277, @@ -118296,8 +118324,8 @@ "postfix": false, "binop": null }, - "start": 10217, - "end": 10218, + "start": 10229, + "end": 10230, "loc": { "start": { "line": 277, @@ -118322,8 +118350,8 @@ "binop": null, "updateContext": null }, - "start": 10218, - "end": 10219, + "start": 10230, + "end": 10231, "loc": { "start": { "line": 277, @@ -118338,8 +118366,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 10224, - "end": 10273, + "start": 10236, + "end": 10285, "loc": { "start": { "line": 278, @@ -118366,8 +118394,8 @@ "updateContext": null }, "value": "const", - "start": 10278, - "end": 10283, + "start": 10290, + "end": 10295, "loc": { "start": { "line": 279, @@ -118392,8 +118420,8 @@ "binop": null }, "value": "mapSize", - "start": 10284, - "end": 10291, + "start": 10296, + "end": 10303, "loc": { "start": { "line": 279, @@ -118419,8 +118447,8 @@ "updateContext": null }, "value": "=", - "start": 10292, - "end": 10293, + "start": 10304, + "end": 10305, "loc": { "start": { "line": 279, @@ -118445,8 +118473,8 @@ "binop": null }, "value": "VYLO", - "start": 10294, - "end": 10298, + "start": 10306, + "end": 10310, "loc": { "start": { "line": 279, @@ -118471,8 +118499,8 @@ "binop": null, "updateContext": null }, - "start": 10298, - "end": 10299, + "start": 10310, + "end": 10311, "loc": { "start": { "line": 279, @@ -118497,8 +118525,8 @@ "binop": null }, "value": "Map", - "start": 10299, - "end": 10302, + "start": 10311, + "end": 10314, "loc": { "start": { "line": 279, @@ -118523,8 +118551,8 @@ "binop": null, "updateContext": null }, - "start": 10302, - "end": 10303, + "start": 10314, + "end": 10315, "loc": { "start": { "line": 279, @@ -118549,8 +118577,8 @@ "binop": null }, "value": "getMapSize", - "start": 10303, - "end": 10313, + "start": 10315, + "end": 10325, "loc": { "start": { "line": 279, @@ -118574,8 +118602,8 @@ "postfix": false, "binop": null }, - "start": 10313, - "end": 10314, + "start": 10325, + "end": 10326, "loc": { "start": { "line": 279, @@ -118600,8 +118628,8 @@ "binop": null }, "value": "pInstance", - "start": 10314, - "end": 10323, + "start": 10326, + "end": 10335, "loc": { "start": { "line": 279, @@ -118626,8 +118654,8 @@ "binop": null, "updateContext": null }, - "start": 10323, - "end": 10324, + "start": 10335, + "end": 10336, "loc": { "start": { "line": 279, @@ -118652,8 +118680,8 @@ "binop": null }, "value": "mapName", - "start": 10324, - "end": 10331, + "start": 10336, + "end": 10343, "loc": { "start": { "line": 279, @@ -118677,8 +118705,8 @@ "postfix": false, "binop": null }, - "start": 10331, - "end": 10332, + "start": 10343, + "end": 10344, "loc": { "start": { "line": 279, @@ -118703,8 +118731,8 @@ "binop": null, "updateContext": null }, - "start": 10332, - "end": 10333, + "start": 10344, + "end": 10345, "loc": { "start": { "line": 279, @@ -118719,8 +118747,8 @@ { "type": "CommentLine", "value": " Get the end nodes position so we can get the destinationTile", - "start": 10340, - "end": 10403, + "start": 10352, + "end": 10415, "loc": { "start": { "line": 281, @@ -118747,8 +118775,8 @@ "updateContext": null }, "value": "const", - "start": 10408, - "end": 10413, + "start": 10420, + "end": 10425, "loc": { "start": { "line": 282, @@ -118773,8 +118801,8 @@ "binop": null }, "value": "endNodeX", - "start": 10414, - "end": 10422, + "start": 10426, + "end": 10434, "loc": { "start": { "line": 282, @@ -118800,8 +118828,8 @@ "updateContext": null }, "value": "=", - "start": 10423, - "end": 10424, + "start": 10435, + "end": 10436, "loc": { "start": { "line": 282, @@ -118826,8 +118854,8 @@ "binop": null }, "value": "Utils", - "start": 10425, - "end": 10430, + "start": 10437, + "end": 10442, "loc": { "start": { "line": 282, @@ -118852,8 +118880,8 @@ "binop": null, "updateContext": null }, - "start": 10430, - "end": 10431, + "start": 10442, + "end": 10443, "loc": { "start": { "line": 282, @@ -118878,8 +118906,8 @@ "binop": null }, "value": "clamp", - "start": 10431, - "end": 10436, + "start": 10443, + "end": 10448, "loc": { "start": { "line": 282, @@ -118903,8 +118931,8 @@ "postfix": false, "binop": null }, - "start": 10436, - "end": 10437, + "start": 10448, + "end": 10449, "loc": { "start": { "line": 282, @@ -118929,8 +118957,8 @@ "binop": null }, "value": "Utils", - "start": 10437, - "end": 10442, + "start": 10449, + "end": 10454, "loc": { "start": { "line": 282, @@ -118955,8 +118983,8 @@ "binop": null, "updateContext": null }, - "start": 10442, - "end": 10443, + "start": 10454, + "end": 10455, "loc": { "start": { "line": 282, @@ -118981,8 +119009,8 @@ "binop": null }, "value": "clamp", - "start": 10443, - "end": 10448, + "start": 10455, + "end": 10460, "loc": { "start": { "line": 282, @@ -119006,8 +119034,8 @@ "postfix": false, "binop": null }, - "start": 10448, - "end": 10449, + "start": 10460, + "end": 10461, "loc": { "start": { "line": 282, @@ -119032,8 +119060,8 @@ "binop": null }, "value": "pDestination", - "start": 10449, - "end": 10461, + "start": 10461, + "end": 10473, "loc": { "start": { "line": 282, @@ -119058,8 +119086,8 @@ "binop": null, "updateContext": null }, - "start": 10461, - "end": 10462, + "start": 10473, + "end": 10474, "loc": { "start": { "line": 282, @@ -119084,8 +119112,8 @@ "binop": null }, "value": "x", - "start": 10462, - "end": 10463, + "start": 10474, + "end": 10475, "loc": { "start": { "line": 282, @@ -119110,8 +119138,8 @@ "binop": null, "updateContext": null }, - "start": 10463, - "end": 10464, + "start": 10475, + "end": 10476, "loc": { "start": { "line": 282, @@ -119137,8 +119165,8 @@ "updateContext": null }, "value": 0, - "start": 10465, - "end": 10466, + "start": 10477, + "end": 10478, "loc": { "start": { "line": 282, @@ -119163,8 +119191,8 @@ "binop": null, "updateContext": null }, - "start": 10466, - "end": 10467, + "start": 10478, + "end": 10479, "loc": { "start": { "line": 282, @@ -119189,8 +119217,8 @@ "binop": null }, "value": "mapSize", - "start": 10468, - "end": 10475, + "start": 10480, + "end": 10487, "loc": { "start": { "line": 282, @@ -119215,8 +119243,8 @@ "binop": null, "updateContext": null }, - "start": 10475, - "end": 10476, + "start": 10487, + "end": 10488, "loc": { "start": { "line": 282, @@ -119241,8 +119269,8 @@ "binop": null }, "value": "x", - "start": 10476, - "end": 10477, + "start": 10488, + "end": 10489, "loc": { "start": { "line": 282, @@ -119266,8 +119294,8 @@ "postfix": false, "binop": null }, - "start": 10477, - "end": 10478, + "start": 10489, + "end": 10490, "loc": { "start": { "line": 282, @@ -119293,8 +119321,8 @@ "updateContext": null }, "value": "*", - "start": 10479, - "end": 10480, + "start": 10491, + "end": 10492, "loc": { "start": { "line": 282, @@ -119321,8 +119349,8 @@ "updateContext": null }, "value": "this", - "start": 10481, - "end": 10485, + "start": 10493, + "end": 10497, "loc": { "start": { "line": 282, @@ -119347,8 +119375,8 @@ "binop": null, "updateContext": null }, - "start": 10485, - "end": 10486, + "start": 10497, + "end": 10498, "loc": { "start": { "line": 282, @@ -119373,8 +119401,8 @@ "binop": null }, "value": "tileSize", - "start": 10486, - "end": 10494, + "start": 10498, + "end": 10506, "loc": { "start": { "line": 282, @@ -119399,8 +119427,8 @@ "binop": null, "updateContext": null }, - "start": 10494, - "end": 10495, + "start": 10506, + "end": 10507, "loc": { "start": { "line": 282, @@ -119425,8 +119453,8 @@ "binop": null }, "value": "width", - "start": 10495, - "end": 10500, + "start": 10507, + "end": 10512, "loc": { "start": { "line": 282, @@ -119452,8 +119480,8 @@ "updateContext": null }, "value": "+", - "start": 10501, - "end": 10502, + "start": 10513, + "end": 10514, "loc": { "start": { "line": 282, @@ -119480,8 +119508,8 @@ "updateContext": null }, "value": "this", - "start": 10503, - "end": 10507, + "start": 10515, + "end": 10519, "loc": { "start": { "line": 282, @@ -119506,8 +119534,8 @@ "binop": null, "updateContext": null }, - "start": 10507, - "end": 10508, + "start": 10519, + "end": 10520, "loc": { "start": { "line": 282, @@ -119532,8 +119560,8 @@ "binop": null }, "value": "tileSize", - "start": 10508, - "end": 10516, + "start": 10520, + "end": 10528, "loc": { "start": { "line": 282, @@ -119558,8 +119586,8 @@ "binop": null, "updateContext": null }, - "start": 10516, - "end": 10517, + "start": 10528, + "end": 10529, "loc": { "start": { "line": 282, @@ -119584,8 +119612,8 @@ "binop": null }, "value": "width", - "start": 10517, - "end": 10522, + "start": 10529, + "end": 10534, "loc": { "start": { "line": 282, @@ -119611,8 +119639,8 @@ "updateContext": null }, "value": "/", - "start": 10523, - "end": 10524, + "start": 10535, + "end": 10536, "loc": { "start": { "line": 282, @@ -119638,8 +119666,8 @@ "updateContext": null }, "value": 2, - "start": 10525, - "end": 10526, + "start": 10537, + "end": 10538, "loc": { "start": { "line": 282, @@ -119664,8 +119692,8 @@ "binop": null, "updateContext": null }, - "start": 10526, - "end": 10527, + "start": 10538, + "end": 10539, "loc": { "start": { "line": 282, @@ -119691,8 +119719,8 @@ "updateContext": null }, "value": 0, - "start": 10528, - "end": 10529, + "start": 10540, + "end": 10541, "loc": { "start": { "line": 282, @@ -119717,8 +119745,8 @@ "binop": null, "updateContext": null }, - "start": 10529, - "end": 10530, + "start": 10541, + "end": 10542, "loc": { "start": { "line": 282, @@ -119743,8 +119771,8 @@ "binop": null }, "value": "mapSize", - "start": 10531, - "end": 10538, + "start": 10543, + "end": 10550, "loc": { "start": { "line": 282, @@ -119769,8 +119797,8 @@ "binop": null, "updateContext": null }, - "start": 10538, - "end": 10539, + "start": 10550, + "end": 10551, "loc": { "start": { "line": 282, @@ -119795,8 +119823,8 @@ "binop": null }, "value": "xPos", - "start": 10539, - "end": 10543, + "start": 10551, + "end": 10555, "loc": { "start": { "line": 282, @@ -119822,8 +119850,8 @@ "updateContext": null }, "value": "-", - "start": 10544, - "end": 10545, + "start": 10556, + "end": 10557, "loc": { "start": { "line": 282, @@ -119850,8 +119878,8 @@ "updateContext": null }, "value": "this", - "start": 10546, - "end": 10550, + "start": 10558, + "end": 10562, "loc": { "start": { "line": 282, @@ -119876,8 +119904,8 @@ "binop": null, "updateContext": null }, - "start": 10550, - "end": 10551, + "start": 10562, + "end": 10563, "loc": { "start": { "line": 282, @@ -119902,8 +119930,8 @@ "binop": null }, "value": "tileSize", - "start": 10551, - "end": 10559, + "start": 10563, + "end": 10571, "loc": { "start": { "line": 282, @@ -119928,8 +119956,8 @@ "binop": null, "updateContext": null }, - "start": 10559, - "end": 10560, + "start": 10571, + "end": 10572, "loc": { "start": { "line": 282, @@ -119954,8 +119982,8 @@ "binop": null }, "value": "width", - "start": 10560, - "end": 10565, + "start": 10572, + "end": 10577, "loc": { "start": { "line": 282, @@ -119979,8 +120007,8 @@ "postfix": false, "binop": null }, - "start": 10565, - "end": 10566, + "start": 10577, + "end": 10578, "loc": { "start": { "line": 282, @@ -120005,8 +120033,8 @@ "binop": null, "updateContext": null }, - "start": 10566, - "end": 10567, + "start": 10578, + "end": 10579, "loc": { "start": { "line": 282, @@ -120033,8 +120061,8 @@ "updateContext": null }, "value": "const", - "start": 10572, - "end": 10577, + "start": 10584, + "end": 10589, "loc": { "start": { "line": 283, @@ -120059,8 +120087,8 @@ "binop": null }, "value": "endNodeY", - "start": 10578, - "end": 10586, + "start": 10590, + "end": 10598, "loc": { "start": { "line": 283, @@ -120086,8 +120114,8 @@ "updateContext": null }, "value": "=", - "start": 10587, - "end": 10588, + "start": 10599, + "end": 10600, "loc": { "start": { "line": 283, @@ -120112,8 +120140,8 @@ "binop": null }, "value": "Utils", - "start": 10589, - "end": 10594, + "start": 10601, + "end": 10606, "loc": { "start": { "line": 283, @@ -120138,8 +120166,8 @@ "binop": null, "updateContext": null }, - "start": 10594, - "end": 10595, + "start": 10606, + "end": 10607, "loc": { "start": { "line": 283, @@ -120164,8 +120192,8 @@ "binop": null }, "value": "clamp", - "start": 10595, - "end": 10600, + "start": 10607, + "end": 10612, "loc": { "start": { "line": 283, @@ -120189,8 +120217,8 @@ "postfix": false, "binop": null }, - "start": 10600, - "end": 10601, + "start": 10612, + "end": 10613, "loc": { "start": { "line": 283, @@ -120215,8 +120243,8 @@ "binop": null }, "value": "Utils", - "start": 10601, - "end": 10606, + "start": 10613, + "end": 10618, "loc": { "start": { "line": 283, @@ -120241,8 +120269,8 @@ "binop": null, "updateContext": null }, - "start": 10606, - "end": 10607, + "start": 10618, + "end": 10619, "loc": { "start": { "line": 283, @@ -120267,8 +120295,8 @@ "binop": null }, "value": "clamp", - "start": 10607, - "end": 10612, + "start": 10619, + "end": 10624, "loc": { "start": { "line": 283, @@ -120292,8 +120320,8 @@ "postfix": false, "binop": null }, - "start": 10612, - "end": 10613, + "start": 10624, + "end": 10625, "loc": { "start": { "line": 283, @@ -120318,8 +120346,8 @@ "binop": null }, "value": "pDestination", - "start": 10613, - "end": 10625, + "start": 10625, + "end": 10637, "loc": { "start": { "line": 283, @@ -120344,8 +120372,8 @@ "binop": null, "updateContext": null }, - "start": 10625, - "end": 10626, + "start": 10637, + "end": 10638, "loc": { "start": { "line": 283, @@ -120370,8 +120398,8 @@ "binop": null }, "value": "y", - "start": 10626, - "end": 10627, + "start": 10638, + "end": 10639, "loc": { "start": { "line": 283, @@ -120396,8 +120424,8 @@ "binop": null, "updateContext": null }, - "start": 10627, - "end": 10628, + "start": 10639, + "end": 10640, "loc": { "start": { "line": 283, @@ -120423,8 +120451,8 @@ "updateContext": null }, "value": 0, - "start": 10629, - "end": 10630, + "start": 10641, + "end": 10642, "loc": { "start": { "line": 283, @@ -120449,8 +120477,8 @@ "binop": null, "updateContext": null }, - "start": 10630, - "end": 10631, + "start": 10642, + "end": 10643, "loc": { "start": { "line": 283, @@ -120475,8 +120503,8 @@ "binop": null }, "value": "mapSize", - "start": 10632, - "end": 10639, + "start": 10644, + "end": 10651, "loc": { "start": { "line": 283, @@ -120501,8 +120529,8 @@ "binop": null, "updateContext": null }, - "start": 10639, - "end": 10640, + "start": 10651, + "end": 10652, "loc": { "start": { "line": 283, @@ -120527,8 +120555,8 @@ "binop": null }, "value": "y", - "start": 10640, - "end": 10641, + "start": 10652, + "end": 10653, "loc": { "start": { "line": 283, @@ -120552,8 +120580,8 @@ "postfix": false, "binop": null }, - "start": 10641, - "end": 10642, + "start": 10653, + "end": 10654, "loc": { "start": { "line": 283, @@ -120579,8 +120607,8 @@ "updateContext": null }, "value": "*", - "start": 10643, - "end": 10644, + "start": 10655, + "end": 10656, "loc": { "start": { "line": 283, @@ -120607,8 +120635,8 @@ "updateContext": null }, "value": "this", - "start": 10645, - "end": 10649, + "start": 10657, + "end": 10661, "loc": { "start": { "line": 283, @@ -120633,8 +120661,8 @@ "binop": null, "updateContext": null }, - "start": 10649, - "end": 10650, + "start": 10661, + "end": 10662, "loc": { "start": { "line": 283, @@ -120659,8 +120687,8 @@ "binop": null }, "value": "tileSize", - "start": 10650, - "end": 10658, + "start": 10662, + "end": 10670, "loc": { "start": { "line": 283, @@ -120685,8 +120713,8 @@ "binop": null, "updateContext": null }, - "start": 10658, - "end": 10659, + "start": 10670, + "end": 10671, "loc": { "start": { "line": 283, @@ -120711,8 +120739,8 @@ "binop": null }, "value": "height", - "start": 10659, - "end": 10665, + "start": 10671, + "end": 10677, "loc": { "start": { "line": 283, @@ -120738,8 +120766,8 @@ "updateContext": null }, "value": "+", - "start": 10666, - "end": 10667, + "start": 10678, + "end": 10679, "loc": { "start": { "line": 283, @@ -120766,8 +120794,8 @@ "updateContext": null }, "value": "this", - "start": 10668, - "end": 10672, + "start": 10680, + "end": 10684, "loc": { "start": { "line": 283, @@ -120792,8 +120820,8 @@ "binop": null, "updateContext": null }, - "start": 10672, - "end": 10673, + "start": 10684, + "end": 10685, "loc": { "start": { "line": 283, @@ -120818,8 +120846,8 @@ "binop": null }, "value": "tileSize", - "start": 10673, - "end": 10681, + "start": 10685, + "end": 10693, "loc": { "start": { "line": 283, @@ -120844,8 +120872,8 @@ "binop": null, "updateContext": null }, - "start": 10681, - "end": 10682, + "start": 10693, + "end": 10694, "loc": { "start": { "line": 283, @@ -120870,8 +120898,8 @@ "binop": null }, "value": "height", - "start": 10682, - "end": 10688, + "start": 10694, + "end": 10700, "loc": { "start": { "line": 283, @@ -120897,8 +120925,8 @@ "updateContext": null }, "value": "/", - "start": 10689, - "end": 10690, + "start": 10701, + "end": 10702, "loc": { "start": { "line": 283, @@ -120924,8 +120952,8 @@ "updateContext": null }, "value": 2, - "start": 10691, - "end": 10692, + "start": 10703, + "end": 10704, "loc": { "start": { "line": 283, @@ -120950,8 +120978,8 @@ "binop": null, "updateContext": null }, - "start": 10692, - "end": 10693, + "start": 10704, + "end": 10705, "loc": { "start": { "line": 283, @@ -120977,8 +121005,8 @@ "updateContext": null }, "value": 0, - "start": 10694, - "end": 10695, + "start": 10706, + "end": 10707, "loc": { "start": { "line": 283, @@ -121003,8 +121031,8 @@ "binop": null, "updateContext": null }, - "start": 10695, - "end": 10696, + "start": 10707, + "end": 10708, "loc": { "start": { "line": 283, @@ -121029,8 +121057,8 @@ "binop": null }, "value": "mapSize", - "start": 10697, - "end": 10704, + "start": 10709, + "end": 10716, "loc": { "start": { "line": 283, @@ -121055,8 +121083,8 @@ "binop": null, "updateContext": null }, - "start": 10704, - "end": 10705, + "start": 10716, + "end": 10717, "loc": { "start": { "line": 283, @@ -121081,8 +121109,8 @@ "binop": null }, "value": "yPos", - "start": 10705, - "end": 10709, + "start": 10717, + "end": 10721, "loc": { "start": { "line": 283, @@ -121108,8 +121136,8 @@ "updateContext": null }, "value": "-", - "start": 10710, - "end": 10711, + "start": 10722, + "end": 10723, "loc": { "start": { "line": 283, @@ -121136,8 +121164,8 @@ "updateContext": null }, "value": "this", - "start": 10712, - "end": 10716, + "start": 10724, + "end": 10728, "loc": { "start": { "line": 283, @@ -121162,8 +121190,8 @@ "binop": null, "updateContext": null }, - "start": 10716, - "end": 10717, + "start": 10728, + "end": 10729, "loc": { "start": { "line": 283, @@ -121188,8 +121216,8 @@ "binop": null }, "value": "tileSize", - "start": 10717, - "end": 10725, + "start": 10729, + "end": 10737, "loc": { "start": { "line": 283, @@ -121214,8 +121242,8 @@ "binop": null, "updateContext": null }, - "start": 10725, - "end": 10726, + "start": 10737, + "end": 10738, "loc": { "start": { "line": 283, @@ -121240,8 +121268,8 @@ "binop": null }, "value": "height", - "start": 10726, - "end": 10732, + "start": 10738, + "end": 10744, "loc": { "start": { "line": 283, @@ -121265,8 +121293,8 @@ "postfix": false, "binop": null }, - "start": 10732, - "end": 10733, + "start": 10744, + "end": 10745, "loc": { "start": { "line": 283, @@ -121291,8 +121319,8 @@ "binop": null, "updateContext": null }, - "start": 10733, - "end": 10734, + "start": 10745, + "end": 10746, "loc": { "start": { "line": 283, @@ -121306,9 +121334,9 @@ }, { "type": "CommentLine", - "value": " Get the end time tile", - "start": 10739, - "end": 10763, + "value": " Get the end tile", + "start": 10751, + "end": 10770, "loc": { "start": { "line": 284, @@ -121316,7 +121344,7 @@ }, "end": { "line": 284, - "column": 27 + "column": 22 } } }, @@ -121335,8 +121363,8 @@ "updateContext": null }, "value": "const", - "start": 10768, - "end": 10773, + "start": 10775, + "end": 10780, "loc": { "start": { "line": 285, @@ -121361,8 +121389,8 @@ "binop": null }, "value": "destinationTile", - "start": 10774, - "end": 10789, + "start": 10781, + "end": 10796, "loc": { "start": { "line": 285, @@ -121388,8 +121416,8 @@ "updateContext": null }, "value": "=", - "start": 10790, - "end": 10791, + "start": 10797, + "end": 10798, "loc": { "start": { "line": 285, @@ -121414,8 +121442,8 @@ "binop": null }, "value": "VYLO", - "start": 10792, - "end": 10796, + "start": 10799, + "end": 10803, "loc": { "start": { "line": 285, @@ -121440,8 +121468,8 @@ "binop": null, "updateContext": null }, - "start": 10796, - "end": 10797, + "start": 10803, + "end": 10804, "loc": { "start": { "line": 285, @@ -121466,8 +121494,8 @@ "binop": null }, "value": "Map", - "start": 10797, - "end": 10800, + "start": 10804, + "end": 10807, "loc": { "start": { "line": 285, @@ -121492,8 +121520,8 @@ "binop": null, "updateContext": null }, - "start": 10800, - "end": 10801, + "start": 10807, + "end": 10808, "loc": { "start": { "line": 285, @@ -121518,8 +121546,8 @@ "binop": null }, "value": "getLocByPos", - "start": 10801, - "end": 10812, + "start": 10808, + "end": 10819, "loc": { "start": { "line": 285, @@ -121543,8 +121571,8 @@ "postfix": false, "binop": null }, - "start": 10812, - "end": 10813, + "start": 10819, + "end": 10820, "loc": { "start": { "line": 285, @@ -121569,8 +121597,8 @@ "binop": null }, "value": "endNodeX", - "start": 10813, - "end": 10821, + "start": 10820, + "end": 10828, "loc": { "start": { "line": 285, @@ -121595,8 +121623,8 @@ "binop": null, "updateContext": null }, - "start": 10821, - "end": 10822, + "start": 10828, + "end": 10829, "loc": { "start": { "line": 285, @@ -121621,8 +121649,8 @@ "binop": null }, "value": "endNodeY", - "start": 10823, - "end": 10831, + "start": 10830, + "end": 10838, "loc": { "start": { "line": 285, @@ -121647,8 +121675,8 @@ "binop": null, "updateContext": null }, - "start": 10831, - "end": 10832, + "start": 10838, + "end": 10839, "loc": { "start": { "line": 285, @@ -121673,8 +121701,8 @@ "binop": null }, "value": "pInstance", - "start": 10833, - "end": 10842, + "start": 10840, + "end": 10849, "loc": { "start": { "line": 285, @@ -121699,8 +121727,8 @@ "binop": null, "updateContext": null }, - "start": 10842, - "end": 10843, + "start": 10849, + "end": 10850, "loc": { "start": { "line": 285, @@ -121725,8 +121753,8 @@ "binop": null }, "value": "mapName", - "start": 10843, - "end": 10850, + "start": 10850, + "end": 10857, "loc": { "start": { "line": 285, @@ -121750,8 +121778,8 @@ "postfix": false, "binop": null }, - "start": 10850, - "end": 10851, + "start": 10857, + "end": 10858, "loc": { "start": { "line": 285, @@ -121776,8 +121804,8 @@ "binop": null, "updateContext": null }, - "start": 10851, - "end": 10852, + "start": 10858, + "end": 10859, "loc": { "start": { "line": 285, @@ -121792,8 +121820,8 @@ { "type": "CommentLine", "value": " Make sure these have resolved to actual tiles.", - "start": 10862, - "end": 10911, + "start": 10869, + "end": 10918, "loc": { "start": { "line": 287, @@ -121820,8 +121848,8 @@ "updateContext": null }, "value": "if", - "start": 10916, - "end": 10918, + "start": 10923, + "end": 10925, "loc": { "start": { "line": 288, @@ -121845,8 +121873,8 @@ "postfix": false, "binop": null }, - "start": 10919, - "end": 10920, + "start": 10926, + "end": 10927, "loc": { "start": { "line": 288, @@ -121871,8 +121899,8 @@ "binop": null }, "value": "originTile", - "start": 10920, - "end": 10930, + "start": 10927, + "end": 10937, "loc": { "start": { "line": 288, @@ -121898,8 +121926,8 @@ "updateContext": null }, "value": "&&", - "start": 10931, - "end": 10933, + "start": 10938, + "end": 10940, "loc": { "start": { "line": 288, @@ -121924,8 +121952,8 @@ "binop": null }, "value": "destinationTile", - "start": 10934, - "end": 10949, + "start": 10941, + "end": 10956, "loc": { "start": { "line": 288, @@ -121949,8 +121977,8 @@ "postfix": false, "binop": null }, - "start": 10949, - "end": 10950, + "start": 10956, + "end": 10957, "loc": { "start": { "line": 288, @@ -121974,8 +122002,8 @@ "postfix": false, "binop": null }, - "start": 10951, - "end": 10952, + "start": 10958, + "end": 10959, "loc": { "start": { "line": 288, @@ -121987,6 +122015,22 @@ } } }, + { + "type": "CommentLine", + "value": " Check if the origin and end tile are accessible", + "start": 10965, + "end": 11015, + "loc": { + "start": { + "line": 289, + "column": 4 + }, + "end": { + "line": 289, + "column": 54 + } + } + }, { "type": { "label": "if", @@ -122002,15 +122046,15 @@ "updateContext": null }, "value": "if", - "start": 10958, - "end": 10960, + "start": 11021, + "end": 11023, "loc": { "start": { - "line": 289, + "line": 290, "column": 4 }, "end": { - "line": 289, + "line": 290, "column": 6 } } @@ -122027,15 +122071,15 @@ "postfix": false, "binop": null }, - "start": 10961, - "end": 10962, + "start": 11024, + "end": 11025, "loc": { "start": { - "line": 289, + "line": 290, "column": 7 }, "end": { - "line": 289, + "line": 290, "column": 8 } } @@ -122055,15 +122099,15 @@ "updateContext": null }, "value": "this", - "start": 10962, - "end": 10966, + "start": 11025, + "end": 11029, "loc": { "start": { - "line": 289, + "line": 290, "column": 8 }, "end": { - "line": 289, + "line": 290, "column": 12 } } @@ -122081,15 +122125,15 @@ "binop": null, "updateContext": null }, - "start": 10966, - "end": 10967, + "start": 11029, + "end": 11030, "loc": { "start": { - "line": 289, + "line": 290, "column": 12 }, "end": { - "line": 289, + "line": 290, "column": 13 } } @@ -122107,15 +122151,15 @@ "binop": null }, "value": "isTileAccessible", - "start": 10967, - "end": 10983, + "start": 11030, + "end": 11046, "loc": { "start": { - "line": 289, + "line": 290, "column": 13 }, "end": { - "line": 289, + "line": 290, "column": 29 } } @@ -122132,15 +122176,15 @@ "postfix": false, "binop": null }, - "start": 10983, - "end": 10984, + "start": 11046, + "end": 11047, "loc": { "start": { - "line": 289, + "line": 290, "column": 29 }, "end": { - "line": 289, + "line": 290, "column": 30 } } @@ -122158,15 +122202,15 @@ "binop": null }, "value": "originTile", - "start": 10984, - "end": 10994, + "start": 11047, + "end": 11057, "loc": { "start": { - "line": 289, + "line": 290, "column": 30 }, "end": { - "line": 289, + "line": 290, "column": 40 } } @@ -122184,15 +122228,15 @@ "binop": null, "updateContext": null }, - "start": 10994, - "end": 10995, + "start": 11057, + "end": 11058, "loc": { "start": { - "line": 289, + "line": 290, "column": 40 }, "end": { - "line": 289, + "line": 290, "column": 41 } } @@ -122210,15 +122254,15 @@ "binop": null }, "value": "excludeList", - "start": 10996, - "end": 11007, + "start": 11059, + "end": 11070, "loc": { "start": { - "line": 289, + "line": 290, "column": 42 }, "end": { - "line": 289, + "line": 290, "column": 53 } } @@ -122235,15 +122279,15 @@ "postfix": false, "binop": null }, - "start": 11007, - "end": 11008, + "start": 11070, + "end": 11071, "loc": { "start": { - "line": 289, + "line": 290, "column": 53 }, "end": { - "line": 289, + "line": 290, "column": 54 } } @@ -122262,15 +122306,15 @@ "updateContext": null }, "value": "&&", - "start": 11009, - "end": 11011, + "start": 11072, + "end": 11074, "loc": { "start": { - "line": 289, + "line": 290, "column": 55 }, "end": { - "line": 289, + "line": 290, "column": 57 } } @@ -122290,15 +122334,15 @@ "updateContext": null }, "value": "this", - "start": 11012, - "end": 11016, + "start": 11075, + "end": 11079, "loc": { "start": { - "line": 289, + "line": 290, "column": 58 }, "end": { - "line": 289, + "line": 290, "column": 62 } } @@ -122316,15 +122360,15 @@ "binop": null, "updateContext": null }, - "start": 11016, - "end": 11017, + "start": 11079, + "end": 11080, "loc": { "start": { - "line": 289, + "line": 290, "column": 62 }, "end": { - "line": 289, + "line": 290, "column": 63 } } @@ -122342,15 +122386,15 @@ "binop": null }, "value": "isTileAccessible", - "start": 11017, - "end": 11033, + "start": 11080, + "end": 11096, "loc": { "start": { - "line": 289, + "line": 290, "column": 63 }, "end": { - "line": 289, + "line": 290, "column": 79 } } @@ -122367,15 +122411,15 @@ "postfix": false, "binop": null }, - "start": 11033, - "end": 11034, + "start": 11096, + "end": 11097, "loc": { "start": { - "line": 289, + "line": 290, "column": 79 }, "end": { - "line": 289, + "line": 290, "column": 80 } } @@ -122393,15 +122437,15 @@ "binop": null }, "value": "destinationTile", - "start": 11034, - "end": 11049, + "start": 11097, + "end": 11112, "loc": { "start": { - "line": 289, + "line": 290, "column": 80 }, "end": { - "line": 289, + "line": 290, "column": 95 } } @@ -122419,15 +122463,15 @@ "binop": null, "updateContext": null }, - "start": 11049, - "end": 11050, + "start": 11112, + "end": 11113, "loc": { "start": { - "line": 289, + "line": 290, "column": 95 }, "end": { - "line": 289, + "line": 290, "column": 96 } } @@ -122445,15 +122489,15 @@ "binop": null }, "value": "excludeList", - "start": 11051, - "end": 11062, + "start": 11114, + "end": 11125, "loc": { "start": { - "line": 289, + "line": 290, "column": 97 }, "end": { - "line": 289, + "line": 290, "column": 108 } } @@ -122470,15 +122514,15 @@ "postfix": false, "binop": null }, - "start": 11062, - "end": 11063, + "start": 11125, + "end": 11126, "loc": { "start": { - "line": 289, + "line": 290, "column": 108 }, "end": { - "line": 289, + "line": 290, "column": 109 } } @@ -122495,15 +122539,15 @@ "postfix": false, "binop": null }, - "start": 11063, - "end": 11064, + "start": 11126, + "end": 11127, "loc": { "start": { - "line": 289, + "line": 290, "column": 109 }, "end": { - "line": 289, + "line": 290, "column": 110 } } @@ -122520,15 +122564,15 @@ "postfix": false, "binop": null }, - "start": 11065, - "end": 11066, + "start": 11128, + "end": 11129, "loc": { "start": { - "line": 289, + "line": 290, "column": 111 }, "end": { - "line": 289, + "line": 290, "column": 112 } } @@ -122536,15 +122580,15 @@ { "type": "CommentLine", "value": " Get the start node from the originTile", - "start": 11073, - "end": 11114, + "start": 11136, + "end": 11177, "loc": { "start": { - "line": 290, + "line": 291, "column": 5 }, "end": { - "line": 290, + "line": 291, "column": 46 } } @@ -122564,15 +122608,15 @@ "updateContext": null }, "value": "let", - "start": 11121, - "end": 11124, + "start": 11184, + "end": 11187, "loc": { "start": { - "line": 291, + "line": 292, "column": 5 }, "end": { - "line": 291, + "line": 292, "column": 8 } } @@ -122590,15 +122634,15 @@ "binop": null }, "value": "startNode", - "start": 11125, - "end": 11134, + "start": 11188, + "end": 11197, "loc": { "start": { - "line": 291, + "line": 292, "column": 9 }, "end": { - "line": 291, + "line": 292, "column": 18 } } @@ -122617,15 +122661,15 @@ "updateContext": null }, "value": "=", - "start": 11135, - "end": 11136, + "start": 11198, + "end": 11199, "loc": { "start": { - "line": 291, + "line": 292, "column": 19 }, "end": { - "line": 291, + "line": 292, "column": 20 } } @@ -122645,15 +122689,15 @@ "updateContext": null }, "value": "this", - "start": 11137, - "end": 11141, + "start": 11200, + "end": 11204, "loc": { "start": { - "line": 291, + "line": 292, "column": 21 }, "end": { - "line": 291, + "line": 292, "column": 25 } } @@ -122671,15 +122715,15 @@ "binop": null, "updateContext": null }, - "start": 11141, - "end": 11142, + "start": 11204, + "end": 11205, "loc": { "start": { - "line": 291, + "line": 292, "column": 25 }, "end": { - "line": 291, + "line": 292, "column": 26 } } @@ -122697,15 +122741,15 @@ "binop": null }, "value": "tileToNode", - "start": 11142, - "end": 11152, + "start": 11205, + "end": 11215, "loc": { "start": { - "line": 291, + "line": 292, "column": 26 }, "end": { - "line": 291, + "line": 292, "column": 36 } } @@ -122722,15 +122766,15 @@ "postfix": false, "binop": null }, - "start": 11152, - "end": 11153, + "start": 11215, + "end": 11216, "loc": { "start": { - "line": 291, + "line": 292, "column": 36 }, "end": { - "line": 291, + "line": 292, "column": 37 } } @@ -122748,15 +122792,15 @@ "binop": null }, "value": "originTile", - "start": 11153, - "end": 11163, + "start": 11216, + "end": 11226, "loc": { "start": { - "line": 291, + "line": 292, "column": 37 }, "end": { - "line": 291, + "line": 292, "column": 47 } } @@ -122773,15 +122817,15 @@ "postfix": false, "binop": null }, - "start": 11163, - "end": 11164, + "start": 11226, + "end": 11227, "loc": { "start": { - "line": 291, + "line": 292, "column": 47 }, "end": { - "line": 291, + "line": 292, "column": 48 } } @@ -122799,15 +122843,15 @@ "binop": null, "updateContext": null }, - "start": 11164, - "end": 11165, + "start": 11227, + "end": 11228, "loc": { "start": { - "line": 291, + "line": 292, "column": 48 }, "end": { - "line": 291, + "line": 292, "column": 49 } } @@ -122815,15 +122859,15 @@ { "type": "CommentLine", "value": " Get the end node from the destinationTile", - "start": 11179, - "end": 11223, + "start": 11242, + "end": 11286, "loc": { "start": { - "line": 293, + "line": 294, "column": 5 }, "end": { - "line": 293, + "line": 294, "column": 49 } } @@ -122843,15 +122887,15 @@ "updateContext": null }, "value": "let", - "start": 11230, - "end": 11233, + "start": 11293, + "end": 11296, "loc": { "start": { - "line": 294, + "line": 295, "column": 5 }, "end": { - "line": 294, + "line": 295, "column": 8 } } @@ -122869,15 +122913,15 @@ "binop": null }, "value": "endNode", - "start": 11234, - "end": 11241, + "start": 11297, + "end": 11304, "loc": { "start": { - "line": 294, + "line": 295, "column": 9 }, "end": { - "line": 294, + "line": 295, "column": 16 } } @@ -122896,15 +122940,15 @@ "updateContext": null }, "value": "=", - "start": 11242, - "end": 11243, + "start": 11305, + "end": 11306, "loc": { "start": { - "line": 294, + "line": 295, "column": 17 }, "end": { - "line": 294, + "line": 295, "column": 18 } } @@ -122924,15 +122968,15 @@ "updateContext": null }, "value": "this", - "start": 11244, - "end": 11248, + "start": 11307, + "end": 11311, "loc": { "start": { - "line": 294, + "line": 295, "column": 19 }, "end": { - "line": 294, + "line": 295, "column": 23 } } @@ -122950,15 +122994,15 @@ "binop": null, "updateContext": null }, - "start": 11248, - "end": 11249, + "start": 11311, + "end": 11312, "loc": { "start": { - "line": 294, + "line": 295, "column": 23 }, "end": { - "line": 294, + "line": 295, "column": 24 } } @@ -122976,15 +123020,15 @@ "binop": null }, "value": "tileToNode", - "start": 11249, - "end": 11259, + "start": 11312, + "end": 11322, "loc": { "start": { - "line": 294, + "line": 295, "column": 24 }, "end": { - "line": 294, + "line": 295, "column": 34 } } @@ -123001,15 +123045,15 @@ "postfix": false, "binop": null }, - "start": 11259, - "end": 11260, + "start": 11322, + "end": 11323, "loc": { "start": { - "line": 294, + "line": 295, "column": 34 }, "end": { - "line": 294, + "line": 295, "column": 35 } } @@ -123027,15 +123071,15 @@ "binop": null }, "value": "destinationTile", - "start": 11260, - "end": 11275, + "start": 11323, + "end": 11338, "loc": { "start": { - "line": 294, + "line": 295, "column": 35 }, "end": { - "line": 294, + "line": 295, "column": 50 } } @@ -123052,15 +123096,15 @@ "postfix": false, "binop": null }, - "start": 11275, - "end": 11276, + "start": 11338, + "end": 11339, "loc": { "start": { - "line": 294, + "line": 295, "column": 50 }, "end": { - "line": 294, + "line": 295, "column": 51 } } @@ -123078,15 +123122,15 @@ "binop": null, "updateContext": null }, - "start": 11276, - "end": 11277, + "start": 11339, + "end": 11340, "loc": { "start": { - "line": 294, + "line": 295, "column": 51 }, "end": { - "line": 294, + "line": 295, "column": 52 } } @@ -123094,15 +123138,15 @@ { "type": "CommentLine", "value": " Generate the path for the player", - "start": 11286, - "end": 11321, + "start": 11349, + "end": 11384, "loc": { "start": { - "line": 296, + "line": 297, "column": 5 }, "end": { - "line": 296, + "line": 297, "column": 40 } } @@ -123122,15 +123166,15 @@ "updateContext": null }, "value": "this", - "start": 11328, - "end": 11332, + "start": 11391, + "end": 11395, "loc": { "start": { - "line": 297, + "line": 298, "column": 5 }, "end": { - "line": 297, + "line": 298, "column": 9 } } @@ -123148,15 +123192,15 @@ "binop": null, "updateContext": null }, - "start": 11332, - "end": 11333, + "start": 11395, + "end": 11396, "loc": { "start": { - "line": 297, + "line": 298, "column": 9 }, "end": { - "line": 297, + "line": 298, "column": 10 } } @@ -123174,15 +123218,15 @@ "binop": null }, "value": "getPath", - "start": 11333, - "end": 11340, + "start": 11396, + "end": 11403, "loc": { "start": { - "line": 297, + "line": 298, "column": 10 }, "end": { - "line": 297, + "line": 298, "column": 17 } } @@ -123199,15 +123243,15 @@ "postfix": false, "binop": null }, - "start": 11340, - "end": 11341, + "start": 11403, + "end": 11404, "loc": { "start": { - "line": 297, + "line": 298, "column": 17 }, "end": { - "line": 297, + "line": 298, "column": 18 } } @@ -123225,15 +123269,15 @@ "binop": null }, "value": "pInstance", - "start": 11341, - "end": 11350, + "start": 11404, + "end": 11413, "loc": { "start": { - "line": 297, + "line": 298, "column": 18 }, "end": { - "line": 297, + "line": 298, "column": 27 } } @@ -123251,15 +123295,15 @@ "binop": null, "updateContext": null }, - "start": 11350, - "end": 11351, + "start": 11413, + "end": 11414, "loc": { "start": { - "line": 297, + "line": 298, "column": 27 }, "end": { - "line": 297, + "line": 298, "column": 28 } } @@ -123276,15 +123320,15 @@ "postfix": false, "binop": null }, - "start": 11352, - "end": 11353, + "start": 11415, + "end": 11416, "loc": { "start": { - "line": 297, + "line": 298, "column": 29 }, "end": { - "line": 297, + "line": 298, "column": 30 } } @@ -123302,15 +123346,15 @@ "binop": null }, "value": "x", - "start": 11354, - "end": 11355, + "start": 11417, + "end": 11418, "loc": { "start": { - "line": 297, + "line": 298, "column": 31 }, "end": { - "line": 297, + "line": 298, "column": 32 } } @@ -123328,15 +123372,15 @@ "binop": null, "updateContext": null }, - "start": 11355, - "end": 11356, + "start": 11418, + "end": 11419, "loc": { "start": { - "line": 297, + "line": 298, "column": 32 }, "end": { - "line": 297, + "line": 298, "column": 33 } } @@ -123354,15 +123398,15 @@ "binop": null }, "value": "startNode", - "start": 11357, - "end": 11366, + "start": 11420, + "end": 11429, "loc": { "start": { - "line": 297, + "line": 298, "column": 34 }, "end": { - "line": 297, + "line": 298, "column": 43 } } @@ -123380,15 +123424,15 @@ "binop": null, "updateContext": null }, - "start": 11366, - "end": 11367, + "start": 11429, + "end": 11430, "loc": { "start": { - "line": 297, + "line": 298, "column": 43 }, "end": { - "line": 297, + "line": 298, "column": 44 } } @@ -123406,15 +123450,15 @@ "binop": null }, "value": "x", - "start": 11367, - "end": 11368, + "start": 11430, + "end": 11431, "loc": { "start": { - "line": 297, + "line": 298, "column": 44 }, "end": { - "line": 297, + "line": 298, "column": 45 } } @@ -123432,15 +123476,15 @@ "binop": null, "updateContext": null }, - "start": 11368, - "end": 11369, + "start": 11431, + "end": 11432, "loc": { "start": { - "line": 297, + "line": 298, "column": 45 }, "end": { - "line": 297, + "line": 298, "column": 46 } } @@ -123458,15 +123502,15 @@ "binop": null }, "value": "y", - "start": 11370, - "end": 11371, + "start": 11433, + "end": 11434, "loc": { "start": { - "line": 297, + "line": 298, "column": 47 }, "end": { - "line": 297, + "line": 298, "column": 48 } } @@ -123484,15 +123528,15 @@ "binop": null, "updateContext": null }, - "start": 11371, - "end": 11372, + "start": 11434, + "end": 11435, "loc": { "start": { - "line": 297, + "line": 298, "column": 48 }, "end": { - "line": 297, + "line": 298, "column": 49 } } @@ -123510,15 +123554,15 @@ "binop": null }, "value": "startNode", - "start": 11373, - "end": 11382, + "start": 11436, + "end": 11445, "loc": { "start": { - "line": 297, + "line": 298, "column": 50 }, "end": { - "line": 297, + "line": 298, "column": 59 } } @@ -123536,15 +123580,15 @@ "binop": null, "updateContext": null }, - "start": 11382, - "end": 11383, + "start": 11445, + "end": 11446, "loc": { "start": { - "line": 297, + "line": 298, "column": 59 }, "end": { - "line": 297, + "line": 298, "column": 60 } } @@ -123562,15 +123606,15 @@ "binop": null }, "value": "y", - "start": 11383, - "end": 11384, + "start": 11446, + "end": 11447, "loc": { "start": { - "line": 297, + "line": 298, "column": 60 }, "end": { - "line": 297, + "line": 298, "column": 61 } } @@ -123587,15 +123631,15 @@ "postfix": false, "binop": null }, - "start": 11385, - "end": 11386, + "start": 11448, + "end": 11449, "loc": { "start": { - "line": 297, + "line": 298, "column": 62 }, "end": { - "line": 297, + "line": 298, "column": 63 } } @@ -123613,15 +123657,15 @@ "binop": null, "updateContext": null }, - "start": 11386, - "end": 11387, + "start": 11449, + "end": 11450, "loc": { "start": { - "line": 297, + "line": 298, "column": 63 }, "end": { - "line": 297, + "line": 298, "column": 64 } } @@ -123638,15 +123682,15 @@ "postfix": false, "binop": null }, - "start": 11388, - "end": 11389, + "start": 11451, + "end": 11452, "loc": { "start": { - "line": 297, + "line": 298, "column": 65 }, "end": { - "line": 297, + "line": 298, "column": 66 } } @@ -123664,15 +123708,15 @@ "binop": null }, "value": "x", - "start": 11390, - "end": 11391, + "start": 11453, + "end": 11454, "loc": { "start": { - "line": 297, + "line": 298, "column": 67 }, "end": { - "line": 297, + "line": 298, "column": 68 } } @@ -123690,15 +123734,15 @@ "binop": null, "updateContext": null }, - "start": 11391, - "end": 11392, + "start": 11454, + "end": 11455, "loc": { "start": { - "line": 297, + "line": 298, "column": 68 }, "end": { - "line": 297, + "line": 298, "column": 69 } } @@ -123716,15 +123760,15 @@ "binop": null }, "value": "endNode", - "start": 11393, - "end": 11400, + "start": 11456, + "end": 11463, "loc": { "start": { - "line": 297, + "line": 298, "column": 70 }, "end": { - "line": 297, + "line": 298, "column": 77 } } @@ -123742,15 +123786,15 @@ "binop": null, "updateContext": null }, - "start": 11400, - "end": 11401, + "start": 11463, + "end": 11464, "loc": { "start": { - "line": 297, + "line": 298, "column": 77 }, "end": { - "line": 297, + "line": 298, "column": 78 } } @@ -123768,15 +123812,15 @@ "binop": null }, "value": "x", - "start": 11401, - "end": 11402, + "start": 11464, + "end": 11465, "loc": { "start": { - "line": 297, + "line": 298, "column": 78 }, "end": { - "line": 297, + "line": 298, "column": 79 } } @@ -123794,15 +123838,15 @@ "binop": null, "updateContext": null }, - "start": 11402, - "end": 11403, + "start": 11465, + "end": 11466, "loc": { "start": { - "line": 297, + "line": 298, "column": 79 }, "end": { - "line": 297, + "line": 298, "column": 80 } } @@ -123820,15 +123864,15 @@ "binop": null }, "value": "y", - "start": 11404, - "end": 11405, + "start": 11467, + "end": 11468, "loc": { "start": { - "line": 297, + "line": 298, "column": 81 }, "end": { - "line": 297, + "line": 298, "column": 82 } } @@ -123846,15 +123890,15 @@ "binop": null, "updateContext": null }, - "start": 11405, - "end": 11406, + "start": 11468, + "end": 11469, "loc": { "start": { - "line": 297, + "line": 298, "column": 82 }, "end": { - "line": 297, + "line": 298, "column": 83 } } @@ -123872,15 +123916,15 @@ "binop": null }, "value": "endNode", - "start": 11407, - "end": 11414, + "start": 11470, + "end": 11477, "loc": { "start": { - "line": 297, + "line": 298, "column": 84 }, "end": { - "line": 297, + "line": 298, "column": 91 } } @@ -123898,15 +123942,15 @@ "binop": null, "updateContext": null }, - "start": 11414, - "end": 11415, + "start": 11477, + "end": 11478, "loc": { "start": { - "line": 297, + "line": 298, "column": 91 }, "end": { - "line": 297, + "line": 298, "column": 92 } } @@ -123924,15 +123968,15 @@ "binop": null }, "value": "y", - "start": 11415, - "end": 11416, + "start": 11478, + "end": 11479, "loc": { "start": { - "line": 297, + "line": 298, "column": 92 }, "end": { - "line": 297, + "line": 298, "column": 93 } } @@ -123949,15 +123993,15 @@ "postfix": false, "binop": null }, - "start": 11417, - "end": 11418, + "start": 11480, + "end": 11481, "loc": { "start": { - "line": 297, + "line": 298, "column": 94 }, "end": { - "line": 297, + "line": 298, "column": 95 } } @@ -123974,15 +124018,15 @@ "postfix": false, "binop": null }, - "start": 11418, - "end": 11419, + "start": 11481, + "end": 11482, "loc": { "start": { - "line": 297, + "line": 298, "column": 95 }, "end": { - "line": 297, + "line": 298, "column": 96 } } @@ -124000,15 +124044,15 @@ "binop": null, "updateContext": null }, - "start": 11419, - "end": 11420, + "start": 11482, + "end": 11483, "loc": { "start": { - "line": 297, + "line": 298, "column": 96 }, "end": { - "line": 297, + "line": 298, "column": 97 } } @@ -124016,15 +124060,15 @@ { "type": "CommentLine", "value": " If the origin tile or end tile is not accessible to be walked on then return no path found.", - "start": 11430, - "end": 11524, + "start": 11493, + "end": 11587, "loc": { "start": { - "line": 298, + "line": 299, "column": 4 }, "end": { - "line": 298, + "line": 299, "column": 98 } } @@ -124041,15 +124085,15 @@ "postfix": false, "binop": null }, - "start": 11530, - "end": 11531, + "start": 11593, + "end": 11594, "loc": { "start": { - "line": 299, + "line": 300, "column": 4 }, "end": { - "line": 299, + "line": 300, "column": 5 } } @@ -124069,15 +124113,15 @@ "updateContext": null }, "value": "else", - "start": 11532, - "end": 11536, + "start": 11595, + "end": 11599, "loc": { "start": { - "line": 299, + "line": 300, "column": 6 }, "end": { - "line": 299, + "line": 300, "column": 10 } } @@ -124094,32 +124138,32 @@ "postfix": false, "binop": null }, - "start": 11537, - "end": 11538, + "start": 11600, + "end": 11601, "loc": { "start": { - "line": 299, + "line": 300, "column": 11 }, "end": { - "line": 299, + "line": 300, "column": 12 } } }, { "type": "CommentLine", - "value": " So fire the path not found event.\t", - "start": 11545, - "end": 11582, + "value": " Fire the path not found event.\t", + "start": 11608, + "end": 11642, "loc": { "start": { - "line": 300, + "line": 301, "column": 5 }, "end": { - "line": 300, - "column": 42 + "line": 301, + "column": 39 } } }, @@ -124138,15 +124182,15 @@ "updateContext": null }, "value": "if", - "start": 11589, - "end": 11591, + "start": 11649, + "end": 11651, "loc": { "start": { - "line": 301, + "line": 302, "column": 5 }, "end": { - "line": 301, + "line": 302, "column": 7 } } @@ -124163,15 +124207,15 @@ "postfix": false, "binop": null }, - "start": 11592, - "end": 11593, + "start": 11652, + "end": 11653, "loc": { "start": { - "line": 301, + "line": 302, "column": 8 }, "end": { - "line": 301, + "line": 302, "column": 9 } } @@ -124191,15 +124235,15 @@ "updateContext": null }, "value": "typeof", - "start": 11593, - "end": 11599, + "start": 11653, + "end": 11659, "loc": { "start": { - "line": 301, + "line": 302, "column": 9 }, "end": { - "line": 301, + "line": 302, "column": 15 } } @@ -124216,15 +124260,15 @@ "postfix": false, "binop": null }, - "start": 11599, - "end": 11600, + "start": 11659, + "end": 11660, "loc": { "start": { - "line": 301, + "line": 302, "column": 15 }, "end": { - "line": 301, + "line": 302, "column": 16 } } @@ -124242,15 +124286,15 @@ "binop": null }, "value": "instanceData", - "start": 11600, - "end": 11612, + "start": 11660, + "end": 11672, "loc": { "start": { - "line": 301, + "line": 302, "column": 16 }, "end": { - "line": 301, + "line": 302, "column": 28 } } @@ -124268,15 +124312,15 @@ "binop": null, "updateContext": null }, - "start": 11612, - "end": 11613, + "start": 11672, + "end": 11673, "loc": { "start": { - "line": 301, + "line": 302, "column": 28 }, "end": { - "line": 301, + "line": 302, "column": 29 } } @@ -124294,15 +124338,15 @@ "binop": null }, "value": "events", - "start": 11613, - "end": 11619, + "start": 11673, + "end": 11679, "loc": { "start": { - "line": 301, + "line": 302, "column": 29 }, "end": { - "line": 301, + "line": 302, "column": 35 } } @@ -124320,15 +124364,15 @@ "binop": null, "updateContext": null }, - "start": 11619, - "end": 11620, + "start": 11679, + "end": 11680, "loc": { "start": { - "line": 301, + "line": 302, "column": 35 }, "end": { - "line": 301, + "line": 302, "column": 36 } } @@ -124346,15 +124390,15 @@ "binop": null }, "value": "onPathNotFound", - "start": 11620, - "end": 11634, + "start": 11680, + "end": 11694, "loc": { "start": { - "line": 301, + "line": 302, "column": 36 }, "end": { - "line": 301, + "line": 302, "column": 50 } } @@ -124371,15 +124415,15 @@ "postfix": false, "binop": null }, - "start": 11634, - "end": 11635, + "start": 11694, + "end": 11695, "loc": { "start": { - "line": 301, + "line": 302, "column": 50 }, "end": { - "line": 301, + "line": 302, "column": 51 } } @@ -124398,15 +124442,15 @@ "updateContext": null }, "value": "===", - "start": 11636, - "end": 11639, + "start": 11696, + "end": 11699, "loc": { "start": { - "line": 301, + "line": 302, "column": 52 }, "end": { - "line": 301, + "line": 302, "column": 55 } } @@ -124425,15 +124469,15 @@ "updateContext": null }, "value": "function", - "start": 11640, - "end": 11650, + "start": 11700, + "end": 11710, "loc": { "start": { - "line": 301, + "line": 302, "column": 56 }, "end": { - "line": 301, + "line": 302, "column": 66 } } @@ -124450,15 +124494,15 @@ "postfix": false, "binop": null }, - "start": 11650, - "end": 11651, + "start": 11710, + "end": 11711, "loc": { "start": { - "line": 301, + "line": 302, "column": 66 }, "end": { - "line": 301, + "line": 302, "column": 67 } } @@ -124475,15 +124519,15 @@ "postfix": false, "binop": null }, - "start": 11652, - "end": 11653, + "start": 11712, + "end": 11713, "loc": { "start": { - "line": 301, + "line": 302, "column": 68 }, "end": { - "line": 301, + "line": 302, "column": 69 } } @@ -124501,15 +124545,15 @@ "binop": null }, "value": "instanceData", - "start": 11661, - "end": 11673, + "start": 11721, + "end": 11733, "loc": { "start": { - "line": 302, + "line": 303, "column": 6 }, "end": { - "line": 302, + "line": 303, "column": 18 } } @@ -124527,15 +124571,15 @@ "binop": null, "updateContext": null }, - "start": 11673, - "end": 11674, + "start": 11733, + "end": 11734, "loc": { "start": { - "line": 302, + "line": 303, "column": 18 }, "end": { - "line": 302, + "line": 303, "column": 19 } } @@ -124553,15 +124597,15 @@ "binop": null }, "value": "events", - "start": 11674, - "end": 11680, + "start": 11734, + "end": 11740, "loc": { "start": { - "line": 302, + "line": 303, "column": 19 }, "end": { - "line": 302, + "line": 303, "column": 25 } } @@ -124579,15 +124623,15 @@ "binop": null, "updateContext": null }, - "start": 11680, - "end": 11681, + "start": 11740, + "end": 11741, "loc": { "start": { - "line": 302, + "line": 303, "column": 25 }, "end": { - "line": 302, + "line": 303, "column": 26 } } @@ -124605,15 +124649,15 @@ "binop": null }, "value": "onPathNotFound", - "start": 11681, - "end": 11695, + "start": 11741, + "end": 11755, "loc": { "start": { - "line": 302, + "line": 303, "column": 26 }, "end": { - "line": 302, + "line": 303, "column": 40 } } @@ -124630,15 +124674,15 @@ "postfix": false, "binop": null }, - "start": 11695, - "end": 11696, + "start": 11755, + "end": 11756, "loc": { "start": { - "line": 302, + "line": 303, "column": 40 }, "end": { - "line": 302, + "line": 303, "column": 41 } } @@ -124655,15 +124699,15 @@ "postfix": false, "binop": null }, - "start": 11696, - "end": 11697, + "start": 11756, + "end": 11757, "loc": { "start": { - "line": 302, + "line": 303, "column": 41 }, "end": { - "line": 302, + "line": 303, "column": 42 } } @@ -124681,15 +124725,15 @@ "binop": null, "updateContext": null }, - "start": 11697, - "end": 11698, + "start": 11757, + "end": 11758, "loc": { "start": { - "line": 302, + "line": 303, "column": 42 }, "end": { - "line": 302, + "line": 303, "column": 43 } } @@ -124706,15 +124750,15 @@ "postfix": false, "binop": null }, - "start": 11705, - "end": 11706, + "start": 11765, + "end": 11766, "loc": { "start": { - "line": 303, + "line": 304, "column": 5 }, "end": { - "line": 303, + "line": 304, "column": 6 } } @@ -124734,15 +124778,15 @@ "updateContext": null }, "value": "this", - "start": 11713, - "end": 11717, + "start": 11773, + "end": 11777, "loc": { "start": { - "line": 304, + "line": 305, "column": 5 }, "end": { - "line": 304, + "line": 305, "column": 9 } } @@ -124760,15 +124804,15 @@ "binop": null, "updateContext": null }, - "start": 11717, - "end": 11718, + "start": 11777, + "end": 11778, "loc": { "start": { - "line": 304, + "line": 305, "column": 9 }, "end": { - "line": 304, + "line": 305, "column": 10 } } @@ -124786,15 +124830,15 @@ "binop": null }, "value": "end", - "start": 11718, - "end": 11721, + "start": 11778, + "end": 11781, "loc": { "start": { - "line": 304, + "line": 305, "column": 10 }, "end": { - "line": 304, + "line": 305, "column": 13 } } @@ -124811,15 +124855,15 @@ "postfix": false, "binop": null }, - "start": 11721, - "end": 11722, + "start": 11781, + "end": 11782, "loc": { "start": { - "line": 304, + "line": 305, "column": 13 }, "end": { - "line": 304, + "line": 305, "column": 14 } } @@ -124837,15 +124881,15 @@ "binop": null }, "value": "pInstance", - "start": 11722, - "end": 11731, + "start": 11782, + "end": 11791, "loc": { "start": { - "line": 304, + "line": 305, "column": 14 }, "end": { - "line": 304, + "line": 305, "column": 23 } } @@ -124862,70 +124906,16 @@ "postfix": false, "binop": null }, - "start": 11731, - "end": 11732, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11732, - "end": 11733, - "loc": { - "start": { - "line": 304, - "column": 24 - }, - "end": { - "line": 304, - "column": 25 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 11740, - "end": 11746, + "start": 11791, + "end": 11792, "loc": { "start": { "line": 305, - "column": 5 + "column": 23 }, "end": { "line": 305, - "column": 11 + "column": 24 } } }, @@ -124942,16 +124932,16 @@ "binop": null, "updateContext": null }, - "start": 11746, - "end": 11747, + "start": 11792, + "end": 11793, "loc": { "start": { "line": 305, - "column": 11 + "column": 24 }, "end": { "line": 305, - "column": 12 + "column": 25 } } }, @@ -124967,8 +124957,8 @@ "postfix": false, "binop": null }, - "start": 11753, - "end": 11754, + "start": 11799, + "end": 11800, "loc": { "start": { "line": 306, @@ -124992,8 +124982,8 @@ "postfix": false, "binop": null }, - "start": 11759, - "end": 11760, + "start": 11805, + "end": 11806, "loc": { "start": { "line": 307, @@ -125020,8 +125010,8 @@ "updateContext": null }, "value": "else", - "start": 11761, - "end": 11765, + "start": 11807, + "end": 11811, "loc": { "start": { "line": 307, @@ -125045,8 +125035,8 @@ "postfix": false, "binop": null }, - "start": 11766, - "end": 11767, + "start": 11812, + "end": 11813, "loc": { "start": { "line": 307, @@ -125073,8 +125063,8 @@ "updateContext": null }, "value": "this", - "start": 11773, - "end": 11777, + "start": 11819, + "end": 11823, "loc": { "start": { "line": 308, @@ -125099,8 +125089,8 @@ "binop": null, "updateContext": null }, - "start": 11777, - "end": 11778, + "start": 11823, + "end": 11824, "loc": { "start": { "line": 308, @@ -125125,8 +125115,8 @@ "binop": null }, "value": "logger", - "start": 11778, - "end": 11784, + "start": 11824, + "end": 11830, "loc": { "start": { "line": 308, @@ -125151,8 +125141,8 @@ "binop": null, "updateContext": null }, - "start": 11784, - "end": 11785, + "start": 11830, + "end": 11831, "loc": { "start": { "line": 308, @@ -125177,8 +125167,8 @@ "binop": null }, "value": "prefix", - "start": 11785, - "end": 11791, + "start": 11831, + "end": 11837, "loc": { "start": { "line": 308, @@ -125202,8 +125192,8 @@ "postfix": false, "binop": null }, - "start": 11791, - "end": 11792, + "start": 11837, + "end": 11838, "loc": { "start": { "line": 308, @@ -125229,8 +125219,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 11792, - "end": 11808, + "start": 11838, + "end": 11854, "loc": { "start": { "line": 308, @@ -125254,8 +125244,8 @@ "postfix": false, "binop": null }, - "start": 11808, - "end": 11809, + "start": 11854, + "end": 11855, "loc": { "start": { "line": 308, @@ -125280,8 +125270,8 @@ "binop": null, "updateContext": null }, - "start": 11809, - "end": 11810, + "start": 11855, + "end": 11856, "loc": { "start": { "line": 308, @@ -125306,8 +125296,8 @@ "binop": null }, "value": "error", - "start": 11810, - "end": 11815, + "start": 11856, + "end": 11861, "loc": { "start": { "line": 308, @@ -125331,8 +125321,8 @@ "postfix": false, "binop": null }, - "start": 11815, - "end": 11816, + "start": 11861, + "end": 11862, "loc": { "start": { "line": 308, @@ -125358,8 +125348,8 @@ "updateContext": null }, "value": "Origin tile or destination tile cannot be found.", - "start": 11816, - "end": 11866, + "start": 11862, + "end": 11912, "loc": { "start": { "line": 308, @@ -125383,8 +125373,8 @@ "postfix": false, "binop": null }, - "start": 11866, - "end": 11867, + "start": 11912, + "end": 11913, "loc": { "start": { "line": 308, @@ -125409,8 +125399,8 @@ "binop": null, "updateContext": null }, - "start": 11867, - "end": 11868, + "start": 11913, + "end": 11914, "loc": { "start": { "line": 308, @@ -125437,8 +125427,8 @@ "updateContext": null }, "value": "return", - "start": 11874, - "end": 11880, + "start": 11920, + "end": 11926, "loc": { "start": { "line": 309, @@ -125463,8 +125453,8 @@ "binop": null, "updateContext": null }, - "start": 11880, - "end": 11881, + "start": 11926, + "end": 11927, "loc": { "start": { "line": 309, @@ -125488,8 +125478,8 @@ "postfix": false, "binop": null }, - "start": 11886, - "end": 11887, + "start": 11932, + "end": 11933, "loc": { "start": { "line": 310, @@ -125513,8 +125503,8 @@ "postfix": false, "binop": null }, - "start": 11891, - "end": 11892, + "start": 11937, + "end": 11938, "loc": { "start": { "line": 311, @@ -125541,8 +125531,8 @@ "updateContext": null }, "value": "else", - "start": 11893, - "end": 11897, + "start": 11939, + "end": 11943, "loc": { "start": { "line": 311, @@ -125566,8 +125556,8 @@ "postfix": false, "binop": null }, - "start": 11898, - "end": 11899, + "start": 11944, + "end": 11945, "loc": { "start": { "line": 311, @@ -125594,8 +125584,8 @@ "updateContext": null }, "value": "this", - "start": 11904, - "end": 11908, + "start": 11950, + "end": 11954, "loc": { "start": { "line": 312, @@ -125620,8 +125610,8 @@ "binop": null, "updateContext": null }, - "start": 11908, - "end": 11909, + "start": 11954, + "end": 11955, "loc": { "start": { "line": 312, @@ -125646,8 +125636,8 @@ "binop": null }, "value": "logger", - "start": 11909, - "end": 11915, + "start": 11955, + "end": 11961, "loc": { "start": { "line": 312, @@ -125672,8 +125662,8 @@ "binop": null, "updateContext": null }, - "start": 11915, - "end": 11916, + "start": 11961, + "end": 11962, "loc": { "start": { "line": 312, @@ -125698,8 +125688,8 @@ "binop": null }, "value": "prefix", - "start": 11916, - "end": 11922, + "start": 11962, + "end": 11968, "loc": { "start": { "line": 312, @@ -125723,8 +125713,8 @@ "postfix": false, "binop": null }, - "start": 11922, - "end": 11923, + "start": 11968, + "end": 11969, "loc": { "start": { "line": 312, @@ -125750,8 +125740,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 11923, - "end": 11939, + "start": 11969, + "end": 11985, "loc": { "start": { "line": 312, @@ -125775,8 +125765,8 @@ "postfix": false, "binop": null }, - "start": 11939, - "end": 11940, + "start": 11985, + "end": 11986, "loc": { "start": { "line": 312, @@ -125801,8 +125791,8 @@ "binop": null, "updateContext": null }, - "start": 11940, - "end": 11941, + "start": 11986, + "end": 11987, "loc": { "start": { "line": 312, @@ -125827,8 +125817,8 @@ "binop": null }, "value": "error", - "start": 11941, - "end": 11946, + "start": 11987, + "end": 11992, "loc": { "start": { "line": 312, @@ -125852,8 +125842,8 @@ "postfix": false, "binop": null }, - "start": 11946, - "end": 11947, + "start": 11992, + "end": 11993, "loc": { "start": { "line": 312, @@ -125879,8 +125869,8 @@ "updateContext": null }, "value": "Invalid type passed for pInstance. Expecting an object.", - "start": 11947, - "end": 12004, + "start": 11993, + "end": 12050, "loc": { "start": { "line": 312, @@ -125904,8 +125894,8 @@ "postfix": false, "binop": null }, - "start": 12004, - "end": 12005, + "start": 12050, + "end": 12051, "loc": { "start": { "line": 312, @@ -125930,8 +125920,8 @@ "binop": null, "updateContext": null }, - "start": 12005, - "end": 12006, + "start": 12051, + "end": 12052, "loc": { "start": { "line": 312, @@ -125955,8 +125945,8 @@ "postfix": false, "binop": null }, - "start": 12010, - "end": 12011, + "start": 12056, + "end": 12057, "loc": { "start": { "line": 313, @@ -125980,8 +125970,8 @@ "postfix": false, "binop": null }, - "start": 12014, - "end": 12015, + "start": 12060, + "end": 12061, "loc": { "start": { "line": 314, @@ -125996,8 +125986,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t ", - "start": 12018, - "end": 12134, + "start": 12064, + "end": 12180, "loc": { "start": { "line": 315, @@ -126022,8 +126012,8 @@ "binop": null }, "value": "track", - "start": 12137, - "end": 12142, + "start": 12183, + "end": 12188, "loc": { "start": { "line": 320, @@ -126047,8 +126037,8 @@ "postfix": false, "binop": null }, - "start": 12142, - "end": 12143, + "start": 12188, + "end": 12189, "loc": { "start": { "line": 320, @@ -126073,8 +126063,8 @@ "binop": null }, "value": "pInstance", - "start": 12143, - "end": 12152, + "start": 12189, + "end": 12198, "loc": { "start": { "line": 320, @@ -126098,8 +126088,8 @@ "postfix": false, "binop": null }, - "start": 12152, - "end": 12153, + "start": 12198, + "end": 12199, "loc": { "start": { "line": 320, @@ -126123,8 +126113,8 @@ "postfix": false, "binop": null }, - "start": 12154, - "end": 12155, + "start": 12200, + "end": 12201, "loc": { "start": { "line": 320, @@ -126139,8 +126129,8 @@ { "type": "CommentLine", "value": " Add this instance to being tracked.", - "start": 12159, - "end": 12197, + "start": 12205, + "end": 12243, "loc": { "start": { "line": 321, @@ -126167,8 +126157,8 @@ "updateContext": null }, "value": "if", - "start": 12201, - "end": 12203, + "start": 12247, + "end": 12249, "loc": { "start": { "line": 322, @@ -126192,8 +126182,8 @@ "postfix": false, "binop": null }, - "start": 12204, - "end": 12205, + "start": 12250, + "end": 12251, "loc": { "start": { "line": 322, @@ -126219,8 +126209,8 @@ "updateContext": null }, "value": "!", - "start": 12205, - "end": 12206, + "start": 12251, + "end": 12252, "loc": { "start": { "line": 322, @@ -126247,8 +126237,8 @@ "updateContext": null }, "value": "this", - "start": 12206, - "end": 12210, + "start": 12252, + "end": 12256, "loc": { "start": { "line": 322, @@ -126273,8 +126263,8 @@ "binop": null, "updateContext": null }, - "start": 12210, - "end": 12211, + "start": 12256, + "end": 12257, "loc": { "start": { "line": 322, @@ -126299,8 +126289,8 @@ "binop": null }, "value": "activeInstances", - "start": 12211, - "end": 12226, + "start": 12257, + "end": 12272, "loc": { "start": { "line": 322, @@ -126325,8 +126315,8 @@ "binop": null, "updateContext": null }, - "start": 12226, - "end": 12227, + "start": 12272, + "end": 12273, "loc": { "start": { "line": 322, @@ -126351,8 +126341,8 @@ "binop": null }, "value": "includes", - "start": 12227, - "end": 12235, + "start": 12273, + "end": 12281, "loc": { "start": { "line": 322, @@ -126376,8 +126366,8 @@ "postfix": false, "binop": null }, - "start": 12235, - "end": 12236, + "start": 12281, + "end": 12282, "loc": { "start": { "line": 322, @@ -126402,8 +126392,8 @@ "binop": null }, "value": "pInstance", - "start": 12236, - "end": 12245, + "start": 12282, + "end": 12291, "loc": { "start": { "line": 322, @@ -126427,8 +126417,8 @@ "postfix": false, "binop": null }, - "start": 12245, - "end": 12246, + "start": 12291, + "end": 12292, "loc": { "start": { "line": 322, @@ -126452,8 +126442,8 @@ "postfix": false, "binop": null }, - "start": 12246, - "end": 12247, + "start": 12292, + "end": 12293, "loc": { "start": { "line": 322, @@ -126477,8 +126467,8 @@ "postfix": false, "binop": null }, - "start": 12248, - "end": 12249, + "start": 12294, + "end": 12295, "loc": { "start": { "line": 322, @@ -126505,8 +126495,8 @@ "updateContext": null }, "value": "this", - "start": 12254, - "end": 12258, + "start": 12300, + "end": 12304, "loc": { "start": { "line": 323, @@ -126531,8 +126521,8 @@ "binop": null, "updateContext": null }, - "start": 12258, - "end": 12259, + "start": 12304, + "end": 12305, "loc": { "start": { "line": 323, @@ -126557,8 +126547,8 @@ "binop": null }, "value": "activeInstances", - "start": 12259, - "end": 12274, + "start": 12305, + "end": 12320, "loc": { "start": { "line": 323, @@ -126583,8 +126573,8 @@ "binop": null, "updateContext": null }, - "start": 12274, - "end": 12275, + "start": 12320, + "end": 12321, "loc": { "start": { "line": 323, @@ -126609,8 +126599,8 @@ "binop": null }, "value": "push", - "start": 12275, - "end": 12279, + "start": 12321, + "end": 12325, "loc": { "start": { "line": 323, @@ -126634,8 +126624,8 @@ "postfix": false, "binop": null }, - "start": 12279, - "end": 12280, + "start": 12325, + "end": 12326, "loc": { "start": { "line": 323, @@ -126660,8 +126650,8 @@ "binop": null }, "value": "pInstance", - "start": 12280, - "end": 12289, + "start": 12326, + "end": 12335, "loc": { "start": { "line": 323, @@ -126685,8 +126675,8 @@ "postfix": false, "binop": null }, - "start": 12289, - "end": 12290, + "start": 12335, + "end": 12336, "loc": { "start": { "line": 323, @@ -126711,8 +126701,8 @@ "binop": null, "updateContext": null }, - "start": 12290, - "end": 12291, + "start": 12336, + "end": 12337, "loc": { "start": { "line": 323, @@ -126736,8 +126726,8 @@ "postfix": false, "binop": null }, - "start": 12295, - "end": 12296, + "start": 12341, + "end": 12342, "loc": { "start": { "line": 324, @@ -126761,8 +126751,8 @@ "postfix": false, "binop": null }, - "start": 12299, - "end": 12300, + "start": 12345, + "end": 12346, "loc": { "start": { "line": 325, @@ -126777,8 +126767,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t ", - "start": 12303, - "end": 12448, + "start": 12349, + "end": 12494, "loc": { "start": { "line": 326, @@ -126803,8 +126793,8 @@ "binop": null }, "value": "untrack", - "start": 12451, - "end": 12458, + "start": 12497, + "end": 12504, "loc": { "start": { "line": 331, @@ -126828,8 +126818,8 @@ "postfix": false, "binop": null }, - "start": 12458, - "end": 12459, + "start": 12504, + "end": 12505, "loc": { "start": { "line": 331, @@ -126854,8 +126844,8 @@ "binop": null }, "value": "pInstance", - "start": 12459, - "end": 12468, + "start": 12505, + "end": 12514, "loc": { "start": { "line": 331, @@ -126879,8 +126869,8 @@ "postfix": false, "binop": null }, - "start": 12468, - "end": 12469, + "start": 12514, + "end": 12515, "loc": { "start": { "line": 331, @@ -126904,8 +126894,8 @@ "postfix": false, "binop": null }, - "start": 12470, - "end": 12471, + "start": 12516, + "end": 12517, "loc": { "start": { "line": 331, @@ -126920,8 +126910,8 @@ { "type": "CommentLine", "value": " Remove this instance from being tracked.", - "start": 12475, - "end": 12518, + "start": 12521, + "end": 12564, "loc": { "start": { "line": 332, @@ -126948,8 +126938,8 @@ "updateContext": null }, "value": "if", - "start": 12522, - "end": 12524, + "start": 12568, + "end": 12570, "loc": { "start": { "line": 333, @@ -126973,8 +126963,8 @@ "postfix": false, "binop": null }, - "start": 12525, - "end": 12526, + "start": 12571, + "end": 12572, "loc": { "start": { "line": 333, @@ -127001,8 +126991,8 @@ "updateContext": null }, "value": "this", - "start": 12526, - "end": 12530, + "start": 12572, + "end": 12576, "loc": { "start": { "line": 333, @@ -127027,8 +127017,8 @@ "binop": null, "updateContext": null }, - "start": 12530, - "end": 12531, + "start": 12576, + "end": 12577, "loc": { "start": { "line": 333, @@ -127053,8 +127043,8 @@ "binop": null }, "value": "activeInstances", - "start": 12531, - "end": 12546, + "start": 12577, + "end": 12592, "loc": { "start": { "line": 333, @@ -127079,8 +127069,8 @@ "binop": null, "updateContext": null }, - "start": 12546, - "end": 12547, + "start": 12592, + "end": 12593, "loc": { "start": { "line": 333, @@ -127105,8 +127095,8 @@ "binop": null }, "value": "includes", - "start": 12547, - "end": 12555, + "start": 12593, + "end": 12601, "loc": { "start": { "line": 333, @@ -127130,8 +127120,8 @@ "postfix": false, "binop": null }, - "start": 12555, - "end": 12556, + "start": 12601, + "end": 12602, "loc": { "start": { "line": 333, @@ -127156,8 +127146,8 @@ "binop": null }, "value": "pInstance", - "start": 12556, - "end": 12565, + "start": 12602, + "end": 12611, "loc": { "start": { "line": 333, @@ -127181,8 +127171,8 @@ "postfix": false, "binop": null }, - "start": 12565, - "end": 12566, + "start": 12611, + "end": 12612, "loc": { "start": { "line": 333, @@ -127206,8 +127196,8 @@ "postfix": false, "binop": null }, - "start": 12566, - "end": 12567, + "start": 12612, + "end": 12613, "loc": { "start": { "line": 333, @@ -127231,8 +127221,8 @@ "postfix": false, "binop": null }, - "start": 12568, - "end": 12569, + "start": 12614, + "end": 12615, "loc": { "start": { "line": 333, @@ -127259,8 +127249,8 @@ "updateContext": null }, "value": "this", - "start": 12574, - "end": 12578, + "start": 12620, + "end": 12624, "loc": { "start": { "line": 334, @@ -127285,8 +127275,8 @@ "binop": null, "updateContext": null }, - "start": 12578, - "end": 12579, + "start": 12624, + "end": 12625, "loc": { "start": { "line": 334, @@ -127311,8 +127301,8 @@ "binop": null }, "value": "activeInstances", - "start": 12579, - "end": 12594, + "start": 12625, + "end": 12640, "loc": { "start": { "line": 334, @@ -127337,8 +127327,8 @@ "binop": null, "updateContext": null }, - "start": 12594, - "end": 12595, + "start": 12640, + "end": 12641, "loc": { "start": { "line": 334, @@ -127363,8 +127353,8 @@ "binop": null }, "value": "splice", - "start": 12595, - "end": 12601, + "start": 12641, + "end": 12647, "loc": { "start": { "line": 334, @@ -127388,8 +127378,8 @@ "postfix": false, "binop": null }, - "start": 12601, - "end": 12602, + "start": 12647, + "end": 12648, "loc": { "start": { "line": 334, @@ -127416,8 +127406,8 @@ "updateContext": null }, "value": "this", - "start": 12602, - "end": 12606, + "start": 12648, + "end": 12652, "loc": { "start": { "line": 334, @@ -127442,8 +127432,8 @@ "binop": null, "updateContext": null }, - "start": 12606, - "end": 12607, + "start": 12652, + "end": 12653, "loc": { "start": { "line": 334, @@ -127468,8 +127458,8 @@ "binop": null }, "value": "activeInstances", - "start": 12607, - "end": 12622, + "start": 12653, + "end": 12668, "loc": { "start": { "line": 334, @@ -127494,8 +127484,8 @@ "binop": null, "updateContext": null }, - "start": 12622, - "end": 12623, + "start": 12668, + "end": 12669, "loc": { "start": { "line": 334, @@ -127520,8 +127510,8 @@ "binop": null }, "value": "indexOf", - "start": 12623, - "end": 12630, + "start": 12669, + "end": 12676, "loc": { "start": { "line": 334, @@ -127545,8 +127535,8 @@ "postfix": false, "binop": null }, - "start": 12630, - "end": 12631, + "start": 12676, + "end": 12677, "loc": { "start": { "line": 334, @@ -127571,8 +127561,8 @@ "binop": null }, "value": "pInstance", - "start": 12631, - "end": 12640, + "start": 12677, + "end": 12686, "loc": { "start": { "line": 334, @@ -127596,8 +127586,8 @@ "postfix": false, "binop": null }, - "start": 12640, - "end": 12641, + "start": 12686, + "end": 12687, "loc": { "start": { "line": 334, @@ -127622,8 +127612,8 @@ "binop": null, "updateContext": null }, - "start": 12641, - "end": 12642, + "start": 12687, + "end": 12688, "loc": { "start": { "line": 334, @@ -127649,8 +127639,8 @@ "updateContext": null }, "value": 1, - "start": 12643, - "end": 12644, + "start": 12689, + "end": 12690, "loc": { "start": { "line": 334, @@ -127674,8 +127664,8 @@ "postfix": false, "binop": null }, - "start": 12644, - "end": 12645, + "start": 12690, + "end": 12691, "loc": { "start": { "line": 334, @@ -127700,8 +127690,8 @@ "binop": null, "updateContext": null }, - "start": 12645, - "end": 12646, + "start": 12691, + "end": 12692, "loc": { "start": { "line": 334, @@ -127725,8 +127715,8 @@ "postfix": false, "binop": null }, - "start": 12650, - "end": 12651, + "start": 12696, + "end": 12697, "loc": { "start": { "line": 335, @@ -127750,8 +127740,8 @@ "postfix": false, "binop": null }, - "start": 12654, - "end": 12655, + "start": 12700, + "end": 12701, "loc": { "start": { "line": 336, @@ -127766,8 +127756,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t ", - "start": 12658, - "end": 12791, + "start": 12704, + "end": 12837, "loc": { "start": { "line": 337, @@ -127792,8 +127782,8 @@ "binop": null }, "value": "end", - "start": 12794, - "end": 12797, + "start": 12840, + "end": 12843, "loc": { "start": { "line": 341, @@ -127817,8 +127807,8 @@ "postfix": false, "binop": null }, - "start": 12797, - "end": 12798, + "start": 12843, + "end": 12844, "loc": { "start": { "line": 341, @@ -127843,8 +127833,8 @@ "binop": null }, "value": "pInstance", - "start": 12798, - "end": 12807, + "start": 12844, + "end": 12853, "loc": { "start": { "line": 341, @@ -127868,8 +127858,8 @@ "postfix": false, "binop": null }, - "start": 12807, - "end": 12808, + "start": 12853, + "end": 12854, "loc": { "start": { "line": 341, @@ -127893,8 +127883,8 @@ "postfix": false, "binop": null }, - "start": 12809, - "end": 12810, + "start": 12855, + "end": 12856, "loc": { "start": { "line": 341, @@ -127909,8 +127899,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 12814, - "end": 12856, + "start": 12860, + "end": 12902, "loc": { "start": { "line": 342, @@ -127937,8 +127927,8 @@ "updateContext": null }, "value": "const", - "start": 12860, - "end": 12865, + "start": 12906, + "end": 12911, "loc": { "start": { "line": 343, @@ -127963,8 +127953,8 @@ "binop": null }, "value": "instanceData", - "start": 12866, - "end": 12878, + "start": 12912, + "end": 12924, "loc": { "start": { "line": 343, @@ -127990,8 +127980,8 @@ "updateContext": null }, "value": "=", - "start": 12879, - "end": 12880, + "start": 12925, + "end": 12926, "loc": { "start": { "line": 343, @@ -128018,8 +128008,8 @@ "updateContext": null }, "value": "this", - "start": 12881, - "end": 12885, + "start": 12927, + "end": 12931, "loc": { "start": { "line": 343, @@ -128044,8 +128034,8 @@ "binop": null, "updateContext": null }, - "start": 12885, - "end": 12886, + "start": 12931, + "end": 12932, "loc": { "start": { "line": 343, @@ -128070,8 +128060,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 12886, - "end": 12901, + "start": 12932, + "end": 12947, "loc": { "start": { "line": 343, @@ -128096,8 +128086,8 @@ "binop": null, "updateContext": null }, - "start": 12901, - "end": 12902, + "start": 12947, + "end": 12948, "loc": { "start": { "line": 343, @@ -128122,8 +128112,8 @@ "binop": null }, "value": "get", - "start": 12902, - "end": 12905, + "start": 12948, + "end": 12951, "loc": { "start": { "line": 343, @@ -128147,8 +128137,8 @@ "postfix": false, "binop": null }, - "start": 12905, - "end": 12906, + "start": 12951, + "end": 12952, "loc": { "start": { "line": 343, @@ -128173,8 +128163,8 @@ "binop": null }, "value": "pInstance", - "start": 12906, - "end": 12915, + "start": 12952, + "end": 12961, "loc": { "start": { "line": 343, @@ -128198,8 +128188,8 @@ "postfix": false, "binop": null }, - "start": 12915, - "end": 12916, + "start": 12961, + "end": 12962, "loc": { "start": { "line": 343, @@ -128224,8 +128214,8 @@ "binop": null, "updateContext": null }, - "start": 12916, - "end": 12917, + "start": 12962, + "end": 12963, "loc": { "start": { "line": 343, @@ -128252,8 +128242,8 @@ "updateContext": null }, "value": "if", - "start": 12921, - "end": 12923, + "start": 12967, + "end": 12969, "loc": { "start": { "line": 344, @@ -128277,8 +128267,8 @@ "postfix": false, "binop": null }, - "start": 12924, - "end": 12925, + "start": 12970, + "end": 12971, "loc": { "start": { "line": 344, @@ -128303,8 +128293,8 @@ "binop": null }, "value": "instanceData", - "start": 12925, - "end": 12937, + "start": 12971, + "end": 12983, "loc": { "start": { "line": 344, @@ -128328,8 +128318,8 @@ "postfix": false, "binop": null }, - "start": 12937, - "end": 12938, + "start": 12983, + "end": 12984, "loc": { "start": { "line": 344, @@ -128353,8 +128343,8 @@ "postfix": false, "binop": null }, - "start": 12939, - "end": 12940, + "start": 12985, + "end": 12986, "loc": { "start": { "line": 344, @@ -128369,8 +128359,8 @@ { "type": "CommentLine", "value": " We are ending the pathfinding. So we get the path ID so we can cancel calculations being made for this path.", - "start": 12945, - "end": 13056, + "start": 12991, + "end": 13102, "loc": { "start": { "line": 345, @@ -128397,8 +128387,8 @@ "updateContext": null }, "value": "if", - "start": 13061, - "end": 13063, + "start": 13107, + "end": 13109, "loc": { "start": { "line": 346, @@ -128422,8 +128412,8 @@ "postfix": false, "binop": null }, - "start": 13064, - "end": 13065, + "start": 13110, + "end": 13111, "loc": { "start": { "line": 346, @@ -128448,8 +128438,8 @@ "binop": null }, "value": "instanceData", - "start": 13065, - "end": 13077, + "start": 13111, + "end": 13123, "loc": { "start": { "line": 346, @@ -128474,8 +128464,8 @@ "binop": null, "updateContext": null }, - "start": 13077, - "end": 13078, + "start": 13123, + "end": 13124, "loc": { "start": { "line": 346, @@ -128500,8 +128490,8 @@ "binop": null }, "value": "pathID", - "start": 13078, - "end": 13084, + "start": 13124, + "end": 13130, "loc": { "start": { "line": 346, @@ -128525,8 +128515,8 @@ "postfix": false, "binop": null }, - "start": 13084, - "end": 13085, + "start": 13130, + "end": 13131, "loc": { "start": { "line": 346, @@ -128550,8 +128540,8 @@ "postfix": false, "binop": null }, - "start": 13086, - "end": 13087, + "start": 13132, + "end": 13133, "loc": { "start": { "line": 346, @@ -128576,8 +128566,8 @@ "binop": null }, "value": "instanceData", - "start": 13093, - "end": 13105, + "start": 13139, + "end": 13151, "loc": { "start": { "line": 347, @@ -128602,8 +128592,8 @@ "binop": null, "updateContext": null }, - "start": 13105, - "end": 13106, + "start": 13151, + "end": 13152, "loc": { "start": { "line": 347, @@ -128628,8 +128618,8 @@ "binop": null }, "value": "easystar", - "start": 13106, - "end": 13114, + "start": 13152, + "end": 13160, "loc": { "start": { "line": 347, @@ -128654,8 +128644,8 @@ "binop": null, "updateContext": null }, - "start": 13114, - "end": 13115, + "start": 13160, + "end": 13161, "loc": { "start": { "line": 347, @@ -128680,8 +128670,8 @@ "binop": null }, "value": "cancelPath", - "start": 13115, - "end": 13125, + "start": 13161, + "end": 13171, "loc": { "start": { "line": 347, @@ -128705,8 +128695,8 @@ "postfix": false, "binop": null }, - "start": 13125, - "end": 13126, + "start": 13171, + "end": 13172, "loc": { "start": { "line": 347, @@ -128731,8 +128721,8 @@ "binop": null }, "value": "instanceData", - "start": 13126, - "end": 13138, + "start": 13172, + "end": 13184, "loc": { "start": { "line": 347, @@ -128757,8 +128747,8 @@ "binop": null, "updateContext": null }, - "start": 13138, - "end": 13139, + "start": 13184, + "end": 13185, "loc": { "start": { "line": 347, @@ -128783,8 +128773,8 @@ "binop": null }, "value": "pathID", - "start": 13139, - "end": 13145, + "start": 13185, + "end": 13191, "loc": { "start": { "line": 347, @@ -128808,8 +128798,8 @@ "postfix": false, "binop": null }, - "start": 13145, - "end": 13146, + "start": 13191, + "end": 13192, "loc": { "start": { "line": 347, @@ -128834,8 +128824,8 @@ "binop": null, "updateContext": null }, - "start": 13146, - "end": 13147, + "start": 13192, + "end": 13193, "loc": { "start": { "line": 347, @@ -128860,8 +128850,8 @@ "binop": null }, "value": "instanceData", - "start": 13153, - "end": 13165, + "start": 13199, + "end": 13211, "loc": { "start": { "line": 348, @@ -128886,8 +128876,8 @@ "binop": null, "updateContext": null }, - "start": 13165, - "end": 13166, + "start": 13211, + "end": 13212, "loc": { "start": { "line": 348, @@ -128912,8 +128902,8 @@ "binop": null }, "value": "pathID", - "start": 13166, - "end": 13172, + "start": 13212, + "end": 13218, "loc": { "start": { "line": 348, @@ -128939,8 +128929,8 @@ "updateContext": null }, "value": "=", - "start": 13173, - "end": 13174, + "start": 13219, + "end": 13220, "loc": { "start": { "line": 348, @@ -128967,8 +128957,8 @@ "updateContext": null }, "value": "null", - "start": 13175, - "end": 13179, + "start": 13221, + "end": 13225, "loc": { "start": { "line": 348, @@ -128993,8 +128983,8 @@ "binop": null, "updateContext": null }, - "start": 13179, - "end": 13180, + "start": 13225, + "end": 13226, "loc": { "start": { "line": 348, @@ -129018,8 +129008,8 @@ "postfix": false, "binop": null }, - "start": 13185, - "end": 13186, + "start": 13231, + "end": 13232, "loc": { "start": { "line": 349, @@ -129034,8 +129024,8 @@ { "type": "CommentLine", "value": " Disable diagonals in the event they were enabled in a previous call", - "start": 13191, - "end": 13261, + "start": 13237, + "end": 13307, "loc": { "start": { "line": 350, @@ -129060,8 +129050,8 @@ "binop": null }, "value": "instanceData", - "start": 13266, - "end": 13278, + "start": 13312, + "end": 13324, "loc": { "start": { "line": 351, @@ -129086,8 +129076,8 @@ "binop": null, "updateContext": null }, - "start": 13278, - "end": 13279, + "start": 13324, + "end": 13325, "loc": { "start": { "line": 351, @@ -129112,8 +129102,8 @@ "binop": null }, "value": "easystar", - "start": 13279, - "end": 13287, + "start": 13325, + "end": 13333, "loc": { "start": { "line": 351, @@ -129138,8 +129128,8 @@ "binop": null, "updateContext": null }, - "start": 13287, - "end": 13288, + "start": 13333, + "end": 13334, "loc": { "start": { "line": 351, @@ -129164,8 +129154,8 @@ "binop": null }, "value": "disableDiagonals", - "start": 13288, - "end": 13304, + "start": 13334, + "end": 13350, "loc": { "start": { "line": 351, @@ -129189,8 +129179,8 @@ "postfix": false, "binop": null }, - "start": 13304, - "end": 13305, + "start": 13350, + "end": 13351, "loc": { "start": { "line": 351, @@ -129214,8 +129204,8 @@ "postfix": false, "binop": null }, - "start": 13305, - "end": 13306, + "start": 13351, + "end": 13352, "loc": { "start": { "line": 351, @@ -129240,8 +129230,8 @@ "binop": null, "updateContext": null }, - "start": 13306, - "end": 13307, + "start": 13352, + "end": 13353, "loc": { "start": { "line": 351, @@ -129256,8 +129246,8 @@ { "type": "CommentLine", "value": " Disable corner cutting in the event it was enabled in a previous call", - "start": 13312, - "end": 13384, + "start": 13358, + "end": 13430, "loc": { "start": { "line": 352, @@ -129282,8 +129272,8 @@ "binop": null }, "value": "instanceData", - "start": 13389, - "end": 13401, + "start": 13435, + "end": 13447, "loc": { "start": { "line": 353, @@ -129308,8 +129298,8 @@ "binop": null, "updateContext": null }, - "start": 13401, - "end": 13402, + "start": 13447, + "end": 13448, "loc": { "start": { "line": 353, @@ -129334,8 +129324,8 @@ "binop": null }, "value": "easystar", - "start": 13402, - "end": 13410, + "start": 13448, + "end": 13456, "loc": { "start": { "line": 353, @@ -129360,8 +129350,8 @@ "binop": null, "updateContext": null }, - "start": 13410, - "end": 13411, + "start": 13456, + "end": 13457, "loc": { "start": { "line": 353, @@ -129386,8 +129376,8 @@ "binop": null }, "value": "disableCornerCutting", - "start": 13411, - "end": 13431, + "start": 13457, + "end": 13477, "loc": { "start": { "line": 353, @@ -129411,8 +129401,8 @@ "postfix": false, "binop": null }, - "start": 13431, - "end": 13432, + "start": 13477, + "end": 13478, "loc": { "start": { "line": 353, @@ -129436,8 +129426,8 @@ "postfix": false, "binop": null }, - "start": 13432, - "end": 13433, + "start": 13478, + "end": 13479, "loc": { "start": { "line": 353, @@ -129462,8 +129452,8 @@ "binop": null, "updateContext": null }, - "start": 13433, - "end": 13434, + "start": 13479, + "end": 13480, "loc": { "start": { "line": 353, @@ -129478,8 +129468,8 @@ { "type": "CommentLine", "value": " Reset trajectory data", - "start": 13439, - "end": 13463, + "start": 13485, + "end": 13509, "loc": { "start": { "line": 354, @@ -129504,8 +129494,8 @@ "binop": null }, "value": "instanceData", - "start": 13468, - "end": 13480, + "start": 13514, + "end": 13526, "loc": { "start": { "line": 355, @@ -129530,8 +129520,8 @@ "binop": null, "updateContext": null }, - "start": 13480, - "end": 13481, + "start": 13526, + "end": 13527, "loc": { "start": { "line": 355, @@ -129556,8 +129546,8 @@ "binop": null }, "value": "trajectory", - "start": 13481, - "end": 13491, + "start": 13527, + "end": 13537, "loc": { "start": { "line": 355, @@ -129582,8 +129572,8 @@ "binop": null, "updateContext": null }, - "start": 13491, - "end": 13492, + "start": 13537, + "end": 13538, "loc": { "start": { "line": 355, @@ -129608,8 +129598,8 @@ "binop": null }, "value": "x", - "start": 13492, - "end": 13493, + "start": 13538, + "end": 13539, "loc": { "start": { "line": 355, @@ -129635,8 +129625,8 @@ "updateContext": null }, "value": "=", - "start": 13494, - "end": 13495, + "start": 13540, + "end": 13541, "loc": { "start": { "line": 355, @@ -129662,8 +129652,8 @@ "updateContext": null }, "value": 0, - "start": 13496, - "end": 13497, + "start": 13542, + "end": 13543, "loc": { "start": { "line": 355, @@ -129688,8 +129678,8 @@ "binop": null, "updateContext": null }, - "start": 13497, - "end": 13498, + "start": 13543, + "end": 13544, "loc": { "start": { "line": 355, @@ -129714,8 +129704,8 @@ "binop": null }, "value": "instanceData", - "start": 13503, - "end": 13515, + "start": 13549, + "end": 13561, "loc": { "start": { "line": 356, @@ -129740,8 +129730,8 @@ "binop": null, "updateContext": null }, - "start": 13515, - "end": 13516, + "start": 13561, + "end": 13562, "loc": { "start": { "line": 356, @@ -129766,8 +129756,8 @@ "binop": null }, "value": "trajectory", - "start": 13516, - "end": 13526, + "start": 13562, + "end": 13572, "loc": { "start": { "line": 356, @@ -129792,8 +129782,8 @@ "binop": null, "updateContext": null }, - "start": 13526, - "end": 13527, + "start": 13572, + "end": 13573, "loc": { "start": { "line": 356, @@ -129818,8 +129808,8 @@ "binop": null }, "value": "y", - "start": 13527, - "end": 13528, + "start": 13573, + "end": 13574, "loc": { "start": { "line": 356, @@ -129845,8 +129835,8 @@ "updateContext": null }, "value": "=", - "start": 13529, - "end": 13530, + "start": 13575, + "end": 13576, "loc": { "start": { "line": 356, @@ -129872,8 +129862,8 @@ "updateContext": null }, "value": 0, - "start": 13531, - "end": 13532, + "start": 13577, + "end": 13578, "loc": { "start": { "line": 356, @@ -129898,8 +129888,8 @@ "binop": null, "updateContext": null }, - "start": 13532, - "end": 13533, + "start": 13578, + "end": 13579, "loc": { "start": { "line": 356, @@ -129924,8 +129914,8 @@ "binop": null }, "value": "instanceData", - "start": 13538, - "end": 13550, + "start": 13584, + "end": 13596, "loc": { "start": { "line": 357, @@ -129950,8 +129940,8 @@ "binop": null, "updateContext": null }, - "start": 13550, - "end": 13551, + "start": 13596, + "end": 13597, "loc": { "start": { "line": 357, @@ -129976,8 +129966,8 @@ "binop": null }, "value": "trajectory", - "start": 13551, - "end": 13561, + "start": 13597, + "end": 13607, "loc": { "start": { "line": 357, @@ -130002,8 +129992,8 @@ "binop": null, "updateContext": null }, - "start": 13561, - "end": 13562, + "start": 13607, + "end": 13608, "loc": { "start": { "line": 357, @@ -130028,8 +130018,8 @@ "binop": null }, "value": "angle", - "start": 13562, - "end": 13567, + "start": 13608, + "end": 13613, "loc": { "start": { "line": 357, @@ -130055,8 +130045,8 @@ "updateContext": null }, "value": "=", - "start": 13568, - "end": 13569, + "start": 13614, + "end": 13615, "loc": { "start": { "line": 357, @@ -130082,8 +130072,8 @@ "updateContext": null }, "value": 0, - "start": 13570, - "end": 13571, + "start": 13616, + "end": 13617, "loc": { "start": { "line": 357, @@ -130108,8 +130098,8 @@ "binop": null, "updateContext": null }, - "start": 13571, - "end": 13572, + "start": 13617, + "end": 13618, "loc": { "start": { "line": 357, @@ -130134,8 +130124,8 @@ "binop": null }, "value": "instanceData", - "start": 13577, - "end": 13589, + "start": 13623, + "end": 13635, "loc": { "start": { "line": 358, @@ -130160,8 +130150,8 @@ "binop": null, "updateContext": null }, - "start": 13589, - "end": 13590, + "start": 13635, + "end": 13636, "loc": { "start": { "line": 358, @@ -130186,8 +130176,8 @@ "binop": null }, "value": "trajectory", - "start": 13590, - "end": 13600, + "start": 13636, + "end": 13646, "loc": { "start": { "line": 358, @@ -130212,8 +130202,8 @@ "binop": null, "updateContext": null }, - "start": 13600, - "end": 13601, + "start": 13646, + "end": 13647, "loc": { "start": { "line": 358, @@ -130238,8 +130228,8 @@ "binop": null }, "value": "nextNodePos", - "start": 13601, - "end": 13612, + "start": 13647, + "end": 13658, "loc": { "start": { "line": 358, @@ -130265,8 +130255,8 @@ "updateContext": null }, "value": "=", - "start": 13613, - "end": 13614, + "start": 13659, + "end": 13660, "loc": { "start": { "line": 358, @@ -130293,8 +130283,8 @@ "updateContext": null }, "value": "null", - "start": 13615, - "end": 13619, + "start": 13661, + "end": 13665, "loc": { "start": { "line": 358, @@ -130319,8 +130309,8 @@ "binop": null, "updateContext": null }, - "start": 13619, - "end": 13620, + "start": 13665, + "end": 13666, "loc": { "start": { "line": 358, @@ -130335,8 +130325,8 @@ { "type": "CommentLine", "value": " Reset events", - "start": 13625, - "end": 13640, + "start": 13671, + "end": 13686, "loc": { "start": { "line": 359, @@ -130361,8 +130351,8 @@ "binop": null }, "value": "instanceData", - "start": 13645, - "end": 13657, + "start": 13691, + "end": 13703, "loc": { "start": { "line": 360, @@ -130387,8 +130377,8 @@ "binop": null, "updateContext": null }, - "start": 13657, - "end": 13658, + "start": 13703, + "end": 13704, "loc": { "start": { "line": 360, @@ -130413,8 +130403,8 @@ "binop": null }, "value": "events", - "start": 13658, - "end": 13664, + "start": 13704, + "end": 13710, "loc": { "start": { "line": 360, @@ -130439,8 +130429,8 @@ "binop": null, "updateContext": null }, - "start": 13664, - "end": 13665, + "start": 13710, + "end": 13711, "loc": { "start": { "line": 360, @@ -130465,8 +130455,8 @@ "binop": null }, "value": "onPathStuck", - "start": 13665, - "end": 13676, + "start": 13711, + "end": 13722, "loc": { "start": { "line": 360, @@ -130492,8 +130482,8 @@ "updateContext": null }, "value": "=", - "start": 13677, - "end": 13678, + "start": 13723, + "end": 13724, "loc": { "start": { "line": 360, @@ -130520,8 +130510,8 @@ "updateContext": null }, "value": "null", - "start": 13679, - "end": 13683, + "start": 13725, + "end": 13729, "loc": { "start": { "line": 360, @@ -130546,8 +130536,8 @@ "binop": null, "updateContext": null }, - "start": 13683, - "end": 13684, + "start": 13729, + "end": 13730, "loc": { "start": { "line": 360, @@ -130572,8 +130562,8 @@ "binop": null }, "value": "instanceData", - "start": 13689, - "end": 13701, + "start": 13735, + "end": 13747, "loc": { "start": { "line": 361, @@ -130598,8 +130588,8 @@ "binop": null, "updateContext": null }, - "start": 13701, - "end": 13702, + "start": 13747, + "end": 13748, "loc": { "start": { "line": 361, @@ -130624,8 +130614,8 @@ "binop": null }, "value": "events", - "start": 13702, - "end": 13708, + "start": 13748, + "end": 13754, "loc": { "start": { "line": 361, @@ -130650,8 +130640,8 @@ "binop": null, "updateContext": null }, - "start": 13708, - "end": 13709, + "start": 13754, + "end": 13755, "loc": { "start": { "line": 361, @@ -130676,8 +130666,8 @@ "binop": null }, "value": "onPathComplete", - "start": 13709, - "end": 13723, + "start": 13755, + "end": 13769, "loc": { "start": { "line": 361, @@ -130703,8 +130693,8 @@ "updateContext": null }, "value": "=", - "start": 13724, - "end": 13725, + "start": 13770, + "end": 13771, "loc": { "start": { "line": 361, @@ -130731,8 +130721,8 @@ "updateContext": null }, "value": "null", - "start": 13726, - "end": 13730, + "start": 13772, + "end": 13776, "loc": { "start": { "line": 361, @@ -130757,8 +130747,8 @@ "binop": null, "updateContext": null }, - "start": 13730, - "end": 13731, + "start": 13776, + "end": 13777, "loc": { "start": { "line": 361, @@ -130783,8 +130773,8 @@ "binop": null }, "value": "instanceData", - "start": 13736, - "end": 13748, + "start": 13782, + "end": 13794, "loc": { "start": { "line": 362, @@ -130809,8 +130799,8 @@ "binop": null, "updateContext": null }, - "start": 13748, - "end": 13749, + "start": 13794, + "end": 13795, "loc": { "start": { "line": 362, @@ -130835,8 +130825,8 @@ "binop": null }, "value": "events", - "start": 13749, - "end": 13755, + "start": 13795, + "end": 13801, "loc": { "start": { "line": 362, @@ -130861,8 +130851,8 @@ "binop": null, "updateContext": null }, - "start": 13755, - "end": 13756, + "start": 13801, + "end": 13802, "loc": { "start": { "line": 362, @@ -130887,8 +130877,8 @@ "binop": null }, "value": "onPathFound", - "start": 13756, - "end": 13767, + "start": 13802, + "end": 13813, "loc": { "start": { "line": 362, @@ -130914,8 +130904,8 @@ "updateContext": null }, "value": "=", - "start": 13768, - "end": 13769, + "start": 13814, + "end": 13815, "loc": { "start": { "line": 362, @@ -130942,8 +130932,8 @@ "updateContext": null }, "value": "null", - "start": 13770, - "end": 13774, + "start": 13816, + "end": 13820, "loc": { "start": { "line": 362, @@ -130968,8 +130958,8 @@ "binop": null, "updateContext": null }, - "start": 13774, - "end": 13775, + "start": 13820, + "end": 13821, "loc": { "start": { "line": 362, @@ -130994,8 +130984,8 @@ "binop": null }, "value": "instanceData", - "start": 13780, - "end": 13792, + "start": 13826, + "end": 13838, "loc": { "start": { "line": 363, @@ -131020,8 +131010,8 @@ "binop": null, "updateContext": null }, - "start": 13792, - "end": 13793, + "start": 13838, + "end": 13839, "loc": { "start": { "line": 363, @@ -131046,8 +131036,8 @@ "binop": null }, "value": "events", - "start": 13793, - "end": 13799, + "start": 13839, + "end": 13845, "loc": { "start": { "line": 363, @@ -131072,8 +131062,8 @@ "binop": null, "updateContext": null }, - "start": 13799, - "end": 13800, + "start": 13845, + "end": 13846, "loc": { "start": { "line": 363, @@ -131098,8 +131088,8 @@ "binop": null }, "value": "onPathNotFound", - "start": 13800, - "end": 13814, + "start": 13846, + "end": 13860, "loc": { "start": { "line": 363, @@ -131125,8 +131115,8 @@ "updateContext": null }, "value": "=", - "start": 13815, - "end": 13816, + "start": 13861, + "end": 13862, "loc": { "start": { "line": 363, @@ -131153,8 +131143,8 @@ "updateContext": null }, "value": "null", - "start": 13817, - "end": 13821, + "start": 13863, + "end": 13867, "loc": { "start": { "line": 363, @@ -131179,8 +131169,8 @@ "binop": null, "updateContext": null }, - "start": 13821, - "end": 13822, + "start": 13867, + "end": 13868, "loc": { "start": { "line": 363, @@ -131195,8 +131185,8 @@ { "type": "CommentLine", "value": " Reset stuck counter", - "start": 13827, - "end": 13849, + "start": 13873, + "end": 13895, "loc": { "start": { "line": 364, @@ -131221,8 +131211,8 @@ "binop": null }, "value": "instanceData", - "start": 13854, - "end": 13866, + "start": 13900, + "end": 13912, "loc": { "start": { "line": 365, @@ -131247,8 +131237,8 @@ "binop": null, "updateContext": null }, - "start": 13866, - "end": 13867, + "start": 13912, + "end": 13913, "loc": { "start": { "line": 365, @@ -131273,8 +131263,8 @@ "binop": null }, "value": "stuckCounter", - "start": 13867, - "end": 13879, + "start": 13913, + "end": 13925, "loc": { "start": { "line": 365, @@ -131300,8 +131290,8 @@ "updateContext": null }, "value": "=", - "start": 13880, - "end": 13881, + "start": 13926, + "end": 13927, "loc": { "start": { "line": 365, @@ -131327,8 +131317,8 @@ "updateContext": null }, "value": 0, - "start": 13882, - "end": 13883, + "start": 13928, + "end": 13929, "loc": { "start": { "line": 365, @@ -131353,8 +131343,8 @@ "binop": null, "updateContext": null }, - "start": 13883, - "end": 13884, + "start": 13929, + "end": 13930, "loc": { "start": { "line": 365, @@ -131369,8 +131359,8 @@ { "type": "CommentLine", "value": " Reset the max stuck counter", - "start": 13889, - "end": 13919, + "start": 13935, + "end": 13965, "loc": { "start": { "line": 366, @@ -131395,8 +131385,8 @@ "binop": null }, "value": "instanceData", - "start": 13924, - "end": 13936, + "start": 13970, + "end": 13982, "loc": { "start": { "line": 367, @@ -131421,8 +131411,8 @@ "binop": null, "updateContext": null }, - "start": 13936, - "end": 13937, + "start": 13982, + "end": 13983, "loc": { "start": { "line": 367, @@ -131447,8 +131437,8 @@ "binop": null }, "value": "maxStuckCounter", - "start": 13937, - "end": 13952, + "start": 13983, + "end": 13998, "loc": { "start": { "line": 367, @@ -131474,8 +131464,8 @@ "updateContext": null }, "value": "=", - "start": 13953, - "end": 13954, + "start": 13999, + "end": 14000, "loc": { "start": { "line": 367, @@ -131500,8 +131490,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 13955, - "end": 13971, + "start": 14001, + "end": 14017, "loc": { "start": { "line": 367, @@ -131526,8 +131516,8 @@ "binop": null, "updateContext": null }, - "start": 13971, - "end": 13972, + "start": 14017, + "end": 14018, "loc": { "start": { "line": 367, @@ -131552,8 +131542,8 @@ "binop": null }, "value": "MAX_STUCK_COUNTER", - "start": 13972, - "end": 13989, + "start": 14018, + "end": 14035, "loc": { "start": { "line": 367, @@ -131578,8 +131568,8 @@ "binop": null, "updateContext": null }, - "start": 13989, - "end": 13990, + "start": 14035, + "end": 14036, "loc": { "start": { "line": 367, @@ -131593,9 +131583,9 @@ }, { "type": "CommentLine", - "value": " Empty path(s) array", - "start": 13995, - "end": 14017, + "value": " Empty path array", + "start": 14041, + "end": 14060, "loc": { "start": { "line": 368, @@ -131603,7 +131593,7 @@ }, "end": { "line": 368, - "column": 25 + "column": 22 } } }, @@ -131620,8 +131610,8 @@ "binop": null }, "value": "instanceData", - "start": 14022, - "end": 14034, + "start": 14065, + "end": 14077, "loc": { "start": { "line": 369, @@ -131646,8 +131636,8 @@ "binop": null, "updateContext": null }, - "start": 14034, - "end": 14035, + "start": 14077, + "end": 14078, "loc": { "start": { "line": 369, @@ -131672,8 +131662,8 @@ "binop": null }, "value": "path", - "start": 14035, - "end": 14039, + "start": 14078, + "end": 14082, "loc": { "start": { "line": 369, @@ -131698,8 +131688,8 @@ "binop": null, "updateContext": null }, - "start": 14039, - "end": 14040, + "start": 14082, + "end": 14083, "loc": { "start": { "line": 369, @@ -131724,8 +131714,8 @@ "binop": null }, "value": "length", - "start": 14040, - "end": 14046, + "start": 14083, + "end": 14089, "loc": { "start": { "line": 369, @@ -131751,8 +131741,8 @@ "updateContext": null }, "value": "=", - "start": 14047, - "end": 14048, + "start": 14090, + "end": 14091, "loc": { "start": { "line": 369, @@ -131778,8 +131768,8 @@ "updateContext": null }, "value": 0, - "start": 14049, - "end": 14050, + "start": 14092, + "end": 14093, "loc": { "start": { "line": 369, @@ -131804,8 +131794,8 @@ "binop": null, "updateContext": null }, - "start": 14050, - "end": 14051, + "start": 14093, + "end": 14094, "loc": { "start": { "line": 369, @@ -131820,8 +131810,8 @@ { "type": "CommentLine", "value": " Reset it to not being moved.", - "start": 14056, - "end": 14087, + "start": 14099, + "end": 14130, "loc": { "start": { "line": 370, @@ -131846,8 +131836,8 @@ "binop": null }, "value": "instanceData", - "start": 14092, - "end": 14104, + "start": 14135, + "end": 14147, "loc": { "start": { "line": 371, @@ -131872,8 +131862,8 @@ "binop": null, "updateContext": null }, - "start": 14104, - "end": 14105, + "start": 14147, + "end": 14148, "loc": { "start": { "line": 371, @@ -131898,8 +131888,8 @@ "binop": null }, "value": "moving", - "start": 14105, - "end": 14111, + "start": 14148, + "end": 14154, "loc": { "start": { "line": 371, @@ -131925,8 +131915,8 @@ "updateContext": null }, "value": "=", - "start": 14112, - "end": 14113, + "start": 14155, + "end": 14156, "loc": { "start": { "line": 371, @@ -131953,8 +131943,8 @@ "updateContext": null }, "value": "false", - "start": 14114, - "end": 14119, + "start": 14157, + "end": 14162, "loc": { "start": { "line": 371, @@ -131979,8 +131969,8 @@ "binop": null, "updateContext": null }, - "start": 14119, - "end": 14120, + "start": 14162, + "end": 14163, "loc": { "start": { "line": 371, @@ -131995,8 +131985,8 @@ { "type": "CommentLine", "value": " Reset the mode", - "start": 14125, - "end": 14142, + "start": 14168, + "end": 14185, "loc": { "start": { "line": 372, @@ -132021,8 +132011,8 @@ "binop": null }, "value": "instanceData", - "start": 14147, - "end": 14159, + "start": 14190, + "end": 14202, "loc": { "start": { "line": 373, @@ -132047,8 +132037,8 @@ "binop": null, "updateContext": null }, - "start": 14159, - "end": 14160, + "start": 14202, + "end": 14203, "loc": { "start": { "line": 373, @@ -132073,8 +132063,8 @@ "binop": null }, "value": "mode", - "start": 14160, - "end": 14164, + "start": 14203, + "end": 14207, "loc": { "start": { "line": 373, @@ -132100,8 +132090,8 @@ "updateContext": null }, "value": "=", - "start": 14165, - "end": 14166, + "start": 14208, + "end": 14209, "loc": { "start": { "line": 373, @@ -132127,8 +132117,8 @@ "updateContext": null }, "value": "collision", - "start": 14167, - "end": 14178, + "start": 14210, + "end": 14221, "loc": { "start": { "line": 373, @@ -132153,8 +132143,8 @@ "binop": null, "updateContext": null }, - "start": 14178, - "end": 14179, + "start": 14221, + "end": 14222, "loc": { "start": { "line": 373, @@ -132169,8 +132159,8 @@ { "type": "CommentLine", "value": " Reset the pixels per second.", - "start": 14184, - "end": 14215, + "start": 14227, + "end": 14258, "loc": { "start": { "line": 374, @@ -132195,8 +132185,8 @@ "binop": null }, "value": "instanceData", - "start": 14220, - "end": 14232, + "start": 14263, + "end": 14275, "loc": { "start": { "line": 375, @@ -132221,8 +132211,8 @@ "binop": null, "updateContext": null }, - "start": 14232, - "end": 14233, + "start": 14275, + "end": 14276, "loc": { "start": { "line": 375, @@ -132247,8 +132237,8 @@ "binop": null }, "value": "pixelsPerSecond", - "start": 14233, - "end": 14248, + "start": 14276, + "end": 14291, "loc": { "start": { "line": 375, @@ -132274,8 +132264,8 @@ "updateContext": null }, "value": "=", - "start": 14249, - "end": 14250, + "start": 14292, + "end": 14293, "loc": { "start": { "line": 375, @@ -132300,8 +132290,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 14251, - "end": 14267, + "start": 14294, + "end": 14310, "loc": { "start": { "line": 375, @@ -132326,8 +132316,8 @@ "binop": null, "updateContext": null }, - "start": 14267, - "end": 14268, + "start": 14310, + "end": 14311, "loc": { "start": { "line": 375, @@ -132352,8 +132342,8 @@ "binop": null }, "value": "DEFAULT_PIXELS_PER_SECOND", - "start": 14268, - "end": 14293, + "start": 14311, + "end": 14336, "loc": { "start": { "line": 375, @@ -132378,8 +132368,8 @@ "binop": null, "updateContext": null }, - "start": 14293, - "end": 14294, + "start": 14336, + "end": 14337, "loc": { "start": { "line": 375, @@ -132394,8 +132384,8 @@ { "type": "CommentLine", "value": " Reset the min distance", - "start": 14299, - "end": 14324, + "start": 14342, + "end": 14367, "loc": { "start": { "line": 376, @@ -132420,8 +132410,8 @@ "binop": null }, "value": "instanceData", - "start": 14329, - "end": 14341, + "start": 14372, + "end": 14384, "loc": { "start": { "line": 377, @@ -132446,8 +132436,8 @@ "binop": null, "updateContext": null }, - "start": 14341, - "end": 14342, + "start": 14384, + "end": 14385, "loc": { "start": { "line": 377, @@ -132472,8 +132462,8 @@ "binop": null }, "value": "minDistance", - "start": 14342, - "end": 14353, + "start": 14385, + "end": 14396, "loc": { "start": { "line": 377, @@ -132499,8 +132489,8 @@ "updateContext": null }, "value": "=", - "start": 14354, - "end": 14355, + "start": 14397, + "end": 14398, "loc": { "start": { "line": 377, @@ -132525,8 +132515,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 14356, - "end": 14372, + "start": 14399, + "end": 14415, "loc": { "start": { "line": 377, @@ -132551,8 +132541,8 @@ "binop": null, "updateContext": null }, - "start": 14372, - "end": 14373, + "start": 14415, + "end": 14416, "loc": { "start": { "line": 377, @@ -132577,8 +132567,8 @@ "binop": null }, "value": "DEFAULT_MINIMUM_DISTANCE", - "start": 14373, - "end": 14397, + "start": 14416, + "end": 14440, "loc": { "start": { "line": 377, @@ -132603,8 +132593,8 @@ "binop": null, "updateContext": null }, - "start": 14397, - "end": 14398, + "start": 14440, + "end": 14441, "loc": { "start": { "line": 377, @@ -132619,8 +132609,8 @@ { "type": "CommentLine", "value": " Stop instance from moving via VYLO API.", - "start": 14403, - "end": 14445, + "start": 14446, + "end": 14488, "loc": { "start": { "line": 378, @@ -132645,8 +132635,8 @@ "binop": null }, "value": "pInstance", - "start": 14450, - "end": 14459, + "start": 14493, + "end": 14502, "loc": { "start": { "line": 379, @@ -132671,8 +132661,8 @@ "binop": null, "updateContext": null }, - "start": 14459, - "end": 14460, + "start": 14502, + "end": 14503, "loc": { "start": { "line": 379, @@ -132697,8 +132687,8 @@ "binop": null }, "value": "move", - "start": 14460, - "end": 14464, + "start": 14503, + "end": 14507, "loc": { "start": { "line": 379, @@ -132722,8 +132712,8 @@ "postfix": false, "binop": null }, - "start": 14464, - "end": 14465, + "start": 14507, + "end": 14508, "loc": { "start": { "line": 379, @@ -132747,8 +132737,8 @@ "postfix": false, "binop": null }, - "start": 14465, - "end": 14466, + "start": 14508, + "end": 14509, "loc": { "start": { "line": 379, @@ -132773,8 +132763,8 @@ "binop": null, "updateContext": null }, - "start": 14466, - "end": 14467, + "start": 14509, + "end": 14510, "loc": { "start": { "line": 379, @@ -132789,8 +132779,8 @@ { "type": "CommentLine", "value": " Untrack pInstance as an active instance.", - "start": 14472, - "end": 14515, + "start": 14515, + "end": 14558, "loc": { "start": { "line": 380, @@ -132817,8 +132807,8 @@ "updateContext": null }, "value": "this", - "start": 14520, - "end": 14524, + "start": 14563, + "end": 14567, "loc": { "start": { "line": 381, @@ -132843,8 +132833,8 @@ "binop": null, "updateContext": null }, - "start": 14524, - "end": 14525, + "start": 14567, + "end": 14568, "loc": { "start": { "line": 381, @@ -132869,8 +132859,8 @@ "binop": null }, "value": "untrack", - "start": 14525, - "end": 14532, + "start": 14568, + "end": 14575, "loc": { "start": { "line": 381, @@ -132894,8 +132884,8 @@ "postfix": false, "binop": null }, - "start": 14532, - "end": 14533, + "start": 14575, + "end": 14576, "loc": { "start": { "line": 381, @@ -132920,8 +132910,8 @@ "binop": null }, "value": "pInstance", - "start": 14533, - "end": 14542, + "start": 14576, + "end": 14585, "loc": { "start": { "line": 381, @@ -132945,8 +132935,8 @@ "postfix": false, "binop": null }, - "start": 14542, - "end": 14543, + "start": 14585, + "end": 14586, "loc": { "start": { "line": 381, @@ -132971,8 +132961,8 @@ "binop": null, "updateContext": null }, - "start": 14543, - "end": 14544, + "start": 14586, + "end": 14587, "loc": { "start": { "line": 381, @@ -132996,8 +132986,8 @@ "postfix": false, "binop": null }, - "start": 14548, - "end": 14549, + "start": 14591, + "end": 14592, "loc": { "start": { "line": 382, @@ -133024,8 +133014,8 @@ "updateContext": null }, "value": "else", - "start": 14550, - "end": 14554, + "start": 14593, + "end": 14597, "loc": { "start": { "line": 382, @@ -133049,8 +133039,8 @@ "postfix": false, "binop": null }, - "start": 14555, - "end": 14556, + "start": 14598, + "end": 14599, "loc": { "start": { "line": 382, @@ -133077,8 +133067,8 @@ "updateContext": null }, "value": "this", - "start": 14561, - "end": 14565, + "start": 14604, + "end": 14608, "loc": { "start": { "line": 383, @@ -133103,8 +133093,8 @@ "binop": null, "updateContext": null }, - "start": 14565, - "end": 14566, + "start": 14608, + "end": 14609, "loc": { "start": { "line": 383, @@ -133129,8 +133119,8 @@ "binop": null }, "value": "logger", - "start": 14566, - "end": 14572, + "start": 14609, + "end": 14615, "loc": { "start": { "line": 383, @@ -133155,8 +133145,8 @@ "binop": null, "updateContext": null }, - "start": 14572, - "end": 14573, + "start": 14615, + "end": 14616, "loc": { "start": { "line": 383, @@ -133181,8 +133171,8 @@ "binop": null }, "value": "prefix", - "start": 14573, - "end": 14579, + "start": 14616, + "end": 14622, "loc": { "start": { "line": 383, @@ -133206,8 +133196,8 @@ "postfix": false, "binop": null }, - "start": 14579, - "end": 14580, + "start": 14622, + "end": 14623, "loc": { "start": { "line": 383, @@ -133233,8 +133223,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 14580, - "end": 14596, + "start": 14623, + "end": 14639, "loc": { "start": { "line": 383, @@ -133258,8 +133248,8 @@ "postfix": false, "binop": null }, - "start": 14596, - "end": 14597, + "start": 14639, + "end": 14640, "loc": { "start": { "line": 383, @@ -133284,8 +133274,8 @@ "binop": null, "updateContext": null }, - "start": 14597, - "end": 14598, + "start": 14640, + "end": 14641, "loc": { "start": { "line": 383, @@ -133310,8 +133300,8 @@ "binop": null }, "value": "error", - "start": 14598, - "end": 14603, + "start": 14641, + "end": 14646, "loc": { "start": { "line": 383, @@ -133335,8 +133325,8 @@ "postfix": false, "binop": null }, - "start": 14603, - "end": 14604, + "start": 14646, + "end": 14647, "loc": { "start": { "line": 383, @@ -133362,8 +133352,8 @@ "updateContext": null }, "value": "No instance data found from pInstance. This instance is not engaged in pathfinding.", - "start": 14604, - "end": 14689, + "start": 14647, + "end": 14732, "loc": { "start": { "line": 383, @@ -133387,8 +133377,8 @@ "postfix": false, "binop": null }, - "start": 14689, - "end": 14690, + "start": 14732, + "end": 14733, "loc": { "start": { "line": 383, @@ -133413,8 +133403,8 @@ "binop": null, "updateContext": null }, - "start": 14690, - "end": 14691, + "start": 14733, + "end": 14734, "loc": { "start": { "line": 383, @@ -133438,8 +133428,8 @@ "postfix": false, "binop": null }, - "start": 14695, - "end": 14696, + "start": 14738, + "end": 14739, "loc": { "start": { "line": 384, @@ -133463,8 +133453,8 @@ "postfix": false, "binop": null }, - "start": 14699, - "end": 14700, + "start": 14742, + "end": 14743, "loc": { "start": { "line": 385, @@ -133479,8 +133469,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t ", - "start": 14703, - "end": 14965, + "start": 14746, + "end": 15008, "loc": { "start": { "line": 386, @@ -133505,8 +133495,8 @@ "binop": null }, "value": "getPositionFromInstance", - "start": 14968, - "end": 14991, + "start": 15011, + "end": 15034, "loc": { "start": { "line": 392, @@ -133530,8 +133520,8 @@ "postfix": false, "binop": null }, - "start": 14991, - "end": 14992, + "start": 15034, + "end": 15035, "loc": { "start": { "line": 392, @@ -133556,8 +133546,8 @@ "binop": null }, "value": "pInstance", - "start": 14992, - "end": 15001, + "start": 15035, + "end": 15044, "loc": { "start": { "line": 392, @@ -133581,8 +133571,8 @@ "postfix": false, "binop": null }, - "start": 15001, - "end": 15002, + "start": 15044, + "end": 15045, "loc": { "start": { "line": 392, @@ -133606,8 +133596,8 @@ "postfix": false, "binop": null }, - "start": 15003, - "end": 15004, + "start": 15046, + "end": 15047, "loc": { "start": { "line": 392, @@ -133634,8 +133624,8 @@ "updateContext": null }, "value": "const", - "start": 15008, - "end": 15013, + "start": 15051, + "end": 15056, "loc": { "start": { "line": 393, @@ -133660,8 +133650,8 @@ "binop": null }, "value": "instanceData", - "start": 15014, - "end": 15026, + "start": 15057, + "end": 15069, "loc": { "start": { "line": 393, @@ -133687,8 +133677,8 @@ "updateContext": null }, "value": "=", - "start": 15027, - "end": 15028, + "start": 15070, + "end": 15071, "loc": { "start": { "line": 393, @@ -133715,8 +133705,8 @@ "updateContext": null }, "value": "this", - "start": 15029, - "end": 15033, + "start": 15072, + "end": 15076, "loc": { "start": { "line": 393, @@ -133741,8 +133731,8 @@ "binop": null, "updateContext": null }, - "start": 15033, - "end": 15034, + "start": 15076, + "end": 15077, "loc": { "start": { "line": 393, @@ -133767,8 +133757,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 15034, - "end": 15049, + "start": 15077, + "end": 15092, "loc": { "start": { "line": 393, @@ -133793,8 +133783,8 @@ "binop": null, "updateContext": null }, - "start": 15049, - "end": 15050, + "start": 15092, + "end": 15093, "loc": { "start": { "line": 393, @@ -133819,8 +133809,8 @@ "binop": null }, "value": "get", - "start": 15050, - "end": 15053, + "start": 15093, + "end": 15096, "loc": { "start": { "line": 393, @@ -133844,8 +133834,8 @@ "postfix": false, "binop": null }, - "start": 15053, - "end": 15054, + "start": 15096, + "end": 15097, "loc": { "start": { "line": 393, @@ -133870,8 +133860,8 @@ "binop": null }, "value": "pInstance", - "start": 15054, - "end": 15063, + "start": 15097, + "end": 15106, "loc": { "start": { "line": 393, @@ -133895,8 +133885,8 @@ "postfix": false, "binop": null }, - "start": 15063, - "end": 15064, + "start": 15106, + "end": 15107, "loc": { "start": { "line": 393, @@ -133921,8 +133911,8 @@ "binop": null, "updateContext": null }, - "start": 15064, - "end": 15065, + "start": 15107, + "end": 15108, "loc": { "start": { "line": 393, @@ -133949,8 +133939,8 @@ "updateContext": null }, "value": "if", - "start": 15069, - "end": 15071, + "start": 15112, + "end": 15114, "loc": { "start": { "line": 394, @@ -133974,8 +133964,8 @@ "postfix": false, "binop": null }, - "start": 15072, - "end": 15073, + "start": 15115, + "end": 15116, "loc": { "start": { "line": 394, @@ -134000,8 +133990,8 @@ "binop": null }, "value": "instanceData", - "start": 15073, - "end": 15085, + "start": 15116, + "end": 15128, "loc": { "start": { "line": 394, @@ -134025,8 +134015,8 @@ "postfix": false, "binop": null }, - "start": 15085, - "end": 15086, + "start": 15128, + "end": 15129, "loc": { "start": { "line": 394, @@ -134050,8 +134040,8 @@ "postfix": false, "binop": null }, - "start": 15087, - "end": 15088, + "start": 15130, + "end": 15131, "loc": { "start": { "line": 394, @@ -134076,8 +134066,8 @@ "binop": null }, "value": "instanceData", - "start": 15093, - "end": 15105, + "start": 15136, + "end": 15148, "loc": { "start": { "line": 395, @@ -134102,8 +134092,8 @@ "binop": null, "updateContext": null }, - "start": 15105, - "end": 15106, + "start": 15148, + "end": 15149, "loc": { "start": { "line": 395, @@ -134128,8 +134118,8 @@ "binop": null }, "value": "currentPosition", - "start": 15106, - "end": 15121, + "start": 15149, + "end": 15164, "loc": { "start": { "line": 395, @@ -134154,8 +134144,8 @@ "binop": null, "updateContext": null }, - "start": 15121, - "end": 15122, + "start": 15164, + "end": 15165, "loc": { "start": { "line": 395, @@ -134180,8 +134170,8 @@ "binop": null }, "value": "x", - "start": 15122, - "end": 15123, + "start": 15165, + "end": 15166, "loc": { "start": { "line": 395, @@ -134207,8 +134197,8 @@ "updateContext": null }, "value": "=", - "start": 15124, - "end": 15125, + "start": 15167, + "end": 15168, "loc": { "start": { "line": 395, @@ -134233,8 +134223,8 @@ "binop": null }, "value": "Math", - "start": 15126, - "end": 15130, + "start": 15169, + "end": 15173, "loc": { "start": { "line": 395, @@ -134259,8 +134249,8 @@ "binop": null, "updateContext": null }, - "start": 15130, - "end": 15131, + "start": 15173, + "end": 15174, "loc": { "start": { "line": 395, @@ -134285,8 +134275,8 @@ "binop": null }, "value": "floor", - "start": 15131, - "end": 15136, + "start": 15174, + "end": 15179, "loc": { "start": { "line": 395, @@ -134310,8 +134300,8 @@ "postfix": false, "binop": null }, - "start": 15136, - "end": 15137, + "start": 15179, + "end": 15180, "loc": { "start": { "line": 395, @@ -134336,8 +134326,8 @@ "binop": null }, "value": "pInstance", - "start": 15137, - "end": 15146, + "start": 15180, + "end": 15189, "loc": { "start": { "line": 395, @@ -134362,8 +134352,8 @@ "binop": null, "updateContext": null }, - "start": 15146, - "end": 15147, + "start": 15189, + "end": 15190, "loc": { "start": { "line": 395, @@ -134388,8 +134378,8 @@ "binop": null }, "value": "x", - "start": 15147, - "end": 15148, + "start": 15190, + "end": 15191, "loc": { "start": { "line": 395, @@ -134415,8 +134405,8 @@ "updateContext": null }, "value": "+", - "start": 15149, - "end": 15150, + "start": 15192, + "end": 15193, "loc": { "start": { "line": 395, @@ -134441,8 +134431,8 @@ "binop": null }, "value": "pInstance", - "start": 15151, - "end": 15160, + "start": 15194, + "end": 15203, "loc": { "start": { "line": 395, @@ -134467,8 +134457,8 @@ "binop": null, "updateContext": null }, - "start": 15160, - "end": 15161, + "start": 15203, + "end": 15204, "loc": { "start": { "line": 395, @@ -134493,8 +134483,8 @@ "binop": null }, "value": "xOrigin", - "start": 15161, - "end": 15168, + "start": 15204, + "end": 15211, "loc": { "start": { "line": 395, @@ -134520,8 +134510,8 @@ "updateContext": null }, "value": "+", - "start": 15169, - "end": 15170, + "start": 15212, + "end": 15213, "loc": { "start": { "line": 395, @@ -134546,8 +134536,8 @@ "binop": null }, "value": "pInstance", - "start": 15171, - "end": 15180, + "start": 15214, + "end": 15223, "loc": { "start": { "line": 395, @@ -134572,8 +134562,8 @@ "binop": null, "updateContext": null }, - "start": 15180, - "end": 15181, + "start": 15223, + "end": 15224, "loc": { "start": { "line": 395, @@ -134598,8 +134588,8 @@ "binop": null }, "value": "width", - "start": 15181, - "end": 15186, + "start": 15224, + "end": 15229, "loc": { "start": { "line": 395, @@ -134625,8 +134615,8 @@ "updateContext": null }, "value": "/", - "start": 15187, - "end": 15188, + "start": 15230, + "end": 15231, "loc": { "start": { "line": 395, @@ -134652,8 +134642,8 @@ "updateContext": null }, "value": 2, - "start": 15189, - "end": 15190, + "start": 15232, + "end": 15233, "loc": { "start": { "line": 395, @@ -134677,8 +134667,8 @@ "postfix": false, "binop": null }, - "start": 15190, - "end": 15191, + "start": 15233, + "end": 15234, "loc": { "start": { "line": 395, @@ -134703,8 +134693,8 @@ "binop": null, "updateContext": null }, - "start": 15191, - "end": 15192, + "start": 15234, + "end": 15235, "loc": { "start": { "line": 395, @@ -134729,8 +134719,8 @@ "binop": null }, "value": "instanceData", - "start": 15197, - "end": 15209, + "start": 15240, + "end": 15252, "loc": { "start": { "line": 396, @@ -134755,8 +134745,8 @@ "binop": null, "updateContext": null }, - "start": 15209, - "end": 15210, + "start": 15252, + "end": 15253, "loc": { "start": { "line": 396, @@ -134781,8 +134771,8 @@ "binop": null }, "value": "currentPosition", - "start": 15210, - "end": 15225, + "start": 15253, + "end": 15268, "loc": { "start": { "line": 396, @@ -134807,8 +134797,8 @@ "binop": null, "updateContext": null }, - "start": 15225, - "end": 15226, + "start": 15268, + "end": 15269, "loc": { "start": { "line": 396, @@ -134833,8 +134823,8 @@ "binop": null }, "value": "y", - "start": 15226, - "end": 15227, + "start": 15269, + "end": 15270, "loc": { "start": { "line": 396, @@ -134860,8 +134850,8 @@ "updateContext": null }, "value": "=", - "start": 15228, - "end": 15229, + "start": 15271, + "end": 15272, "loc": { "start": { "line": 396, @@ -134886,8 +134876,8 @@ "binop": null }, "value": "Math", - "start": 15230, - "end": 15234, + "start": 15273, + "end": 15277, "loc": { "start": { "line": 396, @@ -134912,8 +134902,8 @@ "binop": null, "updateContext": null }, - "start": 15234, - "end": 15235, + "start": 15277, + "end": 15278, "loc": { "start": { "line": 396, @@ -134938,8 +134928,8 @@ "binop": null }, "value": "floor", - "start": 15235, - "end": 15240, + "start": 15278, + "end": 15283, "loc": { "start": { "line": 396, @@ -134963,8 +134953,8 @@ "postfix": false, "binop": null }, - "start": 15240, - "end": 15241, + "start": 15283, + "end": 15284, "loc": { "start": { "line": 396, @@ -134989,8 +134979,8 @@ "binop": null }, "value": "pInstance", - "start": 15241, - "end": 15250, + "start": 15284, + "end": 15293, "loc": { "start": { "line": 396, @@ -135015,8 +135005,8 @@ "binop": null, "updateContext": null }, - "start": 15250, - "end": 15251, + "start": 15293, + "end": 15294, "loc": { "start": { "line": 396, @@ -135041,8 +135031,8 @@ "binop": null }, "value": "y", - "start": 15251, - "end": 15252, + "start": 15294, + "end": 15295, "loc": { "start": { "line": 396, @@ -135068,8 +135058,8 @@ "updateContext": null }, "value": "+", - "start": 15253, - "end": 15254, + "start": 15296, + "end": 15297, "loc": { "start": { "line": 396, @@ -135094,8 +135084,8 @@ "binop": null }, "value": "pInstance", - "start": 15255, - "end": 15264, + "start": 15298, + "end": 15307, "loc": { "start": { "line": 396, @@ -135120,8 +135110,8 @@ "binop": null, "updateContext": null }, - "start": 15264, - "end": 15265, + "start": 15307, + "end": 15308, "loc": { "start": { "line": 396, @@ -135146,8 +135136,8 @@ "binop": null }, "value": "yOrigin", - "start": 15265, - "end": 15272, + "start": 15308, + "end": 15315, "loc": { "start": { "line": 396, @@ -135173,8 +135163,8 @@ "updateContext": null }, "value": "+", - "start": 15273, - "end": 15274, + "start": 15316, + "end": 15317, "loc": { "start": { "line": 396, @@ -135199,8 +135189,8 @@ "binop": null }, "value": "pInstance", - "start": 15275, - "end": 15284, + "start": 15318, + "end": 15327, "loc": { "start": { "line": 396, @@ -135225,8 +135215,8 @@ "binop": null, "updateContext": null }, - "start": 15284, - "end": 15285, + "start": 15327, + "end": 15328, "loc": { "start": { "line": 396, @@ -135251,8 +135241,8 @@ "binop": null }, "value": "height", - "start": 15285, - "end": 15291, + "start": 15328, + "end": 15334, "loc": { "start": { "line": 396, @@ -135278,8 +135268,8 @@ "updateContext": null }, "value": "/", - "start": 15292, - "end": 15293, + "start": 15335, + "end": 15336, "loc": { "start": { "line": 396, @@ -135305,8 +135295,8 @@ "updateContext": null }, "value": 2, - "start": 15294, - "end": 15295, + "start": 15337, + "end": 15338, "loc": { "start": { "line": 396, @@ -135330,8 +135320,8 @@ "postfix": false, "binop": null }, - "start": 15295, - "end": 15296, + "start": 15338, + "end": 15339, "loc": { "start": { "line": 396, @@ -135356,8 +135346,8 @@ "binop": null, "updateContext": null }, - "start": 15296, - "end": 15297, + "start": 15339, + "end": 15340, "loc": { "start": { "line": 396, @@ -135384,8 +135374,8 @@ "updateContext": null }, "value": "return", - "start": 15302, - "end": 15308, + "start": 15345, + "end": 15351, "loc": { "start": { "line": 397, @@ -135410,8 +135400,8 @@ "binop": null }, "value": "instanceData", - "start": 15309, - "end": 15321, + "start": 15352, + "end": 15364, "loc": { "start": { "line": 397, @@ -135436,8 +135426,8 @@ "binop": null, "updateContext": null }, - "start": 15321, - "end": 15322, + "start": 15364, + "end": 15365, "loc": { "start": { "line": 397, @@ -135462,8 +135452,8 @@ "binop": null }, "value": "currentPosition", - "start": 15322, - "end": 15337, + "start": 15365, + "end": 15380, "loc": { "start": { "line": 397, @@ -135488,8 +135478,8 @@ "binop": null, "updateContext": null }, - "start": 15337, - "end": 15338, + "start": 15380, + "end": 15381, "loc": { "start": { "line": 397, @@ -135513,8 +135503,8 @@ "postfix": false, "binop": null }, - "start": 15342, - "end": 15343, + "start": 15385, + "end": 15386, "loc": { "start": { "line": 398, @@ -135538,8 +135528,8 @@ "postfix": false, "binop": null }, - "start": 15346, - "end": 15347, + "start": 15389, + "end": 15390, "loc": { "start": { "line": 399, @@ -135554,8 +135544,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t ", - "start": 15350, - "end": 15422, + "start": 15393, + "end": 15465, "loc": { "start": { "line": 400, @@ -135580,8 +135570,8 @@ "binop": null }, "value": "update", - "start": 15425, - "end": 15431, + "start": 15468, + "end": 15474, "loc": { "start": { "line": 404, @@ -135605,8 +135595,8 @@ "postfix": false, "binop": null }, - "start": 15431, - "end": 15432, + "start": 15474, + "end": 15475, "loc": { "start": { "line": 404, @@ -135630,8 +135620,8 @@ "postfix": false, "binop": null }, - "start": 15432, - "end": 15433, + "start": 15475, + "end": 15476, "loc": { "start": { "line": 404, @@ -135655,8 +135645,8 @@ "postfix": false, "binop": null }, - "start": 15434, - "end": 15435, + "start": 15477, + "end": 15478, "loc": { "start": { "line": 404, @@ -135671,8 +135661,8 @@ { "type": "CommentLine", "value": " Get current timestamp", - "start": 15439, - "end": 15463, + "start": 15482, + "end": 15506, "loc": { "start": { "line": 405, @@ -135699,8 +135689,8 @@ "updateContext": null }, "value": "const", - "start": 15467, - "end": 15472, + "start": 15510, + "end": 15515, "loc": { "start": { "line": 406, @@ -135725,8 +135715,8 @@ "binop": null }, "value": "now", - "start": 15473, - "end": 15476, + "start": 15516, + "end": 15519, "loc": { "start": { "line": 406, @@ -135752,8 +135742,8 @@ "updateContext": null }, "value": "=", - "start": 15477, - "end": 15478, + "start": 15520, + "end": 15521, "loc": { "start": { "line": 406, @@ -135778,8 +135768,8 @@ "binop": null }, "value": "Date", - "start": 15479, - "end": 15483, + "start": 15522, + "end": 15526, "loc": { "start": { "line": 406, @@ -135804,8 +135794,8 @@ "binop": null, "updateContext": null }, - "start": 15483, - "end": 15484, + "start": 15526, + "end": 15527, "loc": { "start": { "line": 406, @@ -135830,8 +135820,8 @@ "binop": null }, "value": "now", - "start": 15484, - "end": 15487, + "start": 15527, + "end": 15530, "loc": { "start": { "line": 406, @@ -135855,8 +135845,8 @@ "postfix": false, "binop": null }, - "start": 15487, - "end": 15488, + "start": 15530, + "end": 15531, "loc": { "start": { "line": 406, @@ -135880,8 +135870,8 @@ "postfix": false, "binop": null }, - "start": 15488, - "end": 15489, + "start": 15531, + "end": 15532, "loc": { "start": { "line": 406, @@ -135906,8 +135896,8 @@ "binop": null, "updateContext": null }, - "start": 15489, - "end": 15490, + "start": 15532, + "end": 15533, "loc": { "start": { "line": 406, @@ -135922,8 +135912,8 @@ { "type": "CommentLine", "value": " Get the elapsed ms from the last tick", - "start": 15494, - "end": 15534, + "start": 15537, + "end": 15577, "loc": { "start": { "line": 407, @@ -135950,8 +135940,8 @@ "updateContext": null }, "value": "this", - "start": 15538, - "end": 15542, + "start": 15581, + "end": 15585, "loc": { "start": { "line": 408, @@ -135976,8 +135966,8 @@ "binop": null, "updateContext": null }, - "start": 15542, - "end": 15543, + "start": 15585, + "end": 15586, "loc": { "start": { "line": 408, @@ -136002,8 +135992,8 @@ "binop": null }, "value": "elapsedMS", - "start": 15543, - "end": 15552, + "start": 15586, + "end": 15595, "loc": { "start": { "line": 408, @@ -136029,8 +136019,8 @@ "updateContext": null }, "value": "=", - "start": 15553, - "end": 15554, + "start": 15596, + "end": 15597, "loc": { "start": { "line": 408, @@ -136055,8 +136045,8 @@ "binop": null }, "value": "now", - "start": 15555, - "end": 15558, + "start": 15598, + "end": 15601, "loc": { "start": { "line": 408, @@ -136082,8 +136072,8 @@ "updateContext": null }, "value": "-", - "start": 15559, - "end": 15560, + "start": 15602, + "end": 15603, "loc": { "start": { "line": 408, @@ -136110,8 +136100,8 @@ "updateContext": null }, "value": "this", - "start": 15561, - "end": 15565, + "start": 15604, + "end": 15608, "loc": { "start": { "line": 408, @@ -136136,8 +136126,8 @@ "binop": null, "updateContext": null }, - "start": 15565, - "end": 15566, + "start": 15608, + "end": 15609, "loc": { "start": { "line": 408, @@ -136162,8 +136152,8 @@ "binop": null }, "value": "lastTime", - "start": 15566, - "end": 15574, + "start": 15609, + "end": 15617, "loc": { "start": { "line": 408, @@ -136188,8 +136178,8 @@ "binop": null, "updateContext": null }, - "start": 15574, - "end": 15575, + "start": 15617, + "end": 15618, "loc": { "start": { "line": 408, @@ -136204,8 +136194,8 @@ { "type": "CommentLine", "value": " Get the delta time between the last tick", - "start": 15579, - "end": 15622, + "start": 15622, + "end": 15665, "loc": { "start": { "line": 409, @@ -136232,8 +136222,8 @@ "updateContext": null }, "value": "this", - "start": 15626, - "end": 15630, + "start": 15669, + "end": 15673, "loc": { "start": { "line": 410, @@ -136258,8 +136248,8 @@ "binop": null, "updateContext": null }, - "start": 15630, - "end": 15631, + "start": 15673, + "end": 15674, "loc": { "start": { "line": 410, @@ -136284,8 +136274,8 @@ "binop": null }, "value": "deltaTime", - "start": 15631, - "end": 15640, + "start": 15674, + "end": 15683, "loc": { "start": { "line": 410, @@ -136311,8 +136301,8 @@ "updateContext": null }, "value": "=", - "start": 15641, - "end": 15642, + "start": 15684, + "end": 15685, "loc": { "start": { "line": 410, @@ -136336,8 +136326,8 @@ "postfix": false, "binop": null }, - "start": 15643, - "end": 15644, + "start": 15686, + "end": 15687, "loc": { "start": { "line": 410, @@ -136364,8 +136354,8 @@ "updateContext": null }, "value": "this", - "start": 15644, - "end": 15648, + "start": 15687, + "end": 15691, "loc": { "start": { "line": 410, @@ -136390,8 +136380,8 @@ "binop": null, "updateContext": null }, - "start": 15648, - "end": 15649, + "start": 15691, + "end": 15692, "loc": { "start": { "line": 410, @@ -136416,8 +136406,8 @@ "binop": null }, "value": "elapsedMS", - "start": 15649, - "end": 15658, + "start": 15692, + "end": 15701, "loc": { "start": { "line": 410, @@ -136443,8 +136433,8 @@ "updateContext": null }, "value": "/", - "start": 15659, - "end": 15660, + "start": 15702, + "end": 15703, "loc": { "start": { "line": 410, @@ -136470,8 +136460,8 @@ "updateContext": null }, "value": 1000, - "start": 15661, - "end": 15665, + "start": 15704, + "end": 15708, "loc": { "start": { "line": 410, @@ -136495,8 +136485,8 @@ "postfix": false, "binop": null }, - "start": 15665, - "end": 15666, + "start": 15708, + "end": 15709, "loc": { "start": { "line": 410, @@ -136521,8 +136511,8 @@ "binop": null, "updateContext": null }, - "start": 15666, - "end": 15667, + "start": 15709, + "end": 15710, "loc": { "start": { "line": 410, @@ -136537,8 +136527,8 @@ { "type": "CommentLine", "value": " If the delta time grows too large, we clamp it", - "start": 15671, - "end": 15720, + "start": 15714, + "end": 15763, "loc": { "start": { "line": 411, @@ -136565,8 +136555,8 @@ "updateContext": null }, "value": "if", - "start": 15724, - "end": 15726, + "start": 15767, + "end": 15769, "loc": { "start": { "line": 412, @@ -136590,8 +136580,8 @@ "postfix": false, "binop": null }, - "start": 15727, - "end": 15728, + "start": 15770, + "end": 15771, "loc": { "start": { "line": 412, @@ -136618,8 +136608,8 @@ "updateContext": null }, "value": "this", - "start": 15728, - "end": 15732, + "start": 15771, + "end": 15775, "loc": { "start": { "line": 412, @@ -136644,8 +136634,8 @@ "binop": null, "updateContext": null }, - "start": 15732, - "end": 15733, + "start": 15775, + "end": 15776, "loc": { "start": { "line": 412, @@ -136670,8 +136660,8 @@ "binop": null }, "value": "deltaTime", - "start": 15733, - "end": 15742, + "start": 15776, + "end": 15785, "loc": { "start": { "line": 412, @@ -136697,8 +136687,8 @@ "updateContext": null }, "value": ">=", - "start": 15743, - "end": 15745, + "start": 15786, + "end": 15788, "loc": { "start": { "line": 412, @@ -136723,8 +136713,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 15746, - "end": 15762, + "start": 15789, + "end": 15805, "loc": { "start": { "line": 412, @@ -136749,8 +136739,8 @@ "binop": null, "updateContext": null }, - "start": 15762, - "end": 15763, + "start": 15805, + "end": 15806, "loc": { "start": { "line": 412, @@ -136775,8 +136765,8 @@ "binop": null }, "value": "MAX_DELTA_TIME", - "start": 15763, - "end": 15777, + "start": 15806, + "end": 15820, "loc": { "start": { "line": 412, @@ -136800,8 +136790,8 @@ "postfix": false, "binop": null }, - "start": 15777, - "end": 15778, + "start": 15820, + "end": 15821, "loc": { "start": { "line": 412, @@ -136825,8 +136815,8 @@ "postfix": false, "binop": null }, - "start": 15779, - "end": 15780, + "start": 15822, + "end": 15823, "loc": { "start": { "line": 412, @@ -136853,8 +136843,8 @@ "updateContext": null }, "value": "this", - "start": 15785, - "end": 15789, + "start": 15828, + "end": 15832, "loc": { "start": { "line": 413, @@ -136879,8 +136869,8 @@ "binop": null, "updateContext": null }, - "start": 15789, - "end": 15790, + "start": 15832, + "end": 15833, "loc": { "start": { "line": 413, @@ -136905,8 +136895,8 @@ "binop": null }, "value": "deltaTime", - "start": 15790, - "end": 15799, + "start": 15833, + "end": 15842, "loc": { "start": { "line": 413, @@ -136932,8 +136922,8 @@ "updateContext": null }, "value": "=", - "start": 15800, - "end": 15801, + "start": 15843, + "end": 15844, "loc": { "start": { "line": 413, @@ -136958,8 +136948,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 15802, - "end": 15818, + "start": 15845, + "end": 15861, "loc": { "start": { "line": 413, @@ -136984,8 +136974,8 @@ "binop": null, "updateContext": null }, - "start": 15818, - "end": 15819, + "start": 15861, + "end": 15862, "loc": { "start": { "line": 413, @@ -137010,8 +137000,8 @@ "binop": null }, "value": "MAX_DELTA_TIME", - "start": 15819, - "end": 15833, + "start": 15862, + "end": 15876, "loc": { "start": { "line": 413, @@ -137036,8 +137026,8 @@ "binop": null, "updateContext": null }, - "start": 15833, - "end": 15834, + "start": 15876, + "end": 15877, "loc": { "start": { "line": 413, @@ -137061,8 +137051,8 @@ "postfix": false, "binop": null }, - "start": 15838, - "end": 15839, + "start": 15881, + "end": 15882, "loc": { "start": { "line": 414, @@ -137077,8 +137067,8 @@ { "type": "CommentLine", "value": " Loop active instances and update.", - "start": 15843, - "end": 15879, + "start": 15886, + "end": 15922, "loc": { "start": { "line": 415, @@ -137105,8 +137095,8 @@ "updateContext": null }, "value": "this", - "start": 15883, - "end": 15887, + "start": 15926, + "end": 15930, "loc": { "start": { "line": 416, @@ -137131,8 +137121,8 @@ "binop": null, "updateContext": null }, - "start": 15887, - "end": 15888, + "start": 15930, + "end": 15931, "loc": { "start": { "line": 416, @@ -137157,8 +137147,8 @@ "binop": null }, "value": "activeInstances", - "start": 15888, - "end": 15903, + "start": 15931, + "end": 15946, "loc": { "start": { "line": 416, @@ -137183,8 +137173,8 @@ "binop": null, "updateContext": null }, - "start": 15903, - "end": 15904, + "start": 15946, + "end": 15947, "loc": { "start": { "line": 416, @@ -137209,8 +137199,8 @@ "binop": null }, "value": "forEach", - "start": 15904, - "end": 15911, + "start": 15947, + "end": 15954, "loc": { "start": { "line": 416, @@ -137234,8 +137224,8 @@ "postfix": false, "binop": null }, - "start": 15911, - "end": 15912, + "start": 15954, + "end": 15955, "loc": { "start": { "line": 416, @@ -137259,8 +137249,8 @@ "postfix": false, "binop": null }, - "start": 15912, - "end": 15913, + "start": 15955, + "end": 15956, "loc": { "start": { "line": 416, @@ -137285,8 +137275,8 @@ "binop": null }, "value": "pInstance", - "start": 15913, - "end": 15922, + "start": 15956, + "end": 15965, "loc": { "start": { "line": 416, @@ -137310,8 +137300,8 @@ "postfix": false, "binop": null }, - "start": 15922, - "end": 15923, + "start": 15965, + "end": 15966, "loc": { "start": { "line": 416, @@ -137336,8 +137326,8 @@ "binop": null, "updateContext": null }, - "start": 15924, - "end": 15926, + "start": 15967, + "end": 15969, "loc": { "start": { "line": 416, @@ -137361,8 +137351,8 @@ "postfix": false, "binop": null }, - "start": 15927, - "end": 15928, + "start": 15970, + "end": 15971, "loc": { "start": { "line": 416, @@ -137377,8 +137367,8 @@ { "type": "CommentLine", "value": " Get the instance data for this instance", - "start": 15933, - "end": 15975, + "start": 15976, + "end": 16018, "loc": { "start": { "line": 417, @@ -137405,8 +137395,8 @@ "updateContext": null }, "value": "const", - "start": 15980, - "end": 15985, + "start": 16023, + "end": 16028, "loc": { "start": { "line": 418, @@ -137431,8 +137421,8 @@ "binop": null }, "value": "instanceData", - "start": 15986, - "end": 15998, + "start": 16029, + "end": 16041, "loc": { "start": { "line": 418, @@ -137458,8 +137448,8 @@ "updateContext": null }, "value": "=", - "start": 15999, - "end": 16000, + "start": 16042, + "end": 16043, "loc": { "start": { "line": 418, @@ -137486,8 +137476,8 @@ "updateContext": null }, "value": "this", - "start": 16001, - "end": 16005, + "start": 16044, + "end": 16048, "loc": { "start": { "line": 418, @@ -137512,8 +137502,8 @@ "binop": null, "updateContext": null }, - "start": 16005, - "end": 16006, + "start": 16048, + "end": 16049, "loc": { "start": { "line": 418, @@ -137538,8 +137528,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 16006, - "end": 16021, + "start": 16049, + "end": 16064, "loc": { "start": { "line": 418, @@ -137564,8 +137554,8 @@ "binop": null, "updateContext": null }, - "start": 16021, - "end": 16022, + "start": 16064, + "end": 16065, "loc": { "start": { "line": 418, @@ -137590,8 +137580,8 @@ "binop": null }, "value": "get", - "start": 16022, - "end": 16025, + "start": 16065, + "end": 16068, "loc": { "start": { "line": 418, @@ -137615,8 +137605,8 @@ "postfix": false, "binop": null }, - "start": 16025, - "end": 16026, + "start": 16068, + "end": 16069, "loc": { "start": { "line": 418, @@ -137641,8 +137631,8 @@ "binop": null }, "value": "pInstance", - "start": 16026, - "end": 16035, + "start": 16069, + "end": 16078, "loc": { "start": { "line": 418, @@ -137666,8 +137656,8 @@ "postfix": false, "binop": null }, - "start": 16035, - "end": 16036, + "start": 16078, + "end": 16079, "loc": { "start": { "line": 418, @@ -137692,8 +137682,8 @@ "binop": null, "updateContext": null }, - "start": 16036, - "end": 16037, + "start": 16079, + "end": 16080, "loc": { "start": { "line": 418, @@ -137720,8 +137710,8 @@ "updateContext": null }, "value": "if", - "start": 16042, - "end": 16044, + "start": 16085, + "end": 16087, "loc": { "start": { "line": 419, @@ -137745,8 +137735,8 @@ "postfix": false, "binop": null }, - "start": 16045, - "end": 16046, + "start": 16088, + "end": 16089, "loc": { "start": { "line": 419, @@ -137771,8 +137761,8 @@ "binop": null }, "value": "instanceData", - "start": 16046, - "end": 16058, + "start": 16089, + "end": 16101, "loc": { "start": { "line": 419, @@ -137796,8 +137786,8 @@ "postfix": false, "binop": null }, - "start": 16058, - "end": 16059, + "start": 16101, + "end": 16102, "loc": { "start": { "line": 419, @@ -137821,8 +137811,8 @@ "postfix": false, "binop": null }, - "start": 16060, - "end": 16061, + "start": 16103, + "end": 16104, "loc": { "start": { "line": 419, @@ -137837,8 +137827,8 @@ { "type": "CommentLine", "value": " Calculate the path", - "start": 16067, - "end": 16088, + "start": 16110, + "end": 16131, "loc": { "start": { "line": 420, @@ -137863,8 +137853,8 @@ "binop": null }, "value": "instanceData", - "start": 16094, - "end": 16106, + "start": 16137, + "end": 16149, "loc": { "start": { "line": 421, @@ -137889,8 +137879,8 @@ "binop": null, "updateContext": null }, - "start": 16106, - "end": 16107, + "start": 16149, + "end": 16150, "loc": { "start": { "line": 421, @@ -137915,8 +137905,8 @@ "binop": null }, "value": "easystar", - "start": 16107, - "end": 16115, + "start": 16150, + "end": 16158, "loc": { "start": { "line": 421, @@ -137941,8 +137931,8 @@ "binop": null, "updateContext": null }, - "start": 16115, - "end": 16116, + "start": 16158, + "end": 16159, "loc": { "start": { "line": 421, @@ -137967,8 +137957,8 @@ "binop": null }, "value": "calculate", - "start": 16116, - "end": 16125, + "start": 16159, + "end": 16168, "loc": { "start": { "line": 421, @@ -137992,8 +137982,8 @@ "postfix": false, "binop": null }, - "start": 16125, - "end": 16126, + "start": 16168, + "end": 16169, "loc": { "start": { "line": 421, @@ -138017,8 +138007,8 @@ "postfix": false, "binop": null }, - "start": 16126, - "end": 16127, + "start": 16169, + "end": 16170, "loc": { "start": { "line": 421, @@ -138043,8 +138033,8 @@ "binop": null, "updateContext": null }, - "start": 16127, - "end": 16128, + "start": 16170, + "end": 16171, "loc": { "start": { "line": 421, @@ -138059,8 +138049,8 @@ { "type": "CommentLine", "value": " If this instance is being moved", - "start": 16136, - "end": 16170, + "start": 16179, + "end": 16213, "loc": { "start": { "line": 423, @@ -138087,8 +138077,8 @@ "updateContext": null }, "value": "if", - "start": 16176, - "end": 16178, + "start": 16219, + "end": 16221, "loc": { "start": { "line": 424, @@ -138112,8 +138102,8 @@ "postfix": false, "binop": null }, - "start": 16179, - "end": 16180, + "start": 16222, + "end": 16223, "loc": { "start": { "line": 424, @@ -138138,8 +138128,8 @@ "binop": null }, "value": "Array", - "start": 16180, - "end": 16185, + "start": 16223, + "end": 16228, "loc": { "start": { "line": 424, @@ -138164,8 +138154,8 @@ "binop": null, "updateContext": null }, - "start": 16185, - "end": 16186, + "start": 16228, + "end": 16229, "loc": { "start": { "line": 424, @@ -138190,8 +138180,8 @@ "binop": null }, "value": "isArray", - "start": 16186, - "end": 16193, + "start": 16229, + "end": 16236, "loc": { "start": { "line": 424, @@ -138215,8 +138205,8 @@ "postfix": false, "binop": null }, - "start": 16193, - "end": 16194, + "start": 16236, + "end": 16237, "loc": { "start": { "line": 424, @@ -138241,8 +138231,8 @@ "binop": null }, "value": "instanceData", - "start": 16194, - "end": 16206, + "start": 16237, + "end": 16249, "loc": { "start": { "line": 424, @@ -138267,8 +138257,8 @@ "binop": null, "updateContext": null }, - "start": 16206, - "end": 16207, + "start": 16249, + "end": 16250, "loc": { "start": { "line": 424, @@ -138293,8 +138283,8 @@ "binop": null }, "value": "path", - "start": 16207, - "end": 16211, + "start": 16250, + "end": 16254, "loc": { "start": { "line": 424, @@ -138318,8 +138308,8 @@ "postfix": false, "binop": null }, - "start": 16211, - "end": 16212, + "start": 16254, + "end": 16255, "loc": { "start": { "line": 424, @@ -138345,8 +138335,8 @@ "updateContext": null }, "value": "&&", - "start": 16213, - "end": 16215, + "start": 16256, + "end": 16258, "loc": { "start": { "line": 424, @@ -138370,8 +138360,8 @@ "postfix": false, "binop": null }, - "start": 16216, - "end": 16217, + "start": 16259, + "end": 16260, "loc": { "start": { "line": 424, @@ -138396,8 +138386,8 @@ "binop": null }, "value": "instanceData", - "start": 16217, - "end": 16229, + "start": 16260, + "end": 16272, "loc": { "start": { "line": 424, @@ -138422,8 +138412,8 @@ "binop": null, "updateContext": null }, - "start": 16229, - "end": 16230, + "start": 16272, + "end": 16273, "loc": { "start": { "line": 424, @@ -138448,8 +138438,8 @@ "binop": null }, "value": "path", - "start": 16230, - "end": 16234, + "start": 16273, + "end": 16277, "loc": { "start": { "line": 424, @@ -138474,8 +138464,8 @@ "binop": null, "updateContext": null }, - "start": 16234, - "end": 16235, + "start": 16277, + "end": 16278, "loc": { "start": { "line": 424, @@ -138500,8 +138490,8 @@ "binop": null }, "value": "length", - "start": 16235, - "end": 16241, + "start": 16278, + "end": 16284, "loc": { "start": { "line": 424, @@ -138527,8 +138517,8 @@ "updateContext": null }, "value": "||", - "start": 16242, - "end": 16244, + "start": 16285, + "end": 16287, "loc": { "start": { "line": 424, @@ -138553,8 +138543,8 @@ "binop": null }, "value": "instanceData", - "start": 16245, - "end": 16257, + "start": 16288, + "end": 16300, "loc": { "start": { "line": 424, @@ -138579,8 +138569,8 @@ "binop": null, "updateContext": null }, - "start": 16257, - "end": 16258, + "start": 16300, + "end": 16301, "loc": { "start": { "line": 424, @@ -138605,8 +138595,8 @@ "binop": null }, "value": "moving", - "start": 16258, - "end": 16264, + "start": 16301, + "end": 16307, "loc": { "start": { "line": 424, @@ -138630,8 +138620,8 @@ "postfix": false, "binop": null }, - "start": 16264, - "end": 16265, + "start": 16307, + "end": 16308, "loc": { "start": { "line": 424, @@ -138655,8 +138645,8 @@ "postfix": false, "binop": null }, - "start": 16265, - "end": 16266, + "start": 16308, + "end": 16309, "loc": { "start": { "line": 424, @@ -138680,8 +138670,8 @@ "postfix": false, "binop": null }, - "start": 16267, - "end": 16268, + "start": 16310, + "end": 16311, "loc": { "start": { "line": 424, @@ -138696,8 +138686,8 @@ { "type": "CommentLine", "value": " Get the position of the instance", - "start": 16275, - "end": 16310, + "start": 16318, + "end": 16353, "loc": { "start": { "line": 425, @@ -138724,8 +138714,8 @@ "updateContext": null }, "value": "const", - "start": 16317, - "end": 16322, + "start": 16360, + "end": 16365, "loc": { "start": { "line": 426, @@ -138750,8 +138740,8 @@ "binop": null }, "value": "instancePosition", - "start": 16323, - "end": 16339, + "start": 16366, + "end": 16382, "loc": { "start": { "line": 426, @@ -138777,8 +138767,8 @@ "updateContext": null }, "value": "=", - "start": 16340, - "end": 16341, + "start": 16383, + "end": 16384, "loc": { "start": { "line": 426, @@ -138805,8 +138795,8 @@ "updateContext": null }, "value": "this", - "start": 16342, - "end": 16346, + "start": 16385, + "end": 16389, "loc": { "start": { "line": 426, @@ -138831,8 +138821,8 @@ "binop": null, "updateContext": null }, - "start": 16346, - "end": 16347, + "start": 16389, + "end": 16390, "loc": { "start": { "line": 426, @@ -138857,8 +138847,8 @@ "binop": null }, "value": "getPositionFromInstance", - "start": 16347, - "end": 16370, + "start": 16390, + "end": 16413, "loc": { "start": { "line": 426, @@ -138882,8 +138872,8 @@ "postfix": false, "binop": null }, - "start": 16370, - "end": 16371, + "start": 16413, + "end": 16414, "loc": { "start": { "line": 426, @@ -138908,8 +138898,8 @@ "binop": null }, "value": "pInstance", - "start": 16371, - "end": 16380, + "start": 16414, + "end": 16423, "loc": { "start": { "line": 426, @@ -138933,8 +138923,8 @@ "postfix": false, "binop": null }, - "start": 16380, - "end": 16381, + "start": 16423, + "end": 16424, "loc": { "start": { "line": 426, @@ -138959,8 +138949,8 @@ "binop": null, "updateContext": null }, - "start": 16381, - "end": 16382, + "start": 16424, + "end": 16425, "loc": { "start": { "line": 426, @@ -138975,8 +138965,8 @@ { "type": "CommentLine", "value": " If the instance is not moving", - "start": 16389, - "end": 16421, + "start": 16432, + "end": 16464, "loc": { "start": { "line": 427, @@ -139003,8 +138993,8 @@ "updateContext": null }, "value": "if", - "start": 16428, - "end": 16430, + "start": 16471, + "end": 16473, "loc": { "start": { "line": 428, @@ -139028,8 +139018,8 @@ "postfix": false, "binop": null }, - "start": 16431, - "end": 16432, + "start": 16474, + "end": 16475, "loc": { "start": { "line": 428, @@ -139055,8 +139045,8 @@ "updateContext": null }, "value": "!", - "start": 16432, - "end": 16433, + "start": 16475, + "end": 16476, "loc": { "start": { "line": 428, @@ -139081,8 +139071,8 @@ "binop": null }, "value": "instanceData", - "start": 16433, - "end": 16445, + "start": 16476, + "end": 16488, "loc": { "start": { "line": 428, @@ -139107,8 +139097,8 @@ "binop": null, "updateContext": null }, - "start": 16445, - "end": 16446, + "start": 16488, + "end": 16489, "loc": { "start": { "line": 428, @@ -139133,8 +139123,8 @@ "binop": null }, "value": "moving", - "start": 16446, - "end": 16452, + "start": 16489, + "end": 16495, "loc": { "start": { "line": 428, @@ -139158,8 +139148,8 @@ "postfix": false, "binop": null }, - "start": 16452, - "end": 16453, + "start": 16495, + "end": 16496, "loc": { "start": { "line": 428, @@ -139183,8 +139173,8 @@ "postfix": false, "binop": null }, - "start": 16454, - "end": 16455, + "start": 16497, + "end": 16498, "loc": { "start": { "line": 428, @@ -139199,8 +139189,8 @@ { "type": "CommentLine", "value": " Get the next node to travel to.", - "start": 16463, - "end": 16497, + "start": 16506, + "end": 16540, "loc": { "start": { "line": 429, @@ -139227,8 +139217,8 @@ "updateContext": null }, "value": "const", - "start": 16505, - "end": 16510, + "start": 16548, + "end": 16553, "loc": { "start": { "line": 430, @@ -139253,8 +139243,8 @@ "binop": null }, "value": "node", - "start": 16511, - "end": 16515, + "start": 16554, + "end": 16558, "loc": { "start": { "line": 430, @@ -139280,8 +139270,8 @@ "updateContext": null }, "value": "=", - "start": 16516, - "end": 16517, + "start": 16559, + "end": 16560, "loc": { "start": { "line": 430, @@ -139306,8 +139296,8 @@ "binop": null }, "value": "instanceData", - "start": 16518, - "end": 16530, + "start": 16561, + "end": 16573, "loc": { "start": { "line": 430, @@ -139332,8 +139322,8 @@ "binop": null, "updateContext": null }, - "start": 16530, - "end": 16531, + "start": 16573, + "end": 16574, "loc": { "start": { "line": 430, @@ -139358,8 +139348,8 @@ "binop": null }, "value": "path", - "start": 16531, - "end": 16535, + "start": 16574, + "end": 16578, "loc": { "start": { "line": 430, @@ -139384,8 +139374,8 @@ "binop": null, "updateContext": null }, - "start": 16535, - "end": 16536, + "start": 16578, + "end": 16579, "loc": { "start": { "line": 430, @@ -139410,8 +139400,8 @@ "binop": null }, "value": "shift", - "start": 16536, - "end": 16541, + "start": 16579, + "end": 16584, "loc": { "start": { "line": 430, @@ -139435,8 +139425,8 @@ "postfix": false, "binop": null }, - "start": 16541, - "end": 16542, + "start": 16584, + "end": 16585, "loc": { "start": { "line": 430, @@ -139460,8 +139450,8 @@ "postfix": false, "binop": null }, - "start": 16542, - "end": 16543, + "start": 16585, + "end": 16586, "loc": { "start": { "line": 430, @@ -139486,8 +139476,8 @@ "binop": null, "updateContext": null }, - "start": 16543, - "end": 16544, + "start": 16586, + "end": 16587, "loc": { "start": { "line": 430, @@ -139502,8 +139492,8 @@ { "type": "CommentLine", "value": " Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.", - "start": 16552, - "end": 16686, + "start": 16595, + "end": 16729, "loc": { "start": { "line": 431, @@ -139530,8 +139520,8 @@ "updateContext": null }, "value": "const", - "start": 16694, - "end": 16699, + "start": 16737, + "end": 16742, "loc": { "start": { "line": 432, @@ -139556,8 +139546,8 @@ "binop": null }, "value": "nodePos", - "start": 16700, - "end": 16707, + "start": 16743, + "end": 16750, "loc": { "start": { "line": 432, @@ -139583,8 +139573,8 @@ "updateContext": null }, "value": "=", - "start": 16708, - "end": 16709, + "start": 16751, + "end": 16752, "loc": { "start": { "line": 432, @@ -139608,8 +139598,8 @@ "postfix": false, "binop": null }, - "start": 16710, - "end": 16711, + "start": 16753, + "end": 16754, "loc": { "start": { "line": 432, @@ -139634,8 +139624,8 @@ "binop": null }, "value": "x", - "start": 16721, - "end": 16722, + "start": 16764, + "end": 16765, "loc": { "start": { "line": 433, @@ -139660,8 +139650,8 @@ "binop": null, "updateContext": null }, - "start": 16722, - "end": 16723, + "start": 16765, + "end": 16766, "loc": { "start": { "line": 433, @@ -139685,8 +139675,8 @@ "postfix": false, "binop": null }, - "start": 16724, - "end": 16725, + "start": 16767, + "end": 16768, "loc": { "start": { "line": 433, @@ -139711,8 +139701,8 @@ "binop": null }, "value": "node", - "start": 16725, - "end": 16729, + "start": 16768, + "end": 16772, "loc": { "start": { "line": 433, @@ -139737,8 +139727,8 @@ "binop": null, "updateContext": null }, - "start": 16729, - "end": 16730, + "start": 16772, + "end": 16773, "loc": { "start": { "line": 433, @@ -139763,8 +139753,8 @@ "binop": null }, "value": "x", - "start": 16730, - "end": 16731, + "start": 16773, + "end": 16774, "loc": { "start": { "line": 433, @@ -139790,8 +139780,8 @@ "updateContext": null }, "value": "*", - "start": 16732, - "end": 16733, + "start": 16775, + "end": 16776, "loc": { "start": { "line": 433, @@ -139818,8 +139808,8 @@ "updateContext": null }, "value": "this", - "start": 16734, - "end": 16738, + "start": 16777, + "end": 16781, "loc": { "start": { "line": 433, @@ -139844,8 +139834,8 @@ "binop": null, "updateContext": null }, - "start": 16738, - "end": 16739, + "start": 16781, + "end": 16782, "loc": { "start": { "line": 433, @@ -139870,8 +139860,8 @@ "binop": null }, "value": "tileSize", - "start": 16739, - "end": 16747, + "start": 16782, + "end": 16790, "loc": { "start": { "line": 433, @@ -139896,8 +139886,8 @@ "binop": null, "updateContext": null }, - "start": 16747, - "end": 16748, + "start": 16790, + "end": 16791, "loc": { "start": { "line": 433, @@ -139922,8 +139912,8 @@ "binop": null }, "value": "width", - "start": 16748, - "end": 16753, + "start": 16791, + "end": 16796, "loc": { "start": { "line": 433, @@ -139947,8 +139937,8 @@ "postfix": false, "binop": null }, - "start": 16753, - "end": 16754, + "start": 16796, + "end": 16797, "loc": { "start": { "line": 433, @@ -139974,8 +139964,8 @@ "updateContext": null }, "value": "-", - "start": 16755, - "end": 16756, + "start": 16798, + "end": 16799, "loc": { "start": { "line": 433, @@ -140002,8 +139992,8 @@ "updateContext": null }, "value": "this", - "start": 16757, - "end": 16761, + "start": 16800, + "end": 16804, "loc": { "start": { "line": 433, @@ -140028,8 +140018,8 @@ "binop": null, "updateContext": null }, - "start": 16761, - "end": 16762, + "start": 16804, + "end": 16805, "loc": { "start": { "line": 433, @@ -140054,8 +140044,8 @@ "binop": null }, "value": "tileSize", - "start": 16762, - "end": 16770, + "start": 16805, + "end": 16813, "loc": { "start": { "line": 433, @@ -140080,8 +140070,8 @@ "binop": null, "updateContext": null }, - "start": 16770, - "end": 16771, + "start": 16813, + "end": 16814, "loc": { "start": { "line": 433, @@ -140106,8 +140096,8 @@ "binop": null }, "value": "width", - "start": 16771, - "end": 16776, + "start": 16814, + "end": 16819, "loc": { "start": { "line": 433, @@ -140133,8 +140123,8 @@ "updateContext": null }, "value": "/", - "start": 16777, - "end": 16778, + "start": 16820, + "end": 16821, "loc": { "start": { "line": 433, @@ -140160,8 +140150,8 @@ "updateContext": null }, "value": 2, - "start": 16779, - "end": 16780, + "start": 16822, + "end": 16823, "loc": { "start": { "line": 433, @@ -140186,8 +140176,8 @@ "binop": null, "updateContext": null }, - "start": 16780, - "end": 16781, + "start": 16823, + "end": 16824, "loc": { "start": { "line": 433, @@ -140212,8 +140202,8 @@ "binop": null }, "value": "y", - "start": 16791, - "end": 16792, + "start": 16834, + "end": 16835, "loc": { "start": { "line": 434, @@ -140238,8 +140228,8 @@ "binop": null, "updateContext": null }, - "start": 16792, - "end": 16793, + "start": 16835, + "end": 16836, "loc": { "start": { "line": 434, @@ -140263,8 +140253,8 @@ "postfix": false, "binop": null }, - "start": 16794, - "end": 16795, + "start": 16837, + "end": 16838, "loc": { "start": { "line": 434, @@ -140289,8 +140279,8 @@ "binop": null }, "value": "node", - "start": 16795, - "end": 16799, + "start": 16838, + "end": 16842, "loc": { "start": { "line": 434, @@ -140315,8 +140305,8 @@ "binop": null, "updateContext": null }, - "start": 16799, - "end": 16800, + "start": 16842, + "end": 16843, "loc": { "start": { "line": 434, @@ -140341,8 +140331,8 @@ "binop": null }, "value": "y", - "start": 16800, - "end": 16801, + "start": 16843, + "end": 16844, "loc": { "start": { "line": 434, @@ -140368,8 +140358,8 @@ "updateContext": null }, "value": "*", - "start": 16802, - "end": 16803, + "start": 16845, + "end": 16846, "loc": { "start": { "line": 434, @@ -140396,8 +140386,8 @@ "updateContext": null }, "value": "this", - "start": 16804, - "end": 16808, + "start": 16847, + "end": 16851, "loc": { "start": { "line": 434, @@ -140422,8 +140412,8 @@ "binop": null, "updateContext": null }, - "start": 16808, - "end": 16809, + "start": 16851, + "end": 16852, "loc": { "start": { "line": 434, @@ -140448,8 +140438,8 @@ "binop": null }, "value": "tileSize", - "start": 16809, - "end": 16817, + "start": 16852, + "end": 16860, "loc": { "start": { "line": 434, @@ -140474,8 +140464,8 @@ "binop": null, "updateContext": null }, - "start": 16817, - "end": 16818, + "start": 16860, + "end": 16861, "loc": { "start": { "line": 434, @@ -140500,8 +140490,8 @@ "binop": null }, "value": "height", - "start": 16818, - "end": 16824, + "start": 16861, + "end": 16867, "loc": { "start": { "line": 434, @@ -140525,8 +140515,8 @@ "postfix": false, "binop": null }, - "start": 16824, - "end": 16825, + "start": 16867, + "end": 16868, "loc": { "start": { "line": 434, @@ -140552,8 +140542,8 @@ "updateContext": null }, "value": "-", - "start": 16826, - "end": 16827, + "start": 16869, + "end": 16870, "loc": { "start": { "line": 434, @@ -140580,8 +140570,8 @@ "updateContext": null }, "value": "this", - "start": 16828, - "end": 16832, + "start": 16871, + "end": 16875, "loc": { "start": { "line": 434, @@ -140606,8 +140596,8 @@ "binop": null, "updateContext": null }, - "start": 16832, - "end": 16833, + "start": 16875, + "end": 16876, "loc": { "start": { "line": 434, @@ -140632,8 +140622,8 @@ "binop": null }, "value": "tileSize", - "start": 16833, - "end": 16841, + "start": 16876, + "end": 16884, "loc": { "start": { "line": 434, @@ -140658,8 +140648,8 @@ "binop": null, "updateContext": null }, - "start": 16841, - "end": 16842, + "start": 16884, + "end": 16885, "loc": { "start": { "line": 434, @@ -140684,8 +140674,8 @@ "binop": null }, "value": "height", - "start": 16842, - "end": 16848, + "start": 16885, + "end": 16891, "loc": { "start": { "line": 434, @@ -140711,8 +140701,8 @@ "updateContext": null }, "value": "/", - "start": 16849, - "end": 16850, + "start": 16892, + "end": 16893, "loc": { "start": { "line": 434, @@ -140738,8 +140728,8 @@ "updateContext": null }, "value": 2, - "start": 16851, - "end": 16852, + "start": 16894, + "end": 16895, "loc": { "start": { "line": 434, @@ -140763,8 +140753,8 @@ "postfix": false, "binop": null }, - "start": 16861, - "end": 16862, + "start": 16904, + "end": 16905, "loc": { "start": { "line": 435, @@ -140789,8 +140779,8 @@ "binop": null, "updateContext": null }, - "start": 16862, - "end": 16863, + "start": 16905, + "end": 16906, "loc": { "start": { "line": 435, @@ -140805,8 +140795,8 @@ { "type": "CommentLine", "value": " Store the next node position", - "start": 16871, - "end": 16902, + "start": 16914, + "end": 16945, "loc": { "start": { "line": 436, @@ -140831,8 +140821,8 @@ "binop": null }, "value": "instanceData", - "start": 16910, - "end": 16922, + "start": 16953, + "end": 16965, "loc": { "start": { "line": 437, @@ -140857,8 +140847,8 @@ "binop": null, "updateContext": null }, - "start": 16922, - "end": 16923, + "start": 16965, + "end": 16966, "loc": { "start": { "line": 437, @@ -140883,8 +140873,8 @@ "binop": null }, "value": "trajectory", - "start": 16923, - "end": 16933, + "start": 16966, + "end": 16976, "loc": { "start": { "line": 437, @@ -140909,8 +140899,8 @@ "binop": null, "updateContext": null }, - "start": 16933, - "end": 16934, + "start": 16976, + "end": 16977, "loc": { "start": { "line": 437, @@ -140935,8 +140925,8 @@ "binop": null }, "value": "nextNodePos", - "start": 16934, - "end": 16945, + "start": 16977, + "end": 16988, "loc": { "start": { "line": 437, @@ -140962,8 +140952,8 @@ "updateContext": null }, "value": "=", - "start": 16946, - "end": 16947, + "start": 16989, + "end": 16990, "loc": { "start": { "line": 437, @@ -140988,8 +140978,8 @@ "binop": null }, "value": "nodePos", - "start": 16948, - "end": 16955, + "start": 16991, + "end": 16998, "loc": { "start": { "line": 437, @@ -141014,8 +141004,8 @@ "binop": null, "updateContext": null }, - "start": 16955, - "end": 16956, + "start": 16998, + "end": 16999, "loc": { "start": { "line": 437, @@ -141030,8 +141020,8 @@ { "type": "CommentLine", "value": " Get the angle from the instance's position to the next node", - "start": 16964, - "end": 17026, + "start": 17007, + "end": 17069, "loc": { "start": { "line": 438, @@ -141056,8 +141046,8 @@ "binop": null }, "value": "instanceData", - "start": 17034, - "end": 17046, + "start": 17077, + "end": 17089, "loc": { "start": { "line": 439, @@ -141082,8 +141072,8 @@ "binop": null, "updateContext": null }, - "start": 17046, - "end": 17047, + "start": 17089, + "end": 17090, "loc": { "start": { "line": 439, @@ -141108,8 +141098,8 @@ "binop": null }, "value": "trajectory", - "start": 17047, - "end": 17057, + "start": 17090, + "end": 17100, "loc": { "start": { "line": 439, @@ -141134,8 +141124,8 @@ "binop": null, "updateContext": null }, - "start": 17057, - "end": 17058, + "start": 17100, + "end": 17101, "loc": { "start": { "line": 439, @@ -141160,8 +141150,8 @@ "binop": null }, "value": "angle", - "start": 17058, - "end": 17063, + "start": 17101, + "end": 17106, "loc": { "start": { "line": 439, @@ -141187,8 +141177,8 @@ "updateContext": null }, "value": "=", - "start": 17064, - "end": 17065, + "start": 17107, + "end": 17108, "loc": { "start": { "line": 439, @@ -141213,8 +141203,8 @@ "binop": null }, "value": "Utils", - "start": 17066, - "end": 17071, + "start": 17109, + "end": 17114, "loc": { "start": { "line": 439, @@ -141239,8 +141229,8 @@ "binop": null, "updateContext": null }, - "start": 17071, - "end": 17072, + "start": 17114, + "end": 17115, "loc": { "start": { "line": 439, @@ -141265,8 +141255,8 @@ "binop": null }, "value": "getAngle2", - "start": 17072, - "end": 17081, + "start": 17115, + "end": 17124, "loc": { "start": { "line": 439, @@ -141290,8 +141280,8 @@ "postfix": false, "binop": null }, - "start": 17081, - "end": 17082, + "start": 17124, + "end": 17125, "loc": { "start": { "line": 439, @@ -141316,8 +141306,8 @@ "binop": null }, "value": "instancePosition", - "start": 17082, - "end": 17098, + "start": 17125, + "end": 17141, "loc": { "start": { "line": 439, @@ -141342,8 +141332,8 @@ "binop": null, "updateContext": null }, - "start": 17098, - "end": 17099, + "start": 17141, + "end": 17142, "loc": { "start": { "line": 439, @@ -141368,8 +141358,8 @@ "binop": null }, "value": "instanceData", - "start": 17100, - "end": 17112, + "start": 17143, + "end": 17155, "loc": { "start": { "line": 439, @@ -141394,8 +141384,8 @@ "binop": null, "updateContext": null }, - "start": 17112, - "end": 17113, + "start": 17155, + "end": 17156, "loc": { "start": { "line": 439, @@ -141420,8 +141410,8 @@ "binop": null }, "value": "trajectory", - "start": 17113, - "end": 17123, + "start": 17156, + "end": 17166, "loc": { "start": { "line": 439, @@ -141446,8 +141436,8 @@ "binop": null, "updateContext": null }, - "start": 17123, - "end": 17124, + "start": 17166, + "end": 17167, "loc": { "start": { "line": 439, @@ -141472,8 +141462,8 @@ "binop": null }, "value": "nextNodePos", - "start": 17124, - "end": 17135, + "start": 17167, + "end": 17178, "loc": { "start": { "line": 439, @@ -141497,8 +141487,8 @@ "postfix": false, "binop": null }, - "start": 17135, - "end": 17136, + "start": 17178, + "end": 17179, "loc": { "start": { "line": 439, @@ -141523,8 +141513,8 @@ "binop": null, "updateContext": null }, - "start": 17136, - "end": 17137, + "start": 17179, + "end": 17180, "loc": { "start": { "line": 439, @@ -141539,8 +141529,8 @@ { "type": "CommentLine", "value": " Get the trajectory of where to move the instance based on the angle", - "start": 17145, - "end": 17215, + "start": 17188, + "end": 17258, "loc": { "start": { "line": 440, @@ -141565,8 +141555,8 @@ "binop": null }, "value": "instanceData", - "start": 17223, - "end": 17235, + "start": 17266, + "end": 17278, "loc": { "start": { "line": 441, @@ -141591,8 +141581,8 @@ "binop": null, "updateContext": null }, - "start": 17235, - "end": 17236, + "start": 17278, + "end": 17279, "loc": { "start": { "line": 441, @@ -141617,8 +141607,8 @@ "binop": null }, "value": "trajectory", - "start": 17236, - "end": 17246, + "start": 17279, + "end": 17289, "loc": { "start": { "line": 441, @@ -141643,8 +141633,8 @@ "binop": null, "updateContext": null }, - "start": 17246, - "end": 17247, + "start": 17289, + "end": 17290, "loc": { "start": { "line": 441, @@ -141669,8 +141659,8 @@ "binop": null }, "value": "x", - "start": 17247, - "end": 17248, + "start": 17290, + "end": 17291, "loc": { "start": { "line": 441, @@ -141696,8 +141686,8 @@ "updateContext": null }, "value": "=", - "start": 17249, - "end": 17250, + "start": 17292, + "end": 17293, "loc": { "start": { "line": 441, @@ -141722,8 +141712,8 @@ "binop": null }, "value": "Math", - "start": 17251, - "end": 17255, + "start": 17294, + "end": 17298, "loc": { "start": { "line": 441, @@ -141748,8 +141738,8 @@ "binop": null, "updateContext": null }, - "start": 17255, - "end": 17256, + "start": 17298, + "end": 17299, "loc": { "start": { "line": 441, @@ -141774,8 +141764,8 @@ "binop": null }, "value": "cos", - "start": 17256, - "end": 17259, + "start": 17299, + "end": 17302, "loc": { "start": { "line": 441, @@ -141799,8 +141789,8 @@ "postfix": false, "binop": null }, - "start": 17259, - "end": 17260, + "start": 17302, + "end": 17303, "loc": { "start": { "line": 441, @@ -141825,8 +141815,8 @@ "binop": null }, "value": "instanceData", - "start": 17260, - "end": 17272, + "start": 17303, + "end": 17315, "loc": { "start": { "line": 441, @@ -141851,8 +141841,8 @@ "binop": null, "updateContext": null }, - "start": 17272, - "end": 17273, + "start": 17315, + "end": 17316, "loc": { "start": { "line": 441, @@ -141877,8 +141867,8 @@ "binop": null }, "value": "trajectory", - "start": 17273, - "end": 17283, + "start": 17316, + "end": 17326, "loc": { "start": { "line": 441, @@ -141903,8 +141893,8 @@ "binop": null, "updateContext": null }, - "start": 17283, - "end": 17284, + "start": 17326, + "end": 17327, "loc": { "start": { "line": 441, @@ -141929,8 +141919,8 @@ "binop": null }, "value": "angle", - "start": 17284, - "end": 17289, + "start": 17327, + "end": 17332, "loc": { "start": { "line": 441, @@ -141954,8 +141944,8 @@ "postfix": false, "binop": null }, - "start": 17289, - "end": 17290, + "start": 17332, + "end": 17333, "loc": { "start": { "line": 441, @@ -141980,8 +141970,8 @@ "binop": null, "updateContext": null }, - "start": 17290, - "end": 17291, + "start": 17333, + "end": 17334, "loc": { "start": { "line": 441, @@ -142006,8 +141996,8 @@ "binop": null }, "value": "instanceData", - "start": 17299, - "end": 17311, + "start": 17342, + "end": 17354, "loc": { "start": { "line": 442, @@ -142032,8 +142022,8 @@ "binop": null, "updateContext": null }, - "start": 17311, - "end": 17312, + "start": 17354, + "end": 17355, "loc": { "start": { "line": 442, @@ -142058,8 +142048,8 @@ "binop": null }, "value": "trajectory", - "start": 17312, - "end": 17322, + "start": 17355, + "end": 17365, "loc": { "start": { "line": 442, @@ -142084,8 +142074,8 @@ "binop": null, "updateContext": null }, - "start": 17322, - "end": 17323, + "start": 17365, + "end": 17366, "loc": { "start": { "line": 442, @@ -142110,8 +142100,8 @@ "binop": null }, "value": "y", - "start": 17323, - "end": 17324, + "start": 17366, + "end": 17367, "loc": { "start": { "line": 442, @@ -142137,8 +142127,8 @@ "updateContext": null }, "value": "=", - "start": 17325, - "end": 17326, + "start": 17368, + "end": 17369, "loc": { "start": { "line": 442, @@ -142164,8 +142154,8 @@ "updateContext": null }, "value": "-", - "start": 17327, - "end": 17328, + "start": 17370, + "end": 17371, "loc": { "start": { "line": 442, @@ -142190,8 +142180,8 @@ "binop": null }, "value": "Math", - "start": 17328, - "end": 17332, + "start": 17371, + "end": 17375, "loc": { "start": { "line": 442, @@ -142216,8 +142206,8 @@ "binop": null, "updateContext": null }, - "start": 17332, - "end": 17333, + "start": 17375, + "end": 17376, "loc": { "start": { "line": 442, @@ -142242,8 +142232,8 @@ "binop": null }, "value": "sin", - "start": 17333, - "end": 17336, + "start": 17376, + "end": 17379, "loc": { "start": { "line": 442, @@ -142267,8 +142257,8 @@ "postfix": false, "binop": null }, - "start": 17336, - "end": 17337, + "start": 17379, + "end": 17380, "loc": { "start": { "line": 442, @@ -142293,8 +142283,8 @@ "binop": null }, "value": "instanceData", - "start": 17337, - "end": 17349, + "start": 17380, + "end": 17392, "loc": { "start": { "line": 442, @@ -142319,8 +142309,8 @@ "binop": null, "updateContext": null }, - "start": 17349, - "end": 17350, + "start": 17392, + "end": 17393, "loc": { "start": { "line": 442, @@ -142345,8 +142335,8 @@ "binop": null }, "value": "trajectory", - "start": 17350, - "end": 17360, + "start": 17393, + "end": 17403, "loc": { "start": { "line": 442, @@ -142371,8 +142361,8 @@ "binop": null, "updateContext": null }, - "start": 17360, - "end": 17361, + "start": 17403, + "end": 17404, "loc": { "start": { "line": 442, @@ -142397,8 +142387,8 @@ "binop": null }, "value": "angle", - "start": 17361, - "end": 17366, + "start": 17404, + "end": 17409, "loc": { "start": { "line": 442, @@ -142422,8 +142412,8 @@ "postfix": false, "binop": null }, - "start": 17366, - "end": 17367, + "start": 17409, + "end": 17410, "loc": { "start": { "line": 442, @@ -142448,8 +142438,8 @@ "binop": null, "updateContext": null }, - "start": 17367, - "end": 17368, + "start": 17410, + "end": 17411, "loc": { "start": { "line": 442, @@ -142464,8 +142454,8 @@ { "type": "CommentLine", "value": " Update the direction of the instance based on the angle to the next node", - "start": 17376, - "end": 17451, + "start": 17419, + "end": 17494, "loc": { "start": { "line": 443, @@ -142490,8 +142480,8 @@ "binop": null }, "value": "pInstance", - "start": 17459, - "end": 17468, + "start": 17502, + "end": 17511, "loc": { "start": { "line": 444, @@ -142516,8 +142506,8 @@ "binop": null, "updateContext": null }, - "start": 17468, - "end": 17469, + "start": 17511, + "end": 17512, "loc": { "start": { "line": 444, @@ -142542,8 +142532,8 @@ "binop": null }, "value": "dir", - "start": 17469, - "end": 17472, + "start": 17512, + "end": 17515, "loc": { "start": { "line": 444, @@ -142569,8 +142559,8 @@ "updateContext": null }, "value": "=", - "start": 17473, - "end": 17474, + "start": 17516, + "end": 17517, "loc": { "start": { "line": 444, @@ -142595,8 +142585,8 @@ "binop": null }, "value": "Utils", - "start": 17475, - "end": 17480, + "start": 17518, + "end": 17523, "loc": { "start": { "line": 444, @@ -142621,8 +142611,8 @@ "binop": null, "updateContext": null }, - "start": 17480, - "end": 17481, + "start": 17523, + "end": 17524, "loc": { "start": { "line": 444, @@ -142647,8 +142637,8 @@ "binop": null }, "value": "getDirection", - "start": 17481, - "end": 17493, + "start": 17524, + "end": 17536, "loc": { "start": { "line": 444, @@ -142672,8 +142662,8 @@ "postfix": false, "binop": null }, - "start": 17493, - "end": 17494, + "start": 17536, + "end": 17537, "loc": { "start": { "line": 444, @@ -142698,8 +142688,8 @@ "binop": null }, "value": "instanceData", - "start": 17494, - "end": 17506, + "start": 17537, + "end": 17549, "loc": { "start": { "line": 444, @@ -142724,8 +142714,8 @@ "binop": null, "updateContext": null }, - "start": 17506, - "end": 17507, + "start": 17549, + "end": 17550, "loc": { "start": { "line": 444, @@ -142750,8 +142740,8 @@ "binop": null }, "value": "trajectory", - "start": 17507, - "end": 17517, + "start": 17550, + "end": 17560, "loc": { "start": { "line": 444, @@ -142776,8 +142766,8 @@ "binop": null, "updateContext": null }, - "start": 17517, - "end": 17518, + "start": 17560, + "end": 17561, "loc": { "start": { "line": 444, @@ -142802,8 +142792,8 @@ "binop": null }, "value": "angle", - "start": 17518, - "end": 17523, + "start": 17561, + "end": 17566, "loc": { "start": { "line": 444, @@ -142827,8 +142817,8 @@ "postfix": false, "binop": null }, - "start": 17523, - "end": 17524, + "start": 17566, + "end": 17567, "loc": { "start": { "line": 444, @@ -142853,8 +142843,8 @@ "binop": null, "updateContext": null }, - "start": 17524, - "end": 17525, + "start": 17567, + "end": 17568, "loc": { "start": { "line": 444, @@ -142869,8 +142859,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 17533, - "end": 17592, + "start": 17576, + "end": 17635, "loc": { "start": { "line": 445, @@ -142897,8 +142887,8 @@ "updateContext": null }, "value": "if", - "start": 17600, - "end": 17602, + "start": 17643, + "end": 17645, "loc": { "start": { "line": 446, @@ -142922,8 +142912,8 @@ "postfix": false, "binop": null }, - "start": 17603, - "end": 17604, + "start": 17646, + "end": 17647, "loc": { "start": { "line": 446, @@ -142948,8 +142938,8 @@ "binop": null }, "value": "instanceData", - "start": 17604, - "end": 17616, + "start": 17647, + "end": 17659, "loc": { "start": { "line": 446, @@ -142974,8 +142964,8 @@ "binop": null, "updateContext": null }, - "start": 17616, - "end": 17617, + "start": 17659, + "end": 17660, "loc": { "start": { "line": 446, @@ -143000,8 +142990,8 @@ "binop": null }, "value": "mode", - "start": 17617, - "end": 17621, + "start": 17660, + "end": 17664, "loc": { "start": { "line": 446, @@ -143027,8 +143017,8 @@ "updateContext": null }, "value": "===", - "start": 17622, - "end": 17625, + "start": 17665, + "end": 17668, "loc": { "start": { "line": 446, @@ -143054,8 +143044,8 @@ "updateContext": null }, "value": "collision", - "start": 17626, - "end": 17637, + "start": 17669, + "end": 17680, "loc": { "start": { "line": 446, @@ -143079,8 +143069,8 @@ "postfix": false, "binop": null }, - "start": 17637, - "end": 17638, + "start": 17680, + "end": 17681, "loc": { "start": { "line": 446, @@ -143104,8 +143094,8 @@ "postfix": false, "binop": null }, - "start": 17639, - "end": 17640, + "start": 17682, + "end": 17683, "loc": { "start": { "line": 446, @@ -143130,8 +143120,8 @@ "binop": null }, "value": "pInstance", - "start": 17649, - "end": 17658, + "start": 17692, + "end": 17701, "loc": { "start": { "line": 447, @@ -143156,8 +143146,8 @@ "binop": null, "updateContext": null }, - "start": 17658, - "end": 17659, + "start": 17701, + "end": 17702, "loc": { "start": { "line": 447, @@ -143182,8 +143172,8 @@ "binop": null }, "value": "movePos", - "start": 17659, - "end": 17666, + "start": 17702, + "end": 17709, "loc": { "start": { "line": 447, @@ -143207,8 +143197,8 @@ "postfix": false, "binop": null }, - "start": 17666, - "end": 17667, + "start": 17709, + "end": 17710, "loc": { "start": { "line": 447, @@ -143233,8 +143223,8 @@ "binop": null }, "value": "instanceData", - "start": 17667, - "end": 17679, + "start": 17710, + "end": 17722, "loc": { "start": { "line": 447, @@ -143259,8 +143249,8 @@ "binop": null, "updateContext": null }, - "start": 17679, - "end": 17680, + "start": 17722, + "end": 17723, "loc": { "start": { "line": 447, @@ -143285,8 +143275,8 @@ "binop": null }, "value": "trajectory", - "start": 17680, - "end": 17690, + "start": 17723, + "end": 17733, "loc": { "start": { "line": 447, @@ -143311,8 +143301,8 @@ "binop": null, "updateContext": null }, - "start": 17690, - "end": 17691, + "start": 17733, + "end": 17734, "loc": { "start": { "line": 447, @@ -143337,8 +143327,8 @@ "binop": null }, "value": "x", - "start": 17691, - "end": 17692, + "start": 17734, + "end": 17735, "loc": { "start": { "line": 447, @@ -143363,8 +143353,8 @@ "binop": null, "updateContext": null }, - "start": 17692, - "end": 17693, + "start": 17735, + "end": 17736, "loc": { "start": { "line": 447, @@ -143389,8 +143379,8 @@ "binop": null }, "value": "instanceData", - "start": 17694, - "end": 17706, + "start": 17737, + "end": 17749, "loc": { "start": { "line": 447, @@ -143415,8 +143405,8 @@ "binop": null, "updateContext": null }, - "start": 17706, - "end": 17707, + "start": 17749, + "end": 17750, "loc": { "start": { "line": 447, @@ -143441,8 +143431,8 @@ "binop": null }, "value": "trajectory", - "start": 17707, - "end": 17717, + "start": 17750, + "end": 17760, "loc": { "start": { "line": 447, @@ -143467,8 +143457,8 @@ "binop": null, "updateContext": null }, - "start": 17717, - "end": 17718, + "start": 17760, + "end": 17761, "loc": { "start": { "line": 447, @@ -143493,8 +143483,8 @@ "binop": null }, "value": "y", - "start": 17718, - "end": 17719, + "start": 17761, + "end": 17762, "loc": { "start": { "line": 447, @@ -143518,8 +143508,8 @@ "postfix": false, "binop": null }, - "start": 17719, - "end": 17720, + "start": 17762, + "end": 17763, "loc": { "start": { "line": 447, @@ -143544,8 +143534,8 @@ "binop": null, "updateContext": null }, - "start": 17720, - "end": 17721, + "start": 17763, + "end": 17764, "loc": { "start": { "line": 447, @@ -143569,8 +143559,8 @@ "postfix": false, "binop": null }, - "start": 17729, - "end": 17730, + "start": 17772, + "end": 17773, "loc": { "start": { "line": 448, @@ -143597,8 +143587,8 @@ "updateContext": null }, "value": "else", - "start": 17731, - "end": 17735, + "start": 17774, + "end": 17778, "loc": { "start": { "line": 448, @@ -143625,8 +143615,8 @@ "updateContext": null }, "value": "if", - "start": 17736, - "end": 17738, + "start": 17779, + "end": 17781, "loc": { "start": { "line": 448, @@ -143650,8 +143640,8 @@ "postfix": false, "binop": null }, - "start": 17739, - "end": 17740, + "start": 17782, + "end": 17783, "loc": { "start": { "line": 448, @@ -143676,8 +143666,8 @@ "binop": null }, "value": "instanceData", - "start": 17740, - "end": 17752, + "start": 17783, + "end": 17795, "loc": { "start": { "line": 448, @@ -143702,8 +143692,8 @@ "binop": null, "updateContext": null }, - "start": 17752, - "end": 17753, + "start": 17795, + "end": 17796, "loc": { "start": { "line": 448, @@ -143728,8 +143718,8 @@ "binop": null }, "value": "mode", - "start": 17753, - "end": 17757, + "start": 17796, + "end": 17800, "loc": { "start": { "line": 448, @@ -143755,8 +143745,8 @@ "updateContext": null }, "value": "===", - "start": 17758, - "end": 17761, + "start": 17801, + "end": 17804, "loc": { "start": { "line": 448, @@ -143782,8 +143772,8 @@ "updateContext": null }, "value": "position", - "start": 17762, - "end": 17772, + "start": 17805, + "end": 17815, "loc": { "start": { "line": 448, @@ -143807,8 +143797,8 @@ "postfix": false, "binop": null }, - "start": 17772, - "end": 17773, + "start": 17815, + "end": 17816, "loc": { "start": { "line": 448, @@ -143832,8 +143822,8 @@ "postfix": false, "binop": null }, - "start": 17774, - "end": 17775, + "start": 17817, + "end": 17818, "loc": { "start": { "line": 448, @@ -143860,8 +143850,8 @@ "updateContext": null }, "value": "const", - "start": 17784, - "end": 17789, + "start": 17827, + "end": 17832, "loc": { "start": { "line": 449, @@ -143886,8 +143876,8 @@ "binop": null }, "value": "speed", - "start": 17790, - "end": 17795, + "start": 17833, + "end": 17838, "loc": { "start": { "line": 449, @@ -143913,8 +143903,8 @@ "updateContext": null }, "value": "=", - "start": 17796, - "end": 17797, + "start": 17839, + "end": 17840, "loc": { "start": { "line": 449, @@ -143939,8 +143929,8 @@ "binop": null }, "value": "instanceData", - "start": 17798, - "end": 17810, + "start": 17841, + "end": 17853, "loc": { "start": { "line": 449, @@ -143965,8 +143955,8 @@ "binop": null, "updateContext": null }, - "start": 17810, - "end": 17811, + "start": 17853, + "end": 17854, "loc": { "start": { "line": 449, @@ -143991,8 +143981,8 @@ "binop": null }, "value": "pixelsPerSecond", - "start": 17811, - "end": 17826, + "start": 17854, + "end": 17869, "loc": { "start": { "line": 449, @@ -144018,8 +144008,8 @@ "updateContext": null }, "value": "*", - "start": 17827, - "end": 17828, + "start": 17870, + "end": 17871, "loc": { "start": { "line": 449, @@ -144046,8 +144036,8 @@ "updateContext": null }, "value": "this", - "start": 17829, - "end": 17833, + "start": 17872, + "end": 17876, "loc": { "start": { "line": 449, @@ -144072,8 +144062,8 @@ "binop": null, "updateContext": null }, - "start": 17833, - "end": 17834, + "start": 17876, + "end": 17877, "loc": { "start": { "line": 449, @@ -144098,8 +144088,8 @@ "binop": null }, "value": "deltaTime", - "start": 17834, - "end": 17843, + "start": 17877, + "end": 17886, "loc": { "start": { "line": 449, @@ -144124,8 +144114,8 @@ "binop": null, "updateContext": null }, - "start": 17843, - "end": 17844, + "start": 17886, + "end": 17887, "loc": { "start": { "line": 449, @@ -144150,8 +144140,8 @@ "binop": null }, "value": "pInstance", - "start": 17853, - "end": 17862, + "start": 17896, + "end": 17905, "loc": { "start": { "line": 450, @@ -144176,8 +144166,8 @@ "binop": null, "updateContext": null }, - "start": 17862, - "end": 17863, + "start": 17905, + "end": 17906, "loc": { "start": { "line": 450, @@ -144202,8 +144192,8 @@ "binop": null }, "value": "setPos", - "start": 17863, - "end": 17869, + "start": 17906, + "end": 17912, "loc": { "start": { "line": 450, @@ -144227,8 +144217,8 @@ "postfix": false, "binop": null }, - "start": 17869, - "end": 17870, + "start": 17912, + "end": 17913, "loc": { "start": { "line": 450, @@ -144253,8 +144243,8 @@ "binop": null }, "value": "pInstance", - "start": 17870, - "end": 17879, + "start": 17913, + "end": 17922, "loc": { "start": { "line": 450, @@ -144279,8 +144269,8 @@ "binop": null, "updateContext": null }, - "start": 17879, - "end": 17880, + "start": 17922, + "end": 17923, "loc": { "start": { "line": 450, @@ -144305,8 +144295,8 @@ "binop": null }, "value": "x", - "start": 17880, - "end": 17881, + "start": 17923, + "end": 17924, "loc": { "start": { "line": 450, @@ -144332,8 +144322,8 @@ "updateContext": null }, "value": "+", - "start": 17882, - "end": 17883, + "start": 17925, + "end": 17926, "loc": { "start": { "line": 450, @@ -144358,8 +144348,8 @@ "binop": null }, "value": "speed", - "start": 17884, - "end": 17889, + "start": 17927, + "end": 17932, "loc": { "start": { "line": 450, @@ -144385,8 +144375,8 @@ "updateContext": null }, "value": "*", - "start": 17890, - "end": 17891, + "start": 17933, + "end": 17934, "loc": { "start": { "line": 450, @@ -144411,8 +144401,8 @@ "binop": null }, "value": "instanceData", - "start": 17892, - "end": 17904, + "start": 17935, + "end": 17947, "loc": { "start": { "line": 450, @@ -144437,8 +144427,8 @@ "binop": null, "updateContext": null }, - "start": 17904, - "end": 17905, + "start": 17947, + "end": 17948, "loc": { "start": { "line": 450, @@ -144463,8 +144453,8 @@ "binop": null }, "value": "trajectory", - "start": 17905, - "end": 17915, + "start": 17948, + "end": 17958, "loc": { "start": { "line": 450, @@ -144489,8 +144479,8 @@ "binop": null, "updateContext": null }, - "start": 17915, - "end": 17916, + "start": 17958, + "end": 17959, "loc": { "start": { "line": 450, @@ -144515,8 +144505,8 @@ "binop": null }, "value": "x", - "start": 17916, - "end": 17917, + "start": 17959, + "end": 17960, "loc": { "start": { "line": 450, @@ -144541,8 +144531,8 @@ "binop": null, "updateContext": null }, - "start": 17917, - "end": 17918, + "start": 17960, + "end": 17961, "loc": { "start": { "line": 450, @@ -144567,8 +144557,8 @@ "binop": null }, "value": "pInstance", - "start": 17919, - "end": 17928, + "start": 17962, + "end": 17971, "loc": { "start": { "line": 450, @@ -144593,8 +144583,8 @@ "binop": null, "updateContext": null }, - "start": 17928, - "end": 17929, + "start": 17971, + "end": 17972, "loc": { "start": { "line": 450, @@ -144619,8 +144609,8 @@ "binop": null }, "value": "y", - "start": 17929, - "end": 17930, + "start": 17972, + "end": 17973, "loc": { "start": { "line": 450, @@ -144646,8 +144636,8 @@ "updateContext": null }, "value": "+", - "start": 17931, - "end": 17932, + "start": 17974, + "end": 17975, "loc": { "start": { "line": 450, @@ -144672,8 +144662,8 @@ "binop": null }, "value": "speed", - "start": 17933, - "end": 17938, + "start": 17976, + "end": 17981, "loc": { "start": { "line": 450, @@ -144699,8 +144689,8 @@ "updateContext": null }, "value": "*", - "start": 17939, - "end": 17940, + "start": 17982, + "end": 17983, "loc": { "start": { "line": 450, @@ -144725,8 +144715,8 @@ "binop": null }, "value": "instanceData", - "start": 17941, - "end": 17953, + "start": 17984, + "end": 17996, "loc": { "start": { "line": 450, @@ -144751,8 +144741,8 @@ "binop": null, "updateContext": null }, - "start": 17953, - "end": 17954, + "start": 17996, + "end": 17997, "loc": { "start": { "line": 450, @@ -144777,8 +144767,8 @@ "binop": null }, "value": "trajectory", - "start": 17954, - "end": 17964, + "start": 17997, + "end": 18007, "loc": { "start": { "line": 450, @@ -144803,8 +144793,8 @@ "binop": null, "updateContext": null }, - "start": 17964, - "end": 17965, + "start": 18007, + "end": 18008, "loc": { "start": { "line": 450, @@ -144829,8 +144819,8 @@ "binop": null }, "value": "y", - "start": 17965, - "end": 17966, + "start": 18008, + "end": 18009, "loc": { "start": { "line": 450, @@ -144855,8 +144845,8 @@ "binop": null, "updateContext": null }, - "start": 17966, - "end": 17967, + "start": 18009, + "end": 18010, "loc": { "start": { "line": 450, @@ -144881,8 +144871,8 @@ "binop": null }, "value": "pInstance", - "start": 17968, - "end": 17977, + "start": 18011, + "end": 18020, "loc": { "start": { "line": 450, @@ -144907,8 +144897,8 @@ "binop": null, "updateContext": null }, - "start": 17977, - "end": 17978, + "start": 18020, + "end": 18021, "loc": { "start": { "line": 450, @@ -144933,8 +144923,8 @@ "binop": null }, "value": "mapName", - "start": 17978, - "end": 17985, + "start": 18021, + "end": 18028, "loc": { "start": { "line": 450, @@ -144958,8 +144948,8 @@ "postfix": false, "binop": null }, - "start": 17985, - "end": 17986, + "start": 18028, + "end": 18029, "loc": { "start": { "line": 450, @@ -144984,8 +144974,8 @@ "binop": null, "updateContext": null }, - "start": 17986, - "end": 17987, + "start": 18029, + "end": 18030, "loc": { "start": { "line": 450, @@ -145009,8 +144999,8 @@ "postfix": false, "binop": null }, - "start": 17995, - "end": 17996, + "start": 18038, + "end": 18039, "loc": { "start": { "line": 451, @@ -145035,8 +145025,8 @@ "binop": null }, "value": "instanceData", - "start": 18004, - "end": 18016, + "start": 18047, + "end": 18059, "loc": { "start": { "line": 452, @@ -145061,8 +145051,8 @@ "binop": null, "updateContext": null }, - "start": 18016, - "end": 18017, + "start": 18059, + "end": 18060, "loc": { "start": { "line": 452, @@ -145087,8 +145077,8 @@ "binop": null }, "value": "moving", - "start": 18017, - "end": 18023, + "start": 18060, + "end": 18066, "loc": { "start": { "line": 452, @@ -145114,8 +145104,8 @@ "updateContext": null }, "value": "=", - "start": 18024, - "end": 18025, + "start": 18067, + "end": 18068, "loc": { "start": { "line": 452, @@ -145142,8 +145132,8 @@ "updateContext": null }, "value": "true", - "start": 18026, - "end": 18030, + "start": 18069, + "end": 18073, "loc": { "start": { "line": 452, @@ -145168,8 +145158,8 @@ "binop": null, "updateContext": null }, - "start": 18030, - "end": 18031, + "start": 18073, + "end": 18074, "loc": { "start": { "line": 452, @@ -145193,8 +145183,8 @@ "postfix": false, "binop": null }, - "start": 18038, - "end": 18039, + "start": 18081, + "end": 18082, "loc": { "start": { "line": 453, @@ -145221,8 +145211,8 @@ "updateContext": null }, "value": "else", - "start": 18040, - "end": 18044, + "start": 18083, + "end": 18087, "loc": { "start": { "line": 453, @@ -145246,8 +145236,8 @@ "postfix": false, "binop": null }, - "start": 18045, - "end": 18046, + "start": 18088, + "end": 18089, "loc": { "start": { "line": 453, @@ -145262,8 +145252,8 @@ { "type": "CommentLine", "value": " Get the distance from the instance's position to the next node's position.", - "start": 18054, - "end": 18131, + "start": 18097, + "end": 18174, "loc": { "start": { "line": 454, @@ -145290,8 +145280,8 @@ "updateContext": null }, "value": "const", - "start": 18139, - "end": 18144, + "start": 18182, + "end": 18187, "loc": { "start": { "line": 455, @@ -145316,8 +145306,8 @@ "binop": null }, "value": "distance", - "start": 18145, - "end": 18153, + "start": 18188, + "end": 18196, "loc": { "start": { "line": 455, @@ -145343,8 +145333,8 @@ "updateContext": null }, "value": "=", - "start": 18154, - "end": 18155, + "start": 18197, + "end": 18198, "loc": { "start": { "line": 455, @@ -145369,8 +145359,8 @@ "binop": null }, "value": "Utils", - "start": 18156, - "end": 18161, + "start": 18199, + "end": 18204, "loc": { "start": { "line": 455, @@ -145395,8 +145385,8 @@ "binop": null, "updateContext": null }, - "start": 18161, - "end": 18162, + "start": 18204, + "end": 18205, "loc": { "start": { "line": 455, @@ -145421,8 +145411,8 @@ "binop": null }, "value": "getDistance", - "start": 18162, - "end": 18173, + "start": 18205, + "end": 18216, "loc": { "start": { "line": 455, @@ -145446,8 +145436,8 @@ "postfix": false, "binop": null }, - "start": 18173, - "end": 18174, + "start": 18216, + "end": 18217, "loc": { "start": { "line": 455, @@ -145472,8 +145462,8 @@ "binop": null }, "value": "instancePosition", - "start": 18174, - "end": 18190, + "start": 18217, + "end": 18233, "loc": { "start": { "line": 455, @@ -145498,8 +145488,8 @@ "binop": null, "updateContext": null }, - "start": 18190, - "end": 18191, + "start": 18233, + "end": 18234, "loc": { "start": { "line": 455, @@ -145524,8 +145514,8 @@ "binop": null }, "value": "instanceData", - "start": 18192, - "end": 18204, + "start": 18235, + "end": 18247, "loc": { "start": { "line": 455, @@ -145550,8 +145540,8 @@ "binop": null, "updateContext": null }, - "start": 18204, - "end": 18205, + "start": 18247, + "end": 18248, "loc": { "start": { "line": 455, @@ -145576,8 +145566,8 @@ "binop": null }, "value": "trajectory", - "start": 18205, - "end": 18215, + "start": 18248, + "end": 18258, "loc": { "start": { "line": 455, @@ -145602,8 +145592,8 @@ "binop": null, "updateContext": null }, - "start": 18215, - "end": 18216, + "start": 18258, + "end": 18259, "loc": { "start": { "line": 455, @@ -145628,8 +145618,8 @@ "binop": null }, "value": "nextNodePos", - "start": 18216, - "end": 18227, + "start": 18259, + "end": 18270, "loc": { "start": { "line": 455, @@ -145653,8 +145643,8 @@ "postfix": false, "binop": null }, - "start": 18227, - "end": 18228, + "start": 18270, + "end": 18271, "loc": { "start": { "line": 455, @@ -145679,8 +145669,8 @@ "binop": null, "updateContext": null }, - "start": 18228, - "end": 18229, + "start": 18271, + "end": 18272, "loc": { "start": { "line": 455, @@ -145695,8 +145685,8 @@ { "type": "CommentLine", "value": " Stop moving when you are this close distance.", - "start": 18237, - "end": 18285, + "start": 18280, + "end": 18328, "loc": { "start": { "line": 456, @@ -145723,8 +145713,8 @@ "updateContext": null }, "value": "if", - "start": 18293, - "end": 18295, + "start": 18336, + "end": 18338, "loc": { "start": { "line": 457, @@ -145748,8 +145738,8 @@ "postfix": false, "binop": null }, - "start": 18296, - "end": 18297, + "start": 18339, + "end": 18340, "loc": { "start": { "line": 457, @@ -145774,8 +145764,8 @@ "binop": null }, "value": "distance", - "start": 18297, - "end": 18305, + "start": 18340, + "end": 18348, "loc": { "start": { "line": 457, @@ -145801,8 +145791,8 @@ "updateContext": null }, "value": "<=", - "start": 18306, - "end": 18308, + "start": 18349, + "end": 18351, "loc": { "start": { "line": 457, @@ -145827,8 +145817,8 @@ "binop": null }, "value": "instanceData", - "start": 18309, - "end": 18321, + "start": 18352, + "end": 18364, "loc": { "start": { "line": 457, @@ -145853,8 +145843,8 @@ "binop": null, "updateContext": null }, - "start": 18321, - "end": 18322, + "start": 18364, + "end": 18365, "loc": { "start": { "line": 457, @@ -145879,8 +145869,8 @@ "binop": null }, "value": "minDistance", - "start": 18322, - "end": 18333, + "start": 18365, + "end": 18376, "loc": { "start": { "line": 457, @@ -145904,8 +145894,8 @@ "postfix": false, "binop": null }, - "start": 18333, - "end": 18334, + "start": 18376, + "end": 18377, "loc": { "start": { "line": 457, @@ -145929,8 +145919,8 @@ "postfix": false, "binop": null }, - "start": 18335, - "end": 18336, + "start": 18378, + "end": 18379, "loc": { "start": { "line": 457, @@ -145945,8 +145935,8 @@ { "type": "CommentLine", "value": " Stop moving", - "start": 18345, - "end": 18359, + "start": 18388, + "end": 18402, "loc": { "start": { "line": 458, @@ -145971,8 +145961,8 @@ "binop": null }, "value": "instanceData", - "start": 18368, - "end": 18380, + "start": 18411, + "end": 18423, "loc": { "start": { "line": 459, @@ -145997,8 +145987,8 @@ "binop": null, "updateContext": null }, - "start": 18380, - "end": 18381, + "start": 18423, + "end": 18424, "loc": { "start": { "line": 459, @@ -146023,8 +146013,8 @@ "binop": null }, "value": "moving", - "start": 18381, - "end": 18387, + "start": 18424, + "end": 18430, "loc": { "start": { "line": 459, @@ -146050,8 +146040,8 @@ "updateContext": null }, "value": "=", - "start": 18388, - "end": 18389, + "start": 18431, + "end": 18432, "loc": { "start": { "line": 459, @@ -146078,8 +146068,8 @@ "updateContext": null }, "value": "false", - "start": 18390, - "end": 18395, + "start": 18433, + "end": 18438, "loc": { "start": { "line": 459, @@ -146104,8 +146094,8 @@ "binop": null, "updateContext": null }, - "start": 18395, - "end": 18396, + "start": 18438, + "end": 18439, "loc": { "start": { "line": 459, @@ -146120,8 +146110,8 @@ { "type": "CommentLine", "value": " Reset stuck counter when moving has \"stopped\".", - "start": 18405, - "end": 18454, + "start": 18448, + "end": 18497, "loc": { "start": { "line": 460, @@ -146146,8 +146136,8 @@ "binop": null }, "value": "instanceData", - "start": 18463, - "end": 18475, + "start": 18506, + "end": 18518, "loc": { "start": { "line": 461, @@ -146172,8 +146162,8 @@ "binop": null, "updateContext": null }, - "start": 18475, - "end": 18476, + "start": 18518, + "end": 18519, "loc": { "start": { "line": 461, @@ -146198,8 +146188,8 @@ "binop": null }, "value": "stuckCounter", - "start": 18476, - "end": 18488, + "start": 18519, + "end": 18531, "loc": { "start": { "line": 461, @@ -146225,8 +146215,8 @@ "updateContext": null }, "value": "=", - "start": 18489, - "end": 18490, + "start": 18532, + "end": 18533, "loc": { "start": { "line": 461, @@ -146252,8 +146242,8 @@ "updateContext": null }, "value": 0, - "start": 18491, - "end": 18492, + "start": 18534, + "end": 18535, "loc": { "start": { "line": 461, @@ -146278,8 +146268,8 @@ "binop": null, "updateContext": null }, - "start": 18492, - "end": 18493, + "start": 18535, + "end": 18536, "loc": { "start": { "line": 461, @@ -146294,8 +146284,8 @@ { "type": "CommentLine", "value": " If there is no more nodes left in the path", - "start": 18502, - "end": 18547, + "start": 18545, + "end": 18590, "loc": { "start": { "line": 462, @@ -146322,8 +146312,8 @@ "updateContext": null }, "value": "if", - "start": 18556, - "end": 18558, + "start": 18599, + "end": 18601, "loc": { "start": { "line": 463, @@ -146347,8 +146337,8 @@ "postfix": false, "binop": null }, - "start": 18559, - "end": 18560, + "start": 18602, + "end": 18603, "loc": { "start": { "line": 463, @@ -146374,8 +146364,8 @@ "updateContext": null }, "value": "!", - "start": 18560, - "end": 18561, + "start": 18603, + "end": 18604, "loc": { "start": { "line": 463, @@ -146400,8 +146390,8 @@ "binop": null }, "value": "instanceData", - "start": 18561, - "end": 18573, + "start": 18604, + "end": 18616, "loc": { "start": { "line": 463, @@ -146426,8 +146416,8 @@ "binop": null, "updateContext": null }, - "start": 18573, - "end": 18574, + "start": 18616, + "end": 18617, "loc": { "start": { "line": 463, @@ -146452,8 +146442,8 @@ "binop": null }, "value": "path", - "start": 18574, - "end": 18578, + "start": 18617, + "end": 18621, "loc": { "start": { "line": 463, @@ -146478,8 +146468,8 @@ "binop": null, "updateContext": null }, - "start": 18578, - "end": 18579, + "start": 18621, + "end": 18622, "loc": { "start": { "line": 463, @@ -146504,8 +146494,8 @@ "binop": null }, "value": "length", - "start": 18579, - "end": 18585, + "start": 18622, + "end": 18628, "loc": { "start": { "line": 463, @@ -146529,8 +146519,8 @@ "postfix": false, "binop": null }, - "start": 18585, - "end": 18586, + "start": 18628, + "end": 18629, "loc": { "start": { "line": 463, @@ -146554,8 +146544,8 @@ "postfix": false, "binop": null }, - "start": 18587, - "end": 18588, + "start": 18630, + "end": 18631, "loc": { "start": { "line": 463, @@ -146570,8 +146560,8 @@ { "type": "CommentLine", "value": " You have completed the path. Call the event function if supplied.", - "start": 18598, - "end": 18666, + "start": 18641, + "end": 18709, "loc": { "start": { "line": 464, @@ -146598,8 +146588,8 @@ "updateContext": null }, "value": "if", - "start": 18676, - "end": 18678, + "start": 18719, + "end": 18721, "loc": { "start": { "line": 465, @@ -146623,8 +146613,8 @@ "postfix": false, "binop": null }, - "start": 18679, - "end": 18680, + "start": 18722, + "end": 18723, "loc": { "start": { "line": 465, @@ -146651,8 +146641,8 @@ "updateContext": null }, "value": "typeof", - "start": 18680, - "end": 18686, + "start": 18723, + "end": 18729, "loc": { "start": { "line": 465, @@ -146676,8 +146666,8 @@ "postfix": false, "binop": null }, - "start": 18686, - "end": 18687, + "start": 18729, + "end": 18730, "loc": { "start": { "line": 465, @@ -146702,8 +146692,8 @@ "binop": null }, "value": "instanceData", - "start": 18687, - "end": 18699, + "start": 18730, + "end": 18742, "loc": { "start": { "line": 465, @@ -146728,8 +146718,8 @@ "binop": null, "updateContext": null }, - "start": 18699, - "end": 18700, + "start": 18742, + "end": 18743, "loc": { "start": { "line": 465, @@ -146754,8 +146744,8 @@ "binop": null }, "value": "events", - "start": 18700, - "end": 18706, + "start": 18743, + "end": 18749, "loc": { "start": { "line": 465, @@ -146780,8 +146770,8 @@ "binop": null, "updateContext": null }, - "start": 18706, - "end": 18707, + "start": 18749, + "end": 18750, "loc": { "start": { "line": 465, @@ -146806,8 +146796,8 @@ "binop": null }, "value": "onPathComplete", - "start": 18707, - "end": 18721, + "start": 18750, + "end": 18764, "loc": { "start": { "line": 465, @@ -146831,8 +146821,8 @@ "postfix": false, "binop": null }, - "start": 18721, - "end": 18722, + "start": 18764, + "end": 18765, "loc": { "start": { "line": 465, @@ -146858,8 +146848,8 @@ "updateContext": null }, "value": "===", - "start": 18723, - "end": 18726, + "start": 18766, + "end": 18769, "loc": { "start": { "line": 465, @@ -146885,8 +146875,8 @@ "updateContext": null }, "value": "function", - "start": 18727, - "end": 18737, + "start": 18770, + "end": 18780, "loc": { "start": { "line": 465, @@ -146910,8 +146900,8 @@ "postfix": false, "binop": null }, - "start": 18737, - "end": 18738, + "start": 18780, + "end": 18781, "loc": { "start": { "line": 465, @@ -146935,8 +146925,8 @@ "postfix": false, "binop": null }, - "start": 18739, - "end": 18740, + "start": 18782, + "end": 18783, "loc": { "start": { "line": 465, @@ -146961,8 +146951,8 @@ "binop": null }, "value": "instanceData", - "start": 18751, - "end": 18763, + "start": 18794, + "end": 18806, "loc": { "start": { "line": 466, @@ -146987,8 +146977,8 @@ "binop": null, "updateContext": null }, - "start": 18763, - "end": 18764, + "start": 18806, + "end": 18807, "loc": { "start": { "line": 466, @@ -147013,8 +147003,8 @@ "binop": null }, "value": "events", - "start": 18764, - "end": 18770, + "start": 18807, + "end": 18813, "loc": { "start": { "line": 466, @@ -147039,8 +147029,8 @@ "binop": null, "updateContext": null }, - "start": 18770, - "end": 18771, + "start": 18813, + "end": 18814, "loc": { "start": { "line": 466, @@ -147065,8 +147055,8 @@ "binop": null }, "value": "onPathComplete", - "start": 18771, - "end": 18785, + "start": 18814, + "end": 18828, "loc": { "start": { "line": 466, @@ -147090,8 +147080,8 @@ "postfix": false, "binop": null }, - "start": 18785, - "end": 18786, + "start": 18828, + "end": 18829, "loc": { "start": { "line": 466, @@ -147115,8 +147105,8 @@ "postfix": false, "binop": null }, - "start": 18786, - "end": 18787, + "start": 18829, + "end": 18830, "loc": { "start": { "line": 466, @@ -147141,8 +147131,8 @@ "binop": null, "updateContext": null }, - "start": 18787, - "end": 18788, + "start": 18830, + "end": 18831, "loc": { "start": { "line": 466, @@ -147166,8 +147156,8 @@ "postfix": false, "binop": null }, - "start": 18798, - "end": 18799, + "start": 18841, + "end": 18842, "loc": { "start": { "line": 467, @@ -147194,8 +147184,8 @@ "updateContext": null }, "value": "this", - "start": 18809, - "end": 18813, + "start": 18852, + "end": 18856, "loc": { "start": { "line": 468, @@ -147220,8 +147210,8 @@ "binop": null, "updateContext": null }, - "start": 18813, - "end": 18814, + "start": 18856, + "end": 18857, "loc": { "start": { "line": 468, @@ -147246,8 +147236,8 @@ "binop": null }, "value": "end", - "start": 18814, - "end": 18817, + "start": 18857, + "end": 18860, "loc": { "start": { "line": 468, @@ -147271,8 +147261,8 @@ "postfix": false, "binop": null }, - "start": 18817, - "end": 18818, + "start": 18860, + "end": 18861, "loc": { "start": { "line": 468, @@ -147297,8 +147287,8 @@ "binop": null }, "value": "pInstance", - "start": 18818, - "end": 18827, + "start": 18861, + "end": 18870, "loc": { "start": { "line": 468, @@ -147322,8 +147312,8 @@ "postfix": false, "binop": null }, - "start": 18827, - "end": 18828, + "start": 18870, + "end": 18871, "loc": { "start": { "line": 468, @@ -147348,8 +147338,8 @@ "binop": null, "updateContext": null }, - "start": 18828, - "end": 18829, + "start": 18871, + "end": 18872, "loc": { "start": { "line": 468, @@ -147373,8 +147363,8 @@ "postfix": false, "binop": null }, - "start": 18838, - "end": 18839, + "start": 18881, + "end": 18882, "loc": { "start": { "line": 469, @@ -147398,8 +147388,8 @@ "postfix": false, "binop": null }, - "start": 18847, - "end": 18848, + "start": 18890, + "end": 18891, "loc": { "start": { "line": 470, @@ -147426,8 +147416,8 @@ "updateContext": null }, "value": "else", - "start": 18849, - "end": 18853, + "start": 18892, + "end": 18896, "loc": { "start": { "line": 470, @@ -147451,8 +147441,8 @@ "postfix": false, "binop": null }, - "start": 18854, - "end": 18855, + "start": 18897, + "end": 18898, "loc": { "start": { "line": 470, @@ -147477,8 +147467,8 @@ "binop": null }, "value": "instanceData", - "start": 18864, - "end": 18876, + "start": 18907, + "end": 18919, "loc": { "start": { "line": 471, @@ -147503,8 +147493,8 @@ "binop": null, "updateContext": null }, - "start": 18876, - "end": 18877, + "start": 18919, + "end": 18920, "loc": { "start": { "line": 471, @@ -147529,8 +147519,8 @@ "binop": null }, "value": "trajectory", - "start": 18877, - "end": 18887, + "start": 18920, + "end": 18930, "loc": { "start": { "line": 471, @@ -147555,8 +147545,8 @@ "binop": null, "updateContext": null }, - "start": 18887, - "end": 18888, + "start": 18930, + "end": 18931, "loc": { "start": { "line": 471, @@ -147581,8 +147571,8 @@ "binop": null }, "value": "angle", - "start": 18888, - "end": 18893, + "start": 18931, + "end": 18936, "loc": { "start": { "line": 471, @@ -147608,8 +147598,8 @@ "updateContext": null }, "value": "=", - "start": 18894, - "end": 18895, + "start": 18937, + "end": 18938, "loc": { "start": { "line": 471, @@ -147634,8 +147624,8 @@ "binop": null }, "value": "Utils", - "start": 18896, - "end": 18901, + "start": 18939, + "end": 18944, "loc": { "start": { "line": 471, @@ -147660,8 +147650,8 @@ "binop": null, "updateContext": null }, - "start": 18901, - "end": 18902, + "start": 18944, + "end": 18945, "loc": { "start": { "line": 471, @@ -147686,8 +147676,8 @@ "binop": null }, "value": "getAngle2", - "start": 18902, - "end": 18911, + "start": 18945, + "end": 18954, "loc": { "start": { "line": 471, @@ -147711,8 +147701,8 @@ "postfix": false, "binop": null }, - "start": 18911, - "end": 18912, + "start": 18954, + "end": 18955, "loc": { "start": { "line": 471, @@ -147737,8 +147727,8 @@ "binop": null }, "value": "instancePosition", - "start": 18912, - "end": 18928, + "start": 18955, + "end": 18971, "loc": { "start": { "line": 471, @@ -147763,8 +147753,8 @@ "binop": null, "updateContext": null }, - "start": 18928, - "end": 18929, + "start": 18971, + "end": 18972, "loc": { "start": { "line": 471, @@ -147789,8 +147779,8 @@ "binop": null }, "value": "instanceData", - "start": 18930, - "end": 18942, + "start": 18973, + "end": 18985, "loc": { "start": { "line": 471, @@ -147815,8 +147805,8 @@ "binop": null, "updateContext": null }, - "start": 18942, - "end": 18943, + "start": 18985, + "end": 18986, "loc": { "start": { "line": 471, @@ -147841,8 +147831,8 @@ "binop": null }, "value": "trajectory", - "start": 18943, - "end": 18953, + "start": 18986, + "end": 18996, "loc": { "start": { "line": 471, @@ -147867,8 +147857,8 @@ "binop": null, "updateContext": null }, - "start": 18953, - "end": 18954, + "start": 18996, + "end": 18997, "loc": { "start": { "line": 471, @@ -147893,8 +147883,8 @@ "binop": null }, "value": "nextNodePos", - "start": 18954, - "end": 18965, + "start": 18997, + "end": 19008, "loc": { "start": { "line": 471, @@ -147918,8 +147908,8 @@ "postfix": false, "binop": null }, - "start": 18965, - "end": 18966, + "start": 19008, + "end": 19009, "loc": { "start": { "line": 471, @@ -147944,8 +147934,8 @@ "binop": null, "updateContext": null }, - "start": 18966, - "end": 18967, + "start": 19009, + "end": 19010, "loc": { "start": { "line": 471, @@ -147970,8 +147960,8 @@ "binop": null }, "value": "instanceData", - "start": 18976, - "end": 18988, + "start": 19019, + "end": 19031, "loc": { "start": { "line": 472, @@ -147996,8 +147986,8 @@ "binop": null, "updateContext": null }, - "start": 18988, - "end": 18989, + "start": 19031, + "end": 19032, "loc": { "start": { "line": 472, @@ -148022,8 +148012,8 @@ "binop": null }, "value": "trajectory", - "start": 18989, - "end": 18999, + "start": 19032, + "end": 19042, "loc": { "start": { "line": 472, @@ -148048,8 +148038,8 @@ "binop": null, "updateContext": null }, - "start": 18999, - "end": 19000, + "start": 19042, + "end": 19043, "loc": { "start": { "line": 472, @@ -148074,8 +148064,8 @@ "binop": null }, "value": "x", - "start": 19000, - "end": 19001, + "start": 19043, + "end": 19044, "loc": { "start": { "line": 472, @@ -148101,8 +148091,8 @@ "updateContext": null }, "value": "=", - "start": 19002, - "end": 19003, + "start": 19045, + "end": 19046, "loc": { "start": { "line": 472, @@ -148127,8 +148117,8 @@ "binop": null }, "value": "Math", - "start": 19004, - "end": 19008, + "start": 19047, + "end": 19051, "loc": { "start": { "line": 472, @@ -148153,8 +148143,8 @@ "binop": null, "updateContext": null }, - "start": 19008, - "end": 19009, + "start": 19051, + "end": 19052, "loc": { "start": { "line": 472, @@ -148179,8 +148169,8 @@ "binop": null }, "value": "cos", - "start": 19009, - "end": 19012, + "start": 19052, + "end": 19055, "loc": { "start": { "line": 472, @@ -148204,8 +148194,8 @@ "postfix": false, "binop": null }, - "start": 19012, - "end": 19013, + "start": 19055, + "end": 19056, "loc": { "start": { "line": 472, @@ -148230,8 +148220,8 @@ "binop": null }, "value": "instanceData", - "start": 19013, - "end": 19025, + "start": 19056, + "end": 19068, "loc": { "start": { "line": 472, @@ -148256,8 +148246,8 @@ "binop": null, "updateContext": null }, - "start": 19025, - "end": 19026, + "start": 19068, + "end": 19069, "loc": { "start": { "line": 472, @@ -148282,8 +148272,8 @@ "binop": null }, "value": "trajectory", - "start": 19026, - "end": 19036, + "start": 19069, + "end": 19079, "loc": { "start": { "line": 472, @@ -148308,8 +148298,8 @@ "binop": null, "updateContext": null }, - "start": 19036, - "end": 19037, + "start": 19079, + "end": 19080, "loc": { "start": { "line": 472, @@ -148334,8 +148324,8 @@ "binop": null }, "value": "angle", - "start": 19037, - "end": 19042, + "start": 19080, + "end": 19085, "loc": { "start": { "line": 472, @@ -148359,8 +148349,8 @@ "postfix": false, "binop": null }, - "start": 19042, - "end": 19043, + "start": 19085, + "end": 19086, "loc": { "start": { "line": 472, @@ -148385,8 +148375,8 @@ "binop": null, "updateContext": null }, - "start": 19043, - "end": 19044, + "start": 19086, + "end": 19087, "loc": { "start": { "line": 472, @@ -148411,8 +148401,8 @@ "binop": null }, "value": "instanceData", - "start": 19053, - "end": 19065, + "start": 19096, + "end": 19108, "loc": { "start": { "line": 473, @@ -148437,8 +148427,8 @@ "binop": null, "updateContext": null }, - "start": 19065, - "end": 19066, + "start": 19108, + "end": 19109, "loc": { "start": { "line": 473, @@ -148463,8 +148453,8 @@ "binop": null }, "value": "trajectory", - "start": 19066, - "end": 19076, + "start": 19109, + "end": 19119, "loc": { "start": { "line": 473, @@ -148489,8 +148479,8 @@ "binop": null, "updateContext": null }, - "start": 19076, - "end": 19077, + "start": 19119, + "end": 19120, "loc": { "start": { "line": 473, @@ -148515,8 +148505,8 @@ "binop": null }, "value": "y", - "start": 19077, - "end": 19078, + "start": 19120, + "end": 19121, "loc": { "start": { "line": 473, @@ -148542,8 +148532,8 @@ "updateContext": null }, "value": "=", - "start": 19079, - "end": 19080, + "start": 19122, + "end": 19123, "loc": { "start": { "line": 473, @@ -148569,8 +148559,8 @@ "updateContext": null }, "value": "-", - "start": 19081, - "end": 19082, + "start": 19124, + "end": 19125, "loc": { "start": { "line": 473, @@ -148595,8 +148585,8 @@ "binop": null }, "value": "Math", - "start": 19082, - "end": 19086, + "start": 19125, + "end": 19129, "loc": { "start": { "line": 473, @@ -148621,8 +148611,8 @@ "binop": null, "updateContext": null }, - "start": 19086, - "end": 19087, + "start": 19129, + "end": 19130, "loc": { "start": { "line": 473, @@ -148647,8 +148637,8 @@ "binop": null }, "value": "sin", - "start": 19087, - "end": 19090, + "start": 19130, + "end": 19133, "loc": { "start": { "line": 473, @@ -148672,8 +148662,8 @@ "postfix": false, "binop": null }, - "start": 19090, - "end": 19091, + "start": 19133, + "end": 19134, "loc": { "start": { "line": 473, @@ -148698,8 +148688,8 @@ "binop": null }, "value": "instanceData", - "start": 19091, - "end": 19103, + "start": 19134, + "end": 19146, "loc": { "start": { "line": 473, @@ -148724,8 +148714,8 @@ "binop": null, "updateContext": null }, - "start": 19103, - "end": 19104, + "start": 19146, + "end": 19147, "loc": { "start": { "line": 473, @@ -148750,8 +148740,8 @@ "binop": null }, "value": "trajectory", - "start": 19104, - "end": 19114, + "start": 19147, + "end": 19157, "loc": { "start": { "line": 473, @@ -148776,8 +148766,8 @@ "binop": null, "updateContext": null }, - "start": 19114, - "end": 19115, + "start": 19157, + "end": 19158, "loc": { "start": { "line": 473, @@ -148802,8 +148792,8 @@ "binop": null }, "value": "angle", - "start": 19115, - "end": 19120, + "start": 19158, + "end": 19163, "loc": { "start": { "line": 473, @@ -148827,8 +148817,8 @@ "postfix": false, "binop": null }, - "start": 19120, - "end": 19121, + "start": 19163, + "end": 19164, "loc": { "start": { "line": 473, @@ -148853,8 +148843,8 @@ "binop": null, "updateContext": null }, - "start": 19121, - "end": 19122, + "start": 19164, + "end": 19165, "loc": { "start": { "line": 473, @@ -148879,8 +148869,8 @@ "binop": null }, "value": "pInstance", - "start": 19131, - "end": 19140, + "start": 19174, + "end": 19183, "loc": { "start": { "line": 474, @@ -148905,8 +148895,8 @@ "binop": null, "updateContext": null }, - "start": 19140, - "end": 19141, + "start": 19183, + "end": 19184, "loc": { "start": { "line": 474, @@ -148931,8 +148921,8 @@ "binop": null }, "value": "dir", - "start": 19141, - "end": 19144, + "start": 19184, + "end": 19187, "loc": { "start": { "line": 474, @@ -148958,8 +148948,8 @@ "updateContext": null }, "value": "=", - "start": 19145, - "end": 19146, + "start": 19188, + "end": 19189, "loc": { "start": { "line": 474, @@ -148984,8 +148974,8 @@ "binop": null }, "value": "Utils", - "start": 19147, - "end": 19152, + "start": 19190, + "end": 19195, "loc": { "start": { "line": 474, @@ -149010,8 +149000,8 @@ "binop": null, "updateContext": null }, - "start": 19152, - "end": 19153, + "start": 19195, + "end": 19196, "loc": { "start": { "line": 474, @@ -149036,8 +149026,8 @@ "binop": null }, "value": "getDirection", - "start": 19153, - "end": 19165, + "start": 19196, + "end": 19208, "loc": { "start": { "line": 474, @@ -149061,8 +149051,8 @@ "postfix": false, "binop": null }, - "start": 19165, - "end": 19166, + "start": 19208, + "end": 19209, "loc": { "start": { "line": 474, @@ -149087,8 +149077,8 @@ "binop": null }, "value": "instanceData", - "start": 19166, - "end": 19178, + "start": 19209, + "end": 19221, "loc": { "start": { "line": 474, @@ -149113,8 +149103,8 @@ "binop": null, "updateContext": null }, - "start": 19178, - "end": 19179, + "start": 19221, + "end": 19222, "loc": { "start": { "line": 474, @@ -149139,8 +149129,8 @@ "binop": null }, "value": "trajectory", - "start": 19179, - "end": 19189, + "start": 19222, + "end": 19232, "loc": { "start": { "line": 474, @@ -149165,8 +149155,8 @@ "binop": null, "updateContext": null }, - "start": 19189, - "end": 19190, + "start": 19232, + "end": 19233, "loc": { "start": { "line": 474, @@ -149191,8 +149181,8 @@ "binop": null }, "value": "angle", - "start": 19190, - "end": 19195, + "start": 19233, + "end": 19238, "loc": { "start": { "line": 474, @@ -149216,8 +149206,8 @@ "postfix": false, "binop": null }, - "start": 19195, - "end": 19196, + "start": 19238, + "end": 19239, "loc": { "start": { "line": 474, @@ -149242,8 +149232,8 @@ "binop": null, "updateContext": null }, - "start": 19196, - "end": 19197, + "start": 19239, + "end": 19240, "loc": { "start": { "line": 474, @@ -149258,8 +149248,8 @@ { "type": "CommentLine", "value": " Move the instance with collision mode or positional mode", - "start": 19206, - "end": 19265, + "start": 19249, + "end": 19308, "loc": { "start": { "line": 475, @@ -149286,8 +149276,8 @@ "updateContext": null }, "value": "if", - "start": 19274, - "end": 19276, + "start": 19317, + "end": 19319, "loc": { "start": { "line": 476, @@ -149311,8 +149301,8 @@ "postfix": false, "binop": null }, - "start": 19277, - "end": 19278, + "start": 19320, + "end": 19321, "loc": { "start": { "line": 476, @@ -149337,8 +149327,8 @@ "binop": null }, "value": "instanceData", - "start": 19278, - "end": 19290, + "start": 19321, + "end": 19333, "loc": { "start": { "line": 476, @@ -149363,8 +149353,8 @@ "binop": null, "updateContext": null }, - "start": 19290, - "end": 19291, + "start": 19333, + "end": 19334, "loc": { "start": { "line": 476, @@ -149389,8 +149379,8 @@ "binop": null }, "value": "mode", - "start": 19291, - "end": 19295, + "start": 19334, + "end": 19338, "loc": { "start": { "line": 476, @@ -149416,8 +149406,8 @@ "updateContext": null }, "value": "===", - "start": 19296, - "end": 19299, + "start": 19339, + "end": 19342, "loc": { "start": { "line": 476, @@ -149443,8 +149433,8 @@ "updateContext": null }, "value": "collision", - "start": 19300, - "end": 19311, + "start": 19343, + "end": 19354, "loc": { "start": { "line": 476, @@ -149468,8 +149458,8 @@ "postfix": false, "binop": null }, - "start": 19311, - "end": 19312, + "start": 19354, + "end": 19355, "loc": { "start": { "line": 476, @@ -149493,8 +149483,8 @@ "postfix": false, "binop": null }, - "start": 19313, - "end": 19314, + "start": 19356, + "end": 19357, "loc": { "start": { "line": 476, @@ -149519,8 +149509,8 @@ "binop": null }, "value": "pInstance", - "start": 19324, - "end": 19333, + "start": 19367, + "end": 19376, "loc": { "start": { "line": 477, @@ -149545,8 +149535,8 @@ "binop": null, "updateContext": null }, - "start": 19333, - "end": 19334, + "start": 19376, + "end": 19377, "loc": { "start": { "line": 477, @@ -149571,8 +149561,8 @@ "binop": null }, "value": "movePos", - "start": 19334, - "end": 19341, + "start": 19377, + "end": 19384, "loc": { "start": { "line": 477, @@ -149596,8 +149586,8 @@ "postfix": false, "binop": null }, - "start": 19341, - "end": 19342, + "start": 19384, + "end": 19385, "loc": { "start": { "line": 477, @@ -149622,8 +149612,8 @@ "binop": null }, "value": "instanceData", - "start": 19342, - "end": 19354, + "start": 19385, + "end": 19397, "loc": { "start": { "line": 477, @@ -149648,8 +149638,8 @@ "binop": null, "updateContext": null }, - "start": 19354, - "end": 19355, + "start": 19397, + "end": 19398, "loc": { "start": { "line": 477, @@ -149674,8 +149664,8 @@ "binop": null }, "value": "trajectory", - "start": 19355, - "end": 19365, + "start": 19398, + "end": 19408, "loc": { "start": { "line": 477, @@ -149700,8 +149690,8 @@ "binop": null, "updateContext": null }, - "start": 19365, - "end": 19366, + "start": 19408, + "end": 19409, "loc": { "start": { "line": 477, @@ -149726,8 +149716,8 @@ "binop": null }, "value": "x", - "start": 19366, - "end": 19367, + "start": 19409, + "end": 19410, "loc": { "start": { "line": 477, @@ -149752,8 +149742,8 @@ "binop": null, "updateContext": null }, - "start": 19367, - "end": 19368, + "start": 19410, + "end": 19411, "loc": { "start": { "line": 477, @@ -149778,8 +149768,8 @@ "binop": null }, "value": "instanceData", - "start": 19369, - "end": 19381, + "start": 19412, + "end": 19424, "loc": { "start": { "line": 477, @@ -149804,8 +149794,8 @@ "binop": null, "updateContext": null }, - "start": 19381, - "end": 19382, + "start": 19424, + "end": 19425, "loc": { "start": { "line": 477, @@ -149830,8 +149820,8 @@ "binop": null }, "value": "trajectory", - "start": 19382, - "end": 19392, + "start": 19425, + "end": 19435, "loc": { "start": { "line": 477, @@ -149856,8 +149846,8 @@ "binop": null, "updateContext": null }, - "start": 19392, - "end": 19393, + "start": 19435, + "end": 19436, "loc": { "start": { "line": 477, @@ -149882,8 +149872,8 @@ "binop": null }, "value": "y", - "start": 19393, - "end": 19394, + "start": 19436, + "end": 19437, "loc": { "start": { "line": 477, @@ -149907,8 +149897,8 @@ "postfix": false, "binop": null }, - "start": 19394, - "end": 19395, + "start": 19437, + "end": 19438, "loc": { "start": { "line": 477, @@ -149933,8 +149923,8 @@ "binop": null, "updateContext": null }, - "start": 19395, - "end": 19396, + "start": 19438, + "end": 19439, "loc": { "start": { "line": 477, @@ -149958,8 +149948,8 @@ "postfix": false, "binop": null }, - "start": 19405, - "end": 19406, + "start": 19448, + "end": 19449, "loc": { "start": { "line": 478, @@ -149986,8 +149976,8 @@ "updateContext": null }, "value": "else", - "start": 19407, - "end": 19411, + "start": 19450, + "end": 19454, "loc": { "start": { "line": 478, @@ -150014,8 +150004,8 @@ "updateContext": null }, "value": "if", - "start": 19412, - "end": 19414, + "start": 19455, + "end": 19457, "loc": { "start": { "line": 478, @@ -150039,8 +150029,8 @@ "postfix": false, "binop": null }, - "start": 19415, - "end": 19416, + "start": 19458, + "end": 19459, "loc": { "start": { "line": 478, @@ -150065,8 +150055,8 @@ "binop": null }, "value": "instanceData", - "start": 19416, - "end": 19428, + "start": 19459, + "end": 19471, "loc": { "start": { "line": 478, @@ -150091,8 +150081,8 @@ "binop": null, "updateContext": null }, - "start": 19428, - "end": 19429, + "start": 19471, + "end": 19472, "loc": { "start": { "line": 478, @@ -150117,8 +150107,8 @@ "binop": null }, "value": "mode", - "start": 19429, - "end": 19433, + "start": 19472, + "end": 19476, "loc": { "start": { "line": 478, @@ -150144,8 +150134,8 @@ "updateContext": null }, "value": "===", - "start": 19434, - "end": 19437, + "start": 19477, + "end": 19480, "loc": { "start": { "line": 478, @@ -150171,8 +150161,8 @@ "updateContext": null }, "value": "position", - "start": 19438, - "end": 19448, + "start": 19481, + "end": 19491, "loc": { "start": { "line": 478, @@ -150196,8 +150186,8 @@ "postfix": false, "binop": null }, - "start": 19448, - "end": 19449, + "start": 19491, + "end": 19492, "loc": { "start": { "line": 478, @@ -150221,8 +150211,8 @@ "postfix": false, "binop": null }, - "start": 19450, - "end": 19451, + "start": 19493, + "end": 19494, "loc": { "start": { "line": 478, @@ -150249,8 +150239,8 @@ "updateContext": null }, "value": "const", - "start": 19461, - "end": 19466, + "start": 19504, + "end": 19509, "loc": { "start": { "line": 479, @@ -150275,8 +150265,8 @@ "binop": null }, "value": "speed", - "start": 19467, - "end": 19472, + "start": 19510, + "end": 19515, "loc": { "start": { "line": 479, @@ -150302,8 +150292,8 @@ "updateContext": null }, "value": "=", - "start": 19473, - "end": 19474, + "start": 19516, + "end": 19517, "loc": { "start": { "line": 479, @@ -150328,8 +150318,8 @@ "binop": null }, "value": "instanceData", - "start": 19475, - "end": 19487, + "start": 19518, + "end": 19530, "loc": { "start": { "line": 479, @@ -150354,8 +150344,8 @@ "binop": null, "updateContext": null }, - "start": 19487, - "end": 19488, + "start": 19530, + "end": 19531, "loc": { "start": { "line": 479, @@ -150380,8 +150370,8 @@ "binop": null }, "value": "pixelsPerSecond", - "start": 19488, - "end": 19503, + "start": 19531, + "end": 19546, "loc": { "start": { "line": 479, @@ -150407,8 +150397,8 @@ "updateContext": null }, "value": "*", - "start": 19504, - "end": 19505, + "start": 19547, + "end": 19548, "loc": { "start": { "line": 479, @@ -150435,8 +150425,8 @@ "updateContext": null }, "value": "this", - "start": 19506, - "end": 19510, + "start": 19549, + "end": 19553, "loc": { "start": { "line": 479, @@ -150461,8 +150451,8 @@ "binop": null, "updateContext": null }, - "start": 19510, - "end": 19511, + "start": 19553, + "end": 19554, "loc": { "start": { "line": 479, @@ -150487,8 +150477,8 @@ "binop": null }, "value": "deltaTime", - "start": 19511, - "end": 19520, + "start": 19554, + "end": 19563, "loc": { "start": { "line": 479, @@ -150513,8 +150503,8 @@ "binop": null, "updateContext": null }, - "start": 19520, - "end": 19521, + "start": 19563, + "end": 19564, "loc": { "start": { "line": 479, @@ -150539,8 +150529,8 @@ "binop": null }, "value": "pInstance", - "start": 19531, - "end": 19540, + "start": 19574, + "end": 19583, "loc": { "start": { "line": 480, @@ -150565,8 +150555,8 @@ "binop": null, "updateContext": null }, - "start": 19540, - "end": 19541, + "start": 19583, + "end": 19584, "loc": { "start": { "line": 480, @@ -150591,8 +150581,8 @@ "binop": null }, "value": "setPos", - "start": 19541, - "end": 19547, + "start": 19584, + "end": 19590, "loc": { "start": { "line": 480, @@ -150616,8 +150606,8 @@ "postfix": false, "binop": null }, - "start": 19547, - "end": 19548, + "start": 19590, + "end": 19591, "loc": { "start": { "line": 480, @@ -150642,8 +150632,8 @@ "binop": null }, "value": "pInstance", - "start": 19548, - "end": 19557, + "start": 19591, + "end": 19600, "loc": { "start": { "line": 480, @@ -150668,8 +150658,8 @@ "binop": null, "updateContext": null }, - "start": 19557, - "end": 19558, + "start": 19600, + "end": 19601, "loc": { "start": { "line": 480, @@ -150694,8 +150684,8 @@ "binop": null }, "value": "x", - "start": 19558, - "end": 19559, + "start": 19601, + "end": 19602, "loc": { "start": { "line": 480, @@ -150721,8 +150711,8 @@ "updateContext": null }, "value": "+", - "start": 19560, - "end": 19561, + "start": 19603, + "end": 19604, "loc": { "start": { "line": 480, @@ -150747,8 +150737,8 @@ "binop": null }, "value": "speed", - "start": 19562, - "end": 19567, + "start": 19605, + "end": 19610, "loc": { "start": { "line": 480, @@ -150774,8 +150764,8 @@ "updateContext": null }, "value": "*", - "start": 19568, - "end": 19569, + "start": 19611, + "end": 19612, "loc": { "start": { "line": 480, @@ -150800,8 +150790,8 @@ "binop": null }, "value": "instanceData", - "start": 19570, - "end": 19582, + "start": 19613, + "end": 19625, "loc": { "start": { "line": 480, @@ -150826,8 +150816,8 @@ "binop": null, "updateContext": null }, - "start": 19582, - "end": 19583, + "start": 19625, + "end": 19626, "loc": { "start": { "line": 480, @@ -150852,8 +150842,8 @@ "binop": null }, "value": "trajectory", - "start": 19583, - "end": 19593, + "start": 19626, + "end": 19636, "loc": { "start": { "line": 480, @@ -150878,8 +150868,8 @@ "binop": null, "updateContext": null }, - "start": 19593, - "end": 19594, + "start": 19636, + "end": 19637, "loc": { "start": { "line": 480, @@ -150904,8 +150894,8 @@ "binop": null }, "value": "x", - "start": 19594, - "end": 19595, + "start": 19637, + "end": 19638, "loc": { "start": { "line": 480, @@ -150930,8 +150920,8 @@ "binop": null, "updateContext": null }, - "start": 19595, - "end": 19596, + "start": 19638, + "end": 19639, "loc": { "start": { "line": 480, @@ -150956,8 +150946,8 @@ "binop": null }, "value": "pInstance", - "start": 19597, - "end": 19606, + "start": 19640, + "end": 19649, "loc": { "start": { "line": 480, @@ -150982,8 +150972,8 @@ "binop": null, "updateContext": null }, - "start": 19606, - "end": 19607, + "start": 19649, + "end": 19650, "loc": { "start": { "line": 480, @@ -151008,8 +150998,8 @@ "binop": null }, "value": "y", - "start": 19607, - "end": 19608, + "start": 19650, + "end": 19651, "loc": { "start": { "line": 480, @@ -151035,8 +151025,8 @@ "updateContext": null }, "value": "+", - "start": 19609, - "end": 19610, + "start": 19652, + "end": 19653, "loc": { "start": { "line": 480, @@ -151061,8 +151051,8 @@ "binop": null }, "value": "speed", - "start": 19611, - "end": 19616, + "start": 19654, + "end": 19659, "loc": { "start": { "line": 480, @@ -151088,8 +151078,8 @@ "updateContext": null }, "value": "*", - "start": 19617, - "end": 19618, + "start": 19660, + "end": 19661, "loc": { "start": { "line": 480, @@ -151114,8 +151104,8 @@ "binop": null }, "value": "instanceData", - "start": 19619, - "end": 19631, + "start": 19662, + "end": 19674, "loc": { "start": { "line": 480, @@ -151140,8 +151130,8 @@ "binop": null, "updateContext": null }, - "start": 19631, - "end": 19632, + "start": 19674, + "end": 19675, "loc": { "start": { "line": 480, @@ -151166,8 +151156,8 @@ "binop": null }, "value": "trajectory", - "start": 19632, - "end": 19642, + "start": 19675, + "end": 19685, "loc": { "start": { "line": 480, @@ -151192,8 +151182,8 @@ "binop": null, "updateContext": null }, - "start": 19642, - "end": 19643, + "start": 19685, + "end": 19686, "loc": { "start": { "line": 480, @@ -151218,8 +151208,8 @@ "binop": null }, "value": "y", - "start": 19643, - "end": 19644, + "start": 19686, + "end": 19687, "loc": { "start": { "line": 480, @@ -151244,8 +151234,8 @@ "binop": null, "updateContext": null }, - "start": 19644, - "end": 19645, + "start": 19687, + "end": 19688, "loc": { "start": { "line": 480, @@ -151270,8 +151260,8 @@ "binop": null }, "value": "pInstance", - "start": 19646, - "end": 19655, + "start": 19689, + "end": 19698, "loc": { "start": { "line": 480, @@ -151296,8 +151286,8 @@ "binop": null, "updateContext": null }, - "start": 19655, - "end": 19656, + "start": 19698, + "end": 19699, "loc": { "start": { "line": 480, @@ -151322,8 +151312,8 @@ "binop": null }, "value": "mapName", - "start": 19656, - "end": 19663, + "start": 19699, + "end": 19706, "loc": { "start": { "line": 480, @@ -151347,8 +151337,8 @@ "postfix": false, "binop": null }, - "start": 19663, - "end": 19664, + "start": 19706, + "end": 19707, "loc": { "start": { "line": 480, @@ -151373,8 +151363,8 @@ "binop": null, "updateContext": null }, - "start": 19664, - "end": 19665, + "start": 19707, + "end": 19708, "loc": { "start": { "line": 480, @@ -151398,8 +151388,8 @@ "postfix": false, "binop": null }, - "start": 19674, - "end": 19675, + "start": 19717, + "end": 19718, "loc": { "start": { "line": 481, @@ -151424,8 +151414,8 @@ "binop": null }, "value": "instanceData", - "start": 19684, - "end": 19696, + "start": 19727, + "end": 19739, "loc": { "start": { "line": 482, @@ -151450,8 +151440,8 @@ "binop": null, "updateContext": null }, - "start": 19696, - "end": 19697, + "start": 19739, + "end": 19740, "loc": { "start": { "line": 482, @@ -151476,8 +151466,8 @@ "binop": null }, "value": "moving", - "start": 19697, - "end": 19703, + "start": 19740, + "end": 19746, "loc": { "start": { "line": 482, @@ -151503,8 +151493,8 @@ "updateContext": null }, "value": "=", - "start": 19704, - "end": 19705, + "start": 19747, + "end": 19748, "loc": { "start": { "line": 482, @@ -151531,8 +151521,8 @@ "updateContext": null }, "value": "true", - "start": 19706, - "end": 19710, + "start": 19749, + "end": 19753, "loc": { "start": { "line": 482, @@ -151557,8 +151547,8 @@ "binop": null, "updateContext": null }, - "start": 19710, - "end": 19711, + "start": 19753, + "end": 19754, "loc": { "start": { "line": 482, @@ -151582,8 +151572,8 @@ "postfix": false, "binop": null }, - "start": 19719, - "end": 19720, + "start": 19762, + "end": 19763, "loc": { "start": { "line": 483, @@ -151607,8 +151597,8 @@ "postfix": false, "binop": null }, - "start": 19727, - "end": 19728, + "start": 19770, + "end": 19771, "loc": { "start": { "line": 484, @@ -151623,8 +151613,8 @@ { "type": "CommentLine", "value": " If the instance's position is in the same spot it was in the last tick", - "start": 19735, - "end": 19808, + "start": 19778, + "end": 19851, "loc": { "start": { "line": 485, @@ -151651,8 +151641,8 @@ "updateContext": null }, "value": "if", - "start": 19815, - "end": 19817, + "start": 19858, + "end": 19860, "loc": { "start": { "line": 486, @@ -151676,8 +151666,8 @@ "postfix": false, "binop": null }, - "start": 19818, - "end": 19819, + "start": 19861, + "end": 19862, "loc": { "start": { "line": 486, @@ -151702,8 +151692,8 @@ "binop": null }, "value": "instancePosition", - "start": 19819, - "end": 19835, + "start": 19862, + "end": 19878, "loc": { "start": { "line": 486, @@ -151728,8 +151718,8 @@ "binop": null, "updateContext": null }, - "start": 19835, - "end": 19836, + "start": 19878, + "end": 19879, "loc": { "start": { "line": 486, @@ -151754,8 +151744,8 @@ "binop": null }, "value": "x", - "start": 19836, - "end": 19837, + "start": 19879, + "end": 19880, "loc": { "start": { "line": 486, @@ -151781,8 +151771,8 @@ "updateContext": null }, "value": "===", - "start": 19838, - "end": 19841, + "start": 19881, + "end": 19884, "loc": { "start": { "line": 486, @@ -151807,8 +151797,8 @@ "binop": null }, "value": "instanceData", - "start": 19842, - "end": 19854, + "start": 19885, + "end": 19897, "loc": { "start": { "line": 486, @@ -151833,8 +151823,8 @@ "binop": null, "updateContext": null }, - "start": 19854, - "end": 19855, + "start": 19897, + "end": 19898, "loc": { "start": { "line": 486, @@ -151859,8 +151849,8 @@ "binop": null }, "value": "previousPosition", - "start": 19855, - "end": 19871, + "start": 19898, + "end": 19914, "loc": { "start": { "line": 486, @@ -151885,8 +151875,8 @@ "binop": null, "updateContext": null }, - "start": 19871, - "end": 19872, + "start": 19914, + "end": 19915, "loc": { "start": { "line": 486, @@ -151911,8 +151901,8 @@ "binop": null }, "value": "x", - "start": 19872, - "end": 19873, + "start": 19915, + "end": 19916, "loc": { "start": { "line": 486, @@ -151938,8 +151928,8 @@ "updateContext": null }, "value": "&&", - "start": 19874, - "end": 19876, + "start": 19917, + "end": 19919, "loc": { "start": { "line": 486, @@ -151964,8 +151954,8 @@ "binop": null }, "value": "instancePosition", - "start": 19877, - "end": 19893, + "start": 19920, + "end": 19936, "loc": { "start": { "line": 486, @@ -151990,8 +151980,8 @@ "binop": null, "updateContext": null }, - "start": 19893, - "end": 19894, + "start": 19936, + "end": 19937, "loc": { "start": { "line": 486, @@ -152016,8 +152006,8 @@ "binop": null }, "value": "y", - "start": 19894, - "end": 19895, + "start": 19937, + "end": 19938, "loc": { "start": { "line": 486, @@ -152043,8 +152033,8 @@ "updateContext": null }, "value": "===", - "start": 19896, - "end": 19899, + "start": 19939, + "end": 19942, "loc": { "start": { "line": 486, @@ -152069,8 +152059,8 @@ "binop": null }, "value": "instanceData", - "start": 19900, - "end": 19912, + "start": 19943, + "end": 19955, "loc": { "start": { "line": 486, @@ -152095,8 +152085,8 @@ "binop": null, "updateContext": null }, - "start": 19912, - "end": 19913, + "start": 19955, + "end": 19956, "loc": { "start": { "line": 486, @@ -152121,8 +152111,8 @@ "binop": null }, "value": "previousPosition", - "start": 19913, - "end": 19929, + "start": 19956, + "end": 19972, "loc": { "start": { "line": 486, @@ -152147,8 +152137,8 @@ "binop": null, "updateContext": null }, - "start": 19929, - "end": 19930, + "start": 19972, + "end": 19973, "loc": { "start": { "line": 486, @@ -152173,8 +152163,8 @@ "binop": null }, "value": "y", - "start": 19930, - "end": 19931, + "start": 19973, + "end": 19974, "loc": { "start": { "line": 486, @@ -152198,8 +152188,8 @@ "postfix": false, "binop": null }, - "start": 19931, - "end": 19932, + "start": 19974, + "end": 19975, "loc": { "start": { "line": 486, @@ -152223,8 +152213,8 @@ "postfix": false, "binop": null }, - "start": 19933, - "end": 19934, + "start": 19976, + "end": 19977, "loc": { "start": { "line": 486, @@ -152239,8 +152229,8 @@ { "type": "CommentLine", "value": " Increment the stuck counter", - "start": 19942, - "end": 19972, + "start": 19985, + "end": 20015, "loc": { "start": { "line": 487, @@ -152265,8 +152255,8 @@ "binop": null }, "value": "instanceData", - "start": 19980, - "end": 19992, + "start": 20023, + "end": 20035, "loc": { "start": { "line": 488, @@ -152291,8 +152281,8 @@ "binop": null, "updateContext": null }, - "start": 19992, - "end": 19993, + "start": 20035, + "end": 20036, "loc": { "start": { "line": 488, @@ -152317,8 +152307,8 @@ "binop": null }, "value": "stuckCounter", - "start": 19993, - "end": 20005, + "start": 20036, + "end": 20048, "loc": { "start": { "line": 488, @@ -152343,8 +152333,8 @@ "binop": null }, "value": "++", - "start": 20005, - "end": 20007, + "start": 20048, + "end": 20050, "loc": { "start": { "line": 488, @@ -152369,8 +152359,8 @@ "binop": null, "updateContext": null }, - "start": 20007, - "end": 20008, + "start": 20050, + "end": 20051, "loc": { "start": { "line": 488, @@ -152385,8 +152375,8 @@ { "type": "CommentLine", "value": " Chekck if the stuck counter is greater or equal to the max stuck counter", - "start": 20016, - "end": 20091, + "start": 20059, + "end": 20134, "loc": { "start": { "line": 489, @@ -152413,8 +152403,8 @@ "updateContext": null }, "value": "if", - "start": 20099, - "end": 20101, + "start": 20142, + "end": 20144, "loc": { "start": { "line": 490, @@ -152438,8 +152428,8 @@ "postfix": false, "binop": null }, - "start": 20102, - "end": 20103, + "start": 20145, + "end": 20146, "loc": { "start": { "line": 490, @@ -152464,8 +152454,8 @@ "binop": null }, "value": "instanceData", - "start": 20103, - "end": 20115, + "start": 20146, + "end": 20158, "loc": { "start": { "line": 490, @@ -152490,8 +152480,8 @@ "binop": null, "updateContext": null }, - "start": 20115, - "end": 20116, + "start": 20158, + "end": 20159, "loc": { "start": { "line": 490, @@ -152516,8 +152506,8 @@ "binop": null }, "value": "stuckCounter", - "start": 20116, - "end": 20128, + "start": 20159, + "end": 20171, "loc": { "start": { "line": 490, @@ -152543,8 +152533,8 @@ "updateContext": null }, "value": ">=", - "start": 20129, - "end": 20131, + "start": 20172, + "end": 20174, "loc": { "start": { "line": 490, @@ -152569,8 +152559,8 @@ "binop": null }, "value": "instanceData", - "start": 20132, - "end": 20144, + "start": 20175, + "end": 20187, "loc": { "start": { "line": 490, @@ -152595,8 +152585,8 @@ "binop": null, "updateContext": null }, - "start": 20144, - "end": 20145, + "start": 20187, + "end": 20188, "loc": { "start": { "line": 490, @@ -152621,8 +152611,8 @@ "binop": null }, "value": "maxStuckCounter", - "start": 20145, - "end": 20160, + "start": 20188, + "end": 20203, "loc": { "start": { "line": 490, @@ -152646,8 +152636,8 @@ "postfix": false, "binop": null }, - "start": 20160, - "end": 20161, + "start": 20203, + "end": 20204, "loc": { "start": { "line": 490, @@ -152671,8 +152661,8 @@ "postfix": false, "binop": null }, - "start": 20162, - "end": 20163, + "start": 20205, + "end": 20206, "loc": { "start": { "line": 490, @@ -152687,8 +152677,8 @@ { "type": "CommentLine", "value": " Call the stuck event if defined.", - "start": 20172, - "end": 20207, + "start": 20215, + "end": 20250, "loc": { "start": { "line": 491, @@ -152715,8 +152705,8 @@ "updateContext": null }, "value": "if", - "start": 20216, - "end": 20218, + "start": 20259, + "end": 20261, "loc": { "start": { "line": 492, @@ -152740,8 +152730,8 @@ "postfix": false, "binop": null }, - "start": 20219, - "end": 20220, + "start": 20262, + "end": 20263, "loc": { "start": { "line": 492, @@ -152768,8 +152758,8 @@ "updateContext": null }, "value": "typeof", - "start": 20220, - "end": 20226, + "start": 20263, + "end": 20269, "loc": { "start": { "line": 492, @@ -152793,8 +152783,8 @@ "postfix": false, "binop": null }, - "start": 20226, - "end": 20227, + "start": 20269, + "end": 20270, "loc": { "start": { "line": 492, @@ -152819,8 +152809,8 @@ "binop": null }, "value": "instanceData", - "start": 20227, - "end": 20239, + "start": 20270, + "end": 20282, "loc": { "start": { "line": 492, @@ -152845,8 +152835,8 @@ "binop": null, "updateContext": null }, - "start": 20239, - "end": 20240, + "start": 20282, + "end": 20283, "loc": { "start": { "line": 492, @@ -152871,8 +152861,8 @@ "binop": null }, "value": "events", - "start": 20240, - "end": 20246, + "start": 20283, + "end": 20289, "loc": { "start": { "line": 492, @@ -152897,8 +152887,8 @@ "binop": null, "updateContext": null }, - "start": 20246, - "end": 20247, + "start": 20289, + "end": 20290, "loc": { "start": { "line": 492, @@ -152923,8 +152913,8 @@ "binop": null }, "value": "onPathStuck", - "start": 20247, - "end": 20258, + "start": 20290, + "end": 20301, "loc": { "start": { "line": 492, @@ -152948,8 +152938,8 @@ "postfix": false, "binop": null }, - "start": 20258, - "end": 20259, + "start": 20301, + "end": 20302, "loc": { "start": { "line": 492, @@ -152975,8 +152965,8 @@ "updateContext": null }, "value": "===", - "start": 20260, - "end": 20263, + "start": 20303, + "end": 20306, "loc": { "start": { "line": 492, @@ -153002,8 +152992,8 @@ "updateContext": null }, "value": "function", - "start": 20264, - "end": 20274, + "start": 20307, + "end": 20317, "loc": { "start": { "line": 492, @@ -153027,8 +153017,8 @@ "postfix": false, "binop": null }, - "start": 20274, - "end": 20275, + "start": 20317, + "end": 20318, "loc": { "start": { "line": 492, @@ -153052,8 +153042,8 @@ "postfix": false, "binop": null }, - "start": 20276, - "end": 20277, + "start": 20319, + "end": 20320, "loc": { "start": { "line": 492, @@ -153078,8 +153068,8 @@ "binop": null }, "value": "instanceData", - "start": 20287, - "end": 20299, + "start": 20330, + "end": 20342, "loc": { "start": { "line": 493, @@ -153104,8 +153094,8 @@ "binop": null, "updateContext": null }, - "start": 20299, - "end": 20300, + "start": 20342, + "end": 20343, "loc": { "start": { "line": 493, @@ -153130,8 +153120,8 @@ "binop": null }, "value": "events", - "start": 20300, - "end": 20306, + "start": 20343, + "end": 20349, "loc": { "start": { "line": 493, @@ -153156,8 +153146,8 @@ "binop": null, "updateContext": null }, - "start": 20306, - "end": 20307, + "start": 20349, + "end": 20350, "loc": { "start": { "line": 493, @@ -153182,8 +153172,8 @@ "binop": null }, "value": "onPathStuck", - "start": 20307, - "end": 20318, + "start": 20350, + "end": 20361, "loc": { "start": { "line": 493, @@ -153207,8 +153197,8 @@ "postfix": false, "binop": null }, - "start": 20318, - "end": 20319, + "start": 20361, + "end": 20362, "loc": { "start": { "line": 493, @@ -153232,8 +153222,8 @@ "postfix": false, "binop": null }, - "start": 20319, - "end": 20320, + "start": 20362, + "end": 20363, "loc": { "start": { "line": 493, @@ -153258,8 +153248,8 @@ "binop": null, "updateContext": null }, - "start": 20320, - "end": 20321, + "start": 20363, + "end": 20364, "loc": { "start": { "line": 493, @@ -153283,8 +153273,8 @@ "postfix": false, "binop": null }, - "start": 20330, - "end": 20331, + "start": 20373, + "end": 20374, "loc": { "start": { "line": 494, @@ -153299,8 +153289,8 @@ { "type": "CommentLine", "value": " End this pathfinding.", - "start": 20340, - "end": 20364, + "start": 20383, + "end": 20407, "loc": { "start": { "line": 495, @@ -153327,8 +153317,8 @@ "updateContext": null }, "value": "this", - "start": 20373, - "end": 20377, + "start": 20416, + "end": 20420, "loc": { "start": { "line": 496, @@ -153353,8 +153343,8 @@ "binop": null, "updateContext": null }, - "start": 20377, - "end": 20378, + "start": 20420, + "end": 20421, "loc": { "start": { "line": 496, @@ -153379,8 +153369,8 @@ "binop": null }, "value": "end", - "start": 20378, - "end": 20381, + "start": 20421, + "end": 20424, "loc": { "start": { "line": 496, @@ -153404,8 +153394,8 @@ "postfix": false, "binop": null }, - "start": 20381, - "end": 20382, + "start": 20424, + "end": 20425, "loc": { "start": { "line": 496, @@ -153430,8 +153420,8 @@ "binop": null }, "value": "pInstance", - "start": 20382, - "end": 20391, + "start": 20425, + "end": 20434, "loc": { "start": { "line": 496, @@ -153455,8 +153445,8 @@ "postfix": false, "binop": null }, - "start": 20391, - "end": 20392, + "start": 20434, + "end": 20435, "loc": { "start": { "line": 496, @@ -153481,8 +153471,8 @@ "binop": null, "updateContext": null }, - "start": 20392, - "end": 20393, + "start": 20435, + "end": 20436, "loc": { "start": { "line": 496, @@ -153509,8 +153499,8 @@ "updateContext": null }, "value": "return", - "start": 20402, - "end": 20408, + "start": 20445, + "end": 20451, "loc": { "start": { "line": 497, @@ -153535,8 +153525,8 @@ "binop": null, "updateContext": null }, - "start": 20408, - "end": 20409, + "start": 20451, + "end": 20452, "loc": { "start": { "line": 497, @@ -153560,8 +153550,8 @@ "postfix": false, "binop": null }, - "start": 20417, - "end": 20418, + "start": 20460, + "end": 20461, "loc": { "start": { "line": 498, @@ -153585,8 +153575,8 @@ "postfix": false, "binop": null }, - "start": 20425, - "end": 20426, + "start": 20468, + "end": 20469, "loc": { "start": { "line": 499, @@ -153601,8 +153591,8 @@ { "type": "CommentLine", "value": " Store the previous position as the position of this tick", - "start": 20433, - "end": 20492, + "start": 20476, + "end": 20535, "loc": { "start": { "line": 500, @@ -153627,8 +153617,8 @@ "binop": null }, "value": "instanceData", - "start": 20499, - "end": 20511, + "start": 20542, + "end": 20554, "loc": { "start": { "line": 501, @@ -153653,8 +153643,8 @@ "binop": null, "updateContext": null }, - "start": 20511, - "end": 20512, + "start": 20554, + "end": 20555, "loc": { "start": { "line": 501, @@ -153679,8 +153669,8 @@ "binop": null }, "value": "previousPosition", - "start": 20512, - "end": 20528, + "start": 20555, + "end": 20571, "loc": { "start": { "line": 501, @@ -153706,8 +153696,8 @@ "updateContext": null }, "value": "=", - "start": 20529, - "end": 20530, + "start": 20572, + "end": 20573, "loc": { "start": { "line": 501, @@ -153732,8 +153722,8 @@ "binop": null }, "value": "instancePosition", - "start": 20531, - "end": 20547, + "start": 20574, + "end": 20590, "loc": { "start": { "line": 501, @@ -153758,8 +153748,8 @@ "binop": null, "updateContext": null }, - "start": 20547, - "end": 20548, + "start": 20590, + "end": 20591, "loc": { "start": { "line": 501, @@ -153783,8 +153773,8 @@ "postfix": false, "binop": null }, - "start": 20554, - "end": 20555, + "start": 20597, + "end": 20598, "loc": { "start": { "line": 502, @@ -153808,8 +153798,8 @@ "postfix": false, "binop": null }, - "start": 20560, - "end": 20561, + "start": 20603, + "end": 20604, "loc": { "start": { "line": 503, @@ -153833,8 +153823,8 @@ "postfix": false, "binop": null }, - "start": 20565, - "end": 20566, + "start": 20608, + "end": 20609, "loc": { "start": { "line": 504, @@ -153858,8 +153848,8 @@ "postfix": false, "binop": null }, - "start": 20566, - "end": 20567, + "start": 20609, + "end": 20610, "loc": { "start": { "line": 504, @@ -153884,8 +153874,8 @@ "binop": null, "updateContext": null }, - "start": 20567, - "end": 20568, + "start": 20610, + "end": 20611, "loc": { "start": { "line": 504, @@ -153900,8 +153890,8 @@ { "type": "CommentLine", "value": " Store this tick's time", - "start": 20572, - "end": 20597, + "start": 20615, + "end": 20640, "loc": { "start": { "line": 505, @@ -153928,8 +153918,8 @@ "updateContext": null }, "value": "this", - "start": 20601, - "end": 20605, + "start": 20644, + "end": 20648, "loc": { "start": { "line": 506, @@ -153954,8 +153944,8 @@ "binop": null, "updateContext": null }, - "start": 20605, - "end": 20606, + "start": 20648, + "end": 20649, "loc": { "start": { "line": 506, @@ -153980,8 +153970,8 @@ "binop": null }, "value": "lastTime", - "start": 20606, - "end": 20614, + "start": 20649, + "end": 20657, "loc": { "start": { "line": 506, @@ -154007,8 +153997,8 @@ "updateContext": null }, "value": "=", - "start": 20615, - "end": 20616, + "start": 20658, + "end": 20659, "loc": { "start": { "line": 506, @@ -154033,8 +154023,8 @@ "binop": null }, "value": "now", - "start": 20617, - "end": 20620, + "start": 20660, + "end": 20663, "loc": { "start": { "line": 506, @@ -154059,8 +154049,8 @@ "binop": null, "updateContext": null }, - "start": 20620, - "end": 20621, + "start": 20663, + "end": 20664, "loc": { "start": { "line": 506, @@ -154084,8 +154074,8 @@ "postfix": false, "binop": null }, - "start": 20624, - "end": 20625, + "start": 20667, + "end": 20668, "loc": { "start": { "line": 507, @@ -154100,8 +154090,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t ", - "start": 20628, - "end": 20735, + "start": 20671, + "end": 20778, "loc": { "start": { "line": 508, @@ -154126,8 +154116,8 @@ "binop": null }, "value": "setTileSize", - "start": 20738, - "end": 20749, + "start": 20781, + "end": 20792, "loc": { "start": { "line": 512, @@ -154151,8 +154141,8 @@ "postfix": false, "binop": null }, - "start": 20749, - "end": 20750, + "start": 20792, + "end": 20793, "loc": { "start": { "line": 512, @@ -154177,8 +154167,8 @@ "binop": null }, "value": "pTileSize", - "start": 20750, - "end": 20759, + "start": 20793, + "end": 20802, "loc": { "start": { "line": 512, @@ -154202,8 +154192,8 @@ "postfix": false, "binop": null }, - "start": 20759, - "end": 20760, + "start": 20802, + "end": 20803, "loc": { "start": { "line": 512, @@ -154227,8 +154217,8 @@ "postfix": false, "binop": null }, - "start": 20761, - "end": 20762, + "start": 20804, + "end": 20805, "loc": { "start": { "line": 512, @@ -154255,8 +154245,8 @@ "updateContext": null }, "value": "if", - "start": 20766, - "end": 20768, + "start": 20809, + "end": 20811, "loc": { "start": { "line": 513, @@ -154280,8 +154270,8 @@ "postfix": false, "binop": null }, - "start": 20769, - "end": 20770, + "start": 20812, + "end": 20813, "loc": { "start": { "line": 513, @@ -154308,8 +154298,8 @@ "updateContext": null }, "value": "typeof", - "start": 20770, - "end": 20776, + "start": 20813, + "end": 20819, "loc": { "start": { "line": 513, @@ -154333,8 +154323,8 @@ "postfix": false, "binop": null }, - "start": 20776, - "end": 20777, + "start": 20819, + "end": 20820, "loc": { "start": { "line": 513, @@ -154359,8 +154349,8 @@ "binop": null }, "value": "pTileSize", - "start": 20777, - "end": 20786, + "start": 20820, + "end": 20829, "loc": { "start": { "line": 513, @@ -154384,8 +154374,8 @@ "postfix": false, "binop": null }, - "start": 20786, - "end": 20787, + "start": 20829, + "end": 20830, "loc": { "start": { "line": 513, @@ -154411,8 +154401,8 @@ "updateContext": null }, "value": "===", - "start": 20788, - "end": 20791, + "start": 20831, + "end": 20834, "loc": { "start": { "line": 513, @@ -154438,8 +154428,8 @@ "updateContext": null }, "value": "number", - "start": 20792, - "end": 20800, + "start": 20835, + "end": 20843, "loc": { "start": { "line": 513, @@ -154463,8 +154453,8 @@ "postfix": false, "binop": null }, - "start": 20800, - "end": 20801, + "start": 20843, + "end": 20844, "loc": { "start": { "line": 513, @@ -154488,8 +154478,8 @@ "postfix": false, "binop": null }, - "start": 20802, - "end": 20803, + "start": 20845, + "end": 20846, "loc": { "start": { "line": 513, @@ -154516,8 +154506,8 @@ "updateContext": null }, "value": "this", - "start": 20808, - "end": 20812, + "start": 20851, + "end": 20855, "loc": { "start": { "line": 514, @@ -154542,8 +154532,8 @@ "binop": null, "updateContext": null }, - "start": 20812, - "end": 20813, + "start": 20855, + "end": 20856, "loc": { "start": { "line": 514, @@ -154568,8 +154558,8 @@ "binop": null }, "value": "tileSize", - "start": 20813, - "end": 20821, + "start": 20856, + "end": 20864, "loc": { "start": { "line": 514, @@ -154595,8 +154585,8 @@ "updateContext": null }, "value": "=", - "start": 20822, - "end": 20823, + "start": 20865, + "end": 20866, "loc": { "start": { "line": 514, @@ -154620,8 +154610,8 @@ "postfix": false, "binop": null }, - "start": 20824, - "end": 20825, + "start": 20867, + "end": 20868, "loc": { "start": { "line": 514, @@ -154646,8 +154636,8 @@ "binop": null }, "value": "width", - "start": 20826, - "end": 20831, + "start": 20869, + "end": 20874, "loc": { "start": { "line": 514, @@ -154672,8 +154662,8 @@ "binop": null, "updateContext": null }, - "start": 20831, - "end": 20832, + "start": 20874, + "end": 20875, "loc": { "start": { "line": 514, @@ -154698,8 +154688,8 @@ "binop": null }, "value": "pTileSize", - "start": 20833, - "end": 20842, + "start": 20876, + "end": 20885, "loc": { "start": { "line": 514, @@ -154724,8 +154714,8 @@ "binop": null, "updateContext": null }, - "start": 20842, - "end": 20843, + "start": 20885, + "end": 20886, "loc": { "start": { "line": 514, @@ -154750,8 +154740,8 @@ "binop": null }, "value": "height", - "start": 20844, - "end": 20850, + "start": 20887, + "end": 20893, "loc": { "start": { "line": 514, @@ -154776,8 +154766,8 @@ "binop": null, "updateContext": null }, - "start": 20850, - "end": 20851, + "start": 20893, + "end": 20894, "loc": { "start": { "line": 514, @@ -154802,8 +154792,8 @@ "binop": null }, "value": "pTileSize", - "start": 20852, - "end": 20861, + "start": 20895, + "end": 20904, "loc": { "start": { "line": 514, @@ -154827,8 +154817,8 @@ "postfix": false, "binop": null }, - "start": 20862, - "end": 20863, + "start": 20905, + "end": 20906, "loc": { "start": { "line": 514, @@ -154853,8 +154843,8 @@ "binop": null, "updateContext": null }, - "start": 20863, - "end": 20864, + "start": 20906, + "end": 20907, "loc": { "start": { "line": 514, @@ -154878,8 +154868,8 @@ "postfix": false, "binop": null }, - "start": 20868, - "end": 20869, + "start": 20911, + "end": 20912, "loc": { "start": { "line": 515, @@ -154906,8 +154896,8 @@ "updateContext": null }, "value": "else", - "start": 20870, - "end": 20874, + "start": 20913, + "end": 20917, "loc": { "start": { "line": 515, @@ -154934,8 +154924,8 @@ "updateContext": null }, "value": "if", - "start": 20875, - "end": 20877, + "start": 20918, + "end": 20920, "loc": { "start": { "line": 515, @@ -154959,8 +154949,8 @@ "postfix": false, "binop": null }, - "start": 20877, - "end": 20878, + "start": 20920, + "end": 20921, "loc": { "start": { "line": 515, @@ -154987,8 +154977,8 @@ "updateContext": null }, "value": "typeof", - "start": 20878, - "end": 20884, + "start": 20921, + "end": 20927, "loc": { "start": { "line": 515, @@ -155012,8 +155002,8 @@ "postfix": false, "binop": null }, - "start": 20884, - "end": 20885, + "start": 20927, + "end": 20928, "loc": { "start": { "line": 515, @@ -155038,8 +155028,8 @@ "binop": null }, "value": "pTileSize", - "start": 20885, - "end": 20894, + "start": 20928, + "end": 20937, "loc": { "start": { "line": 515, @@ -155063,8 +155053,8 @@ "postfix": false, "binop": null }, - "start": 20894, - "end": 20895, + "start": 20937, + "end": 20938, "loc": { "start": { "line": 515, @@ -155090,8 +155080,8 @@ "updateContext": null }, "value": "===", - "start": 20896, - "end": 20899, + "start": 20939, + "end": 20942, "loc": { "start": { "line": 515, @@ -155117,8 +155107,8 @@ "updateContext": null }, "value": "object", - "start": 20900, - "end": 20908, + "start": 20943, + "end": 20951, "loc": { "start": { "line": 515, @@ -155142,8 +155132,8 @@ "postfix": false, "binop": null }, - "start": 20908, - "end": 20909, + "start": 20951, + "end": 20952, "loc": { "start": { "line": 515, @@ -155167,8 +155157,8 @@ "postfix": false, "binop": null }, - "start": 20910, - "end": 20911, + "start": 20953, + "end": 20954, "loc": { "start": { "line": 515, @@ -155195,8 +155185,8 @@ "updateContext": null }, "value": "const", - "start": 20916, - "end": 20921, + "start": 20959, + "end": 20964, "loc": { "start": { "line": 516, @@ -155221,8 +155211,8 @@ "binop": null }, "value": "width", - "start": 20922, - "end": 20927, + "start": 20965, + "end": 20970, "loc": { "start": { "line": 516, @@ -155248,8 +155238,8 @@ "updateContext": null }, "value": "=", - "start": 20928, - "end": 20929, + "start": 20971, + "end": 20972, "loc": { "start": { "line": 516, @@ -155274,8 +155264,8 @@ "binop": null }, "value": "pTileSize", - "start": 20930, - "end": 20939, + "start": 20973, + "end": 20982, "loc": { "start": { "line": 516, @@ -155300,8 +155290,8 @@ "binop": null, "updateContext": null }, - "start": 20939, - "end": 20940, + "start": 20982, + "end": 20983, "loc": { "start": { "line": 516, @@ -155326,8 +155316,8 @@ "binop": null }, "value": "width", - "start": 20940, - "end": 20945, + "start": 20983, + "end": 20988, "loc": { "start": { "line": 516, @@ -155352,8 +155342,8 @@ "binop": null, "updateContext": null }, - "start": 20945, - "end": 20946, + "start": 20988, + "end": 20989, "loc": { "start": { "line": 516, @@ -155380,8 +155370,8 @@ "updateContext": null }, "value": "const", - "start": 20951, - "end": 20956, + "start": 20994, + "end": 20999, "loc": { "start": { "line": 517, @@ -155406,8 +155396,8 @@ "binop": null }, "value": "height", - "start": 20957, - "end": 20963, + "start": 21000, + "end": 21006, "loc": { "start": { "line": 517, @@ -155433,8 +155423,8 @@ "updateContext": null }, "value": "=", - "start": 20964, - "end": 20965, + "start": 21007, + "end": 21008, "loc": { "start": { "line": 517, @@ -155459,8 +155449,8 @@ "binop": null }, "value": "pTileSize", - "start": 20966, - "end": 20975, + "start": 21009, + "end": 21018, "loc": { "start": { "line": 517, @@ -155485,8 +155475,8 @@ "binop": null, "updateContext": null }, - "start": 20975, - "end": 20976, + "start": 21018, + "end": 21019, "loc": { "start": { "line": 517, @@ -155511,8 +155501,8 @@ "binop": null }, "value": "height", - "start": 20976, - "end": 20982, + "start": 21019, + "end": 21025, "loc": { "start": { "line": 517, @@ -155537,8 +155527,8 @@ "binop": null, "updateContext": null }, - "start": 20982, - "end": 20983, + "start": 21025, + "end": 21026, "loc": { "start": { "line": 517, @@ -155553,8 +155543,8 @@ { "type": "CommentLine", "value": " Assign the tilesize width", - "start": 20988, - "end": 21016, + "start": 21031, + "end": 21059, "loc": { "start": { "line": 518, @@ -155581,8 +155571,8 @@ "updateContext": null }, "value": "if", - "start": 21021, - "end": 21023, + "start": 21064, + "end": 21066, "loc": { "start": { "line": 519, @@ -155606,8 +155596,8 @@ "postfix": false, "binop": null }, - "start": 21024, - "end": 21025, + "start": 21067, + "end": 21068, "loc": { "start": { "line": 519, @@ -155634,8 +155624,8 @@ "updateContext": null }, "value": "typeof", - "start": 21025, - "end": 21031, + "start": 21068, + "end": 21074, "loc": { "start": { "line": 519, @@ -155659,8 +155649,8 @@ "postfix": false, "binop": null }, - "start": 21031, - "end": 21032, + "start": 21074, + "end": 21075, "loc": { "start": { "line": 519, @@ -155685,8 +155675,8 @@ "binop": null }, "value": "width", - "start": 21032, - "end": 21037, + "start": 21075, + "end": 21080, "loc": { "start": { "line": 519, @@ -155710,8 +155700,8 @@ "postfix": false, "binop": null }, - "start": 21037, - "end": 21038, + "start": 21080, + "end": 21081, "loc": { "start": { "line": 519, @@ -155737,8 +155727,8 @@ "updateContext": null }, "value": "===", - "start": 21039, - "end": 21042, + "start": 21082, + "end": 21085, "loc": { "start": { "line": 519, @@ -155764,8 +155754,8 @@ "updateContext": null }, "value": "number", - "start": 21043, - "end": 21051, + "start": 21086, + "end": 21094, "loc": { "start": { "line": 519, @@ -155789,8 +155779,8 @@ "postfix": false, "binop": null }, - "start": 21051, - "end": 21052, + "start": 21094, + "end": 21095, "loc": { "start": { "line": 519, @@ -155814,8 +155804,8 @@ "postfix": false, "binop": null }, - "start": 21053, - "end": 21054, + "start": 21096, + "end": 21097, "loc": { "start": { "line": 519, @@ -155842,8 +155832,8 @@ "updateContext": null }, "value": "this", - "start": 21060, - "end": 21064, + "start": 21103, + "end": 21107, "loc": { "start": { "line": 520, @@ -155868,8 +155858,8 @@ "binop": null, "updateContext": null }, - "start": 21064, - "end": 21065, + "start": 21107, + "end": 21108, "loc": { "start": { "line": 520, @@ -155894,8 +155884,8 @@ "binop": null }, "value": "tileSize", - "start": 21065, - "end": 21073, + "start": 21108, + "end": 21116, "loc": { "start": { "line": 520, @@ -155920,8 +155910,8 @@ "binop": null, "updateContext": null }, - "start": 21073, - "end": 21074, + "start": 21116, + "end": 21117, "loc": { "start": { "line": 520, @@ -155946,8 +155936,8 @@ "binop": null }, "value": "width", - "start": 21074, - "end": 21079, + "start": 21117, + "end": 21122, "loc": { "start": { "line": 520, @@ -155973,8 +155963,8 @@ "updateContext": null }, "value": "=", - "start": 21080, - "end": 21081, + "start": 21123, + "end": 21124, "loc": { "start": { "line": 520, @@ -155999,8 +155989,8 @@ "binop": null }, "value": "width", - "start": 21082, - "end": 21087, + "start": 21125, + "end": 21130, "loc": { "start": { "line": 520, @@ -156025,8 +156015,8 @@ "binop": null, "updateContext": null }, - "start": 21087, - "end": 21088, + "start": 21130, + "end": 21131, "loc": { "start": { "line": 520, @@ -156050,8 +156040,8 @@ "postfix": false, "binop": null }, - "start": 21093, - "end": 21094, + "start": 21136, + "end": 21137, "loc": { "start": { "line": 521, @@ -156066,8 +156056,8 @@ { "type": "CommentLine", "value": " Assign the tilesize height", - "start": 21099, - "end": 21128, + "start": 21142, + "end": 21171, "loc": { "start": { "line": 522, @@ -156094,8 +156084,8 @@ "updateContext": null }, "value": "if", - "start": 21133, - "end": 21135, + "start": 21176, + "end": 21178, "loc": { "start": { "line": 523, @@ -156119,8 +156109,8 @@ "postfix": false, "binop": null }, - "start": 21136, - "end": 21137, + "start": 21179, + "end": 21180, "loc": { "start": { "line": 523, @@ -156147,8 +156137,8 @@ "updateContext": null }, "value": "typeof", - "start": 21137, - "end": 21143, + "start": 21180, + "end": 21186, "loc": { "start": { "line": 523, @@ -156172,8 +156162,8 @@ "postfix": false, "binop": null }, - "start": 21143, - "end": 21144, + "start": 21186, + "end": 21187, "loc": { "start": { "line": 523, @@ -156198,8 +156188,8 @@ "binop": null }, "value": "height", - "start": 21144, - "end": 21150, + "start": 21187, + "end": 21193, "loc": { "start": { "line": 523, @@ -156223,8 +156213,8 @@ "postfix": false, "binop": null }, - "start": 21150, - "end": 21151, + "start": 21193, + "end": 21194, "loc": { "start": { "line": 523, @@ -156250,8 +156240,8 @@ "updateContext": null }, "value": "===", - "start": 21152, - "end": 21155, + "start": 21195, + "end": 21198, "loc": { "start": { "line": 523, @@ -156277,8 +156267,8 @@ "updateContext": null }, "value": "number", - "start": 21156, - "end": 21164, + "start": 21199, + "end": 21207, "loc": { "start": { "line": 523, @@ -156302,8 +156292,8 @@ "postfix": false, "binop": null }, - "start": 21164, - "end": 21165, + "start": 21207, + "end": 21208, "loc": { "start": { "line": 523, @@ -156327,8 +156317,8 @@ "postfix": false, "binop": null }, - "start": 21166, - "end": 21167, + "start": 21209, + "end": 21210, "loc": { "start": { "line": 523, @@ -156355,8 +156345,8 @@ "updateContext": null }, "value": "this", - "start": 21173, - "end": 21177, + "start": 21216, + "end": 21220, "loc": { "start": { "line": 524, @@ -156381,8 +156371,8 @@ "binop": null, "updateContext": null }, - "start": 21177, - "end": 21178, + "start": 21220, + "end": 21221, "loc": { "start": { "line": 524, @@ -156407,8 +156397,8 @@ "binop": null }, "value": "tileSize", - "start": 21178, - "end": 21186, + "start": 21221, + "end": 21229, "loc": { "start": { "line": 524, @@ -156433,8 +156423,8 @@ "binop": null, "updateContext": null }, - "start": 21186, - "end": 21187, + "start": 21229, + "end": 21230, "loc": { "start": { "line": 524, @@ -156459,8 +156449,8 @@ "binop": null }, "value": "height", - "start": 21187, - "end": 21193, + "start": 21230, + "end": 21236, "loc": { "start": { "line": 524, @@ -156486,8 +156476,8 @@ "updateContext": null }, "value": "=", - "start": 21194, - "end": 21195, + "start": 21237, + "end": 21238, "loc": { "start": { "line": 524, @@ -156512,8 +156502,8 @@ "binop": null }, "value": "height", - "start": 21196, - "end": 21202, + "start": 21239, + "end": 21245, "loc": { "start": { "line": 524, @@ -156538,8 +156528,8 @@ "binop": null, "updateContext": null }, - "start": 21202, - "end": 21203, + "start": 21245, + "end": 21246, "loc": { "start": { "line": 524, @@ -156563,8 +156553,8 @@ "postfix": false, "binop": null }, - "start": 21208, - "end": 21209, + "start": 21251, + "end": 21252, "loc": { "start": { "line": 525, @@ -156588,8 +156578,8 @@ "postfix": false, "binop": null }, - "start": 21213, - "end": 21214, + "start": 21256, + "end": 21257, "loc": { "start": { "line": 526, @@ -156616,8 +156606,8 @@ "updateContext": null }, "value": "else", - "start": 21215, - "end": 21219, + "start": 21258, + "end": 21262, "loc": { "start": { "line": 526, @@ -156641,8 +156631,8 @@ "postfix": false, "binop": null }, - "start": 21220, - "end": 21221, + "start": 21263, + "end": 21264, "loc": { "start": { "line": 526, @@ -156669,8 +156659,8 @@ "updateContext": null }, "value": "this", - "start": 21226, - "end": 21230, + "start": 21269, + "end": 21273, "loc": { "start": { "line": 527, @@ -156695,8 +156685,8 @@ "binop": null, "updateContext": null }, - "start": 21230, - "end": 21231, + "start": 21273, + "end": 21274, "loc": { "start": { "line": 527, @@ -156721,8 +156711,8 @@ "binop": null }, "value": "logger", - "start": 21231, - "end": 21237, + "start": 21274, + "end": 21280, "loc": { "start": { "line": 527, @@ -156747,8 +156737,8 @@ "binop": null, "updateContext": null }, - "start": 21237, - "end": 21238, + "start": 21280, + "end": 21281, "loc": { "start": { "line": 527, @@ -156773,8 +156763,8 @@ "binop": null }, "value": "prefix", - "start": 21238, - "end": 21244, + "start": 21281, + "end": 21287, "loc": { "start": { "line": 527, @@ -156798,8 +156788,8 @@ "postfix": false, "binop": null }, - "start": 21244, - "end": 21245, + "start": 21287, + "end": 21288, "loc": { "start": { "line": 527, @@ -156825,8 +156815,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 21245, - "end": 21261, + "start": 21288, + "end": 21304, "loc": { "start": { "line": 527, @@ -156850,8 +156840,8 @@ "postfix": false, "binop": null }, - "start": 21261, - "end": 21262, + "start": 21304, + "end": 21305, "loc": { "start": { "line": 527, @@ -156876,8 +156866,8 @@ "binop": null, "updateContext": null }, - "start": 21262, - "end": 21263, + "start": 21305, + "end": 21306, "loc": { "start": { "line": 527, @@ -156902,8 +156892,8 @@ "binop": null }, "value": "error", - "start": 21263, - "end": 21268, + "start": 21306, + "end": 21311, "loc": { "start": { "line": 527, @@ -156927,8 +156917,8 @@ "postfix": false, "binop": null }, - "start": 21268, - "end": 21269, + "start": 21311, + "end": 21312, "loc": { "start": { "line": 527, @@ -156954,8 +156944,8 @@ "updateContext": null }, "value": "Invalid type used for pTileSize", - "start": 21269, - "end": 21302, + "start": 21312, + "end": 21345, "loc": { "start": { "line": 527, @@ -156979,8 +156969,8 @@ "postfix": false, "binop": null }, - "start": 21302, - "end": 21303, + "start": 21345, + "end": 21346, "loc": { "start": { "line": 527, @@ -157005,8 +156995,8 @@ "binop": null, "updateContext": null }, - "start": 21303, - "end": 21304, + "start": 21346, + "end": 21347, "loc": { "start": { "line": 527, @@ -157030,8 +157020,8 @@ "postfix": false, "binop": null }, - "start": 21308, - "end": 21309, + "start": 21351, + "end": 21352, "loc": { "start": { "line": 528, @@ -157055,8 +157045,8 @@ "postfix": false, "binop": null }, - "start": 21312, - "end": 21313, + "start": 21355, + "end": 21356, "loc": { "start": { "line": 529, @@ -157071,8 +157061,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t ", - "start": 21316, - "end": 21588, + "start": 21359, + "end": 21631, "loc": { "start": { "line": 530, @@ -157097,8 +157087,8 @@ "binop": null }, "value": "isTileAccessible", - "start": 21591, - "end": 21607, + "start": 21634, + "end": 21650, "loc": { "start": { "line": 537, @@ -157122,8 +157112,8 @@ "postfix": false, "binop": null }, - "start": 21607, - "end": 21608, + "start": 21650, + "end": 21651, "loc": { "start": { "line": 537, @@ -157148,8 +157138,8 @@ "binop": null }, "value": "pTile", - "start": 21608, - "end": 21613, + "start": 21651, + "end": 21656, "loc": { "start": { "line": 537, @@ -157174,8 +157164,8 @@ "binop": null, "updateContext": null }, - "start": 21613, - "end": 21614, + "start": 21656, + "end": 21657, "loc": { "start": { "line": 537, @@ -157200,8 +157190,8 @@ "binop": null }, "value": "pExclusionList", - "start": 21615, - "end": 21629, + "start": 21658, + "end": 21672, "loc": { "start": { "line": 537, @@ -157225,8 +157215,8 @@ "postfix": false, "binop": null }, - "start": 21629, - "end": 21630, + "start": 21672, + "end": 21673, "loc": { "start": { "line": 537, @@ -157250,8 +157240,8 @@ "postfix": false, "binop": null }, - "start": 21631, - "end": 21632, + "start": 21674, + "end": 21675, "loc": { "start": { "line": 537, @@ -157266,8 +157256,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is accessible. This prevents the tile's contents from being searched. ", - "start": 21636, - "end": 21762, + "start": 21679, + "end": 21805, "loc": { "start": { "line": 538, @@ -157282,8 +157272,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 21766, - "end": 21895, + "start": 21809, + "end": 21938, "loc": { "start": { "line": 539, @@ -157310,8 +157300,8 @@ "updateContext": null }, "value": "const", - "start": 21899, - "end": 21904, + "start": 21942, + "end": 21947, "loc": { "start": { "line": 540, @@ -157336,8 +157326,8 @@ "binop": null }, "value": "isExcluded", - "start": 21905, - "end": 21915, + "start": 21948, + "end": 21958, "loc": { "start": { "line": 540, @@ -157363,8 +157353,8 @@ "updateContext": null }, "value": "=", - "start": 21916, - "end": 21917, + "start": 21959, + "end": 21960, "loc": { "start": { "line": 540, @@ -157388,8 +157378,8 @@ "postfix": false, "binop": null }, - "start": 21918, - "end": 21919, + "start": 21961, + "end": 21962, "loc": { "start": { "line": 540, @@ -157414,8 +157404,8 @@ "binop": null }, "value": "pInstance", - "start": 21919, - "end": 21928, + "start": 21962, + "end": 21971, "loc": { "start": { "line": 540, @@ -157439,8 +157429,8 @@ "postfix": false, "binop": null }, - "start": 21928, - "end": 21929, + "start": 21971, + "end": 21972, "loc": { "start": { "line": 540, @@ -157465,8 +157455,8 @@ "binop": null, "updateContext": null }, - "start": 21930, - "end": 21932, + "start": 21973, + "end": 21975, "loc": { "start": { "line": 540, @@ -157491,8 +157481,8 @@ "binop": null }, "value": "pExclusionList", - "start": 21933, - "end": 21947, + "start": 21976, + "end": 21990, "loc": { "start": { "line": 540, @@ -157517,8 +157507,8 @@ "binop": null, "updateContext": null }, - "start": 21947, - "end": 21948, + "start": 21990, + "end": 21991, "loc": { "start": { "line": 540, @@ -157543,8 +157533,8 @@ "binop": null }, "value": "includes", - "start": 21948, - "end": 21956, + "start": 21991, + "end": 21999, "loc": { "start": { "line": 540, @@ -157568,8 +157558,8 @@ "postfix": false, "binop": null }, - "start": 21956, - "end": 21957, + "start": 21999, + "end": 22000, "loc": { "start": { "line": 540, @@ -157594,8 +157584,8 @@ "binop": null }, "value": "pInstance", - "start": 21957, - "end": 21966, + "start": 22000, + "end": 22009, "loc": { "start": { "line": 540, @@ -157619,8 +157609,8 @@ "postfix": false, "binop": null }, - "start": 21966, - "end": 21967, + "start": 22009, + "end": 22010, "loc": { "start": { "line": 540, @@ -157645,8 +157635,8 @@ "binop": null, "updateContext": null }, - "start": 21967, - "end": 21968, + "start": 22010, + "end": 22011, "loc": { "start": { "line": 540, @@ -157661,8 +157651,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 21972, - "end": 22092, + "start": 22015, + "end": 22135, "loc": { "start": { "line": 541, @@ -157689,8 +157679,8 @@ "updateContext": null }, "value": "const", - "start": 22096, - "end": 22101, + "start": 22139, + "end": 22144, "loc": { "start": { "line": 542, @@ -157715,8 +157705,8 @@ "binop": null }, "value": "isImpassable", - "start": 22102, - "end": 22114, + "start": 22145, + "end": 22157, "loc": { "start": { "line": 542, @@ -157742,8 +157732,8 @@ "updateContext": null }, "value": "=", - "start": 22115, - "end": 22116, + "start": 22158, + "end": 22159, "loc": { "start": { "line": 542, @@ -157767,8 +157757,8 @@ "postfix": false, "binop": null }, - "start": 22117, - "end": 22118, + "start": 22160, + "end": 22161, "loc": { "start": { "line": 542, @@ -157793,8 +157783,8 @@ "binop": null }, "value": "pInstance", - "start": 22118, - "end": 22127, + "start": 22161, + "end": 22170, "loc": { "start": { "line": 542, @@ -157818,8 +157808,8 @@ "postfix": false, "binop": null }, - "start": 22127, - "end": 22128, + "start": 22170, + "end": 22171, "loc": { "start": { "line": 542, @@ -157844,8 +157834,8 @@ "binop": null, "updateContext": null }, - "start": 22129, - "end": 22131, + "start": 22172, + "end": 22174, "loc": { "start": { "line": 542, @@ -157869,8 +157859,8 @@ "postfix": false, "binop": null }, - "start": 22132, - "end": 22133, + "start": 22175, + "end": 22176, "loc": { "start": { "line": 542, @@ -157895,8 +157885,8 @@ "binop": null }, "value": "pInstance", - "start": 22133, - "end": 22142, + "start": 22176, + "end": 22185, "loc": { "start": { "line": 542, @@ -157921,8 +157911,8 @@ "binop": null, "updateContext": null }, - "start": 22142, - "end": 22143, + "start": 22185, + "end": 22186, "loc": { "start": { "line": 542, @@ -157947,8 +157937,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 22143, - "end": 22156, + "start": 22186, + "end": 22199, "loc": { "start": { "line": 542, @@ -157974,8 +157964,8 @@ "updateContext": null }, "value": "===", - "start": 22157, - "end": 22160, + "start": 22200, + "end": 22203, "loc": { "start": { "line": 542, @@ -158000,8 +157990,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 22161, - "end": 22177, + "start": 22204, + "end": 22220, "loc": { "start": { "line": 542, @@ -158026,8 +158016,8 @@ "binop": null, "updateContext": null }, - "start": 22177, - "end": 22178, + "start": 22220, + "end": 22221, "loc": { "start": { "line": 542, @@ -158052,8 +158042,8 @@ "binop": null }, "value": "IMPASSABLE_WEIGHT", - "start": 22178, - "end": 22195, + "start": 22221, + "end": 22238, "loc": { "start": { "line": 542, @@ -158077,8 +158067,8 @@ "postfix": false, "binop": null }, - "start": 22195, - "end": 22196, + "start": 22238, + "end": 22239, "loc": { "start": { "line": 542, @@ -158104,8 +158094,8 @@ "updateContext": null }, "value": "||", - "start": 22197, - "end": 22199, + "start": 22240, + "end": 22242, "loc": { "start": { "line": 542, @@ -158130,8 +158120,8 @@ "binop": null }, "value": "pInstance", - "start": 22200, - "end": 22209, + "start": 22243, + "end": 22252, "loc": { "start": { "line": 542, @@ -158156,8 +158146,8 @@ "binop": null, "updateContext": null }, - "start": 22209, - "end": 22210, + "start": 22252, + "end": 22253, "loc": { "start": { "line": 542, @@ -158182,8 +158172,8 @@ "binop": null }, "value": "density", - "start": 22210, - "end": 22217, + "start": 22253, + "end": 22260, "loc": { "start": { "line": 542, @@ -158209,8 +158199,8 @@ "updateContext": null }, "value": "&&", - "start": 22218, - "end": 22220, + "start": 22261, + "end": 22263, "loc": { "start": { "line": 542, @@ -158234,8 +158224,8 @@ "postfix": false, "binop": null }, - "start": 22221, - "end": 22222, + "start": 22264, + "end": 22265, "loc": { "start": { "line": 542, @@ -158261,8 +158251,8 @@ "updateContext": null }, "value": "!", - "start": 22222, - "end": 22223, + "start": 22265, + "end": 22266, "loc": { "start": { "line": 542, @@ -158287,8 +158277,8 @@ "binop": null }, "value": "pInstance", - "start": 22223, - "end": 22232, + "start": 22266, + "end": 22275, "loc": { "start": { "line": 542, @@ -158313,8 +158303,8 @@ "binop": null, "updateContext": null }, - "start": 22232, - "end": 22233, + "start": 22275, + "end": 22276, "loc": { "start": { "line": 542, @@ -158339,8 +158329,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 22233, - "end": 22246, + "start": 22276, + "end": 22289, "loc": { "start": { "line": 542, @@ -158366,8 +158356,8 @@ "updateContext": null }, "value": "&&", - "start": 22247, - "end": 22249, + "start": 22290, + "end": 22292, "loc": { "start": { "line": 542, @@ -158392,8 +158382,8 @@ "binop": null }, "value": "pInstance", - "start": 22250, - "end": 22259, + "start": 22293, + "end": 22302, "loc": { "start": { "line": 542, @@ -158418,8 +158408,8 @@ "binop": null, "updateContext": null }, - "start": 22259, - "end": 22260, + "start": 22302, + "end": 22303, "loc": { "start": { "line": 542, @@ -158444,8 +158434,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 22260, - "end": 22273, + "start": 22303, + "end": 22316, "loc": { "start": { "line": 542, @@ -158471,8 +158461,8 @@ "updateContext": null }, "value": "!==", - "start": 22274, - "end": 22277, + "start": 22317, + "end": 22320, "loc": { "start": { "line": 542, @@ -158497,8 +158487,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 22278, - "end": 22294, + "start": 22321, + "end": 22337, "loc": { "start": { "line": 542, @@ -158523,8 +158513,8 @@ "binop": null, "updateContext": null }, - "start": 22294, - "end": 22295, + "start": 22337, + "end": 22338, "loc": { "start": { "line": 542, @@ -158549,8 +158539,8 @@ "binop": null }, "value": "PASSABLE_WEIGHT", - "start": 22295, - "end": 22310, + "start": 22338, + "end": 22353, "loc": { "start": { "line": 542, @@ -158574,8 +158564,8 @@ "postfix": false, "binop": null }, - "start": 22310, - "end": 22311, + "start": 22353, + "end": 22354, "loc": { "start": { "line": 542, @@ -158600,8 +158590,8 @@ "binop": null, "updateContext": null }, - "start": 22311, - "end": 22312, + "start": 22354, + "end": 22355, "loc": { "start": { "line": 542, @@ -158616,8 +158606,8 @@ { "type": "CommentLine", "value": " If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.", - "start": 22316, - "end": 22455, + "start": 22359, + "end": 22498, "loc": { "start": { "line": 543, @@ -158644,8 +158634,8 @@ "updateContext": null }, "value": "const", - "start": 22459, - "end": 22464, + "start": 22502, + "end": 22507, "loc": { "start": { "line": 544, @@ -158670,8 +158660,8 @@ "binop": null }, "value": "hasImpassableContent", - "start": 22465, - "end": 22485, + "start": 22508, + "end": 22528, "loc": { "start": { "line": 544, @@ -158697,8 +158687,8 @@ "updateContext": null }, "value": "=", - "start": 22486, - "end": 22487, + "start": 22529, + "end": 22530, "loc": { "start": { "line": 544, @@ -158722,8 +158712,8 @@ "postfix": false, "binop": null }, - "start": 22488, - "end": 22489, + "start": 22531, + "end": 22532, "loc": { "start": { "line": 544, @@ -158748,8 +158738,8 @@ "binop": null }, "value": "pInstance", - "start": 22489, - "end": 22498, + "start": 22532, + "end": 22541, "loc": { "start": { "line": 544, @@ -158773,8 +158763,8 @@ "postfix": false, "binop": null }, - "start": 22498, - "end": 22499, + "start": 22541, + "end": 22542, "loc": { "start": { "line": 544, @@ -158799,8 +158789,8 @@ "binop": null, "updateContext": null }, - "start": 22500, - "end": 22502, + "start": 22543, + "end": 22545, "loc": { "start": { "line": 544, @@ -158825,8 +158815,8 @@ "binop": null }, "value": "pInstance", - "start": 22503, - "end": 22512, + "start": 22546, + "end": 22555, "loc": { "start": { "line": 544, @@ -158851,8 +158841,8 @@ "binop": null, "updateContext": null }, - "start": 22512, - "end": 22513, + "start": 22555, + "end": 22556, "loc": { "start": { "line": 544, @@ -158877,8 +158867,8 @@ "binop": null }, "value": "getContents", - "start": 22513, - "end": 22524, + "start": 22556, + "end": 22567, "loc": { "start": { "line": 544, @@ -158902,8 +158892,8 @@ "postfix": false, "binop": null }, - "start": 22524, - "end": 22525, + "start": 22567, + "end": 22568, "loc": { "start": { "line": 544, @@ -158927,8 +158917,8 @@ "postfix": false, "binop": null }, - "start": 22525, - "end": 22526, + "start": 22568, + "end": 22569, "loc": { "start": { "line": 544, @@ -158953,8 +158943,8 @@ "binop": null, "updateContext": null }, - "start": 22526, - "end": 22527, + "start": 22569, + "end": 22570, "loc": { "start": { "line": 544, @@ -158979,8 +158969,8 @@ "binop": null }, "value": "some", - "start": 22527, - "end": 22531, + "start": 22570, + "end": 22574, "loc": { "start": { "line": 544, @@ -159004,8 +158994,8 @@ "postfix": false, "binop": null }, - "start": 22531, - "end": 22532, + "start": 22574, + "end": 22575, "loc": { "start": { "line": 544, @@ -159029,8 +159019,8 @@ "postfix": false, "binop": null }, - "start": 22532, - "end": 22533, + "start": 22575, + "end": 22576, "loc": { "start": { "line": 544, @@ -159055,8 +159045,8 @@ "binop": null }, "value": "pInstance", - "start": 22533, - "end": 22542, + "start": 22576, + "end": 22585, "loc": { "start": { "line": 544, @@ -159080,8 +159070,8 @@ "postfix": false, "binop": null }, - "start": 22542, - "end": 22543, + "start": 22585, + "end": 22586, "loc": { "start": { "line": 544, @@ -159106,8 +159096,8 @@ "binop": null, "updateContext": null }, - "start": 22544, - "end": 22546, + "start": 22587, + "end": 22589, "loc": { "start": { "line": 544, @@ -159131,8 +159121,8 @@ "postfix": false, "binop": null }, - "start": 22547, - "end": 22548, + "start": 22590, + "end": 22591, "loc": { "start": { "line": 544, @@ -159159,8 +159149,8 @@ "updateContext": null }, "value": "return", - "start": 22553, - "end": 22559, + "start": 22596, + "end": 22602, "loc": { "start": { "line": 545, @@ -159185,8 +159175,8 @@ "binop": null }, "value": "isImpassable", - "start": 22560, - "end": 22572, + "start": 22603, + "end": 22615, "loc": { "start": { "line": 545, @@ -159210,8 +159200,8 @@ "postfix": false, "binop": null }, - "start": 22572, - "end": 22573, + "start": 22615, + "end": 22616, "loc": { "start": { "line": 545, @@ -159236,8 +159226,8 @@ "binop": null }, "value": "pInstance", - "start": 22573, - "end": 22582, + "start": 22616, + "end": 22625, "loc": { "start": { "line": 545, @@ -159261,8 +159251,8 @@ "postfix": false, "binop": null }, - "start": 22582, - "end": 22583, + "start": 22625, + "end": 22626, "loc": { "start": { "line": 545, @@ -159288,8 +159278,8 @@ "updateContext": null }, "value": "&&", - "start": 22584, - "end": 22586, + "start": 22627, + "end": 22629, "loc": { "start": { "line": 545, @@ -159315,8 +159305,8 @@ "updateContext": null }, "value": "!", - "start": 22587, - "end": 22588, + "start": 22630, + "end": 22631, "loc": { "start": { "line": 545, @@ -159341,8 +159331,8 @@ "binop": null }, "value": "isExcluded", - "start": 22588, - "end": 22598, + "start": 22631, + "end": 22641, "loc": { "start": { "line": 545, @@ -159366,8 +159356,8 @@ "postfix": false, "binop": null }, - "start": 22598, - "end": 22599, + "start": 22641, + "end": 22642, "loc": { "start": { "line": 545, @@ -159392,8 +159382,8 @@ "binop": null }, "value": "pInstance", - "start": 22599, - "end": 22608, + "start": 22642, + "end": 22651, "loc": { "start": { "line": 545, @@ -159417,8 +159407,8 @@ "postfix": false, "binop": null }, - "start": 22608, - "end": 22609, + "start": 22651, + "end": 22652, "loc": { "start": { "line": 545, @@ -159443,8 +159433,8 @@ "binop": null, "updateContext": null }, - "start": 22609, - "end": 22610, + "start": 22652, + "end": 22653, "loc": { "start": { "line": 545, @@ -159468,8 +159458,8 @@ "postfix": false, "binop": null }, - "start": 22614, - "end": 22615, + "start": 22657, + "end": 22658, "loc": { "start": { "line": 546, @@ -159493,8 +159483,8 @@ "postfix": false, "binop": null }, - "start": 22615, - "end": 22616, + "start": 22658, + "end": 22659, "loc": { "start": { "line": 546, @@ -159519,8 +159509,8 @@ "binop": null, "updateContext": null }, - "start": 22616, - "end": 22617, + "start": 22659, + "end": 22660, "loc": { "start": { "line": 546, @@ -159547,8 +159537,8 @@ "updateContext": null }, "value": "return", - "start": 22621, - "end": 22627, + "start": 22664, + "end": 22670, "loc": { "start": { "line": 547, @@ -159573,8 +159563,8 @@ "binop": null }, "value": "isExcluded", - "start": 22628, - "end": 22638, + "start": 22671, + "end": 22681, "loc": { "start": { "line": 547, @@ -159598,8 +159588,8 @@ "postfix": false, "binop": null }, - "start": 22638, - "end": 22639, + "start": 22681, + "end": 22682, "loc": { "start": { "line": 547, @@ -159624,8 +159614,8 @@ "binop": null }, "value": "pTile", - "start": 22639, - "end": 22644, + "start": 22682, + "end": 22687, "loc": { "start": { "line": 547, @@ -159649,8 +159639,8 @@ "postfix": false, "binop": null }, - "start": 22644, - "end": 22645, + "start": 22687, + "end": 22688, "loc": { "start": { "line": 547, @@ -159676,8 +159666,8 @@ "updateContext": null }, "value": "||", - "start": 22646, - "end": 22648, + "start": 22689, + "end": 22691, "loc": { "start": { "line": 547, @@ -159701,8 +159691,8 @@ "postfix": false, "binop": null }, - "start": 22649, - "end": 22650, + "start": 22692, + "end": 22693, "loc": { "start": { "line": 547, @@ -159728,8 +159718,8 @@ "updateContext": null }, "value": "!", - "start": 22650, - "end": 22651, + "start": 22693, + "end": 22694, "loc": { "start": { "line": 547, @@ -159754,8 +159744,8 @@ "binop": null }, "value": "isImpassable", - "start": 22651, - "end": 22663, + "start": 22694, + "end": 22706, "loc": { "start": { "line": 547, @@ -159779,8 +159769,8 @@ "postfix": false, "binop": null }, - "start": 22663, - "end": 22664, + "start": 22706, + "end": 22707, "loc": { "start": { "line": 547, @@ -159805,8 +159795,8 @@ "binop": null }, "value": "pTile", - "start": 22664, - "end": 22669, + "start": 22707, + "end": 22712, "loc": { "start": { "line": 547, @@ -159830,8 +159820,8 @@ "postfix": false, "binop": null }, - "start": 22669, - "end": 22670, + "start": 22712, + "end": 22713, "loc": { "start": { "line": 547, @@ -159857,8 +159847,8 @@ "updateContext": null }, "value": "&&", - "start": 22671, - "end": 22673, + "start": 22714, + "end": 22716, "loc": { "start": { "line": 547, @@ -159884,8 +159874,8 @@ "updateContext": null }, "value": "!", - "start": 22674, - "end": 22675, + "start": 22717, + "end": 22718, "loc": { "start": { "line": 547, @@ -159910,8 +159900,8 @@ "binop": null }, "value": "hasImpassableContent", - "start": 22675, - "end": 22695, + "start": 22718, + "end": 22738, "loc": { "start": { "line": 547, @@ -159935,8 +159925,8 @@ "postfix": false, "binop": null }, - "start": 22695, - "end": 22696, + "start": 22738, + "end": 22739, "loc": { "start": { "line": 547, @@ -159961,8 +159951,8 @@ "binop": null }, "value": "pTile", - "start": 22696, - "end": 22701, + "start": 22739, + "end": 22744, "loc": { "start": { "line": 547, @@ -159986,8 +159976,8 @@ "postfix": false, "binop": null }, - "start": 22701, - "end": 22702, + "start": 22744, + "end": 22745, "loc": { "start": { "line": 547, @@ -160011,8 +160001,8 @@ "postfix": false, "binop": null }, - "start": 22702, - "end": 22703, + "start": 22745, + "end": 22746, "loc": { "start": { "line": 547, @@ -160037,8 +160027,8 @@ "binop": null, "updateContext": null }, - "start": 22703, - "end": 22704, + "start": 22746, + "end": 22747, "loc": { "start": { "line": 547, @@ -160062,8 +160052,8 @@ "postfix": false, "binop": null }, - "start": 22707, - "end": 22708, + "start": 22750, + "end": 22751, "loc": { "start": { "line": 548, @@ -160078,8 +160068,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t ", - "start": 22711, - "end": 23306, + "start": 22754, + "end": 23349, "loc": { "start": { "line": 549, @@ -160104,8 +160094,8 @@ "binop": null }, "value": "getPath", - "start": 23309, - "end": 23316, + "start": 23352, + "end": 23359, "loc": { "start": { "line": 560, @@ -160129,8 +160119,8 @@ "postfix": false, "binop": null }, - "start": 23316, - "end": 23317, + "start": 23359, + "end": 23360, "loc": { "start": { "line": 560, @@ -160155,8 +160145,8 @@ "binop": null }, "value": "pInstance", - "start": 23317, - "end": 23326, + "start": 23360, + "end": 23369, "loc": { "start": { "line": 560, @@ -160181,8 +160171,8 @@ "binop": null, "updateContext": null }, - "start": 23326, - "end": 23327, + "start": 23369, + "end": 23370, "loc": { "start": { "line": 560, @@ -160207,8 +160197,8 @@ "binop": null }, "value": "pOrigin", - "start": 23328, - "end": 23335, + "start": 23371, + "end": 23378, "loc": { "start": { "line": 560, @@ -160233,8 +160223,8 @@ "binop": null, "updateContext": null }, - "start": 23335, - "end": 23336, + "start": 23378, + "end": 23379, "loc": { "start": { "line": 560, @@ -160259,8 +160249,8 @@ "binop": null }, "value": "pDestination", - "start": 23337, - "end": 23349, + "start": 23380, + "end": 23392, "loc": { "start": { "line": 560, @@ -160284,8 +160274,8 @@ "postfix": false, "binop": null }, - "start": 23349, - "end": 23350, + "start": 23392, + "end": 23393, "loc": { "start": { "line": 560, @@ -160309,8 +160299,8 @@ "postfix": false, "binop": null }, - "start": 23351, - "end": 23352, + "start": 23394, + "end": 23395, "loc": { "start": { "line": 560, @@ -160325,8 +160315,8 @@ { "type": "CommentLine", "value": " Get the instance data", - "start": 23356, - "end": 23380, + "start": 23399, + "end": 23423, "loc": { "start": { "line": 561, @@ -160353,8 +160343,8 @@ "updateContext": null }, "value": "const", - "start": 23384, - "end": 23389, + "start": 23427, + "end": 23432, "loc": { "start": { "line": 562, @@ -160379,8 +160369,8 @@ "binop": null }, "value": "instanceData", - "start": 23390, - "end": 23402, + "start": 23433, + "end": 23445, "loc": { "start": { "line": 562, @@ -160406,8 +160396,8 @@ "updateContext": null }, "value": "=", - "start": 23403, - "end": 23404, + "start": 23446, + "end": 23447, "loc": { "start": { "line": 562, @@ -160434,8 +160424,8 @@ "updateContext": null }, "value": "this", - "start": 23405, - "end": 23409, + "start": 23448, + "end": 23452, "loc": { "start": { "line": 562, @@ -160460,8 +160450,8 @@ "binop": null, "updateContext": null }, - "start": 23409, - "end": 23410, + "start": 23452, + "end": 23453, "loc": { "start": { "line": 562, @@ -160486,8 +160476,8 @@ "binop": null }, "value": "instanceWeakMap", - "start": 23410, - "end": 23425, + "start": 23453, + "end": 23468, "loc": { "start": { "line": 562, @@ -160512,8 +160502,8 @@ "binop": null, "updateContext": null }, - "start": 23425, - "end": 23426, + "start": 23468, + "end": 23469, "loc": { "start": { "line": 562, @@ -160538,8 +160528,8 @@ "binop": null }, "value": "get", - "start": 23426, - "end": 23429, + "start": 23469, + "end": 23472, "loc": { "start": { "line": 562, @@ -160563,8 +160553,8 @@ "postfix": false, "binop": null }, - "start": 23429, - "end": 23430, + "start": 23472, + "end": 23473, "loc": { "start": { "line": 562, @@ -160589,8 +160579,8 @@ "binop": null }, "value": "pInstance", - "start": 23430, - "end": 23439, + "start": 23473, + "end": 23482, "loc": { "start": { "line": 562, @@ -160614,8 +160604,8 @@ "postfix": false, "binop": null }, - "start": 23439, - "end": 23440, + "start": 23482, + "end": 23483, "loc": { "start": { "line": 562, @@ -160640,8 +160630,8 @@ "binop": null, "updateContext": null }, - "start": 23440, - "end": 23441, + "start": 23483, + "end": 23484, "loc": { "start": { "line": 562, @@ -160668,8 +160658,8 @@ "updateContext": null }, "value": "if", - "start": 23445, - "end": 23447, + "start": 23488, + "end": 23490, "loc": { "start": { "line": 563, @@ -160693,8 +160683,8 @@ "postfix": false, "binop": null }, - "start": 23448, - "end": 23449, + "start": 23491, + "end": 23492, "loc": { "start": { "line": 563, @@ -160720,8 +160710,8 @@ "updateContext": null }, "value": "!", - "start": 23449, - "end": 23450, + "start": 23492, + "end": 23493, "loc": { "start": { "line": 563, @@ -160746,8 +160736,8 @@ "binop": null }, "value": "instanceData", - "start": 23450, - "end": 23462, + "start": 23493, + "end": 23505, "loc": { "start": { "line": 563, @@ -160771,8 +160761,8 @@ "postfix": false, "binop": null }, - "start": 23462, - "end": 23463, + "start": 23505, + "end": 23506, "loc": { "start": { "line": 563, @@ -160796,8 +160786,8 @@ "postfix": false, "binop": null }, - "start": 23464, - "end": 23465, + "start": 23507, + "end": 23508, "loc": { "start": { "line": 563, @@ -160824,8 +160814,8 @@ "updateContext": null }, "value": "this", - "start": 23470, - "end": 23474, + "start": 23513, + "end": 23517, "loc": { "start": { "line": 564, @@ -160850,8 +160840,8 @@ "binop": null, "updateContext": null }, - "start": 23474, - "end": 23475, + "start": 23517, + "end": 23518, "loc": { "start": { "line": 564, @@ -160876,8 +160866,8 @@ "binop": null }, "value": "logger", - "start": 23475, - "end": 23481, + "start": 23518, + "end": 23524, "loc": { "start": { "line": 564, @@ -160902,8 +160892,8 @@ "binop": null, "updateContext": null }, - "start": 23481, - "end": 23482, + "start": 23524, + "end": 23525, "loc": { "start": { "line": 564, @@ -160928,8 +160918,8 @@ "binop": null }, "value": "prefix", - "start": 23482, - "end": 23488, + "start": 23525, + "end": 23531, "loc": { "start": { "line": 564, @@ -160953,8 +160943,8 @@ "postfix": false, "binop": null }, - "start": 23488, - "end": 23489, + "start": 23531, + "end": 23532, "loc": { "start": { "line": 564, @@ -160980,8 +160970,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 23489, - "end": 23505, + "start": 23532, + "end": 23548, "loc": { "start": { "line": 564, @@ -161005,8 +160995,8 @@ "postfix": false, "binop": null }, - "start": 23505, - "end": 23506, + "start": 23548, + "end": 23549, "loc": { "start": { "line": 564, @@ -161031,8 +161021,8 @@ "binop": null, "updateContext": null }, - "start": 23506, - "end": 23507, + "start": 23549, + "end": 23550, "loc": { "start": { "line": 564, @@ -161057,8 +161047,8 @@ "binop": null }, "value": "error", - "start": 23507, - "end": 23512, + "start": 23550, + "end": 23555, "loc": { "start": { "line": 564, @@ -161082,8 +161072,8 @@ "postfix": false, "binop": null }, - "start": 23512, - "end": 23513, + "start": 23555, + "end": 23556, "loc": { "start": { "line": 564, @@ -161109,8 +161099,8 @@ "updateContext": null }, "value": "Instance data not found!", - "start": 23513, - "end": 23539, + "start": 23556, + "end": 23582, "loc": { "start": { "line": 564, @@ -161134,8 +161124,8 @@ "postfix": false, "binop": null }, - "start": 23539, - "end": 23540, + "start": 23582, + "end": 23583, "loc": { "start": { "line": 564, @@ -161160,8 +161150,8 @@ "binop": null, "updateContext": null }, - "start": 23540, - "end": 23541, + "start": 23583, + "end": 23584, "loc": { "start": { "line": 564, @@ -161188,8 +161178,8 @@ "updateContext": null }, "value": "return", - "start": 23546, - "end": 23552, + "start": 23589, + "end": 23595, "loc": { "start": { "line": 565, @@ -161214,8 +161204,8 @@ "binop": null, "updateContext": null }, - "start": 23552, - "end": 23553, + "start": 23595, + "end": 23596, "loc": { "start": { "line": 565, @@ -161239,8 +161229,8 @@ "postfix": false, "binop": null }, - "start": 23557, - "end": 23558, + "start": 23600, + "end": 23601, "loc": { "start": { "line": 566, @@ -161255,8 +161245,8 @@ { "type": "CommentLine", "value": " Find the path", - "start": 23566, - "end": 23582, + "start": 23609, + "end": 23625, "loc": { "start": { "line": 568, @@ -161283,8 +161273,8 @@ "updateContext": null }, "value": "const", - "start": 23586, - "end": 23591, + "start": 23629, + "end": 23634, "loc": { "start": { "line": 569, @@ -161309,8 +161299,8 @@ "binop": null }, "value": "pathID", - "start": 23592, - "end": 23598, + "start": 23635, + "end": 23641, "loc": { "start": { "line": 569, @@ -161336,8 +161326,8 @@ "updateContext": null }, "value": "=", - "start": 23599, - "end": 23600, + "start": 23642, + "end": 23643, "loc": { "start": { "line": 569, @@ -161362,8 +161352,8 @@ "binop": null }, "value": "instanceData", - "start": 23601, - "end": 23613, + "start": 23644, + "end": 23656, "loc": { "start": { "line": 569, @@ -161388,8 +161378,8 @@ "binop": null, "updateContext": null }, - "start": 23613, - "end": 23614, + "start": 23656, + "end": 23657, "loc": { "start": { "line": 569, @@ -161414,8 +161404,8 @@ "binop": null }, "value": "easystar", - "start": 23614, - "end": 23622, + "start": 23657, + "end": 23665, "loc": { "start": { "line": 569, @@ -161440,8 +161430,8 @@ "binop": null, "updateContext": null }, - "start": 23622, - "end": 23623, + "start": 23665, + "end": 23666, "loc": { "start": { "line": 569, @@ -161466,8 +161456,8 @@ "binop": null }, "value": "findPath", - "start": 23623, - "end": 23631, + "start": 23666, + "end": 23674, "loc": { "start": { "line": 569, @@ -161491,8 +161481,8 @@ "postfix": false, "binop": null }, - "start": 23631, - "end": 23632, + "start": 23674, + "end": 23675, "loc": { "start": { "line": 569, @@ -161517,8 +161507,8 @@ "binop": null }, "value": "pOrigin", - "start": 23632, - "end": 23639, + "start": 23675, + "end": 23682, "loc": { "start": { "line": 569, @@ -161543,8 +161533,8 @@ "binop": null, "updateContext": null }, - "start": 23639, - "end": 23640, + "start": 23682, + "end": 23683, "loc": { "start": { "line": 569, @@ -161569,8 +161559,8 @@ "binop": null }, "value": "x", - "start": 23640, - "end": 23641, + "start": 23683, + "end": 23684, "loc": { "start": { "line": 569, @@ -161595,8 +161585,8 @@ "binop": null, "updateContext": null }, - "start": 23641, - "end": 23642, + "start": 23684, + "end": 23685, "loc": { "start": { "line": 569, @@ -161621,8 +161611,8 @@ "binop": null }, "value": "pOrigin", - "start": 23643, - "end": 23650, + "start": 23686, + "end": 23693, "loc": { "start": { "line": 569, @@ -161647,8 +161637,8 @@ "binop": null, "updateContext": null }, - "start": 23650, - "end": 23651, + "start": 23693, + "end": 23694, "loc": { "start": { "line": 569, @@ -161673,8 +161663,8 @@ "binop": null }, "value": "y", - "start": 23651, - "end": 23652, + "start": 23694, + "end": 23695, "loc": { "start": { "line": 569, @@ -161699,8 +161689,8 @@ "binop": null, "updateContext": null }, - "start": 23652, - "end": 23653, + "start": 23695, + "end": 23696, "loc": { "start": { "line": 569, @@ -161725,8 +161715,8 @@ "binop": null }, "value": "pDestination", - "start": 23654, - "end": 23666, + "start": 23697, + "end": 23709, "loc": { "start": { "line": 569, @@ -161751,8 +161741,8 @@ "binop": null, "updateContext": null }, - "start": 23666, - "end": 23667, + "start": 23709, + "end": 23710, "loc": { "start": { "line": 569, @@ -161777,8 +161767,8 @@ "binop": null }, "value": "x", - "start": 23667, - "end": 23668, + "start": 23710, + "end": 23711, "loc": { "start": { "line": 569, @@ -161803,8 +161793,8 @@ "binop": null, "updateContext": null }, - "start": 23668, - "end": 23669, + "start": 23711, + "end": 23712, "loc": { "start": { "line": 569, @@ -161829,8 +161819,8 @@ "binop": null }, "value": "pDestination", - "start": 23670, - "end": 23682, + "start": 23713, + "end": 23725, "loc": { "start": { "line": 569, @@ -161855,8 +161845,8 @@ "binop": null, "updateContext": null }, - "start": 23682, - "end": 23683, + "start": 23725, + "end": 23726, "loc": { "start": { "line": 569, @@ -161881,8 +161871,8 @@ "binop": null }, "value": "y", - "start": 23683, - "end": 23684, + "start": 23726, + "end": 23727, "loc": { "start": { "line": 569, @@ -161907,8 +161897,8 @@ "binop": null, "updateContext": null }, - "start": 23684, - "end": 23685, + "start": 23727, + "end": 23728, "loc": { "start": { "line": 569, @@ -161932,8 +161922,8 @@ "postfix": false, "binop": null }, - "start": 23686, - "end": 23687, + "start": 23729, + "end": 23730, "loc": { "start": { "line": 569, @@ -161958,8 +161948,8 @@ "binop": null }, "value": "pPath", - "start": 23687, - "end": 23692, + "start": 23730, + "end": 23735, "loc": { "start": { "line": 569, @@ -161983,8 +161973,8 @@ "postfix": false, "binop": null }, - "start": 23692, - "end": 23693, + "start": 23735, + "end": 23736, "loc": { "start": { "line": 569, @@ -162009,8 +161999,8 @@ "binop": null, "updateContext": null }, - "start": 23694, - "end": 23696, + "start": 23737, + "end": 23739, "loc": { "start": { "line": 569, @@ -162034,8 +162024,8 @@ "postfix": false, "binop": null }, - "start": 23697, - "end": 23698, + "start": 23740, + "end": 23741, "loc": { "start": { "line": 569, @@ -162050,8 +162040,8 @@ { "type": "CommentLine", "value": " Check if the path is valid.", - "start": 23703, - "end": 23733, + "start": 23746, + "end": 23776, "loc": { "start": { "line": 570, @@ -162078,8 +162068,8 @@ "updateContext": null }, "value": "if", - "start": 23738, - "end": 23740, + "start": 23781, + "end": 23783, "loc": { "start": { "line": 571, @@ -162103,8 +162093,8 @@ "postfix": false, "binop": null }, - "start": 23741, - "end": 23742, + "start": 23784, + "end": 23785, "loc": { "start": { "line": 571, @@ -162129,8 +162119,8 @@ "binop": null }, "value": "Array", - "start": 23742, - "end": 23747, + "start": 23785, + "end": 23790, "loc": { "start": { "line": 571, @@ -162155,8 +162145,8 @@ "binop": null, "updateContext": null }, - "start": 23747, - "end": 23748, + "start": 23790, + "end": 23791, "loc": { "start": { "line": 571, @@ -162181,8 +162171,8 @@ "binop": null }, "value": "isArray", - "start": 23748, - "end": 23755, + "start": 23791, + "end": 23798, "loc": { "start": { "line": 571, @@ -162206,8 +162196,8 @@ "postfix": false, "binop": null }, - "start": 23755, - "end": 23756, + "start": 23798, + "end": 23799, "loc": { "start": { "line": 571, @@ -162232,8 +162222,8 @@ "binop": null }, "value": "pPath", - "start": 23756, - "end": 23761, + "start": 23799, + "end": 23804, "loc": { "start": { "line": 571, @@ -162257,8 +162247,8 @@ "postfix": false, "binop": null }, - "start": 23761, - "end": 23762, + "start": 23804, + "end": 23805, "loc": { "start": { "line": 571, @@ -162284,8 +162274,8 @@ "updateContext": null }, "value": "&&", - "start": 23763, - "end": 23765, + "start": 23806, + "end": 23808, "loc": { "start": { "line": 571, @@ -162310,8 +162300,8 @@ "binop": null }, "value": "pPath", - "start": 23766, - "end": 23771, + "start": 23809, + "end": 23814, "loc": { "start": { "line": 571, @@ -162336,8 +162326,8 @@ "binop": null, "updateContext": null }, - "start": 23771, - "end": 23772, + "start": 23814, + "end": 23815, "loc": { "start": { "line": 571, @@ -162362,8 +162352,8 @@ "binop": null }, "value": "length", - "start": 23772, - "end": 23778, + "start": 23815, + "end": 23821, "loc": { "start": { "line": 571, @@ -162387,8 +162377,8 @@ "postfix": false, "binop": null }, - "start": 23778, - "end": 23779, + "start": 23821, + "end": 23822, "loc": { "start": { "line": 571, @@ -162412,8 +162402,8 @@ "postfix": false, "binop": null }, - "start": 23780, - "end": 23781, + "start": 23823, + "end": 23824, "loc": { "start": { "line": 571, @@ -162428,8 +162418,8 @@ { "type": "CommentBlock", "value": "*\r\n\t\t\t\t * The path generated.\r\n\t\t\t\t * @private\r\n\t\t\t\t * @type {Array}\r\n\t\t\t\t ", - "start": 23787, - "end": 23866, + "start": 23830, + "end": 23909, "loc": { "start": { "line": 572, @@ -162456,8 +162446,8 @@ "updateContext": null }, "value": "let", - "start": 23872, - "end": 23875, + "start": 23915, + "end": 23918, "loc": { "start": { "line": 577, @@ -162482,8 +162472,8 @@ "binop": null }, "value": "path", - "start": 23876, - "end": 23880, + "start": 23919, + "end": 23923, "loc": { "start": { "line": 577, @@ -162508,8 +162498,8 @@ "binop": null, "updateContext": null }, - "start": 23880, - "end": 23881, + "start": 23923, + "end": 23924, "loc": { "start": { "line": 577, @@ -162524,8 +162514,8 @@ { "type": "CommentLine", "value": " Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.", - "start": 23887, - "end": 23955, + "start": 23930, + "end": 23998, "loc": { "start": { "line": 578, @@ -162550,8 +162540,8 @@ "binop": null }, "value": "path", - "start": 23961, - "end": 23965, + "start": 24004, + "end": 24008, "loc": { "start": { "line": 579, @@ -162577,8 +162567,8 @@ "updateContext": null }, "value": "=", - "start": 23966, - "end": 23967, + "start": 24009, + "end": 24010, "loc": { "start": { "line": 579, @@ -162603,8 +162593,8 @@ "binop": null }, "value": "pPath", - "start": 23968, - "end": 23973, + "start": 24011, + "end": 24016, "loc": { "start": { "line": 579, @@ -162629,8 +162619,8 @@ "binop": null, "updateContext": null }, - "start": 23973, - "end": 23974, + "start": 24016, + "end": 24017, "loc": { "start": { "line": 579, @@ -162655,8 +162645,8 @@ "binop": null }, "value": "map", - "start": 23974, - "end": 23977, + "start": 24017, + "end": 24020, "loc": { "start": { "line": 579, @@ -162680,8 +162670,8 @@ "postfix": false, "binop": null }, - "start": 23977, - "end": 23978, + "start": 24020, + "end": 24021, "loc": { "start": { "line": 579, @@ -162705,8 +162695,8 @@ "postfix": false, "binop": null }, - "start": 23978, - "end": 23979, + "start": 24021, + "end": 24022, "loc": { "start": { "line": 579, @@ -162731,8 +162721,8 @@ "binop": null }, "value": "pElement", - "start": 23979, - "end": 23987, + "start": 24022, + "end": 24030, "loc": { "start": { "line": 579, @@ -162756,8 +162746,8 @@ "postfix": false, "binop": null }, - "start": 23987, - "end": 23988, + "start": 24030, + "end": 24031, "loc": { "start": { "line": 579, @@ -162782,8 +162772,8 @@ "binop": null, "updateContext": null }, - "start": 23989, - "end": 23991, + "start": 24032, + "end": 24034, "loc": { "start": { "line": 579, @@ -162807,8 +162797,8 @@ "postfix": false, "binop": null }, - "start": 23992, - "end": 23993, + "start": 24035, + "end": 24036, "loc": { "start": { "line": 579, @@ -162832,8 +162822,8 @@ "postfix": false, "binop": null }, - "start": 23993, - "end": 23994, + "start": 24036, + "end": 24037, "loc": { "start": { "line": 579, @@ -162858,8 +162848,8 @@ "binop": null }, "value": "x", - "start": 24001, - "end": 24002, + "start": 24044, + "end": 24045, "loc": { "start": { "line": 580, @@ -162884,8 +162874,8 @@ "binop": null, "updateContext": null }, - "start": 24002, - "end": 24003, + "start": 24045, + "end": 24046, "loc": { "start": { "line": 580, @@ -162910,8 +162900,8 @@ "binop": null }, "value": "++", - "start": 24004, - "end": 24006, + "start": 24047, + "end": 24049, "loc": { "start": { "line": 580, @@ -162936,8 +162926,8 @@ "binop": null }, "value": "pElement", - "start": 24006, - "end": 24014, + "start": 24049, + "end": 24057, "loc": { "start": { "line": 580, @@ -162962,8 +162952,8 @@ "binop": null, "updateContext": null }, - "start": 24014, - "end": 24015, + "start": 24057, + "end": 24058, "loc": { "start": { "line": 580, @@ -162988,8 +162978,8 @@ "binop": null }, "value": "x", - "start": 24015, - "end": 24016, + "start": 24058, + "end": 24059, "loc": { "start": { "line": 580, @@ -163014,8 +163004,8 @@ "binop": null, "updateContext": null }, - "start": 24016, - "end": 24017, + "start": 24059, + "end": 24060, "loc": { "start": { "line": 580, @@ -163040,8 +163030,8 @@ "binop": null }, "value": "y", - "start": 24024, - "end": 24025, + "start": 24067, + "end": 24068, "loc": { "start": { "line": 581, @@ -163066,8 +163056,8 @@ "binop": null, "updateContext": null }, - "start": 24025, - "end": 24026, + "start": 24068, + "end": 24069, "loc": { "start": { "line": 581, @@ -163092,8 +163082,8 @@ "binop": null }, "value": "++", - "start": 24027, - "end": 24029, + "start": 24070, + "end": 24072, "loc": { "start": { "line": 581, @@ -163118,8 +163108,8 @@ "binop": null }, "value": "pElement", - "start": 24029, - "end": 24037, + "start": 24072, + "end": 24080, "loc": { "start": { "line": 581, @@ -163144,8 +163134,8 @@ "binop": null, "updateContext": null }, - "start": 24037, - "end": 24038, + "start": 24080, + "end": 24081, "loc": { "start": { "line": 581, @@ -163170,8 +163160,8 @@ "binop": null }, "value": "y", - "start": 24038, - "end": 24039, + "start": 24081, + "end": 24082, "loc": { "start": { "line": 581, @@ -163195,8 +163185,8 @@ "postfix": false, "binop": null }, - "start": 24045, - "end": 24046, + "start": 24088, + "end": 24089, "loc": { "start": { "line": 582, @@ -163220,8 +163210,8 @@ "postfix": false, "binop": null }, - "start": 24046, - "end": 24047, + "start": 24089, + "end": 24090, "loc": { "start": { "line": 582, @@ -163245,8 +163235,8 @@ "postfix": false, "binop": null }, - "start": 24047, - "end": 24048, + "start": 24090, + "end": 24091, "loc": { "start": { "line": 582, @@ -163271,8 +163261,8 @@ "binop": null, "updateContext": null }, - "start": 24048, - "end": 24049, + "start": 24091, + "end": 24092, "loc": { "start": { "line": 582, @@ -163287,8 +163277,8 @@ { "type": "CommentLine", "value": " Remove the node you start on.", - "start": 24055, - "end": 24087, + "start": 24098, + "end": 24130, "loc": { "start": { "line": 583, @@ -163313,8 +163303,8 @@ "binop": null }, "value": "path", - "start": 24093, - "end": 24097, + "start": 24136, + "end": 24140, "loc": { "start": { "line": 584, @@ -163339,8 +163329,8 @@ "binop": null, "updateContext": null }, - "start": 24097, - "end": 24098, + "start": 24140, + "end": 24141, "loc": { "start": { "line": 584, @@ -163365,8 +163355,8 @@ "binop": null }, "value": "shift", - "start": 24098, - "end": 24103, + "start": 24141, + "end": 24146, "loc": { "start": { "line": 584, @@ -163390,8 +163380,8 @@ "postfix": false, "binop": null }, - "start": 24103, - "end": 24104, + "start": 24146, + "end": 24147, "loc": { "start": { "line": 584, @@ -163415,8 +163405,8 @@ "postfix": false, "binop": null }, - "start": 24104, - "end": 24105, + "start": 24147, + "end": 24148, "loc": { "start": { "line": 584, @@ -163441,8 +163431,8 @@ "binop": null, "updateContext": null }, - "start": 24105, - "end": 24106, + "start": 24148, + "end": 24149, "loc": { "start": { "line": 584, @@ -163457,8 +163447,8 @@ { "type": "CommentLine", "value": " Store the path", - "start": 24112, - "end": 24129, + "start": 24155, + "end": 24172, "loc": { "start": { "line": 585, @@ -163483,8 +163473,8 @@ "binop": null }, "value": "instanceData", - "start": 24135, - "end": 24147, + "start": 24178, + "end": 24190, "loc": { "start": { "line": 586, @@ -163509,8 +163499,8 @@ "binop": null, "updateContext": null }, - "start": 24147, - "end": 24148, + "start": 24190, + "end": 24191, "loc": { "start": { "line": 586, @@ -163535,8 +163525,8 @@ "binop": null }, "value": "path", - "start": 24148, - "end": 24152, + "start": 24191, + "end": 24195, "loc": { "start": { "line": 586, @@ -163562,8 +163552,8 @@ "updateContext": null }, "value": "=", - "start": 24153, - "end": 24154, + "start": 24196, + "end": 24197, "loc": { "start": { "line": 586, @@ -163588,8 +163578,8 @@ "binop": null }, "value": "path", - "start": 24155, - "end": 24159, + "start": 24198, + "end": 24202, "loc": { "start": { "line": 586, @@ -163614,8 +163604,8 @@ "binop": null, "updateContext": null }, - "start": 24159, - "end": 24160, + "start": 24202, + "end": 24203, "loc": { "start": { "line": 586, @@ -163630,8 +163620,8 @@ { "type": "CommentLine", "value": " Store the pathID", - "start": 24166, - "end": 24185, + "start": 24209, + "end": 24228, "loc": { "start": { "line": 587, @@ -163656,8 +163646,8 @@ "binop": null }, "value": "instanceData", - "start": 24191, - "end": 24203, + "start": 24234, + "end": 24246, "loc": { "start": { "line": 588, @@ -163682,8 +163672,8 @@ "binop": null, "updateContext": null }, - "start": 24203, - "end": 24204, + "start": 24246, + "end": 24247, "loc": { "start": { "line": 588, @@ -163708,8 +163698,8 @@ "binop": null }, "value": "pathID", - "start": 24204, - "end": 24210, + "start": 24247, + "end": 24253, "loc": { "start": { "line": 588, @@ -163735,8 +163725,8 @@ "updateContext": null }, "value": "=", - "start": 24211, - "end": 24212, + "start": 24254, + "end": 24255, "loc": { "start": { "line": 588, @@ -163761,8 +163751,8 @@ "binop": null }, "value": "pathID", - "start": 24213, - "end": 24219, + "start": 24256, + "end": 24262, "loc": { "start": { "line": 588, @@ -163787,8 +163777,8 @@ "binop": null, "updateContext": null }, - "start": 24219, - "end": 24220, + "start": 24262, + "end": 24263, "loc": { "start": { "line": 588, @@ -163803,8 +163793,8 @@ { "type": "CommentLine", "value": " Call event when path is found", - "start": 24226, - "end": 24258, + "start": 24269, + "end": 24301, "loc": { "start": { "line": 589, @@ -163831,8 +163821,8 @@ "updateContext": null }, "value": "if", - "start": 24264, - "end": 24266, + "start": 24307, + "end": 24309, "loc": { "start": { "line": 590, @@ -163856,8 +163846,8 @@ "postfix": false, "binop": null }, - "start": 24267, - "end": 24268, + "start": 24310, + "end": 24311, "loc": { "start": { "line": 590, @@ -163884,8 +163874,8 @@ "updateContext": null }, "value": "typeof", - "start": 24268, - "end": 24274, + "start": 24311, + "end": 24317, "loc": { "start": { "line": 590, @@ -163909,8 +163899,8 @@ "postfix": false, "binop": null }, - "start": 24274, - "end": 24275, + "start": 24317, + "end": 24318, "loc": { "start": { "line": 590, @@ -163935,8 +163925,8 @@ "binop": null }, "value": "instanceData", - "start": 24275, - "end": 24287, + "start": 24318, + "end": 24330, "loc": { "start": { "line": 590, @@ -163961,8 +163951,8 @@ "binop": null, "updateContext": null }, - "start": 24287, - "end": 24288, + "start": 24330, + "end": 24331, "loc": { "start": { "line": 590, @@ -163987,8 +163977,8 @@ "binop": null }, "value": "events", - "start": 24288, - "end": 24294, + "start": 24331, + "end": 24337, "loc": { "start": { "line": 590, @@ -164013,8 +164003,8 @@ "binop": null, "updateContext": null }, - "start": 24294, - "end": 24295, + "start": 24337, + "end": 24338, "loc": { "start": { "line": 590, @@ -164039,8 +164029,8 @@ "binop": null }, "value": "onPathFound", - "start": 24295, - "end": 24306, + "start": 24338, + "end": 24349, "loc": { "start": { "line": 590, @@ -164064,8 +164054,8 @@ "postfix": false, "binop": null }, - "start": 24306, - "end": 24307, + "start": 24349, + "end": 24350, "loc": { "start": { "line": 590, @@ -164091,8 +164081,8 @@ "updateContext": null }, "value": "===", - "start": 24308, - "end": 24311, + "start": 24351, + "end": 24354, "loc": { "start": { "line": 590, @@ -164118,8 +164108,8 @@ "updateContext": null }, "value": "function", - "start": 24312, - "end": 24322, + "start": 24355, + "end": 24365, "loc": { "start": { "line": 590, @@ -164143,8 +164133,8 @@ "postfix": false, "binop": null }, - "start": 24322, - "end": 24323, + "start": 24365, + "end": 24366, "loc": { "start": { "line": 590, @@ -164168,8 +164158,8 @@ "postfix": false, "binop": null }, - "start": 24324, - "end": 24325, + "start": 24367, + "end": 24368, "loc": { "start": { "line": 590, @@ -164194,8 +164184,8 @@ "binop": null }, "value": "instanceData", - "start": 24332, - "end": 24344, + "start": 24375, + "end": 24387, "loc": { "start": { "line": 591, @@ -164220,8 +164210,8 @@ "binop": null, "updateContext": null }, - "start": 24344, - "end": 24345, + "start": 24387, + "end": 24388, "loc": { "start": { "line": 591, @@ -164246,8 +164236,8 @@ "binop": null }, "value": "events", - "start": 24345, - "end": 24351, + "start": 24388, + "end": 24394, "loc": { "start": { "line": 591, @@ -164272,8 +164262,8 @@ "binop": null, "updateContext": null }, - "start": 24351, - "end": 24352, + "start": 24394, + "end": 24395, "loc": { "start": { "line": 591, @@ -164298,8 +164288,8 @@ "binop": null }, "value": "onPathFound", - "start": 24352, - "end": 24363, + "start": 24395, + "end": 24406, "loc": { "start": { "line": 591, @@ -164323,8 +164313,8 @@ "postfix": false, "binop": null }, - "start": 24363, - "end": 24364, + "start": 24406, + "end": 24407, "loc": { "start": { "line": 591, @@ -164349,8 +164339,8 @@ "binop": null, "updateContext": null }, - "start": 24364, - "end": 24365, + "start": 24407, + "end": 24408, "loc": { "start": { "line": 591, @@ -164375,8 +164365,8 @@ "binop": null, "updateContext": null }, - "start": 24365, - "end": 24368, + "start": 24408, + "end": 24411, "loc": { "start": { "line": 591, @@ -164401,8 +164391,8 @@ "binop": null }, "value": "path", - "start": 24368, - "end": 24372, + "start": 24411, + "end": 24415, "loc": { "start": { "line": 591, @@ -164427,8 +164417,8 @@ "binop": null, "updateContext": null }, - "start": 24372, - "end": 24373, + "start": 24415, + "end": 24416, "loc": { "start": { "line": 591, @@ -164452,8 +164442,8 @@ "postfix": false, "binop": null }, - "start": 24373, - "end": 24374, + "start": 24416, + "end": 24417, "loc": { "start": { "line": 591, @@ -164478,8 +164468,8 @@ "binop": null, "updateContext": null }, - "start": 24374, - "end": 24375, + "start": 24417, + "end": 24418, "loc": { "start": { "line": 591, @@ -164503,8 +164493,8 @@ "postfix": false, "binop": null }, - "start": 24381, - "end": 24382, + "start": 24424, + "end": 24425, "loc": { "start": { "line": 592, @@ -164528,8 +164518,8 @@ "postfix": false, "binop": null }, - "start": 24387, - "end": 24388, + "start": 24430, + "end": 24431, "loc": { "start": { "line": 593, @@ -164556,8 +164546,8 @@ "updateContext": null }, "value": "else", - "start": 24389, - "end": 24393, + "start": 24432, + "end": 24436, "loc": { "start": { "line": 593, @@ -164581,8 +164571,8 @@ "postfix": false, "binop": null }, - "start": 24394, - "end": 24395, + "start": 24437, + "end": 24438, "loc": { "start": { "line": 593, @@ -164597,8 +164587,8 @@ { "type": "CommentLine", "value": " Call event when no path is found", - "start": 24401, - "end": 24436, + "start": 24444, + "end": 24479, "loc": { "start": { "line": 594, @@ -164625,8 +164615,8 @@ "updateContext": null }, "value": "if", - "start": 24442, - "end": 24444, + "start": 24485, + "end": 24487, "loc": { "start": { "line": 595, @@ -164650,8 +164640,8 @@ "postfix": false, "binop": null }, - "start": 24445, - "end": 24446, + "start": 24488, + "end": 24489, "loc": { "start": { "line": 595, @@ -164678,8 +164668,8 @@ "updateContext": null }, "value": "typeof", - "start": 24446, - "end": 24452, + "start": 24489, + "end": 24495, "loc": { "start": { "line": 595, @@ -164703,8 +164693,8 @@ "postfix": false, "binop": null }, - "start": 24452, - "end": 24453, + "start": 24495, + "end": 24496, "loc": { "start": { "line": 595, @@ -164729,8 +164719,8 @@ "binop": null }, "value": "instanceData", - "start": 24453, - "end": 24465, + "start": 24496, + "end": 24508, "loc": { "start": { "line": 595, @@ -164755,8 +164745,8 @@ "binop": null, "updateContext": null }, - "start": 24465, - "end": 24466, + "start": 24508, + "end": 24509, "loc": { "start": { "line": 595, @@ -164781,8 +164771,8 @@ "binop": null }, "value": "events", - "start": 24466, - "end": 24472, + "start": 24509, + "end": 24515, "loc": { "start": { "line": 595, @@ -164807,8 +164797,8 @@ "binop": null, "updateContext": null }, - "start": 24472, - "end": 24473, + "start": 24515, + "end": 24516, "loc": { "start": { "line": 595, @@ -164833,8 +164823,8 @@ "binop": null }, "value": "onPathNotFound", - "start": 24473, - "end": 24487, + "start": 24516, + "end": 24530, "loc": { "start": { "line": 595, @@ -164858,8 +164848,8 @@ "postfix": false, "binop": null }, - "start": 24487, - "end": 24488, + "start": 24530, + "end": 24531, "loc": { "start": { "line": 595, @@ -164885,8 +164875,8 @@ "updateContext": null }, "value": "===", - "start": 24489, - "end": 24492, + "start": 24532, + "end": 24535, "loc": { "start": { "line": 595, @@ -164912,8 +164902,8 @@ "updateContext": null }, "value": "function", - "start": 24493, - "end": 24503, + "start": 24536, + "end": 24546, "loc": { "start": { "line": 595, @@ -164937,8 +164927,8 @@ "postfix": false, "binop": null }, - "start": 24503, - "end": 24504, + "start": 24546, + "end": 24547, "loc": { "start": { "line": 595, @@ -164962,8 +164952,8 @@ "postfix": false, "binop": null }, - "start": 24505, - "end": 24506, + "start": 24548, + "end": 24549, "loc": { "start": { "line": 595, @@ -164988,8 +164978,8 @@ "binop": null }, "value": "instanceData", - "start": 24513, - "end": 24525, + "start": 24556, + "end": 24568, "loc": { "start": { "line": 596, @@ -165014,8 +165004,8 @@ "binop": null, "updateContext": null }, - "start": 24525, - "end": 24526, + "start": 24568, + "end": 24569, "loc": { "start": { "line": 596, @@ -165040,8 +165030,8 @@ "binop": null }, "value": "events", - "start": 24526, - "end": 24532, + "start": 24569, + "end": 24575, "loc": { "start": { "line": 596, @@ -165066,8 +165056,8 @@ "binop": null, "updateContext": null }, - "start": 24532, - "end": 24533, + "start": 24575, + "end": 24576, "loc": { "start": { "line": 596, @@ -165092,8 +165082,8 @@ "binop": null }, "value": "onPathNotFound", - "start": 24533, - "end": 24547, + "start": 24576, + "end": 24590, "loc": { "start": { "line": 596, @@ -165117,8 +165107,8 @@ "postfix": false, "binop": null }, - "start": 24547, - "end": 24548, + "start": 24590, + "end": 24591, "loc": { "start": { "line": 596, @@ -165142,8 +165132,8 @@ "postfix": false, "binop": null }, - "start": 24548, - "end": 24549, + "start": 24591, + "end": 24592, "loc": { "start": { "line": 596, @@ -165168,8 +165158,8 @@ "binop": null, "updateContext": null }, - "start": 24549, - "end": 24550, + "start": 24592, + "end": 24593, "loc": { "start": { "line": 596, @@ -165193,8 +165183,8 @@ "postfix": false, "binop": null }, - "start": 24556, - "end": 24557, + "start": 24599, + "end": 24600, "loc": { "start": { "line": 597, @@ -165209,8 +165199,8 @@ { "type": "CommentLine", "value": " If no path is found then we end the pathfinding on this instance.", - "start": 24563, - "end": 24631, + "start": 24606, + "end": 24674, "loc": { "start": { "line": 598, @@ -165237,8 +165227,8 @@ "updateContext": null }, "value": "this", - "start": 24637, - "end": 24641, + "start": 24680, + "end": 24684, "loc": { "start": { "line": 599, @@ -165263,8 +165253,8 @@ "binop": null, "updateContext": null }, - "start": 24641, - "end": 24642, + "start": 24684, + "end": 24685, "loc": { "start": { "line": 599, @@ -165289,8 +165279,8 @@ "binop": null }, "value": "end", - "start": 24642, - "end": 24645, + "start": 24685, + "end": 24688, "loc": { "start": { "line": 599, @@ -165314,8 +165304,8 @@ "postfix": false, "binop": null }, - "start": 24645, - "end": 24646, + "start": 24688, + "end": 24689, "loc": { "start": { "line": 599, @@ -165340,8 +165330,8 @@ "binop": null }, "value": "pInstance", - "start": 24646, - "end": 24655, + "start": 24689, + "end": 24698, "loc": { "start": { "line": 599, @@ -165365,8 +165355,8 @@ "postfix": false, "binop": null }, - "start": 24655, - "end": 24656, + "start": 24698, + "end": 24699, "loc": { "start": { "line": 599, @@ -165391,8 +165381,8 @@ "binop": null, "updateContext": null }, - "start": 24656, - "end": 24657, + "start": 24699, + "end": 24700, "loc": { "start": { "line": 599, @@ -165416,8 +165406,8 @@ "postfix": false, "binop": null }, - "start": 24662, - "end": 24663, + "start": 24705, + "end": 24706, "loc": { "start": { "line": 600, @@ -165441,8 +165431,8 @@ "postfix": false, "binop": null }, - "start": 24667, - "end": 24668, + "start": 24710, + "end": 24711, "loc": { "start": { "line": 601, @@ -165466,8 +165456,8 @@ "postfix": false, "binop": null }, - "start": 24668, - "end": 24669, + "start": 24711, + "end": 24712, "loc": { "start": { "line": 601, @@ -165492,8 +165482,8 @@ "binop": null, "updateContext": null }, - "start": 24669, - "end": 24670, + "start": 24712, + "end": 24713, "loc": { "start": { "line": 601, @@ -165508,8 +165498,8 @@ { "type": "CommentLine", "value": " Track pInstance as an active instance.", - "start": 24674, - "end": 24715, + "start": 24717, + "end": 24758, "loc": { "start": { "line": 602, @@ -165536,8 +165526,8 @@ "updateContext": null }, "value": "this", - "start": 24719, - "end": 24723, + "start": 24762, + "end": 24766, "loc": { "start": { "line": 603, @@ -165562,8 +165552,8 @@ "binop": null, "updateContext": null }, - "start": 24723, - "end": 24724, + "start": 24766, + "end": 24767, "loc": { "start": { "line": 603, @@ -165588,8 +165578,8 @@ "binop": null }, "value": "track", - "start": 24724, - "end": 24729, + "start": 24767, + "end": 24772, "loc": { "start": { "line": 603, @@ -165613,8 +165603,8 @@ "postfix": false, "binop": null }, - "start": 24729, - "end": 24730, + "start": 24772, + "end": 24773, "loc": { "start": { "line": 603, @@ -165639,8 +165629,8 @@ "binop": null }, "value": "pInstance", - "start": 24730, - "end": 24739, + "start": 24773, + "end": 24782, "loc": { "start": { "line": 603, @@ -165664,8 +165654,8 @@ "postfix": false, "binop": null }, - "start": 24739, - "end": 24740, + "start": 24782, + "end": 24783, "loc": { "start": { "line": 603, @@ -165690,8 +165680,8 @@ "binop": null, "updateContext": null }, - "start": 24740, - "end": 24741, + "start": 24783, + "end": 24784, "loc": { "start": { "line": 603, @@ -165715,8 +165705,8 @@ "postfix": false, "binop": null }, - "start": 24744, - "end": 24745, + "start": 24787, + "end": 24788, "loc": { "start": { "line": 604, @@ -165731,8 +165721,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t ", - "start": 24748, - "end": 24980, + "start": 24791, + "end": 25023, "loc": { "start": { "line": 605, @@ -165757,8 +165747,8 @@ "binop": null }, "value": "toTwoDimensionalArray", - "start": 24983, - "end": 25004, + "start": 25026, + "end": 25047, "loc": { "start": { "line": 612, @@ -165782,8 +165772,8 @@ "postfix": false, "binop": null }, - "start": 25004, - "end": 25005, + "start": 25047, + "end": 25048, "loc": { "start": { "line": 612, @@ -165808,8 +165798,8 @@ "binop": null }, "value": "pArray", - "start": 25005, - "end": 25011, + "start": 25048, + "end": 25054, "loc": { "start": { "line": 612, @@ -165834,8 +165824,8 @@ "binop": null, "updateContext": null }, - "start": 25011, - "end": 25012, + "start": 25054, + "end": 25055, "loc": { "start": { "line": 612, @@ -165860,8 +165850,8 @@ "binop": null }, "value": "pLengthOfSubArray", - "start": 25013, - "end": 25030, + "start": 25056, + "end": 25073, "loc": { "start": { "line": 612, @@ -165885,8 +165875,8 @@ "postfix": false, "binop": null }, - "start": 25030, - "end": 25031, + "start": 25073, + "end": 25074, "loc": { "start": { "line": 612, @@ -165910,8 +165900,8 @@ "postfix": false, "binop": null }, - "start": 25032, - "end": 25033, + "start": 25075, + "end": 25076, "loc": { "start": { "line": 612, @@ -165938,8 +165928,8 @@ "updateContext": null }, "value": "let", - "start": 25037, - "end": 25040, + "start": 25080, + "end": 25083, "loc": { "start": { "line": 613, @@ -165964,8 +165954,8 @@ "binop": null }, "value": "i", - "start": 25041, - "end": 25042, + "start": 25084, + "end": 25085, "loc": { "start": { "line": 613, @@ -165991,8 +165981,8 @@ "updateContext": null }, "value": "=", - "start": 25043, - "end": 25044, + "start": 25086, + "end": 25087, "loc": { "start": { "line": 613, @@ -166018,8 +166008,8 @@ "updateContext": null }, "value": 0, - "start": 25045, - "end": 25046, + "start": 25088, + "end": 25089, "loc": { "start": { "line": 613, @@ -166044,8 +166034,8 @@ "binop": null, "updateContext": null }, - "start": 25046, - "end": 25047, + "start": 25089, + "end": 25090, "loc": { "start": { "line": 613, @@ -166072,8 +166062,8 @@ "updateContext": null }, "value": "const", - "start": 25051, - "end": 25056, + "start": 25094, + "end": 25099, "loc": { "start": { "line": 614, @@ -166098,8 +166088,8 @@ "binop": null }, "value": "result", - "start": 25057, - "end": 25063, + "start": 25100, + "end": 25106, "loc": { "start": { "line": 614, @@ -166125,8 +166115,8 @@ "updateContext": null }, "value": "=", - "start": 25064, - "end": 25065, + "start": 25107, + "end": 25108, "loc": { "start": { "line": 614, @@ -166151,8 +166141,8 @@ "binop": null, "updateContext": null }, - "start": 25066, - "end": 25067, + "start": 25109, + "end": 25110, "loc": { "start": { "line": 614, @@ -166177,8 +166167,8 @@ "binop": null, "updateContext": null }, - "start": 25067, - "end": 25068, + "start": 25110, + "end": 25111, "loc": { "start": { "line": 614, @@ -166203,8 +166193,8 @@ "binop": null, "updateContext": null }, - "start": 25068, - "end": 25069, + "start": 25111, + "end": 25112, "loc": { "start": { "line": 614, @@ -166231,8 +166221,8 @@ "updateContext": null }, "value": "while", - "start": 25073, - "end": 25078, + "start": 25116, + "end": 25121, "loc": { "start": { "line": 615, @@ -166256,8 +166246,8 @@ "postfix": false, "binop": null }, - "start": 25079, - "end": 25080, + "start": 25122, + "end": 25123, "loc": { "start": { "line": 615, @@ -166282,8 +166272,8 @@ "binop": null }, "value": "i", - "start": 25080, - "end": 25081, + "start": 25123, + "end": 25124, "loc": { "start": { "line": 615, @@ -166309,8 +166299,8 @@ "updateContext": null }, "value": "<", - "start": 25082, - "end": 25083, + "start": 25125, + "end": 25126, "loc": { "start": { "line": 615, @@ -166335,8 +166325,8 @@ "binop": null }, "value": "pArray", - "start": 25084, - "end": 25090, + "start": 25127, + "end": 25133, "loc": { "start": { "line": 615, @@ -166361,8 +166351,8 @@ "binop": null, "updateContext": null }, - "start": 25090, - "end": 25091, + "start": 25133, + "end": 25134, "loc": { "start": { "line": 615, @@ -166387,8 +166377,8 @@ "binop": null }, "value": "length", - "start": 25091, - "end": 25097, + "start": 25134, + "end": 25140, "loc": { "start": { "line": 615, @@ -166412,8 +166402,8 @@ "postfix": false, "binop": null }, - "start": 25097, - "end": 25098, + "start": 25140, + "end": 25141, "loc": { "start": { "line": 615, @@ -166437,8 +166427,8 @@ "postfix": false, "binop": null }, - "start": 25099, - "end": 25100, + "start": 25142, + "end": 25143, "loc": { "start": { "line": 615, @@ -166463,8 +166453,8 @@ "binop": null }, "value": "result", - "start": 25105, - "end": 25111, + "start": 25148, + "end": 25154, "loc": { "start": { "line": 616, @@ -166489,8 +166479,8 @@ "binop": null, "updateContext": null }, - "start": 25111, - "end": 25112, + "start": 25154, + "end": 25155, "loc": { "start": { "line": 616, @@ -166515,8 +166505,8 @@ "binop": null }, "value": "push", - "start": 25112, - "end": 25116, + "start": 25155, + "end": 25159, "loc": { "start": { "line": 616, @@ -166540,8 +166530,8 @@ "postfix": false, "binop": null }, - "start": 25116, - "end": 25117, + "start": 25159, + "end": 25160, "loc": { "start": { "line": 616, @@ -166566,8 +166556,8 @@ "binop": null }, "value": "pArray", - "start": 25117, - "end": 25123, + "start": 25160, + "end": 25166, "loc": { "start": { "line": 616, @@ -166592,8 +166582,8 @@ "binop": null, "updateContext": null }, - "start": 25123, - "end": 25124, + "start": 25166, + "end": 25167, "loc": { "start": { "line": 616, @@ -166618,8 +166608,8 @@ "binop": null }, "value": "slice", - "start": 25124, - "end": 25129, + "start": 25167, + "end": 25172, "loc": { "start": { "line": 616, @@ -166643,8 +166633,8 @@ "postfix": false, "binop": null }, - "start": 25129, - "end": 25130, + "start": 25172, + "end": 25173, "loc": { "start": { "line": 616, @@ -166669,8 +166659,8 @@ "binop": null }, "value": "i", - "start": 25130, - "end": 25131, + "start": 25173, + "end": 25174, "loc": { "start": { "line": 616, @@ -166695,8 +166685,8 @@ "binop": null, "updateContext": null }, - "start": 25131, - "end": 25132, + "start": 25174, + "end": 25175, "loc": { "start": { "line": 616, @@ -166721,8 +166711,8 @@ "binop": null }, "value": "i", - "start": 25133, - "end": 25134, + "start": 25176, + "end": 25177, "loc": { "start": { "line": 616, @@ -166748,8 +166738,8 @@ "updateContext": null }, "value": "+=", - "start": 25134, - "end": 25136, + "start": 25177, + "end": 25179, "loc": { "start": { "line": 616, @@ -166774,8 +166764,8 @@ "binop": null }, "value": "pLengthOfSubArray", - "start": 25137, - "end": 25154, + "start": 25180, + "end": 25197, "loc": { "start": { "line": 616, @@ -166799,8 +166789,8 @@ "postfix": false, "binop": null }, - "start": 25154, - "end": 25155, + "start": 25197, + "end": 25198, "loc": { "start": { "line": 616, @@ -166824,8 +166814,8 @@ "postfix": false, "binop": null }, - "start": 25155, - "end": 25156, + "start": 25198, + "end": 25199, "loc": { "start": { "line": 616, @@ -166850,8 +166840,8 @@ "binop": null, "updateContext": null }, - "start": 25156, - "end": 25157, + "start": 25199, + "end": 25200, "loc": { "start": { "line": 616, @@ -166875,8 +166865,8 @@ "postfix": false, "binop": null }, - "start": 25161, - "end": 25162, + "start": 25204, + "end": 25205, "loc": { "start": { "line": 617, @@ -166903,8 +166893,8 @@ "updateContext": null }, "value": "return", - "start": 25166, - "end": 25172, + "start": 25209, + "end": 25215, "loc": { "start": { "line": 618, @@ -166929,8 +166919,8 @@ "binop": null }, "value": "result", - "start": 25173, - "end": 25179, + "start": 25216, + "end": 25222, "loc": { "start": { "line": 618, @@ -166955,8 +166945,8 @@ "binop": null, "updateContext": null }, - "start": 25179, - "end": 25180, + "start": 25222, + "end": 25223, "loc": { "start": { "line": 618, @@ -166980,8 +166970,8 @@ "postfix": false, "binop": null }, - "start": 25183, - "end": 25184, + "start": 25226, + "end": 25227, "loc": { "start": { "line": 619, @@ -166996,8 +166986,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t ", - "start": 25187, - "end": 25356, + "start": 25230, + "end": 25399, "loc": { "start": { "line": 620, @@ -167022,8 +167012,8 @@ "binop": null }, "value": "tileToNode", - "start": 25359, - "end": 25369, + "start": 25402, + "end": 25412, "loc": { "start": { "line": 626, @@ -167047,8 +167037,8 @@ "postfix": false, "binop": null }, - "start": 25369, - "end": 25370, + "start": 25412, + "end": 25413, "loc": { "start": { "line": 626, @@ -167073,8 +167063,8 @@ "binop": null }, "value": "pTile", - "start": 25370, - "end": 25375, + "start": 25413, + "end": 25418, "loc": { "start": { "line": 626, @@ -167098,8 +167088,8 @@ "postfix": false, "binop": null }, - "start": 25375, - "end": 25376, + "start": 25418, + "end": 25419, "loc": { "start": { "line": 626, @@ -167123,8 +167113,8 @@ "postfix": false, "binop": null }, - "start": 25377, - "end": 25378, + "start": 25420, + "end": 25421, "loc": { "start": { "line": 626, @@ -167151,8 +167141,8 @@ "updateContext": null }, "value": "if", - "start": 25382, - "end": 25384, + "start": 25425, + "end": 25427, "loc": { "start": { "line": 627, @@ -167176,8 +167166,8 @@ "postfix": false, "binop": null }, - "start": 25385, - "end": 25386, + "start": 25428, + "end": 25429, "loc": { "start": { "line": 627, @@ -167204,8 +167194,8 @@ "updateContext": null }, "value": "typeof", - "start": 25386, - "end": 25392, + "start": 25429, + "end": 25435, "loc": { "start": { "line": 627, @@ -167229,8 +167219,8 @@ "postfix": false, "binop": null }, - "start": 25392, - "end": 25393, + "start": 25435, + "end": 25436, "loc": { "start": { "line": 627, @@ -167255,8 +167245,8 @@ "binop": null }, "value": "pTile", - "start": 25393, - "end": 25398, + "start": 25436, + "end": 25441, "loc": { "start": { "line": 627, @@ -167281,8 +167271,8 @@ "binop": null, "updateContext": null }, - "start": 25398, - "end": 25399, + "start": 25441, + "end": 25442, "loc": { "start": { "line": 627, @@ -167307,8 +167297,8 @@ "binop": null }, "value": "mapName", - "start": 25399, - "end": 25406, + "start": 25442, + "end": 25449, "loc": { "start": { "line": 627, @@ -167332,8 +167322,8 @@ "postfix": false, "binop": null }, - "start": 25406, - "end": 25407, + "start": 25449, + "end": 25450, "loc": { "start": { "line": 627, @@ -167359,8 +167349,8 @@ "updateContext": null }, "value": "===", - "start": 25408, - "end": 25411, + "start": 25451, + "end": 25454, "loc": { "start": { "line": 627, @@ -167386,8 +167376,8 @@ "updateContext": null }, "value": "string", - "start": 25412, - "end": 25420, + "start": 25455, + "end": 25463, "loc": { "start": { "line": 627, @@ -167411,8 +167401,8 @@ "postfix": false, "binop": null }, - "start": 25420, - "end": 25421, + "start": 25463, + "end": 25464, "loc": { "start": { "line": 627, @@ -167436,8 +167426,8 @@ "postfix": false, "binop": null }, - "start": 25422, - "end": 25423, + "start": 25465, + "end": 25466, "loc": { "start": { "line": 627, @@ -167464,8 +167454,8 @@ "updateContext": null }, "value": "if", - "start": 25428, - "end": 25430, + "start": 25471, + "end": 25473, "loc": { "start": { "line": 628, @@ -167489,8 +167479,8 @@ "postfix": false, "binop": null }, - "start": 25431, - "end": 25432, + "start": 25474, + "end": 25475, "loc": { "start": { "line": 628, @@ -167515,8 +167505,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 25432, - "end": 25448, + "start": 25475, + "end": 25491, "loc": { "start": { "line": 628, @@ -167541,8 +167531,8 @@ "binop": null, "updateContext": null }, - "start": 25448, - "end": 25449, + "start": 25491, + "end": 25492, "loc": { "start": { "line": 628, @@ -167567,8 +167557,8 @@ "binop": null }, "value": "storedMapTiles", - "start": 25449, - "end": 25463, + "start": 25492, + "end": 25506, "loc": { "start": { "line": 628, @@ -167593,8 +167583,8 @@ "binop": null, "updateContext": null }, - "start": 25463, - "end": 25464, + "start": 25506, + "end": 25507, "loc": { "start": { "line": 628, @@ -167619,8 +167609,8 @@ "binop": null }, "value": "pTile", - "start": 25464, - "end": 25469, + "start": 25507, + "end": 25512, "loc": { "start": { "line": 628, @@ -167645,8 +167635,8 @@ "binop": null, "updateContext": null }, - "start": 25469, - "end": 25470, + "start": 25512, + "end": 25513, "loc": { "start": { "line": 628, @@ -167671,8 +167661,8 @@ "binop": null }, "value": "mapName", - "start": 25470, - "end": 25477, + "start": 25513, + "end": 25520, "loc": { "start": { "line": 628, @@ -167697,8 +167687,8 @@ "binop": null, "updateContext": null }, - "start": 25477, - "end": 25478, + "start": 25520, + "end": 25521, "loc": { "start": { "line": 628, @@ -167722,8 +167712,8 @@ "postfix": false, "binop": null }, - "start": 25478, - "end": 25479, + "start": 25521, + "end": 25522, "loc": { "start": { "line": 628, @@ -167747,8 +167737,8 @@ "postfix": false, "binop": null }, - "start": 25480, - "end": 25481, + "start": 25523, + "end": 25524, "loc": { "start": { "line": 628, @@ -167775,8 +167765,8 @@ "updateContext": null }, "value": "const", - "start": 25487, - "end": 25492, + "start": 25530, + "end": 25535, "loc": { "start": { "line": 629, @@ -167801,8 +167791,8 @@ "binop": null }, "value": "index", - "start": 25493, - "end": 25498, + "start": 25536, + "end": 25541, "loc": { "start": { "line": 629, @@ -167828,8 +167818,8 @@ "updateContext": null }, "value": "=", - "start": 25499, - "end": 25500, + "start": 25542, + "end": 25543, "loc": { "start": { "line": 629, @@ -167856,8 +167846,8 @@ "updateContext": null }, "value": "this", - "start": 25501, - "end": 25505, + "start": 25544, + "end": 25548, "loc": { "start": { "line": 629, @@ -167882,8 +167872,8 @@ "binop": null, "updateContext": null }, - "start": 25505, - "end": 25506, + "start": 25548, + "end": 25549, "loc": { "start": { "line": 629, @@ -167908,8 +167898,8 @@ "binop": null }, "value": "getIndexOf2DArray", - "start": 25506, - "end": 25523, + "start": 25549, + "end": 25566, "loc": { "start": { "line": 629, @@ -167933,8 +167923,8 @@ "postfix": false, "binop": null }, - "start": 25523, - "end": 25524, + "start": 25566, + "end": 25567, "loc": { "start": { "line": 629, @@ -167959,8 +167949,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 25524, - "end": 25540, + "start": 25567, + "end": 25583, "loc": { "start": { "line": 629, @@ -167985,8 +167975,8 @@ "binop": null, "updateContext": null }, - "start": 25540, - "end": 25541, + "start": 25583, + "end": 25584, "loc": { "start": { "line": 629, @@ -168011,8 +168001,8 @@ "binop": null }, "value": "storedMapTiles", - "start": 25541, - "end": 25555, + "start": 25584, + "end": 25598, "loc": { "start": { "line": 629, @@ -168037,8 +168027,8 @@ "binop": null, "updateContext": null }, - "start": 25555, - "end": 25556, + "start": 25598, + "end": 25599, "loc": { "start": { "line": 629, @@ -168063,8 +168053,8 @@ "binop": null }, "value": "pTile", - "start": 25556, - "end": 25561, + "start": 25599, + "end": 25604, "loc": { "start": { "line": 629, @@ -168089,8 +168079,8 @@ "binop": null, "updateContext": null }, - "start": 25561, - "end": 25562, + "start": 25604, + "end": 25605, "loc": { "start": { "line": 629, @@ -168115,8 +168105,8 @@ "binop": null }, "value": "mapName", - "start": 25562, - "end": 25569, + "start": 25605, + "end": 25612, "loc": { "start": { "line": 629, @@ -168141,8 +168131,8 @@ "binop": null, "updateContext": null }, - "start": 25569, - "end": 25570, + "start": 25612, + "end": 25613, "loc": { "start": { "line": 629, @@ -168167,8 +168157,8 @@ "binop": null, "updateContext": null }, - "start": 25570, - "end": 25571, + "start": 25613, + "end": 25614, "loc": { "start": { "line": 629, @@ -168193,8 +168183,8 @@ "binop": null }, "value": "tiles2d", - "start": 25571, - "end": 25578, + "start": 25614, + "end": 25621, "loc": { "start": { "line": 629, @@ -168219,8 +168209,8 @@ "binop": null, "updateContext": null }, - "start": 25578, - "end": 25579, + "start": 25621, + "end": 25622, "loc": { "start": { "line": 629, @@ -168245,8 +168235,8 @@ "binop": null }, "value": "pTile", - "start": 25580, - "end": 25585, + "start": 25623, + "end": 25628, "loc": { "start": { "line": 629, @@ -168270,8 +168260,8 @@ "postfix": false, "binop": null }, - "start": 25585, - "end": 25586, + "start": 25628, + "end": 25629, "loc": { "start": { "line": 629, @@ -168296,8 +168286,8 @@ "binop": null, "updateContext": null }, - "start": 25586, - "end": 25587, + "start": 25629, + "end": 25630, "loc": { "start": { "line": 629, @@ -168324,8 +168314,8 @@ "updateContext": null }, "value": "const", - "start": 25593, - "end": 25598, + "start": 25636, + "end": 25641, "loc": { "start": { "line": 630, @@ -168350,8 +168340,8 @@ "binop": null }, "value": "node", - "start": 25599, - "end": 25603, + "start": 25642, + "end": 25646, "loc": { "start": { "line": 630, @@ -168377,8 +168367,8 @@ "updateContext": null }, "value": "=", - "start": 25604, - "end": 25605, + "start": 25647, + "end": 25648, "loc": { "start": { "line": 630, @@ -168402,8 +168392,8 @@ "postfix": false, "binop": null }, - "start": 25606, - "end": 25607, + "start": 25649, + "end": 25650, "loc": { "start": { "line": 630, @@ -168428,8 +168418,8 @@ "binop": null }, "value": "x", - "start": 25608, - "end": 25609, + "start": 25651, + "end": 25652, "loc": { "start": { "line": 630, @@ -168454,8 +168444,8 @@ "binop": null, "updateContext": null }, - "start": 25609, - "end": 25610, + "start": 25652, + "end": 25653, "loc": { "start": { "line": 630, @@ -168480,8 +168470,8 @@ "binop": null }, "value": "index", - "start": 25611, - "end": 25616, + "start": 25654, + "end": 25659, "loc": { "start": { "line": 630, @@ -168506,8 +168496,8 @@ "binop": null, "updateContext": null }, - "start": 25616, - "end": 25617, + "start": 25659, + "end": 25660, "loc": { "start": { "line": 630, @@ -168533,8 +168523,8 @@ "updateContext": null }, "value": 1, - "start": 25617, - "end": 25618, + "start": 25660, + "end": 25661, "loc": { "start": { "line": 630, @@ -168559,8 +168549,8 @@ "binop": null, "updateContext": null }, - "start": 25618, - "end": 25619, + "start": 25661, + "end": 25662, "loc": { "start": { "line": 630, @@ -168585,8 +168575,8 @@ "binop": null, "updateContext": null }, - "start": 25619, - "end": 25620, + "start": 25662, + "end": 25663, "loc": { "start": { "line": 630, @@ -168611,8 +168601,8 @@ "binop": null }, "value": "y", - "start": 25621, - "end": 25622, + "start": 25664, + "end": 25665, "loc": { "start": { "line": 630, @@ -168637,8 +168627,8 @@ "binop": null, "updateContext": null }, - "start": 25622, - "end": 25623, + "start": 25665, + "end": 25666, "loc": { "start": { "line": 630, @@ -168663,8 +168653,8 @@ "binop": null }, "value": "index", - "start": 25624, - "end": 25629, + "start": 25667, + "end": 25672, "loc": { "start": { "line": 630, @@ -168689,8 +168679,8 @@ "binop": null, "updateContext": null }, - "start": 25629, - "end": 25630, + "start": 25672, + "end": 25673, "loc": { "start": { "line": 630, @@ -168716,8 +168706,8 @@ "updateContext": null }, "value": 0, - "start": 25630, - "end": 25631, + "start": 25673, + "end": 25674, "loc": { "start": { "line": 630, @@ -168742,8 +168732,8 @@ "binop": null, "updateContext": null }, - "start": 25631, - "end": 25632, + "start": 25674, + "end": 25675, "loc": { "start": { "line": 630, @@ -168767,8 +168757,8 @@ "postfix": false, "binop": null }, - "start": 25633, - "end": 25634, + "start": 25676, + "end": 25677, "loc": { "start": { "line": 630, @@ -168793,8 +168783,8 @@ "binop": null, "updateContext": null }, - "start": 25634, - "end": 25635, + "start": 25677, + "end": 25678, "loc": { "start": { "line": 630, @@ -168821,8 +168811,8 @@ "updateContext": null }, "value": "return", - "start": 25641, - "end": 25647, + "start": 25684, + "end": 25690, "loc": { "start": { "line": 631, @@ -168847,8 +168837,8 @@ "binop": null }, "value": "node", - "start": 25648, - "end": 25652, + "start": 25691, + "end": 25695, "loc": { "start": { "line": 631, @@ -168873,8 +168863,8 @@ "binop": null, "updateContext": null }, - "start": 25652, - "end": 25653, + "start": 25695, + "end": 25696, "loc": { "start": { "line": 631, @@ -168898,8 +168888,8 @@ "postfix": false, "binop": null }, - "start": 25658, - "end": 25659, + "start": 25701, + "end": 25702, "loc": { "start": { "line": 632, @@ -168926,8 +168916,8 @@ "updateContext": null }, "value": "else", - "start": 25660, - "end": 25664, + "start": 25703, + "end": 25707, "loc": { "start": { "line": 632, @@ -168951,8 +168941,8 @@ "postfix": false, "binop": null }, - "start": 25665, - "end": 25666, + "start": 25708, + "end": 25709, "loc": { "start": { "line": 632, @@ -168979,8 +168969,8 @@ "updateContext": null }, "value": "this", - "start": 25672, - "end": 25676, + "start": 25715, + "end": 25719, "loc": { "start": { "line": 633, @@ -169005,8 +168995,8 @@ "binop": null, "updateContext": null }, - "start": 25676, - "end": 25677, + "start": 25719, + "end": 25720, "loc": { "start": { "line": 633, @@ -169031,8 +169021,8 @@ "binop": null }, "value": "logger", - "start": 25677, - "end": 25683, + "start": 25720, + "end": 25726, "loc": { "start": { "line": 633, @@ -169057,8 +169047,8 @@ "binop": null, "updateContext": null }, - "start": 25683, - "end": 25684, + "start": 25726, + "end": 25727, "loc": { "start": { "line": 633, @@ -169083,8 +169073,8 @@ "binop": null }, "value": "prefix", - "start": 25684, - "end": 25690, + "start": 25727, + "end": 25733, "loc": { "start": { "line": 633, @@ -169108,8 +169098,8 @@ "postfix": false, "binop": null }, - "start": 25690, - "end": 25691, + "start": 25733, + "end": 25734, "loc": { "start": { "line": 633, @@ -169135,8 +169125,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 25691, - "end": 25707, + "start": 25734, + "end": 25750, "loc": { "start": { "line": 633, @@ -169160,8 +169150,8 @@ "postfix": false, "binop": null }, - "start": 25707, - "end": 25708, + "start": 25750, + "end": 25751, "loc": { "start": { "line": 633, @@ -169186,8 +169176,8 @@ "binop": null, "updateContext": null }, - "start": 25708, - "end": 25709, + "start": 25751, + "end": 25752, "loc": { "start": { "line": 633, @@ -169212,8 +169202,8 @@ "binop": null }, "value": "error", - "start": 25709, - "end": 25714, + "start": 25752, + "end": 25757, "loc": { "start": { "line": 633, @@ -169237,8 +169227,8 @@ "postfix": false, "binop": null }, - "start": 25714, - "end": 25715, + "start": 25757, + "end": 25758, "loc": { "start": { "line": 633, @@ -169264,8 +169254,8 @@ "updateContext": null }, "value": "There is no stored grid for the map this tile belongs to.", - "start": 25715, - "end": 25774, + "start": 25758, + "end": 25817, "loc": { "start": { "line": 633, @@ -169289,8 +169279,8 @@ "postfix": false, "binop": null }, - "start": 25774, - "end": 25775, + "start": 25817, + "end": 25818, "loc": { "start": { "line": 633, @@ -169315,8 +169305,8 @@ "binop": null, "updateContext": null }, - "start": 25775, - "end": 25776, + "start": 25818, + "end": 25819, "loc": { "start": { "line": 633, @@ -169340,8 +169330,8 @@ "postfix": false, "binop": null }, - "start": 25781, - "end": 25782, + "start": 25824, + "end": 25825, "loc": { "start": { "line": 634, @@ -169365,8 +169355,8 @@ "postfix": false, "binop": null }, - "start": 25786, - "end": 25787, + "start": 25829, + "end": 25830, "loc": { "start": { "line": 635, @@ -169393,8 +169383,8 @@ "updateContext": null }, "value": "else", - "start": 25788, - "end": 25792, + "start": 25831, + "end": 25835, "loc": { "start": { "line": 635, @@ -169418,8 +169408,8 @@ "postfix": false, "binop": null }, - "start": 25793, - "end": 25794, + "start": 25836, + "end": 25837, "loc": { "start": { "line": 635, @@ -169446,8 +169436,8 @@ "updateContext": null }, "value": "this", - "start": 25799, - "end": 25803, + "start": 25842, + "end": 25846, "loc": { "start": { "line": 636, @@ -169472,8 +169462,8 @@ "binop": null, "updateContext": null }, - "start": 25803, - "end": 25804, + "start": 25846, + "end": 25847, "loc": { "start": { "line": 636, @@ -169498,8 +169488,8 @@ "binop": null }, "value": "logger", - "start": 25804, - "end": 25810, + "start": 25847, + "end": 25853, "loc": { "start": { "line": 636, @@ -169524,8 +169514,8 @@ "binop": null, "updateContext": null }, - "start": 25810, - "end": 25811, + "start": 25853, + "end": 25854, "loc": { "start": { "line": 636, @@ -169550,8 +169540,8 @@ "binop": null }, "value": "prefix", - "start": 25811, - "end": 25817, + "start": 25854, + "end": 25860, "loc": { "start": { "line": 636, @@ -169575,8 +169565,8 @@ "postfix": false, "binop": null }, - "start": 25817, - "end": 25818, + "start": 25860, + "end": 25861, "loc": { "start": { "line": 636, @@ -169602,8 +169592,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 25818, - "end": 25834, + "start": 25861, + "end": 25877, "loc": { "start": { "line": 636, @@ -169627,8 +169617,8 @@ "postfix": false, "binop": null }, - "start": 25834, - "end": 25835, + "start": 25877, + "end": 25878, "loc": { "start": { "line": 636, @@ -169653,8 +169643,8 @@ "binop": null, "updateContext": null }, - "start": 25835, - "end": 25836, + "start": 25878, + "end": 25879, "loc": { "start": { "line": 636, @@ -169679,8 +169669,8 @@ "binop": null }, "value": "error", - "start": 25836, - "end": 25841, + "start": 25879, + "end": 25884, "loc": { "start": { "line": 636, @@ -169704,8 +169694,8 @@ "postfix": false, "binop": null }, - "start": 25841, - "end": 25842, + "start": 25884, + "end": 25885, "loc": { "start": { "line": 636, @@ -169731,8 +169721,8 @@ "updateContext": null }, "value": "Invalid mapname found on pTile", - "start": 25842, - "end": 25874, + "start": 25885, + "end": 25917, "loc": { "start": { "line": 636, @@ -169756,8 +169746,8 @@ "postfix": false, "binop": null }, - "start": 25874, - "end": 25875, + "start": 25917, + "end": 25918, "loc": { "start": { "line": 636, @@ -169782,8 +169772,8 @@ "binop": null, "updateContext": null }, - "start": 25875, - "end": 25876, + "start": 25918, + "end": 25919, "loc": { "start": { "line": 636, @@ -169807,8 +169797,8 @@ "postfix": false, "binop": null }, - "start": 25880, - "end": 25881, + "start": 25923, + "end": 25924, "loc": { "start": { "line": 637, @@ -169832,8 +169822,8 @@ "postfix": false, "binop": null }, - "start": 25884, - "end": 25885, + "start": 25927, + "end": 25928, "loc": { "start": { "line": 638, @@ -169848,8 +169838,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t ", - "start": 25888, - "end": 26208, + "start": 25931, + "end": 26251, "loc": { "start": { "line": 639, @@ -169874,8 +169864,8 @@ "binop": null }, "value": "getIndexOf2DArray", - "start": 26211, - "end": 26228, + "start": 26254, + "end": 26271, "loc": { "start": { "line": 646, @@ -169899,8 +169889,8 @@ "postfix": false, "binop": null }, - "start": 26228, - "end": 26229, + "start": 26271, + "end": 26272, "loc": { "start": { "line": 646, @@ -169925,8 +169915,8 @@ "binop": null }, "value": "pArray", - "start": 26229, - "end": 26235, + "start": 26272, + "end": 26278, "loc": { "start": { "line": 646, @@ -169951,8 +169941,8 @@ "binop": null, "updateContext": null }, - "start": 26235, - "end": 26236, + "start": 26278, + "end": 26279, "loc": { "start": { "line": 646, @@ -169977,8 +169967,8 @@ "binop": null }, "value": "pValue", - "start": 26237, - "end": 26243, + "start": 26280, + "end": 26286, "loc": { "start": { "line": 646, @@ -170002,8 +169992,8 @@ "postfix": false, "binop": null }, - "start": 26243, - "end": 26244, + "start": 26286, + "end": 26287, "loc": { "start": { "line": 646, @@ -170027,8 +170017,8 @@ "postfix": false, "binop": null }, - "start": 26245, - "end": 26246, + "start": 26288, + "end": 26289, "loc": { "start": { "line": 646, @@ -170055,8 +170045,8 @@ "updateContext": null }, "value": "for", - "start": 26250, - "end": 26253, + "start": 26293, + "end": 26296, "loc": { "start": { "line": 647, @@ -170080,8 +170070,8 @@ "postfix": false, "binop": null }, - "start": 26254, - "end": 26255, + "start": 26297, + "end": 26298, "loc": { "start": { "line": 647, @@ -170108,8 +170098,8 @@ "updateContext": null }, "value": "let", - "start": 26255, - "end": 26258, + "start": 26298, + "end": 26301, "loc": { "start": { "line": 647, @@ -170134,8 +170124,8 @@ "binop": null }, "value": "i", - "start": 26259, - "end": 26260, + "start": 26302, + "end": 26303, "loc": { "start": { "line": 647, @@ -170161,8 +170151,8 @@ "updateContext": null }, "value": "=", - "start": 26261, - "end": 26262, + "start": 26304, + "end": 26305, "loc": { "start": { "line": 647, @@ -170188,8 +170178,8 @@ "updateContext": null }, "value": 0, - "start": 26263, - "end": 26264, + "start": 26306, + "end": 26307, "loc": { "start": { "line": 647, @@ -170214,8 +170204,8 @@ "binop": null, "updateContext": null }, - "start": 26264, - "end": 26265, + "start": 26307, + "end": 26308, "loc": { "start": { "line": 647, @@ -170240,8 +170230,8 @@ "binop": null }, "value": "i", - "start": 26266, - "end": 26267, + "start": 26309, + "end": 26310, "loc": { "start": { "line": 647, @@ -170267,8 +170257,8 @@ "updateContext": null }, "value": "<", - "start": 26268, - "end": 26269, + "start": 26311, + "end": 26312, "loc": { "start": { "line": 647, @@ -170293,8 +170283,8 @@ "binop": null }, "value": "pArray", - "start": 26270, - "end": 26276, + "start": 26313, + "end": 26319, "loc": { "start": { "line": 647, @@ -170319,8 +170309,8 @@ "binop": null, "updateContext": null }, - "start": 26276, - "end": 26277, + "start": 26319, + "end": 26320, "loc": { "start": { "line": 647, @@ -170345,8 +170335,8 @@ "binop": null }, "value": "length", - "start": 26277, - "end": 26283, + "start": 26320, + "end": 26326, "loc": { "start": { "line": 647, @@ -170371,8 +170361,8 @@ "binop": null, "updateContext": null }, - "start": 26283, - "end": 26284, + "start": 26326, + "end": 26327, "loc": { "start": { "line": 647, @@ -170397,8 +170387,8 @@ "binop": null }, "value": "i", - "start": 26285, - "end": 26286, + "start": 26328, + "end": 26329, "loc": { "start": { "line": 647, @@ -170423,8 +170413,8 @@ "binop": null }, "value": "++", - "start": 26286, - "end": 26288, + "start": 26329, + "end": 26331, "loc": { "start": { "line": 647, @@ -170448,8 +170438,8 @@ "postfix": false, "binop": null }, - "start": 26288, - "end": 26289, + "start": 26331, + "end": 26332, "loc": { "start": { "line": 647, @@ -170473,8 +170463,8 @@ "postfix": false, "binop": null }, - "start": 26290, - "end": 26291, + "start": 26333, + "end": 26334, "loc": { "start": { "line": 647, @@ -170501,8 +170491,8 @@ "updateContext": null }, "value": "let", - "start": 26296, - "end": 26299, + "start": 26339, + "end": 26342, "loc": { "start": { "line": 648, @@ -170527,8 +170517,8 @@ "binop": null }, "value": "index", - "start": 26300, - "end": 26305, + "start": 26343, + "end": 26348, "loc": { "start": { "line": 648, @@ -170554,8 +170544,8 @@ "updateContext": null }, "value": "=", - "start": 26306, - "end": 26307, + "start": 26349, + "end": 26350, "loc": { "start": { "line": 648, @@ -170580,8 +170570,8 @@ "binop": null }, "value": "pArray", - "start": 26308, - "end": 26314, + "start": 26351, + "end": 26357, "loc": { "start": { "line": 648, @@ -170606,8 +170596,8 @@ "binop": null, "updateContext": null }, - "start": 26314, - "end": 26315, + "start": 26357, + "end": 26358, "loc": { "start": { "line": 648, @@ -170632,8 +170622,8 @@ "binop": null }, "value": "i", - "start": 26315, - "end": 26316, + "start": 26358, + "end": 26359, "loc": { "start": { "line": 648, @@ -170658,8 +170648,8 @@ "binop": null, "updateContext": null }, - "start": 26316, - "end": 26317, + "start": 26359, + "end": 26360, "loc": { "start": { "line": 648, @@ -170684,8 +170674,8 @@ "binop": null, "updateContext": null }, - "start": 26317, - "end": 26318, + "start": 26360, + "end": 26361, "loc": { "start": { "line": 648, @@ -170710,8 +170700,8 @@ "binop": null }, "value": "indexOf", - "start": 26318, - "end": 26325, + "start": 26361, + "end": 26368, "loc": { "start": { "line": 648, @@ -170735,8 +170725,8 @@ "postfix": false, "binop": null }, - "start": 26325, - "end": 26326, + "start": 26368, + "end": 26369, "loc": { "start": { "line": 648, @@ -170761,8 +170751,8 @@ "binop": null }, "value": "pValue", - "start": 26326, - "end": 26332, + "start": 26369, + "end": 26375, "loc": { "start": { "line": 648, @@ -170786,8 +170776,8 @@ "postfix": false, "binop": null }, - "start": 26332, - "end": 26333, + "start": 26375, + "end": 26376, "loc": { "start": { "line": 648, @@ -170812,8 +170802,8 @@ "binop": null, "updateContext": null }, - "start": 26333, - "end": 26334, + "start": 26376, + "end": 26377, "loc": { "start": { "line": 648, @@ -170840,8 +170830,8 @@ "updateContext": null }, "value": "if", - "start": 26339, - "end": 26341, + "start": 26382, + "end": 26384, "loc": { "start": { "line": 649, @@ -170865,8 +170855,8 @@ "postfix": false, "binop": null }, - "start": 26342, - "end": 26343, + "start": 26385, + "end": 26386, "loc": { "start": { "line": 649, @@ -170891,8 +170881,8 @@ "binop": null }, "value": "index", - "start": 26343, - "end": 26348, + "start": 26386, + "end": 26391, "loc": { "start": { "line": 649, @@ -170918,8 +170908,8 @@ "updateContext": null }, "value": ">", - "start": 26349, - "end": 26350, + "start": 26392, + "end": 26393, "loc": { "start": { "line": 649, @@ -170945,8 +170935,8 @@ "updateContext": null }, "value": "-", - "start": 26351, - "end": 26352, + "start": 26394, + "end": 26395, "loc": { "start": { "line": 649, @@ -170972,8 +170962,8 @@ "updateContext": null }, "value": 1, - "start": 26352, - "end": 26353, + "start": 26395, + "end": 26396, "loc": { "start": { "line": 649, @@ -170997,8 +170987,8 @@ "postfix": false, "binop": null }, - "start": 26353, - "end": 26354, + "start": 26396, + "end": 26397, "loc": { "start": { "line": 649, @@ -171022,8 +171012,8 @@ "postfix": false, "binop": null }, - "start": 26355, - "end": 26356, + "start": 26398, + "end": 26399, "loc": { "start": { "line": 649, @@ -171050,8 +171040,8 @@ "updateContext": null }, "value": "return", - "start": 26362, - "end": 26368, + "start": 26405, + "end": 26411, "loc": { "start": { "line": 650, @@ -171076,8 +171066,8 @@ "binop": null, "updateContext": null }, - "start": 26369, - "end": 26370, + "start": 26412, + "end": 26413, "loc": { "start": { "line": 650, @@ -171102,8 +171092,8 @@ "binop": null }, "value": "i", - "start": 26370, - "end": 26371, + "start": 26413, + "end": 26414, "loc": { "start": { "line": 650, @@ -171128,8 +171118,8 @@ "binop": null, "updateContext": null }, - "start": 26371, - "end": 26372, + "start": 26414, + "end": 26415, "loc": { "start": { "line": 650, @@ -171154,8 +171144,8 @@ "binop": null }, "value": "index", - "start": 26373, - "end": 26378, + "start": 26416, + "end": 26421, "loc": { "start": { "line": 650, @@ -171180,8 +171170,8 @@ "binop": null, "updateContext": null }, - "start": 26378, - "end": 26379, + "start": 26421, + "end": 26422, "loc": { "start": { "line": 650, @@ -171206,8 +171196,8 @@ "binop": null, "updateContext": null }, - "start": 26379, - "end": 26380, + "start": 26422, + "end": 26423, "loc": { "start": { "line": 650, @@ -171231,8 +171221,8 @@ "postfix": false, "binop": null }, - "start": 26385, - "end": 26386, + "start": 26428, + "end": 26429, "loc": { "start": { "line": 651, @@ -171256,8 +171246,8 @@ "postfix": false, "binop": null }, - "start": 26390, - "end": 26391, + "start": 26433, + "end": 26434, "loc": { "start": { "line": 652, @@ -171281,8 +171271,8 @@ "postfix": false, "binop": null }, - "start": 26394, - "end": 26395, + "start": 26437, + "end": 26438, "loc": { "start": { "line": 653, @@ -171297,8 +171287,8 @@ { "type": "CommentBlock", "value": "*\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t ", - "start": 26398, - "end": 26779, + "start": 26441, + "end": 26822, "loc": { "start": { "line": 654, @@ -171323,8 +171313,8 @@ "binop": null }, "value": "mapTilesToGrid", - "start": 26782, - "end": 26796, + "start": 26825, + "end": 26839, "loc": { "start": { "line": 661, @@ -171348,8 +171338,8 @@ "postfix": false, "binop": null }, - "start": 26796, - "end": 26797, + "start": 26839, + "end": 26840, "loc": { "start": { "line": 661, @@ -171374,8 +171364,8 @@ "binop": null }, "value": "pMapName", - "start": 26797, - "end": 26805, + "start": 26840, + "end": 26848, "loc": { "start": { "line": 661, @@ -171400,8 +171390,8 @@ "binop": null, "updateContext": null }, - "start": 26805, - "end": 26806, + "start": 26848, + "end": 26849, "loc": { "start": { "line": 661, @@ -171426,8 +171416,8 @@ "binop": null }, "value": "pExclusionList", - "start": 26807, - "end": 26821, + "start": 26850, + "end": 26864, "loc": { "start": { "line": 661, @@ -171451,8 +171441,8 @@ "postfix": false, "binop": null }, - "start": 26821, - "end": 26822, + "start": 26864, + "end": 26865, "loc": { "start": { "line": 661, @@ -171476,8 +171466,8 @@ "postfix": false, "binop": null }, - "start": 26823, - "end": 26824, + "start": 26866, + "end": 26867, "loc": { "start": { "line": 661, @@ -171504,8 +171494,8 @@ "updateContext": null }, "value": "if", - "start": 26828, - "end": 26830, + "start": 26871, + "end": 26873, "loc": { "start": { "line": 662, @@ -171529,8 +171519,8 @@ "postfix": false, "binop": null }, - "start": 26831, - "end": 26832, + "start": 26874, + "end": 26875, "loc": { "start": { "line": 662, @@ -171557,8 +171547,8 @@ "updateContext": null }, "value": "typeof", - "start": 26832, - "end": 26838, + "start": 26875, + "end": 26881, "loc": { "start": { "line": 662, @@ -171582,8 +171572,8 @@ "postfix": false, "binop": null }, - "start": 26838, - "end": 26839, + "start": 26881, + "end": 26882, "loc": { "start": { "line": 662, @@ -171608,8 +171598,8 @@ "binop": null }, "value": "pMapName", - "start": 26839, - "end": 26847, + "start": 26882, + "end": 26890, "loc": { "start": { "line": 662, @@ -171633,8 +171623,8 @@ "postfix": false, "binop": null }, - "start": 26847, - "end": 26848, + "start": 26890, + "end": 26891, "loc": { "start": { "line": 662, @@ -171660,8 +171650,8 @@ "updateContext": null }, "value": "===", - "start": 26849, - "end": 26852, + "start": 26892, + "end": 26895, "loc": { "start": { "line": 662, @@ -171687,8 +171677,8 @@ "updateContext": null }, "value": "string", - "start": 26853, - "end": 26861, + "start": 26896, + "end": 26904, "loc": { "start": { "line": 662, @@ -171712,8 +171702,8 @@ "postfix": false, "binop": null }, - "start": 26861, - "end": 26862, + "start": 26904, + "end": 26905, "loc": { "start": { "line": 662, @@ -171737,8 +171727,8 @@ "postfix": false, "binop": null }, - "start": 26863, - "end": 26864, + "start": 26906, + "end": 26907, "loc": { "start": { "line": 662, @@ -171765,8 +171755,8 @@ "updateContext": null }, "value": "if", - "start": 26869, - "end": 26871, + "start": 26912, + "end": 26914, "loc": { "start": { "line": 663, @@ -171790,8 +171780,8 @@ "postfix": false, "binop": null }, - "start": 26872, - "end": 26873, + "start": 26915, + "end": 26916, "loc": { "start": { "line": 663, @@ -171816,8 +171806,8 @@ "binop": null }, "value": "Array", - "start": 26873, - "end": 26878, + "start": 26916, + "end": 26921, "loc": { "start": { "line": 663, @@ -171842,8 +171832,8 @@ "binop": null, "updateContext": null }, - "start": 26878, - "end": 26879, + "start": 26921, + "end": 26922, "loc": { "start": { "line": 663, @@ -171868,8 +171858,8 @@ "binop": null }, "value": "isArray", - "start": 26879, - "end": 26886, + "start": 26922, + "end": 26929, "loc": { "start": { "line": 663, @@ -171893,8 +171883,8 @@ "postfix": false, "binop": null }, - "start": 26886, - "end": 26887, + "start": 26929, + "end": 26930, "loc": { "start": { "line": 663, @@ -171919,8 +171909,8 @@ "binop": null }, "value": "pExclusionList", - "start": 26887, - "end": 26901, + "start": 26930, + "end": 26944, "loc": { "start": { "line": 663, @@ -171944,8 +171934,8 @@ "postfix": false, "binop": null }, - "start": 26901, - "end": 26902, + "start": 26944, + "end": 26945, "loc": { "start": { "line": 663, @@ -171969,8 +171959,8 @@ "postfix": false, "binop": null }, - "start": 26902, - "end": 26903, + "start": 26945, + "end": 26946, "loc": { "start": { "line": 663, @@ -171994,8 +171984,8 @@ "postfix": false, "binop": null }, - "start": 26904, - "end": 26905, + "start": 26947, + "end": 26948, "loc": { "start": { "line": 663, @@ -172010,8 +172000,8 @@ { "type": "CommentLine", "value": " We check if this is a valid mapname found in VYLO.", - "start": 26911, - "end": 26964, + "start": 26954, + "end": 27007, "loc": { "start": { "line": 664, @@ -172038,8 +172028,8 @@ "updateContext": null }, "value": "if", - "start": 26970, - "end": 26972, + "start": 27013, + "end": 27015, "loc": { "start": { "line": 665, @@ -172063,8 +172053,8 @@ "postfix": false, "binop": null }, - "start": 26973, - "end": 26974, + "start": 27016, + "end": 27017, "loc": { "start": { "line": 665, @@ -172089,8 +172079,8 @@ "binop": null }, "value": "VYLO", - "start": 26974, - "end": 26978, + "start": 27017, + "end": 27021, "loc": { "start": { "line": 665, @@ -172115,8 +172105,8 @@ "binop": null, "updateContext": null }, - "start": 26978, - "end": 26979, + "start": 27021, + "end": 27022, "loc": { "start": { "line": 665, @@ -172141,8 +172131,8 @@ "binop": null }, "value": "Map", - "start": 26979, - "end": 26982, + "start": 27022, + "end": 27025, "loc": { "start": { "line": 665, @@ -172167,8 +172157,8 @@ "binop": null, "updateContext": null }, - "start": 26982, - "end": 26983, + "start": 27025, + "end": 27026, "loc": { "start": { "line": 665, @@ -172193,8 +172183,8 @@ "binop": null }, "value": "getMaps", - "start": 26983, - "end": 26990, + "start": 27026, + "end": 27033, "loc": { "start": { "line": 665, @@ -172218,8 +172208,8 @@ "postfix": false, "binop": null }, - "start": 26990, - "end": 26991, + "start": 27033, + "end": 27034, "loc": { "start": { "line": 665, @@ -172243,8 +172233,8 @@ "postfix": false, "binop": null }, - "start": 26991, - "end": 26992, + "start": 27034, + "end": 27035, "loc": { "start": { "line": 665, @@ -172269,8 +172259,8 @@ "binop": null, "updateContext": null }, - "start": 26992, - "end": 26993, + "start": 27035, + "end": 27036, "loc": { "start": { "line": 665, @@ -172295,8 +172285,8 @@ "binop": null }, "value": "includes", - "start": 26993, - "end": 27001, + "start": 27036, + "end": 27044, "loc": { "start": { "line": 665, @@ -172320,8 +172310,8 @@ "postfix": false, "binop": null }, - "start": 27001, - "end": 27002, + "start": 27044, + "end": 27045, "loc": { "start": { "line": 665, @@ -172346,8 +172336,8 @@ "binop": null }, "value": "pMapName", - "start": 27002, - "end": 27010, + "start": 27045, + "end": 27053, "loc": { "start": { "line": 665, @@ -172371,8 +172361,8 @@ "postfix": false, "binop": null }, - "start": 27010, - "end": 27011, + "start": 27053, + "end": 27054, "loc": { "start": { "line": 665, @@ -172396,8 +172386,8 @@ "postfix": false, "binop": null }, - "start": 27011, - "end": 27012, + "start": 27054, + "end": 27055, "loc": { "start": { "line": 665, @@ -172421,8 +172411,8 @@ "postfix": false, "binop": null }, - "start": 27013, - "end": 27014, + "start": 27056, + "end": 27057, "loc": { "start": { "line": 665, @@ -172437,8 +172427,8 @@ { "type": "CommentLine", "value": " An array of tiles that we get from the map", - "start": 27021, - "end": 27066, + "start": 27064, + "end": 27109, "loc": { "start": { "line": 666, @@ -172465,8 +172455,8 @@ "updateContext": null }, "value": "let", - "start": 27073, - "end": 27076, + "start": 27116, + "end": 27119, "loc": { "start": { "line": 667, @@ -172491,8 +172481,8 @@ "binop": null }, "value": "tilesArray", - "start": 27077, - "end": 27087, + "start": 27120, + "end": 27130, "loc": { "start": { "line": 667, @@ -172517,8 +172507,8 @@ "binop": null, "updateContext": null }, - "start": 27087, - "end": 27088, + "start": 27130, + "end": 27131, "loc": { "start": { "line": 667, @@ -172533,8 +172523,8 @@ { "type": "CommentLine", "value": " An array of accepted tiles to be walked on.", - "start": 27095, - "end": 27141, + "start": 27138, + "end": 27184, "loc": { "start": { "line": 668, @@ -172561,8 +172551,8 @@ "updateContext": null }, "value": "const", - "start": 27148, - "end": 27153, + "start": 27191, + "end": 27196, "loc": { "start": { "line": 669, @@ -172587,8 +172577,8 @@ "binop": null }, "value": "acceptedTiles", - "start": 27154, - "end": 27167, + "start": 27197, + "end": 27210, "loc": { "start": { "line": 669, @@ -172614,8 +172604,8 @@ "updateContext": null }, "value": "=", - "start": 27168, - "end": 27169, + "start": 27211, + "end": 27212, "loc": { "start": { "line": 669, @@ -172640,8 +172630,8 @@ "binop": null, "updateContext": null }, - "start": 27170, - "end": 27171, + "start": 27213, + "end": 27214, "loc": { "start": { "line": 669, @@ -172667,8 +172657,8 @@ "updateContext": null }, "value": 0, - "start": 27171, - "end": 27172, + "start": 27214, + "end": 27215, "loc": { "start": { "line": 669, @@ -172693,8 +172683,8 @@ "binop": null, "updateContext": null }, - "start": 27172, - "end": 27173, + "start": 27215, + "end": 27216, "loc": { "start": { "line": 669, @@ -172719,8 +172709,8 @@ "binop": null, "updateContext": null }, - "start": 27173, - "end": 27174, + "start": 27216, + "end": 27217, "loc": { "start": { "line": 669, @@ -172735,8 +172725,8 @@ { "type": "CommentLine", "value": " An array holding the weights of tiles.", - "start": 27181, - "end": 27222, + "start": 27224, + "end": 27265, "loc": { "start": { "line": 670, @@ -172763,8 +172753,8 @@ "updateContext": null }, "value": "const", - "start": 27229, - "end": 27234, + "start": 27272, + "end": 27277, "loc": { "start": { "line": 671, @@ -172789,8 +172779,8 @@ "binop": null }, "value": "weights", - "start": 27235, - "end": 27242, + "start": 27278, + "end": 27285, "loc": { "start": { "line": 671, @@ -172816,8 +172806,8 @@ "updateContext": null }, "value": "=", - "start": 27243, - "end": 27244, + "start": 27286, + "end": 27287, "loc": { "start": { "line": 671, @@ -172842,8 +172832,8 @@ "binop": null, "updateContext": null }, - "start": 27245, - "end": 27246, + "start": 27288, + "end": 27289, "loc": { "start": { "line": 671, @@ -172868,8 +172858,8 @@ "binop": null, "updateContext": null }, - "start": 27246, - "end": 27247, + "start": 27289, + "end": 27290, "loc": { "start": { "line": 671, @@ -172894,8 +172884,8 @@ "binop": null, "updateContext": null }, - "start": 27247, - "end": 27248, + "start": 27290, + "end": 27291, "loc": { "start": { "line": 671, @@ -172910,8 +172900,8 @@ { "type": "CommentLine", "value": " Get the dimensions of the map that was passed.", - "start": 27255, - "end": 27304, + "start": 27298, + "end": 27347, "loc": { "start": { "line": 672, @@ -172938,8 +172928,8 @@ "updateContext": null }, "value": "const", - "start": 27311, - "end": 27316, + "start": 27354, + "end": 27359, "loc": { "start": { "line": 673, @@ -172964,8 +172954,8 @@ "binop": null }, "value": "mapSize", - "start": 27317, - "end": 27324, + "start": 27360, + "end": 27367, "loc": { "start": { "line": 673, @@ -172991,8 +172981,8 @@ "updateContext": null }, "value": "=", - "start": 27325, - "end": 27326, + "start": 27368, + "end": 27369, "loc": { "start": { "line": 673, @@ -173017,8 +173007,8 @@ "binop": null }, "value": "VYLO", - "start": 27327, - "end": 27331, + "start": 27370, + "end": 27374, "loc": { "start": { "line": 673, @@ -173043,8 +173033,8 @@ "binop": null, "updateContext": null }, - "start": 27331, - "end": 27332, + "start": 27374, + "end": 27375, "loc": { "start": { "line": 673, @@ -173069,8 +173059,8 @@ "binop": null }, "value": "Map", - "start": 27332, - "end": 27335, + "start": 27375, + "end": 27378, "loc": { "start": { "line": 673, @@ -173095,8 +173085,8 @@ "binop": null, "updateContext": null }, - "start": 27335, - "end": 27336, + "start": 27378, + "end": 27379, "loc": { "start": { "line": 673, @@ -173121,8 +173111,8 @@ "binop": null }, "value": "getMapSize", - "start": 27336, - "end": 27346, + "start": 27379, + "end": 27389, "loc": { "start": { "line": 673, @@ -173146,8 +173136,8 @@ "postfix": false, "binop": null }, - "start": 27346, - "end": 27347, + "start": 27389, + "end": 27390, "loc": { "start": { "line": 673, @@ -173172,8 +173162,8 @@ "binop": null }, "value": "pMapName", - "start": 27347, - "end": 27355, + "start": 27390, + "end": 27398, "loc": { "start": { "line": 673, @@ -173197,8 +173187,8 @@ "postfix": false, "binop": null }, - "start": 27355, - "end": 27356, + "start": 27398, + "end": 27399, "loc": { "start": { "line": 673, @@ -173223,8 +173213,8 @@ "binop": null, "updateContext": null }, - "start": 27356, - "end": 27357, + "start": 27399, + "end": 27400, "loc": { "start": { "line": 673, @@ -173239,8 +173229,8 @@ { "type": "CommentLine", "value": " We check if we have stored tiles from this map before. If so we cache them.", - "start": 27366, - "end": 27444, + "start": 27409, + "end": 27487, "loc": { "start": { "line": 675, @@ -173267,8 +173257,8 @@ "updateContext": null }, "value": "if", - "start": 27451, - "end": 27453, + "start": 27494, + "end": 27496, "loc": { "start": { "line": 676, @@ -173292,8 +173282,8 @@ "postfix": false, "binop": null }, - "start": 27454, - "end": 27455, + "start": 27497, + "end": 27498, "loc": { "start": { "line": 676, @@ -173318,8 +173308,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 27455, - "end": 27471, + "start": 27498, + "end": 27514, "loc": { "start": { "line": 676, @@ -173344,8 +173334,8 @@ "binop": null, "updateContext": null }, - "start": 27471, - "end": 27472, + "start": 27514, + "end": 27515, "loc": { "start": { "line": 676, @@ -173370,8 +173360,8 @@ "binop": null }, "value": "storedMapTiles", - "start": 27472, - "end": 27486, + "start": 27515, + "end": 27529, "loc": { "start": { "line": 676, @@ -173396,8 +173386,8 @@ "binop": null, "updateContext": null }, - "start": 27486, - "end": 27487, + "start": 27529, + "end": 27530, "loc": { "start": { "line": 676, @@ -173422,8 +173412,8 @@ "binop": null }, "value": "pMapName", - "start": 27487, - "end": 27495, + "start": 27530, + "end": 27538, "loc": { "start": { "line": 676, @@ -173448,8 +173438,8 @@ "binop": null, "updateContext": null }, - "start": 27495, - "end": 27496, + "start": 27538, + "end": 27539, "loc": { "start": { "line": 676, @@ -173473,8 +173463,8 @@ "postfix": false, "binop": null }, - "start": 27496, - "end": 27497, + "start": 27539, + "end": 27540, "loc": { "start": { "line": 676, @@ -173498,8 +173488,8 @@ "postfix": false, "binop": null }, - "start": 27498, - "end": 27499, + "start": 27541, + "end": 27542, "loc": { "start": { "line": 676, @@ -173514,8 +173504,8 @@ { "type": "CommentLine", "value": " We get the tile array from memory.", - "start": 27507, - "end": 27544, + "start": 27550, + "end": 27587, "loc": { "start": { "line": 677, @@ -173540,8 +173530,8 @@ "binop": null }, "value": "tilesArray", - "start": 27552, - "end": 27562, + "start": 27595, + "end": 27605, "loc": { "start": { "line": 678, @@ -173567,8 +173557,8 @@ "updateContext": null }, "value": "=", - "start": 27563, - "end": 27564, + "start": 27606, + "end": 27607, "loc": { "start": { "line": 678, @@ -173593,8 +173583,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 27565, - "end": 27581, + "start": 27608, + "end": 27624, "loc": { "start": { "line": 678, @@ -173619,8 +173609,8 @@ "binop": null, "updateContext": null }, - "start": 27581, - "end": 27582, + "start": 27624, + "end": 27625, "loc": { "start": { "line": 678, @@ -173645,8 +173635,8 @@ "binop": null }, "value": "storedMapTiles", - "start": 27582, - "end": 27596, + "start": 27625, + "end": 27639, "loc": { "start": { "line": 678, @@ -173671,8 +173661,8 @@ "binop": null, "updateContext": null }, - "start": 27596, - "end": 27597, + "start": 27639, + "end": 27640, "loc": { "start": { "line": 678, @@ -173697,8 +173687,8 @@ "binop": null }, "value": "pMapName", - "start": 27597, - "end": 27605, + "start": 27640, + "end": 27648, "loc": { "start": { "line": 678, @@ -173723,8 +173713,8 @@ "binop": null, "updateContext": null }, - "start": 27605, - "end": 27606, + "start": 27648, + "end": 27649, "loc": { "start": { "line": 678, @@ -173749,8 +173739,8 @@ "binop": null, "updateContext": null }, - "start": 27606, - "end": 27607, + "start": 27649, + "end": 27650, "loc": { "start": { "line": 678, @@ -173775,8 +173765,8 @@ "binop": null }, "value": "tiles", - "start": 27607, - "end": 27612, + "start": 27650, + "end": 27655, "loc": { "start": { "line": 678, @@ -173801,8 +173791,8 @@ "binop": null, "updateContext": null }, - "start": 27612, - "end": 27613, + "start": 27655, + "end": 27656, "loc": { "start": { "line": 678, @@ -173826,8 +173816,8 @@ "postfix": false, "binop": null }, - "start": 27620, - "end": 27621, + "start": 27663, + "end": 27664, "loc": { "start": { "line": 679, @@ -173854,8 +173844,8 @@ "updateContext": null }, "value": "else", - "start": 27622, - "end": 27626, + "start": 27665, + "end": 27669, "loc": { "start": { "line": 679, @@ -173879,8 +173869,8 @@ "postfix": false, "binop": null }, - "start": 27627, - "end": 27628, + "start": 27670, + "end": 27671, "loc": { "start": { "line": 679, @@ -173905,8 +173895,8 @@ "binop": null }, "value": "tilesArray", - "start": 27636, - "end": 27646, + "start": 27679, + "end": 27689, "loc": { "start": { "line": 680, @@ -173932,8 +173922,8 @@ "updateContext": null }, "value": "=", - "start": 27647, - "end": 27648, + "start": 27690, + "end": 27691, "loc": { "start": { "line": 680, @@ -173958,8 +173948,8 @@ "binop": null }, "value": "VYLO", - "start": 27649, - "end": 27653, + "start": 27692, + "end": 27696, "loc": { "start": { "line": 680, @@ -173984,8 +173974,8 @@ "binop": null, "updateContext": null }, - "start": 27653, - "end": 27654, + "start": 27696, + "end": 27697, "loc": { "start": { "line": 680, @@ -174010,8 +174000,8 @@ "binop": null }, "value": "Map", - "start": 27654, - "end": 27657, + "start": 27697, + "end": 27700, "loc": { "start": { "line": 680, @@ -174036,8 +174026,8 @@ "binop": null, "updateContext": null }, - "start": 27657, - "end": 27658, + "start": 27700, + "end": 27701, "loc": { "start": { "line": 680, @@ -174062,8 +174052,8 @@ "binop": null }, "value": "getTiles", - "start": 27658, - "end": 27666, + "start": 27701, + "end": 27709, "loc": { "start": { "line": 680, @@ -174087,8 +174077,8 @@ "postfix": false, "binop": null }, - "start": 27666, - "end": 27667, + "start": 27709, + "end": 27710, "loc": { "start": { "line": 680, @@ -174113,8 +174103,8 @@ "binop": null }, "value": "pMapName", - "start": 27667, - "end": 27675, + "start": 27710, + "end": 27718, "loc": { "start": { "line": 680, @@ -174138,8 +174128,8 @@ "postfix": false, "binop": null }, - "start": 27675, - "end": 27676, + "start": 27718, + "end": 27719, "loc": { "start": { "line": 680, @@ -174164,8 +174154,8 @@ "binop": null, "updateContext": null }, - "start": 27676, - "end": 27677, + "start": 27719, + "end": 27720, "loc": { "start": { "line": 680, @@ -174180,8 +174170,8 @@ { "type": "CommentLine", "value": " We store this tiles array", - "start": 27685, - "end": 27713, + "start": 27728, + "end": 27756, "loc": { "start": { "line": 681, @@ -174206,8 +174196,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 27721, - "end": 27737, + "start": 27764, + "end": 27780, "loc": { "start": { "line": 682, @@ -174232,8 +174222,8 @@ "binop": null, "updateContext": null }, - "start": 27737, - "end": 27738, + "start": 27780, + "end": 27781, "loc": { "start": { "line": 682, @@ -174258,8 +174248,8 @@ "binop": null }, "value": "storedMapTiles", - "start": 27738, - "end": 27752, + "start": 27781, + "end": 27795, "loc": { "start": { "line": 682, @@ -174284,8 +174274,8 @@ "binop": null, "updateContext": null }, - "start": 27752, - "end": 27753, + "start": 27795, + "end": 27796, "loc": { "start": { "line": 682, @@ -174310,8 +174300,8 @@ "binop": null }, "value": "pMapName", - "start": 27753, - "end": 27761, + "start": 27796, + "end": 27804, "loc": { "start": { "line": 682, @@ -174336,8 +174326,8 @@ "binop": null, "updateContext": null }, - "start": 27761, - "end": 27762, + "start": 27804, + "end": 27805, "loc": { "start": { "line": 682, @@ -174363,8 +174353,8 @@ "updateContext": null }, "value": "=", - "start": 27763, - "end": 27764, + "start": 27806, + "end": 27807, "loc": { "start": { "line": 682, @@ -174388,8 +174378,8 @@ "postfix": false, "binop": null }, - "start": 27765, - "end": 27766, + "start": 27808, + "end": 27809, "loc": { "start": { "line": 682, @@ -174414,8 +174404,8 @@ "binop": null }, "value": "tiles", - "start": 27767, - "end": 27772, + "start": 27810, + "end": 27815, "loc": { "start": { "line": 682, @@ -174440,8 +174430,8 @@ "binop": null, "updateContext": null }, - "start": 27772, - "end": 27773, + "start": 27815, + "end": 27816, "loc": { "start": { "line": 682, @@ -174466,8 +174456,8 @@ "binop": null }, "value": "tilesArray", - "start": 27774, - "end": 27784, + "start": 27817, + "end": 27827, "loc": { "start": { "line": 682, @@ -174492,8 +174482,8 @@ "binop": null, "updateContext": null }, - "start": 27784, - "end": 27785, + "start": 27827, + "end": 27828, "loc": { "start": { "line": 682, @@ -174518,8 +174508,8 @@ "binop": null }, "value": "tiles2d", - "start": 27786, - "end": 27793, + "start": 27829, + "end": 27836, "loc": { "start": { "line": 682, @@ -174544,8 +174534,8 @@ "binop": null, "updateContext": null }, - "start": 27793, - "end": 27794, + "start": 27836, + "end": 27837, "loc": { "start": { "line": 682, @@ -174572,8 +174562,8 @@ "updateContext": null }, "value": "this", - "start": 27795, - "end": 27799, + "start": 27838, + "end": 27842, "loc": { "start": { "line": 682, @@ -174598,8 +174588,8 @@ "binop": null, "updateContext": null }, - "start": 27799, - "end": 27800, + "start": 27842, + "end": 27843, "loc": { "start": { "line": 682, @@ -174624,8 +174614,8 @@ "binop": null }, "value": "toTwoDimensionalArray", - "start": 27800, - "end": 27821, + "start": 27843, + "end": 27864, "loc": { "start": { "line": 682, @@ -174649,8 +174639,8 @@ "postfix": false, "binop": null }, - "start": 27821, - "end": 27822, + "start": 27864, + "end": 27865, "loc": { "start": { "line": 682, @@ -174675,8 +174665,8 @@ "binop": null }, "value": "tilesArray", - "start": 27822, - "end": 27832, + "start": 27865, + "end": 27875, "loc": { "start": { "line": 682, @@ -174701,8 +174691,8 @@ "binop": null, "updateContext": null }, - "start": 27832, - "end": 27833, + "start": 27875, + "end": 27876, "loc": { "start": { "line": 682, @@ -174727,8 +174717,8 @@ "binop": null }, "value": "mapSize", - "start": 27834, - "end": 27841, + "start": 27877, + "end": 27884, "loc": { "start": { "line": 682, @@ -174753,8 +174743,8 @@ "binop": null, "updateContext": null }, - "start": 27841, - "end": 27842, + "start": 27884, + "end": 27885, "loc": { "start": { "line": 682, @@ -174779,8 +174769,8 @@ "binop": null }, "value": "x", - "start": 27842, - "end": 27843, + "start": 27885, + "end": 27886, "loc": { "start": { "line": 682, @@ -174804,8 +174794,8 @@ "postfix": false, "binop": null }, - "start": 27843, - "end": 27844, + "start": 27886, + "end": 27887, "loc": { "start": { "line": 682, @@ -174829,8 +174819,8 @@ "postfix": false, "binop": null }, - "start": 27845, - "end": 27846, + "start": 27888, + "end": 27889, "loc": { "start": { "line": 682, @@ -174855,8 +174845,8 @@ "binop": null, "updateContext": null }, - "start": 27846, - "end": 27847, + "start": 27889, + "end": 27890, "loc": { "start": { "line": 682, @@ -174880,8 +174870,8 @@ "postfix": false, "binop": null }, - "start": 27854, - "end": 27855, + "start": 27897, + "end": 27898, "loc": { "start": { "line": 683, @@ -174896,8 +174886,8 @@ { "type": "CommentLine", "value": " This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.", - "start": 27864, - "end": 27984, + "start": 27907, + "end": 28027, "loc": { "start": { "line": 685, @@ -174924,8 +174914,8 @@ "updateContext": null }, "value": "const", - "start": 27991, - "end": 27996, + "start": 28034, + "end": 28039, "loc": { "start": { "line": 686, @@ -174950,8 +174940,8 @@ "binop": null }, "value": "isImpassable", - "start": 27997, - "end": 28009, + "start": 28040, + "end": 28052, "loc": { "start": { "line": 686, @@ -174977,8 +174967,8 @@ "updateContext": null }, "value": "=", - "start": 28010, - "end": 28011, + "start": 28053, + "end": 28054, "loc": { "start": { "line": 686, @@ -175002,8 +174992,8 @@ "postfix": false, "binop": null }, - "start": 28012, - "end": 28013, + "start": 28055, + "end": 28056, "loc": { "start": { "line": 686, @@ -175028,8 +175018,8 @@ "binop": null }, "value": "pInstance", - "start": 28013, - "end": 28022, + "start": 28056, + "end": 28065, "loc": { "start": { "line": 686, @@ -175053,8 +175043,8 @@ "postfix": false, "binop": null }, - "start": 28022, - "end": 28023, + "start": 28065, + "end": 28066, "loc": { "start": { "line": 686, @@ -175079,8 +175069,8 @@ "binop": null, "updateContext": null }, - "start": 28024, - "end": 28026, + "start": 28067, + "end": 28069, "loc": { "start": { "line": 686, @@ -175104,8 +175094,8 @@ "postfix": false, "binop": null }, - "start": 28027, - "end": 28028, + "start": 28070, + "end": 28071, "loc": { "start": { "line": 686, @@ -175130,8 +175120,8 @@ "binop": null }, "value": "pInstance", - "start": 28028, - "end": 28037, + "start": 28071, + "end": 28080, "loc": { "start": { "line": 686, @@ -175156,8 +175146,8 @@ "binop": null, "updateContext": null }, - "start": 28037, - "end": 28038, + "start": 28080, + "end": 28081, "loc": { "start": { "line": 686, @@ -175182,8 +175172,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 28038, - "end": 28051, + "start": 28081, + "end": 28094, "loc": { "start": { "line": 686, @@ -175209,8 +175199,8 @@ "updateContext": null }, "value": "===", - "start": 28052, - "end": 28055, + "start": 28095, + "end": 28098, "loc": { "start": { "line": 686, @@ -175235,8 +175225,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 28056, - "end": 28072, + "start": 28099, + "end": 28115, "loc": { "start": { "line": 686, @@ -175261,8 +175251,8 @@ "binop": null, "updateContext": null }, - "start": 28072, - "end": 28073, + "start": 28115, + "end": 28116, "loc": { "start": { "line": 686, @@ -175287,8 +175277,8 @@ "binop": null }, "value": "IMPASSABLE_WEIGHT", - "start": 28073, - "end": 28090, + "start": 28116, + "end": 28133, "loc": { "start": { "line": 686, @@ -175312,8 +175302,8 @@ "postfix": false, "binop": null }, - "start": 28090, - "end": 28091, + "start": 28133, + "end": 28134, "loc": { "start": { "line": 686, @@ -175339,8 +175329,8 @@ "updateContext": null }, "value": "||", - "start": 28092, - "end": 28094, + "start": 28135, + "end": 28137, "loc": { "start": { "line": 686, @@ -175365,8 +175355,8 @@ "binop": null }, "value": "pInstance", - "start": 28095, - "end": 28104, + "start": 28138, + "end": 28147, "loc": { "start": { "line": 686, @@ -175391,8 +175381,8 @@ "binop": null, "updateContext": null }, - "start": 28104, - "end": 28105, + "start": 28147, + "end": 28148, "loc": { "start": { "line": 686, @@ -175417,8 +175407,8 @@ "binop": null }, "value": "density", - "start": 28105, - "end": 28112, + "start": 28148, + "end": 28155, "loc": { "start": { "line": 686, @@ -175444,8 +175434,8 @@ "updateContext": null }, "value": "&&", - "start": 28113, - "end": 28115, + "start": 28156, + "end": 28158, "loc": { "start": { "line": 686, @@ -175469,8 +175459,8 @@ "postfix": false, "binop": null }, - "start": 28116, - "end": 28117, + "start": 28159, + "end": 28160, "loc": { "start": { "line": 686, @@ -175496,8 +175486,8 @@ "updateContext": null }, "value": "!", - "start": 28117, - "end": 28118, + "start": 28160, + "end": 28161, "loc": { "start": { "line": 686, @@ -175522,8 +175512,8 @@ "binop": null }, "value": "pInstance", - "start": 28118, - "end": 28127, + "start": 28161, + "end": 28170, "loc": { "start": { "line": 686, @@ -175548,8 +175538,8 @@ "binop": null, "updateContext": null }, - "start": 28127, - "end": 28128, + "start": 28170, + "end": 28171, "loc": { "start": { "line": 686, @@ -175574,8 +175564,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 28128, - "end": 28141, + "start": 28171, + "end": 28184, "loc": { "start": { "line": 686, @@ -175601,8 +175591,8 @@ "updateContext": null }, "value": "&&", - "start": 28142, - "end": 28144, + "start": 28185, + "end": 28187, "loc": { "start": { "line": 686, @@ -175627,8 +175617,8 @@ "binop": null }, "value": "pInstance", - "start": 28145, - "end": 28154, + "start": 28188, + "end": 28197, "loc": { "start": { "line": 686, @@ -175653,8 +175643,8 @@ "binop": null, "updateContext": null }, - "start": 28154, - "end": 28155, + "start": 28197, + "end": 28198, "loc": { "start": { "line": 686, @@ -175679,8 +175669,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 28155, - "end": 28168, + "start": 28198, + "end": 28211, "loc": { "start": { "line": 686, @@ -175706,8 +175696,8 @@ "updateContext": null }, "value": "!==", - "start": 28169, - "end": 28172, + "start": 28212, + "end": 28215, "loc": { "start": { "line": 686, @@ -175732,8 +175722,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 28173, - "end": 28189, + "start": 28216, + "end": 28232, "loc": { "start": { "line": 686, @@ -175758,8 +175748,8 @@ "binop": null, "updateContext": null }, - "start": 28189, - "end": 28190, + "start": 28232, + "end": 28233, "loc": { "start": { "line": 686, @@ -175784,8 +175774,8 @@ "binop": null }, "value": "PASSABLE_WEIGHT", - "start": 28190, - "end": 28205, + "start": 28233, + "end": 28248, "loc": { "start": { "line": 686, @@ -175809,8 +175799,8 @@ "postfix": false, "binop": null }, - "start": 28205, - "end": 28206, + "start": 28248, + "end": 28249, "loc": { "start": { "line": 686, @@ -175835,8 +175825,8 @@ "binop": null, "updateContext": null }, - "start": 28206, - "end": 28207, + "start": 28249, + "end": 28250, "loc": { "start": { "line": 686, @@ -175851,8 +175841,8 @@ { "type": "CommentLine", "value": " Loop through the tiles array to build weights and accepted tile lists.", - "start": 28221, - "end": 28294, + "start": 28264, + "end": 28337, "loc": { "start": { "line": 688, @@ -175879,8 +175869,8 @@ "updateContext": null }, "value": "const", - "start": 28301, - "end": 28306, + "start": 28344, + "end": 28349, "loc": { "start": { "line": 689, @@ -175905,8 +175895,8 @@ "binop": null }, "value": "grid", - "start": 28307, - "end": 28311, + "start": 28350, + "end": 28354, "loc": { "start": { "line": 689, @@ -175932,8 +175922,8 @@ "updateContext": null }, "value": "=", - "start": 28312, - "end": 28313, + "start": 28355, + "end": 28356, "loc": { "start": { "line": 689, @@ -175958,8 +175948,8 @@ "binop": null }, "value": "tilesArray", - "start": 28314, - "end": 28324, + "start": 28357, + "end": 28367, "loc": { "start": { "line": 689, @@ -175984,8 +175974,8 @@ "binop": null, "updateContext": null }, - "start": 28324, - "end": 28325, + "start": 28367, + "end": 28368, "loc": { "start": { "line": 689, @@ -176010,8 +176000,8 @@ "binop": null }, "value": "map", - "start": 28325, - "end": 28328, + "start": 28368, + "end": 28371, "loc": { "start": { "line": 689, @@ -176035,8 +176025,8 @@ "postfix": false, "binop": null }, - "start": 28328, - "end": 28329, + "start": 28371, + "end": 28372, "loc": { "start": { "line": 689, @@ -176060,8 +176050,8 @@ "postfix": false, "binop": null }, - "start": 28329, - "end": 28330, + "start": 28372, + "end": 28373, "loc": { "start": { "line": 689, @@ -176086,8 +176076,8 @@ "binop": null }, "value": "pTile", - "start": 28330, - "end": 28335, + "start": 28373, + "end": 28378, "loc": { "start": { "line": 689, @@ -176111,8 +176101,8 @@ "postfix": false, "binop": null }, - "start": 28335, - "end": 28336, + "start": 28378, + "end": 28379, "loc": { "start": { "line": 689, @@ -176137,8 +176127,8 @@ "binop": null, "updateContext": null }, - "start": 28337, - "end": 28339, + "start": 28380, + "end": 28382, "loc": { "start": { "line": 689, @@ -176162,8 +176152,8 @@ "postfix": false, "binop": null }, - "start": 28340, - "end": 28341, + "start": 28383, + "end": 28384, "loc": { "start": { "line": 689, @@ -176178,8 +176168,8 @@ { "type": "CommentLine", "value": " If the tile is in the exclude list, we simply say it is passable. This prevents the tile's contents from being searched. ", - "start": 28349, - "end": 28473, + "start": 28392, + "end": 28516, "loc": { "start": { "line": 690, @@ -176194,8 +176184,8 @@ { "type": "CommentLine", "value": " There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.", - "start": 28481, - "end": 28610, + "start": 28524, + "end": 28653, "loc": { "start": { "line": 691, @@ -176222,8 +176212,8 @@ "updateContext": null }, "value": "if", - "start": 28618, - "end": 28620, + "start": 28661, + "end": 28663, "loc": { "start": { "line": 692, @@ -176247,8 +176237,8 @@ "postfix": false, "binop": null }, - "start": 28621, - "end": 28622, + "start": 28664, + "end": 28665, "loc": { "start": { "line": 692, @@ -176273,8 +176263,8 @@ "binop": null }, "value": "pExclusionList", - "start": 28622, - "end": 28636, + "start": 28665, + "end": 28679, "loc": { "start": { "line": 692, @@ -176299,8 +176289,8 @@ "binop": null, "updateContext": null }, - "start": 28636, - "end": 28637, + "start": 28679, + "end": 28680, "loc": { "start": { "line": 692, @@ -176325,8 +176315,8 @@ "binop": null }, "value": "includes", - "start": 28637, - "end": 28645, + "start": 28680, + "end": 28688, "loc": { "start": { "line": 692, @@ -176350,8 +176340,8 @@ "postfix": false, "binop": null }, - "start": 28645, - "end": 28646, + "start": 28688, + "end": 28689, "loc": { "start": { "line": 692, @@ -176376,8 +176366,8 @@ "binop": null }, "value": "pTile", - "start": 28646, - "end": 28651, + "start": 28689, + "end": 28694, "loc": { "start": { "line": 692, @@ -176401,8 +176391,8 @@ "postfix": false, "binop": null }, - "start": 28651, - "end": 28652, + "start": 28694, + "end": 28695, "loc": { "start": { "line": 692, @@ -176426,8 +176416,8 @@ "postfix": false, "binop": null }, - "start": 28652, - "end": 28653, + "start": 28695, + "end": 28696, "loc": { "start": { "line": 692, @@ -176454,8 +176444,8 @@ "updateContext": null }, "value": "return", - "start": 28654, - "end": 28660, + "start": 28697, + "end": 28703, "loc": { "start": { "line": 692, @@ -176480,8 +176470,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 28661, - "end": 28677, + "start": 28704, + "end": 28720, "loc": { "start": { "line": 692, @@ -176506,8 +176496,8 @@ "binop": null, "updateContext": null }, - "start": 28677, - "end": 28678, + "start": 28720, + "end": 28721, "loc": { "start": { "line": 692, @@ -176532,8 +176522,8 @@ "binop": null }, "value": "PASSABLE_WEIGHT", - "start": 28678, - "end": 28693, + "start": 28721, + "end": 28736, "loc": { "start": { "line": 692, @@ -176558,8 +176548,8 @@ "binop": null, "updateContext": null }, - "start": 28693, - "end": 28694, + "start": 28736, + "end": 28737, "loc": { "start": { "line": 692, @@ -176574,8 +176564,8 @@ { "type": "CommentLine", "value": " A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.", - "start": 28704, - "end": 28772, + "start": 28747, + "end": 28815, "loc": { "start": { "line": 694, @@ -176602,8 +176592,8 @@ "updateContext": null }, "value": "let", - "start": 28780, - "end": 28783, + "start": 28823, + "end": 28826, "loc": { "start": { "line": 695, @@ -176628,8 +176618,8 @@ "binop": null }, "value": "weight", - "start": 28784, - "end": 28790, + "start": 28827, + "end": 28833, "loc": { "start": { "line": 695, @@ -176655,8 +176645,8 @@ "updateContext": null }, "value": "=", - "start": 28791, - "end": 28792, + "start": 28834, + "end": 28835, "loc": { "start": { "line": 695, @@ -176683,8 +176673,8 @@ "updateContext": null }, "value": "typeof", - "start": 28793, - "end": 28799, + "start": 28836, + "end": 28842, "loc": { "start": { "line": 695, @@ -176708,8 +176698,8 @@ "postfix": false, "binop": null }, - "start": 28799, - "end": 28800, + "start": 28842, + "end": 28843, "loc": { "start": { "line": 695, @@ -176734,8 +176724,8 @@ "binop": null }, "value": "pTile", - "start": 28800, - "end": 28805, + "start": 28843, + "end": 28848, "loc": { "start": { "line": 695, @@ -176760,8 +176750,8 @@ "binop": null, "updateContext": null }, - "start": 28805, - "end": 28806, + "start": 28848, + "end": 28849, "loc": { "start": { "line": 695, @@ -176786,8 +176776,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 28806, - "end": 28819, + "start": 28849, + "end": 28862, "loc": { "start": { "line": 695, @@ -176811,8 +176801,8 @@ "postfix": false, "binop": null }, - "start": 28819, - "end": 28820, + "start": 28862, + "end": 28863, "loc": { "start": { "line": 695, @@ -176838,8 +176828,8 @@ "updateContext": null }, "value": "===", - "start": 28821, - "end": 28824, + "start": 28864, + "end": 28867, "loc": { "start": { "line": 695, @@ -176865,8 +176855,8 @@ "updateContext": null }, "value": "number", - "start": 28825, - "end": 28833, + "start": 28868, + "end": 28876, "loc": { "start": { "line": 695, @@ -176891,8 +176881,8 @@ "binop": null, "updateContext": null }, - "start": 28834, - "end": 28835, + "start": 28877, + "end": 28878, "loc": { "start": { "line": 695, @@ -176917,8 +176907,8 @@ "binop": null }, "value": "pTile", - "start": 28836, - "end": 28841, + "start": 28879, + "end": 28884, "loc": { "start": { "line": 695, @@ -176943,8 +176933,8 @@ "binop": null, "updateContext": null }, - "start": 28841, - "end": 28842, + "start": 28884, + "end": 28885, "loc": { "start": { "line": 695, @@ -176969,8 +176959,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 28842, - "end": 28855, + "start": 28885, + "end": 28898, "loc": { "start": { "line": 695, @@ -176995,8 +176985,8 @@ "binop": null, "updateContext": null }, - "start": 28856, - "end": 28857, + "start": 28899, + "end": 28900, "loc": { "start": { "line": 695, @@ -177021,8 +177011,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 28858, - "end": 28874, + "start": 28901, + "end": 28917, "loc": { "start": { "line": 695, @@ -177047,8 +177037,8 @@ "binop": null, "updateContext": null }, - "start": 28874, - "end": 28875, + "start": 28917, + "end": 28918, "loc": { "start": { "line": 695, @@ -177073,8 +177063,8 @@ "binop": null }, "value": "PASSABLE_WEIGHT", - "start": 28875, - "end": 28890, + "start": 28918, + "end": 28933, "loc": { "start": { "line": 695, @@ -177099,8 +177089,8 @@ "binop": null, "updateContext": null }, - "start": 28890, - "end": 28891, + "start": 28933, + "end": 28934, "loc": { "start": { "line": 695, @@ -177115,8 +177105,8 @@ { "type": "CommentLine", "value": " If this tile is not accessible, we cannot pass it, so we skip this tile.", - "start": 28907, - "end": 28982, + "start": 28950, + "end": 29025, "loc": { "start": { "line": 697, @@ -177143,8 +177133,8 @@ "updateContext": null }, "value": "if", - "start": 28990, - "end": 28992, + "start": 29033, + "end": 29035, "loc": { "start": { "line": 698, @@ -177168,8 +177158,8 @@ "postfix": false, "binop": null }, - "start": 28993, - "end": 28994, + "start": 29036, + "end": 29037, "loc": { "start": { "line": 698, @@ -177195,8 +177185,8 @@ "updateContext": null }, "value": "!", - "start": 28994, - "end": 28995, + "start": 29037, + "end": 29038, "loc": { "start": { "line": 698, @@ -177223,8 +177213,8 @@ "updateContext": null }, "value": "this", - "start": 28995, - "end": 28999, + "start": 29038, + "end": 29042, "loc": { "start": { "line": 698, @@ -177249,8 +177239,8 @@ "binop": null, "updateContext": null }, - "start": 28999, - "end": 29000, + "start": 29042, + "end": 29043, "loc": { "start": { "line": 698, @@ -177275,8 +177265,8 @@ "binop": null }, "value": "isTileAccessible", - "start": 29000, - "end": 29016, + "start": 29043, + "end": 29059, "loc": { "start": { "line": 698, @@ -177300,8 +177290,8 @@ "postfix": false, "binop": null }, - "start": 29016, - "end": 29017, + "start": 29059, + "end": 29060, "loc": { "start": { "line": 698, @@ -177326,8 +177316,8 @@ "binop": null }, "value": "pTile", - "start": 29017, - "end": 29022, + "start": 29060, + "end": 29065, "loc": { "start": { "line": 698, @@ -177352,8 +177342,8 @@ "binop": null, "updateContext": null }, - "start": 29022, - "end": 29023, + "start": 29065, + "end": 29066, "loc": { "start": { "line": 698, @@ -177378,8 +177368,8 @@ "binop": null }, "value": "pExclusionList", - "start": 29024, - "end": 29038, + "start": 29067, + "end": 29081, "loc": { "start": { "line": 698, @@ -177403,8 +177393,8 @@ "postfix": false, "binop": null }, - "start": 29038, - "end": 29039, + "start": 29081, + "end": 29082, "loc": { "start": { "line": 698, @@ -177428,8 +177418,8 @@ "postfix": false, "binop": null }, - "start": 29039, - "end": 29040, + "start": 29082, + "end": 29083, "loc": { "start": { "line": 698, @@ -177453,8 +177443,8 @@ "postfix": false, "binop": null }, - "start": 29041, - "end": 29042, + "start": 29084, + "end": 29085, "loc": { "start": { "line": 698, @@ -177481,8 +177471,8 @@ "updateContext": null }, "value": "return", - "start": 29051, - "end": 29057, + "start": 29094, + "end": 29100, "loc": { "start": { "line": 699, @@ -177507,8 +177497,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 29058, - "end": 29074, + "start": 29101, + "end": 29117, "loc": { "start": { "line": 699, @@ -177533,8 +177523,8 @@ "binop": null, "updateContext": null }, - "start": 29074, - "end": 29075, + "start": 29117, + "end": 29118, "loc": { "start": { "line": 699, @@ -177559,8 +177549,8 @@ "binop": null }, "value": "IMPASSABLE_WEIGHT", - "start": 29075, - "end": 29092, + "start": 29118, + "end": 29135, "loc": { "start": { "line": 699, @@ -177585,8 +177575,8 @@ "binop": null, "updateContext": null }, - "start": 29092, - "end": 29093, + "start": 29135, + "end": 29136, "loc": { "start": { "line": 699, @@ -177610,8 +177600,8 @@ "postfix": false, "binop": null }, - "start": 29101, - "end": 29102, + "start": 29144, + "end": 29145, "loc": { "start": { "line": 700, @@ -177626,8 +177616,8 @@ { "type": "CommentLine", "value": " Accumulate weights of instances on the tile", - "start": 29112, - "end": 29158, + "start": 29155, + "end": 29201, "loc": { "start": { "line": 702, @@ -177654,8 +177644,8 @@ "updateContext": null }, "value": "for", - "start": 29166, - "end": 29169, + "start": 29209, + "end": 29212, "loc": { "start": { "line": 703, @@ -177679,8 +177669,8 @@ "postfix": false, "binop": null }, - "start": 29170, - "end": 29171, + "start": 29213, + "end": 29214, "loc": { "start": { "line": 703, @@ -177707,8 +177697,8 @@ "updateContext": null }, "value": "const", - "start": 29171, - "end": 29176, + "start": 29214, + "end": 29219, "loc": { "start": { "line": 703, @@ -177733,8 +177723,8 @@ "binop": null }, "value": "instance", - "start": 29177, - "end": 29185, + "start": 29220, + "end": 29228, "loc": { "start": { "line": 703, @@ -177759,8 +177749,8 @@ "binop": null }, "value": "of", - "start": 29186, - "end": 29188, + "start": 29229, + "end": 29231, "loc": { "start": { "line": 703, @@ -177785,8 +177775,8 @@ "binop": null }, "value": "pTile", - "start": 29189, - "end": 29194, + "start": 29232, + "end": 29237, "loc": { "start": { "line": 703, @@ -177811,8 +177801,8 @@ "binop": null, "updateContext": null }, - "start": 29194, - "end": 29195, + "start": 29237, + "end": 29238, "loc": { "start": { "line": 703, @@ -177837,8 +177827,8 @@ "binop": null }, "value": "getContents", - "start": 29195, - "end": 29206, + "start": 29238, + "end": 29249, "loc": { "start": { "line": 703, @@ -177862,8 +177852,8 @@ "postfix": false, "binop": null }, - "start": 29206, - "end": 29207, + "start": 29249, + "end": 29250, "loc": { "start": { "line": 703, @@ -177887,8 +177877,8 @@ "postfix": false, "binop": null }, - "start": 29207, - "end": 29208, + "start": 29250, + "end": 29251, "loc": { "start": { "line": 703, @@ -177912,8 +177902,8 @@ "postfix": false, "binop": null }, - "start": 29208, - "end": 29209, + "start": 29251, + "end": 29252, "loc": { "start": { "line": 703, @@ -177937,8 +177927,8 @@ "postfix": false, "binop": null }, - "start": 29210, - "end": 29211, + "start": 29253, + "end": 29254, "loc": { "start": { "line": 703, @@ -177953,8 +177943,8 @@ { "type": "CommentLine", "value": " If this instance is to be excluded. We don't calculate its weight.", - "start": 29220, - "end": 29289, + "start": 29263, + "end": 29332, "loc": { "start": { "line": 704, @@ -177981,8 +177971,8 @@ "updateContext": null }, "value": "if", - "start": 29298, - "end": 29300, + "start": 29341, + "end": 29343, "loc": { "start": { "line": 705, @@ -178006,8 +177996,8 @@ "postfix": false, "binop": null }, - "start": 29301, - "end": 29302, + "start": 29344, + "end": 29345, "loc": { "start": { "line": 705, @@ -178032,8 +178022,8 @@ "binop": null }, "value": "pExclusionList", - "start": 29302, - "end": 29316, + "start": 29345, + "end": 29359, "loc": { "start": { "line": 705, @@ -178058,8 +178048,8 @@ "binop": null, "updateContext": null }, - "start": 29316, - "end": 29317, + "start": 29359, + "end": 29360, "loc": { "start": { "line": 705, @@ -178084,8 +178074,8 @@ "binop": null }, "value": "includes", - "start": 29317, - "end": 29325, + "start": 29360, + "end": 29368, "loc": { "start": { "line": 705, @@ -178109,8 +178099,8 @@ "postfix": false, "binop": null }, - "start": 29325, - "end": 29326, + "start": 29368, + "end": 29369, "loc": { "start": { "line": 705, @@ -178135,8 +178125,8 @@ "binop": null }, "value": "instance", - "start": 29326, - "end": 29334, + "start": 29369, + "end": 29377, "loc": { "start": { "line": 705, @@ -178160,8 +178150,8 @@ "postfix": false, "binop": null }, - "start": 29334, - "end": 29335, + "start": 29377, + "end": 29378, "loc": { "start": { "line": 705, @@ -178185,8 +178175,8 @@ "postfix": false, "binop": null }, - "start": 29335, - "end": 29336, + "start": 29378, + "end": 29379, "loc": { "start": { "line": 705, @@ -178213,8 +178203,8 @@ "updateContext": null }, "value": "continue", - "start": 29337, - "end": 29345, + "start": 29380, + "end": 29388, "loc": { "start": { "line": 705, @@ -178239,8 +178229,8 @@ "binop": null, "updateContext": null }, - "start": 29345, - "end": 29346, + "start": 29388, + "end": 29389, "loc": { "start": { "line": 705, @@ -178255,8 +178245,8 @@ { "type": "CommentLine", "value": " If this instance is impassable we skip this tile.", - "start": 29357, - "end": 29409, + "start": 29400, + "end": 29452, "loc": { "start": { "line": 707, @@ -178283,8 +178273,8 @@ "updateContext": null }, "value": "if", - "start": 29418, - "end": 29420, + "start": 29461, + "end": 29463, "loc": { "start": { "line": 708, @@ -178308,8 +178298,8 @@ "postfix": false, "binop": null }, - "start": 29421, - "end": 29422, + "start": 29464, + "end": 29465, "loc": { "start": { "line": 708, @@ -178334,8 +178324,8 @@ "binop": null }, "value": "isImpassable", - "start": 29422, - "end": 29434, + "start": 29465, + "end": 29477, "loc": { "start": { "line": 708, @@ -178359,8 +178349,8 @@ "postfix": false, "binop": null }, - "start": 29434, - "end": 29435, + "start": 29477, + "end": 29478, "loc": { "start": { "line": 708, @@ -178385,8 +178375,8 @@ "binop": null }, "value": "instance", - "start": 29435, - "end": 29443, + "start": 29478, + "end": 29486, "loc": { "start": { "line": 708, @@ -178410,8 +178400,8 @@ "postfix": false, "binop": null }, - "start": 29443, - "end": 29444, + "start": 29486, + "end": 29487, "loc": { "start": { "line": 708, @@ -178435,8 +178425,8 @@ "postfix": false, "binop": null }, - "start": 29444, - "end": 29445, + "start": 29487, + "end": 29488, "loc": { "start": { "line": 708, @@ -178460,8 +178450,8 @@ "postfix": false, "binop": null }, - "start": 29446, - "end": 29447, + "start": 29489, + "end": 29490, "loc": { "start": { "line": 708, @@ -178488,8 +178478,8 @@ "updateContext": null }, "value": "return", - "start": 29457, - "end": 29463, + "start": 29500, + "end": 29506, "loc": { "start": { "line": 709, @@ -178514,8 +178504,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 29464, - "end": 29480, + "start": 29507, + "end": 29523, "loc": { "start": { "line": 709, @@ -178540,8 +178530,8 @@ "binop": null, "updateContext": null }, - "start": 29480, - "end": 29481, + "start": 29523, + "end": 29524, "loc": { "start": { "line": 709, @@ -178566,8 +178556,8 @@ "binop": null }, "value": "IMPASSABLE_WEIGHT", - "start": 29481, - "end": 29498, + "start": 29524, + "end": 29541, "loc": { "start": { "line": 709, @@ -178592,8 +178582,8 @@ "binop": null, "updateContext": null }, - "start": 29498, - "end": 29499, + "start": 29541, + "end": 29542, "loc": { "start": { "line": 709, @@ -178617,8 +178607,8 @@ "postfix": false, "binop": null }, - "start": 29508, - "end": 29509, + "start": 29551, + "end": 29552, "loc": { "start": { "line": 710, @@ -178645,8 +178635,8 @@ "updateContext": null }, "value": "else", - "start": 29510, - "end": 29514, + "start": 29553, + "end": 29557, "loc": { "start": { "line": 710, @@ -178670,8 +178660,8 @@ "postfix": false, "binop": null }, - "start": 29515, - "end": 29516, + "start": 29558, + "end": 29559, "loc": { "start": { "line": 710, @@ -178686,8 +178676,8 @@ { "type": "CommentLine", "value": " We accumulate the weight of instances", - "start": 29526, - "end": 29566, + "start": 29569, + "end": 29609, "loc": { "start": { "line": 711, @@ -178714,8 +178704,8 @@ "updateContext": null }, "value": "if", - "start": 29576, - "end": 29578, + "start": 29619, + "end": 29621, "loc": { "start": { "line": 712, @@ -178739,8 +178729,8 @@ "postfix": false, "binop": null }, - "start": 29579, - "end": 29580, + "start": 29622, + "end": 29623, "loc": { "start": { "line": 712, @@ -178767,8 +178757,8 @@ "updateContext": null }, "value": "typeof", - "start": 29580, - "end": 29586, + "start": 29623, + "end": 29629, "loc": { "start": { "line": 712, @@ -178792,8 +178782,8 @@ "postfix": false, "binop": null }, - "start": 29586, - "end": 29587, + "start": 29629, + "end": 29630, "loc": { "start": { "line": 712, @@ -178818,8 +178808,8 @@ "binop": null }, "value": "instance", - "start": 29587, - "end": 29595, + "start": 29630, + "end": 29638, "loc": { "start": { "line": 712, @@ -178844,8 +178834,8 @@ "binop": null, "updateContext": null }, - "start": 29595, - "end": 29596, + "start": 29638, + "end": 29639, "loc": { "start": { "line": 712, @@ -178870,8 +178860,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 29596, - "end": 29609, + "start": 29639, + "end": 29652, "loc": { "start": { "line": 712, @@ -178895,8 +178885,8 @@ "postfix": false, "binop": null }, - "start": 29609, - "end": 29610, + "start": 29652, + "end": 29653, "loc": { "start": { "line": 712, @@ -178922,8 +178912,8 @@ "updateContext": null }, "value": "===", - "start": 29611, - "end": 29614, + "start": 29654, + "end": 29657, "loc": { "start": { "line": 712, @@ -178949,8 +178939,8 @@ "updateContext": null }, "value": "number", - "start": 29615, - "end": 29623, + "start": 29658, + "end": 29666, "loc": { "start": { "line": 712, @@ -178974,8 +178964,8 @@ "postfix": false, "binop": null }, - "start": 29623, - "end": 29624, + "start": 29666, + "end": 29667, "loc": { "start": { "line": 712, @@ -178999,8 +178989,8 @@ "postfix": false, "binop": null }, - "start": 29625, - "end": 29626, + "start": 29668, + "end": 29669, "loc": { "start": { "line": 712, @@ -179025,8 +179015,8 @@ "binop": null }, "value": "weight", - "start": 29637, - "end": 29643, + "start": 29680, + "end": 29686, "loc": { "start": { "line": 713, @@ -179052,8 +179042,8 @@ "updateContext": null }, "value": "+=", - "start": 29644, - "end": 29646, + "start": 29687, + "end": 29689, "loc": { "start": { "line": 713, @@ -179078,8 +179068,8 @@ "binop": null }, "value": "instance", - "start": 29647, - "end": 29655, + "start": 29690, + "end": 29698, "loc": { "start": { "line": 713, @@ -179104,8 +179094,8 @@ "binop": null, "updateContext": null }, - "start": 29655, - "end": 29656, + "start": 29698, + "end": 29699, "loc": { "start": { "line": 713, @@ -179130,8 +179120,8 @@ "binop": null }, "value": "pathwayWeight", - "start": 29656, - "end": 29669, + "start": 29699, + "end": 29712, "loc": { "start": { "line": 713, @@ -179156,8 +179146,8 @@ "binop": null, "updateContext": null }, - "start": 29669, - "end": 29670, + "start": 29712, + "end": 29713, "loc": { "start": { "line": 713, @@ -179181,8 +179171,8 @@ "postfix": false, "binop": null }, - "start": 29680, - "end": 29681, + "start": 29723, + "end": 29724, "loc": { "start": { "line": 714, @@ -179206,8 +179196,8 @@ "postfix": false, "binop": null }, - "start": 29690, - "end": 29691, + "start": 29733, + "end": 29734, "loc": { "start": { "line": 715, @@ -179231,8 +179221,8 @@ "postfix": false, "binop": null }, - "start": 29699, - "end": 29700, + "start": 29742, + "end": 29743, "loc": { "start": { "line": 716, @@ -179247,8 +179237,8 @@ { "type": "CommentLine", "value": " Add weight to acceptedTiles if not already present", - "start": 29710, - "end": 29763, + "start": 29753, + "end": 29806, "loc": { "start": { "line": 718, @@ -179275,8 +179265,8 @@ "updateContext": null }, "value": "if", - "start": 29771, - "end": 29773, + "start": 29814, + "end": 29816, "loc": { "start": { "line": 719, @@ -179300,8 +179290,8 @@ "postfix": false, "binop": null }, - "start": 29774, - "end": 29775, + "start": 29817, + "end": 29818, "loc": { "start": { "line": 719, @@ -179326,8 +179316,8 @@ "binop": null }, "value": "weight", - "start": 29775, - "end": 29781, + "start": 29818, + "end": 29824, "loc": { "start": { "line": 719, @@ -179353,8 +179343,8 @@ "updateContext": null }, "value": "!==", - "start": 29782, - "end": 29785, + "start": 29825, + "end": 29828, "loc": { "start": { "line": 719, @@ -179379,8 +179369,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 29786, - "end": 29802, + "start": 29829, + "end": 29845, "loc": { "start": { "line": 719, @@ -179405,8 +179395,8 @@ "binop": null, "updateContext": null }, - "start": 29802, - "end": 29803, + "start": 29845, + "end": 29846, "loc": { "start": { "line": 719, @@ -179431,8 +179421,8 @@ "binop": null }, "value": "IMPASSABLE_WEIGHT", - "start": 29803, - "end": 29820, + "start": 29846, + "end": 29863, "loc": { "start": { "line": 719, @@ -179458,8 +179448,8 @@ "updateContext": null }, "value": "&&", - "start": 29821, - "end": 29823, + "start": 29864, + "end": 29866, "loc": { "start": { "line": 719, @@ -179484,8 +179474,8 @@ "binop": null }, "value": "weight", - "start": 29824, - "end": 29830, + "start": 29867, + "end": 29873, "loc": { "start": { "line": 719, @@ -179511,8 +179501,8 @@ "updateContext": null }, "value": "!==", - "start": 29831, - "end": 29834, + "start": 29874, + "end": 29877, "loc": { "start": { "line": 719, @@ -179537,8 +179527,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 29835, - "end": 29851, + "start": 29878, + "end": 29894, "loc": { "start": { "line": 719, @@ -179563,8 +179553,8 @@ "binop": null, "updateContext": null }, - "start": 29851, - "end": 29852, + "start": 29894, + "end": 29895, "loc": { "start": { "line": 719, @@ -179589,8 +179579,8 @@ "binop": null }, "value": "PASSABLE_WEIGHT", - "start": 29852, - "end": 29867, + "start": 29895, + "end": 29910, "loc": { "start": { "line": 719, @@ -179614,8 +179604,8 @@ "postfix": false, "binop": null }, - "start": 29867, - "end": 29868, + "start": 29910, + "end": 29911, "loc": { "start": { "line": 719, @@ -179639,8 +179629,8 @@ "postfix": false, "binop": null }, - "start": 29869, - "end": 29870, + "start": 29912, + "end": 29913, "loc": { "start": { "line": 719, @@ -179667,8 +179657,8 @@ "updateContext": null }, "value": "if", - "start": 29879, - "end": 29881, + "start": 29922, + "end": 29924, "loc": { "start": { "line": 720, @@ -179692,8 +179682,8 @@ "postfix": false, "binop": null }, - "start": 29882, - "end": 29883, + "start": 29925, + "end": 29926, "loc": { "start": { "line": 720, @@ -179719,8 +179709,8 @@ "updateContext": null }, "value": "!", - "start": 29883, - "end": 29884, + "start": 29926, + "end": 29927, "loc": { "start": { "line": 720, @@ -179745,8 +179735,8 @@ "binop": null }, "value": "acceptedTiles", - "start": 29884, - "end": 29897, + "start": 29927, + "end": 29940, "loc": { "start": { "line": 720, @@ -179771,8 +179761,8 @@ "binop": null, "updateContext": null }, - "start": 29897, - "end": 29898, + "start": 29940, + "end": 29941, "loc": { "start": { "line": 720, @@ -179797,8 +179787,8 @@ "binop": null }, "value": "includes", - "start": 29898, - "end": 29906, + "start": 29941, + "end": 29949, "loc": { "start": { "line": 720, @@ -179822,8 +179812,8 @@ "postfix": false, "binop": null }, - "start": 29906, - "end": 29907, + "start": 29949, + "end": 29950, "loc": { "start": { "line": 720, @@ -179848,8 +179838,8 @@ "binop": null }, "value": "weight", - "start": 29907, - "end": 29913, + "start": 29950, + "end": 29956, "loc": { "start": { "line": 720, @@ -179873,8 +179863,8 @@ "postfix": false, "binop": null }, - "start": 29913, - "end": 29914, + "start": 29956, + "end": 29957, "loc": { "start": { "line": 720, @@ -179898,8 +179888,8 @@ "postfix": false, "binop": null }, - "start": 29914, - "end": 29915, + "start": 29957, + "end": 29958, "loc": { "start": { "line": 720, @@ -179924,8 +179914,8 @@ "binop": null }, "value": "acceptedTiles", - "start": 29916, - "end": 29929, + "start": 29959, + "end": 29972, "loc": { "start": { "line": 720, @@ -179950,8 +179940,8 @@ "binop": null, "updateContext": null }, - "start": 29929, - "end": 29930, + "start": 29972, + "end": 29973, "loc": { "start": { "line": 720, @@ -179976,8 +179966,8 @@ "binop": null }, "value": "push", - "start": 29930, - "end": 29934, + "start": 29973, + "end": 29977, "loc": { "start": { "line": 720, @@ -180001,8 +179991,8 @@ "postfix": false, "binop": null }, - "start": 29934, - "end": 29935, + "start": 29977, + "end": 29978, "loc": { "start": { "line": 720, @@ -180027,8 +180017,8 @@ "binop": null }, "value": "weight", - "start": 29935, - "end": 29941, + "start": 29978, + "end": 29984, "loc": { "start": { "line": 720, @@ -180052,8 +180042,8 @@ "postfix": false, "binop": null }, - "start": 29941, - "end": 29942, + "start": 29984, + "end": 29985, "loc": { "start": { "line": 720, @@ -180078,8 +180068,8 @@ "binop": null, "updateContext": null }, - "start": 29942, - "end": 29943, + "start": 29985, + "end": 29986, "loc": { "start": { "line": 720, @@ -180106,8 +180096,8 @@ "updateContext": null }, "value": "if", - "start": 29952, - "end": 29954, + "start": 29995, + "end": 29997, "loc": { "start": { "line": 721, @@ -180131,8 +180121,8 @@ "postfix": false, "binop": null }, - "start": 29955, - "end": 29956, + "start": 29998, + "end": 29999, "loc": { "start": { "line": 721, @@ -180158,8 +180148,8 @@ "updateContext": null }, "value": "!", - "start": 29956, - "end": 29957, + "start": 29999, + "end": 30000, "loc": { "start": { "line": 721, @@ -180184,8 +180174,8 @@ "binop": null }, "value": "weights", - "start": 29957, - "end": 29964, + "start": 30000, + "end": 30007, "loc": { "start": { "line": 721, @@ -180210,8 +180200,8 @@ "binop": null, "updateContext": null }, - "start": 29964, - "end": 29965, + "start": 30007, + "end": 30008, "loc": { "start": { "line": 721, @@ -180236,8 +180226,8 @@ "binop": null }, "value": "includes", - "start": 29965, - "end": 29973, + "start": 30008, + "end": 30016, "loc": { "start": { "line": 721, @@ -180261,8 +180251,8 @@ "postfix": false, "binop": null }, - "start": 29973, - "end": 29974, + "start": 30016, + "end": 30017, "loc": { "start": { "line": 721, @@ -180287,8 +180277,8 @@ "binop": null }, "value": "weight", - "start": 29974, - "end": 29980, + "start": 30017, + "end": 30023, "loc": { "start": { "line": 721, @@ -180312,8 +180302,8 @@ "postfix": false, "binop": null }, - "start": 29980, - "end": 29981, + "start": 30023, + "end": 30024, "loc": { "start": { "line": 721, @@ -180337,8 +180327,8 @@ "postfix": false, "binop": null }, - "start": 29981, - "end": 29982, + "start": 30024, + "end": 30025, "loc": { "start": { "line": 721, @@ -180363,8 +180353,8 @@ "binop": null }, "value": "weights", - "start": 29983, - "end": 29990, + "start": 30026, + "end": 30033, "loc": { "start": { "line": 721, @@ -180389,8 +180379,8 @@ "binop": null, "updateContext": null }, - "start": 29990, - "end": 29991, + "start": 30033, + "end": 30034, "loc": { "start": { "line": 721, @@ -180415,8 +180405,8 @@ "binop": null }, "value": "push", - "start": 29991, - "end": 29995, + "start": 30034, + "end": 30038, "loc": { "start": { "line": 721, @@ -180440,8 +180430,8 @@ "postfix": false, "binop": null }, - "start": 29995, - "end": 29996, + "start": 30038, + "end": 30039, "loc": { "start": { "line": 721, @@ -180466,8 +180456,8 @@ "binop": null }, "value": "weight", - "start": 29996, - "end": 30002, + "start": 30039, + "end": 30045, "loc": { "start": { "line": 721, @@ -180491,8 +180481,8 @@ "postfix": false, "binop": null }, - "start": 30002, - "end": 30003, + "start": 30045, + "end": 30046, "loc": { "start": { "line": 721, @@ -180517,8 +180507,8 @@ "binop": null, "updateContext": null }, - "start": 30003, - "end": 30004, + "start": 30046, + "end": 30047, "loc": { "start": { "line": 721, @@ -180542,8 +180532,8 @@ "postfix": false, "binop": null }, - "start": 30012, - "end": 30013, + "start": 30055, + "end": 30056, "loc": { "start": { "line": 722, @@ -180570,8 +180560,8 @@ "updateContext": null }, "value": "return", - "start": 30023, - "end": 30029, + "start": 30066, + "end": 30072, "loc": { "start": { "line": 724, @@ -180596,8 +180586,8 @@ "binop": null }, "value": "weight", - "start": 30030, - "end": 30036, + "start": 30073, + "end": 30079, "loc": { "start": { "line": 724, @@ -180622,8 +180612,8 @@ "binop": null, "updateContext": null }, - "start": 30036, - "end": 30037, + "start": 30079, + "end": 30080, "loc": { "start": { "line": 724, @@ -180647,8 +180637,8 @@ "postfix": false, "binop": null }, - "start": 30044, - "end": 30045, + "start": 30087, + "end": 30088, "loc": { "start": { "line": 725, @@ -180672,8 +180662,8 @@ "postfix": false, "binop": null }, - "start": 30045, - "end": 30046, + "start": 30088, + "end": 30089, "loc": { "start": { "line": 725, @@ -180698,8 +180688,8 @@ "binop": null, "updateContext": null }, - "start": 30046, - "end": 30047, + "start": 30089, + "end": 30090, "loc": { "start": { "line": 725, @@ -180726,8 +180716,8 @@ "updateContext": null }, "value": "return", - "start": 30056, - "end": 30062, + "start": 30099, + "end": 30105, "loc": { "start": { "line": 727, @@ -180751,8 +180741,8 @@ "postfix": false, "binop": null }, - "start": 30063, - "end": 30064, + "start": 30106, + "end": 30107, "loc": { "start": { "line": 727, @@ -180778,8 +180768,8 @@ "updateContext": null }, "value": "acceptedTiles", - "start": 30073, - "end": 30088, + "start": 30116, + "end": 30131, "loc": { "start": { "line": 728, @@ -180804,8 +180794,8 @@ "binop": null, "updateContext": null }, - "start": 30088, - "end": 30089, + "start": 30131, + "end": 30132, "loc": { "start": { "line": 728, @@ -180830,8 +180820,8 @@ "binop": null }, "value": "acceptedTiles", - "start": 30090, - "end": 30103, + "start": 30133, + "end": 30146, "loc": { "start": { "line": 728, @@ -180856,8 +180846,8 @@ "binop": null, "updateContext": null }, - "start": 30103, - "end": 30104, + "start": 30146, + "end": 30147, "loc": { "start": { "line": 728, @@ -180883,8 +180873,8 @@ "updateContext": null }, "value": "grid", - "start": 30113, - "end": 30119, + "start": 30156, + "end": 30162, "loc": { "start": { "line": 729, @@ -180909,8 +180899,8 @@ "binop": null, "updateContext": null }, - "start": 30119, - "end": 30120, + "start": 30162, + "end": 30163, "loc": { "start": { "line": 729, @@ -180937,8 +180927,8 @@ "updateContext": null }, "value": "this", - "start": 30121, - "end": 30125, + "start": 30164, + "end": 30168, "loc": { "start": { "line": 729, @@ -180963,8 +180953,8 @@ "binop": null, "updateContext": null }, - "start": 30125, - "end": 30126, + "start": 30168, + "end": 30169, "loc": { "start": { "line": 729, @@ -180989,8 +180979,8 @@ "binop": null }, "value": "toTwoDimensionalArray", - "start": 30126, - "end": 30147, + "start": 30169, + "end": 30190, "loc": { "start": { "line": 729, @@ -181014,8 +181004,8 @@ "postfix": false, "binop": null }, - "start": 30147, - "end": 30148, + "start": 30190, + "end": 30191, "loc": { "start": { "line": 729, @@ -181040,8 +181030,8 @@ "binop": null }, "value": "grid", - "start": 30148, - "end": 30152, + "start": 30191, + "end": 30195, "loc": { "start": { "line": 729, @@ -181066,8 +181056,8 @@ "binop": null, "updateContext": null }, - "start": 30152, - "end": 30153, + "start": 30195, + "end": 30196, "loc": { "start": { "line": 729, @@ -181092,8 +181082,8 @@ "binop": null }, "value": "mapSize", - "start": 30154, - "end": 30161, + "start": 30197, + "end": 30204, "loc": { "start": { "line": 729, @@ -181118,8 +181108,8 @@ "binop": null, "updateContext": null }, - "start": 30161, - "end": 30162, + "start": 30204, + "end": 30205, "loc": { "start": { "line": 729, @@ -181144,8 +181134,8 @@ "binop": null }, "value": "x", - "start": 30162, - "end": 30163, + "start": 30205, + "end": 30206, "loc": { "start": { "line": 729, @@ -181169,8 +181159,8 @@ "postfix": false, "binop": null }, - "start": 30163, - "end": 30164, + "start": 30206, + "end": 30207, "loc": { "start": { "line": 729, @@ -181195,8 +181185,8 @@ "binop": null, "updateContext": null }, - "start": 30164, - "end": 30165, + "start": 30207, + "end": 30208, "loc": { "start": { "line": 729, @@ -181222,8 +181212,8 @@ "updateContext": null }, "value": "weights", - "start": 30174, - "end": 30183, + "start": 30217, + "end": 30226, "loc": { "start": { "line": 730, @@ -181248,8 +181238,8 @@ "binop": null, "updateContext": null }, - "start": 30183, - "end": 30184, + "start": 30226, + "end": 30227, "loc": { "start": { "line": 730, @@ -181274,8 +181264,8 @@ "binop": null }, "value": "weights", - "start": 30185, - "end": 30192, + "start": 30228, + "end": 30235, "loc": { "start": { "line": 730, @@ -181299,8 +181289,8 @@ "postfix": false, "binop": null }, - "start": 30200, - "end": 30201, + "start": 30243, + "end": 30244, "loc": { "start": { "line": 731, @@ -181325,8 +181315,8 @@ "binop": null, "updateContext": null }, - "start": 30201, - "end": 30202, + "start": 30244, + "end": 30245, "loc": { "start": { "line": 731, @@ -181350,8 +181340,8 @@ "postfix": false, "binop": null }, - "start": 30208, - "end": 30209, + "start": 30251, + "end": 30252, "loc": { "start": { "line": 732, @@ -181378,8 +181368,8 @@ "updateContext": null }, "value": "else", - "start": 30210, - "end": 30214, + "start": 30253, + "end": 30257, "loc": { "start": { "line": 732, @@ -181403,8 +181393,8 @@ "postfix": false, "binop": null }, - "start": 30215, - "end": 30216, + "start": 30258, + "end": 30259, "loc": { "start": { "line": 732, @@ -181431,8 +181421,8 @@ "updateContext": null }, "value": "this", - "start": 30223, - "end": 30227, + "start": 30266, + "end": 30270, "loc": { "start": { "line": 733, @@ -181457,8 +181447,8 @@ "binop": null, "updateContext": null }, - "start": 30227, - "end": 30228, + "start": 30270, + "end": 30271, "loc": { "start": { "line": 733, @@ -181483,8 +181473,8 @@ "binop": null }, "value": "logger", - "start": 30228, - "end": 30234, + "start": 30271, + "end": 30277, "loc": { "start": { "line": 733, @@ -181509,8 +181499,8 @@ "binop": null, "updateContext": null }, - "start": 30234, - "end": 30235, + "start": 30277, + "end": 30278, "loc": { "start": { "line": 733, @@ -181535,8 +181525,8 @@ "binop": null }, "value": "prefix", - "start": 30235, - "end": 30241, + "start": 30278, + "end": 30284, "loc": { "start": { "line": 733, @@ -181560,8 +181550,8 @@ "postfix": false, "binop": null }, - "start": 30241, - "end": 30242, + "start": 30284, + "end": 30285, "loc": { "start": { "line": 733, @@ -181587,8 +181577,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 30242, - "end": 30258, + "start": 30285, + "end": 30301, "loc": { "start": { "line": 733, @@ -181612,8 +181602,8 @@ "postfix": false, "binop": null }, - "start": 30258, - "end": 30259, + "start": 30301, + "end": 30302, "loc": { "start": { "line": 733, @@ -181638,8 +181628,8 @@ "binop": null, "updateContext": null }, - "start": 30259, - "end": 30260, + "start": 30302, + "end": 30303, "loc": { "start": { "line": 733, @@ -181664,8 +181654,8 @@ "binop": null }, "value": "error", - "start": 30260, - "end": 30265, + "start": 30303, + "end": 30308, "loc": { "start": { "line": 733, @@ -181689,8 +181679,8 @@ "postfix": false, "binop": null }, - "start": 30265, - "end": 30266, + "start": 30308, + "end": 30309, "loc": { "start": { "line": 733, @@ -181716,8 +181706,8 @@ "updateContext": null }, "value": "pMapName was not found in VYLO.", - "start": 30266, - "end": 30299, + "start": 30309, + "end": 30342, "loc": { "start": { "line": 733, @@ -181741,8 +181731,8 @@ "postfix": false, "binop": null }, - "start": 30299, - "end": 30300, + "start": 30342, + "end": 30343, "loc": { "start": { "line": 733, @@ -181767,8 +181757,8 @@ "binop": null, "updateContext": null }, - "start": 30300, - "end": 30301, + "start": 30343, + "end": 30344, "loc": { "start": { "line": 733, @@ -181795,8 +181785,8 @@ "updateContext": null }, "value": "return", - "start": 30308, - "end": 30314, + "start": 30351, + "end": 30357, "loc": { "start": { "line": 734, @@ -181821,8 +181811,8 @@ "binop": null, "updateContext": null }, - "start": 30314, - "end": 30315, + "start": 30357, + "end": 30358, "loc": { "start": { "line": 734, @@ -181846,8 +181836,8 @@ "postfix": false, "binop": null }, - "start": 30321, - "end": 30322, + "start": 30364, + "end": 30365, "loc": { "start": { "line": 735, @@ -181871,8 +181861,8 @@ "postfix": false, "binop": null }, - "start": 30327, - "end": 30328, + "start": 30370, + "end": 30371, "loc": { "start": { "line": 736, @@ -181899,8 +181889,8 @@ "updateContext": null }, "value": "else", - "start": 30329, - "end": 30333, + "start": 30372, + "end": 30376, "loc": { "start": { "line": 736, @@ -181924,8 +181914,8 @@ "postfix": false, "binop": null }, - "start": 30334, - "end": 30335, + "start": 30377, + "end": 30378, "loc": { "start": { "line": 736, @@ -181952,8 +181942,8 @@ "updateContext": null }, "value": "this", - "start": 30341, - "end": 30345, + "start": 30384, + "end": 30388, "loc": { "start": { "line": 737, @@ -181978,8 +181968,8 @@ "binop": null, "updateContext": null }, - "start": 30345, - "end": 30346, + "start": 30388, + "end": 30389, "loc": { "start": { "line": 737, @@ -182004,8 +181994,8 @@ "binop": null }, "value": "logger", - "start": 30346, - "end": 30352, + "start": 30389, + "end": 30395, "loc": { "start": { "line": 737, @@ -182030,8 +182020,8 @@ "binop": null, "updateContext": null }, - "start": 30352, - "end": 30353, + "start": 30395, + "end": 30396, "loc": { "start": { "line": 737, @@ -182056,8 +182046,8 @@ "binop": null }, "value": "prefix", - "start": 30353, - "end": 30359, + "start": 30396, + "end": 30402, "loc": { "start": { "line": 737, @@ -182081,8 +182071,8 @@ "postfix": false, "binop": null }, - "start": 30359, - "end": 30360, + "start": 30402, + "end": 30403, "loc": { "start": { "line": 737, @@ -182108,8 +182098,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 30360, - "end": 30376, + "start": 30403, + "end": 30419, "loc": { "start": { "line": 737, @@ -182133,8 +182123,8 @@ "postfix": false, "binop": null }, - "start": 30376, - "end": 30377, + "start": 30419, + "end": 30420, "loc": { "start": { "line": 737, @@ -182159,8 +182149,8 @@ "binop": null, "updateContext": null }, - "start": 30377, - "end": 30378, + "start": 30420, + "end": 30421, "loc": { "start": { "line": 737, @@ -182185,8 +182175,8 @@ "binop": null }, "value": "error", - "start": 30378, - "end": 30383, + "start": 30421, + "end": 30426, "loc": { "start": { "line": 737, @@ -182210,8 +182200,8 @@ "postfix": false, "binop": null }, - "start": 30383, - "end": 30384, + "start": 30426, + "end": 30427, "loc": { "start": { "line": 737, @@ -182237,8 +182227,8 @@ "updateContext": null }, "value": "Invalid type for pExclusionList.", - "start": 30384, - "end": 30418, + "start": 30427, + "end": 30461, "loc": { "start": { "line": 737, @@ -182262,8 +182252,8 @@ "postfix": false, "binop": null }, - "start": 30418, - "end": 30419, + "start": 30461, + "end": 30462, "loc": { "start": { "line": 737, @@ -182288,8 +182278,8 @@ "binop": null, "updateContext": null }, - "start": 30419, - "end": 30420, + "start": 30462, + "end": 30463, "loc": { "start": { "line": 737, @@ -182313,8 +182303,8 @@ "postfix": false, "binop": null }, - "start": 30425, - "end": 30426, + "start": 30468, + "end": 30469, "loc": { "start": { "line": 738, @@ -182338,8 +182328,8 @@ "postfix": false, "binop": null }, - "start": 30430, - "end": 30431, + "start": 30473, + "end": 30474, "loc": { "start": { "line": 739, @@ -182366,8 +182356,8 @@ "updateContext": null }, "value": "else", - "start": 30432, - "end": 30436, + "start": 30475, + "end": 30479, "loc": { "start": { "line": 739, @@ -182391,8 +182381,8 @@ "postfix": false, "binop": null }, - "start": 30437, - "end": 30438, + "start": 30480, + "end": 30481, "loc": { "start": { "line": 739, @@ -182419,8 +182409,8 @@ "updateContext": null }, "value": "this", - "start": 30443, - "end": 30447, + "start": 30486, + "end": 30490, "loc": { "start": { "line": 740, @@ -182445,8 +182435,8 @@ "binop": null, "updateContext": null }, - "start": 30447, - "end": 30448, + "start": 30490, + "end": 30491, "loc": { "start": { "line": 740, @@ -182471,8 +182461,8 @@ "binop": null }, "value": "logger", - "start": 30448, - "end": 30454, + "start": 30491, + "end": 30497, "loc": { "start": { "line": 740, @@ -182497,8 +182487,8 @@ "binop": null, "updateContext": null }, - "start": 30454, - "end": 30455, + "start": 30497, + "end": 30498, "loc": { "start": { "line": 740, @@ -182523,8 +182513,8 @@ "binop": null }, "value": "prefix", - "start": 30455, - "end": 30461, + "start": 30498, + "end": 30504, "loc": { "start": { "line": 740, @@ -182548,8 +182538,8 @@ "postfix": false, "binop": null }, - "start": 30461, - "end": 30462, + "start": 30504, + "end": 30505, "loc": { "start": { "line": 740, @@ -182575,8 +182565,8 @@ "updateContext": null }, "value": "Pathway-Module", - "start": 30462, - "end": 30478, + "start": 30505, + "end": 30521, "loc": { "start": { "line": 740, @@ -182600,8 +182590,8 @@ "postfix": false, "binop": null }, - "start": 30478, - "end": 30479, + "start": 30521, + "end": 30522, "loc": { "start": { "line": 740, @@ -182626,8 +182616,8 @@ "binop": null, "updateContext": null }, - "start": 30479, - "end": 30480, + "start": 30522, + "end": 30523, "loc": { "start": { "line": 740, @@ -182652,8 +182642,8 @@ "binop": null }, "value": "error", - "start": 30480, - "end": 30485, + "start": 30523, + "end": 30528, "loc": { "start": { "line": 740, @@ -182677,8 +182667,8 @@ "postfix": false, "binop": null }, - "start": 30485, - "end": 30486, + "start": 30528, + "end": 30529, "loc": { "start": { "line": 740, @@ -182704,8 +182694,8 @@ "updateContext": null }, "value": "Invalid type for pMapName.", - "start": 30486, - "end": 30514, + "start": 30529, + "end": 30557, "loc": { "start": { "line": 740, @@ -182729,8 +182719,8 @@ "postfix": false, "binop": null }, - "start": 30514, - "end": 30515, + "start": 30557, + "end": 30558, "loc": { "start": { "line": 740, @@ -182755,8 +182745,8 @@ "binop": null, "updateContext": null }, - "start": 30515, - "end": 30516, + "start": 30558, + "end": 30559, "loc": { "start": { "line": 740, @@ -182780,8 +182770,8 @@ "postfix": false, "binop": null }, - "start": 30520, - "end": 30521, + "start": 30563, + "end": 30564, "loc": { "start": { "line": 741, @@ -182805,8 +182795,8 @@ "postfix": false, "binop": null }, - "start": 30524, - "end": 30525, + "start": 30567, + "end": 30568, "loc": { "start": { "line": 742, @@ -182830,8 +182820,8 @@ "postfix": false, "binop": null }, - "start": 30527, - "end": 30528, + "start": 30570, + "end": 30571, "loc": { "start": { "line": 743, @@ -182846,8 +182836,8 @@ { "type": "CommentBlock", "value": "*\r\n * The module instantiated for use.\r\n * @type {PathwaySingleton}\r\n ", - "start": 30530, - "end": 30604, + "start": 30573, + "end": 30647, "loc": { "start": { "line": 744, @@ -182874,8 +182864,8 @@ "updateContext": null }, "value": "const", - "start": 30606, - "end": 30611, + "start": 30649, + "end": 30654, "loc": { "start": { "line": 748, @@ -182900,8 +182890,8 @@ "binop": null }, "value": "Pathway", - "start": 30612, - "end": 30619, + "start": 30655, + "end": 30662, "loc": { "start": { "line": 748, @@ -182927,8 +182917,8 @@ "updateContext": null }, "value": "=", - "start": 30620, - "end": 30621, + "start": 30663, + "end": 30664, "loc": { "start": { "line": 748, @@ -182955,8 +182945,8 @@ "updateContext": null }, "value": "new", - "start": 30622, - "end": 30625, + "start": 30665, + "end": 30668, "loc": { "start": { "line": 748, @@ -182981,8 +182971,8 @@ "binop": null }, "value": "PathwaySingleton", - "start": 30626, - "end": 30642, + "start": 30669, + "end": 30685, "loc": { "start": { "line": 748, @@ -183006,8 +182996,8 @@ "postfix": false, "binop": null }, - "start": 30642, - "end": 30643, + "start": 30685, + "end": 30686, "loc": { "start": { "line": 748, @@ -183031,8 +183021,8 @@ "postfix": false, "binop": null }, - "start": 30643, - "end": 30644, + "start": 30686, + "end": 30687, "loc": { "start": { "line": 748, @@ -183057,8 +183047,8 @@ "binop": null, "updateContext": null }, - "start": 30644, - "end": 30645, + "start": 30687, + "end": 30688, "loc": { "start": { "line": 748, @@ -183073,8 +183063,8 @@ { "type": "CommentBlock", "value": "*\r\n * Check if this is a server environment\r\n * @ignore\r\n ", - "start": 30647, - "end": 30709, + "start": 30690, + "end": 30752, "loc": { "start": { "line": 749, @@ -183101,8 +183091,8 @@ "updateContext": null }, "value": "const", - "start": 30711, - "end": 30716, + "start": 30754, + "end": 30759, "loc": { "start": { "line": 753, @@ -183127,8 +183117,8 @@ "binop": null }, "value": "server", - "start": 30717, - "end": 30723, + "start": 30760, + "end": 30766, "loc": { "start": { "line": 753, @@ -183154,8 +183144,8 @@ "updateContext": null }, "value": "=", - "start": 30724, - "end": 30725, + "start": 30767, + "end": 30768, "loc": { "start": { "line": 753, @@ -183179,8 +183169,8 @@ "postfix": false, "binop": null }, - "start": 30726, - "end": 30727, + "start": 30769, + "end": 30770, "loc": { "start": { "line": 753, @@ -183207,8 +183197,8 @@ "updateContext": null }, "value": "typeof", - "start": 30727, - "end": 30733, + "start": 30770, + "end": 30776, "loc": { "start": { "line": 753, @@ -183232,8 +183222,8 @@ "postfix": false, "binop": null }, - "start": 30733, - "end": 30734, + "start": 30776, + "end": 30777, "loc": { "start": { "line": 753, @@ -183258,8 +183248,8 @@ "binop": null }, "value": "window", - "start": 30734, - "end": 30740, + "start": 30777, + "end": 30783, "loc": { "start": { "line": 753, @@ -183283,8 +183273,8 @@ "postfix": false, "binop": null }, - "start": 30740, - "end": 30741, + "start": 30783, + "end": 30784, "loc": { "start": { "line": 753, @@ -183310,8 +183300,8 @@ "updateContext": null }, "value": "===", - "start": 30742, - "end": 30745, + "start": 30785, + "end": 30788, "loc": { "start": { "line": 753, @@ -183337,8 +183327,8 @@ "updateContext": null }, "value": "undefined", - "start": 30746, - "end": 30757, + "start": 30789, + "end": 30800, "loc": { "start": { "line": 753, @@ -183362,8 +183352,8 @@ "postfix": false, "binop": null }, - "start": 30757, - "end": 30758, + "start": 30800, + "end": 30801, "loc": { "start": { "line": 753, @@ -183388,8 +183378,8 @@ "binop": null, "updateContext": null }, - "start": 30758, - "end": 30759, + "start": 30801, + "end": 30802, "loc": { "start": { "line": 753, @@ -183404,8 +183394,8 @@ { "type": "CommentBlock", "value": "*\r\n * Update API bound to Pathway\r\n * @ignore\r\n ", - "start": 30761, - "end": 30813, + "start": 30804, + "end": 30856, "loc": { "start": { "line": 754, @@ -183432,8 +183422,8 @@ "updateContext": null }, "value": "const", - "start": 30815, - "end": 30820, + "start": 30858, + "end": 30863, "loc": { "start": { "line": 758, @@ -183458,8 +183448,8 @@ "binop": null }, "value": "update", - "start": 30821, - "end": 30827, + "start": 30864, + "end": 30870, "loc": { "start": { "line": 758, @@ -183485,8 +183475,8 @@ "updateContext": null }, "value": "=", - "start": 30828, - "end": 30829, + "start": 30871, + "end": 30872, "loc": { "start": { "line": 758, @@ -183511,8 +183501,8 @@ "binop": null }, "value": "Pathway", - "start": 30830, - "end": 30837, + "start": 30873, + "end": 30880, "loc": { "start": { "line": 758, @@ -183537,8 +183527,8 @@ "binop": null, "updateContext": null }, - "start": 30837, - "end": 30838, + "start": 30880, + "end": 30881, "loc": { "start": { "line": 758, @@ -183563,8 +183553,8 @@ "binop": null }, "value": "update", - "start": 30838, - "end": 30844, + "start": 30881, + "end": 30887, "loc": { "start": { "line": 758, @@ -183589,8 +183579,8 @@ "binop": null, "updateContext": null }, - "start": 30844, - "end": 30845, + "start": 30887, + "end": 30888, "loc": { "start": { "line": 758, @@ -183615,8 +183605,8 @@ "binop": null }, "value": "bind", - "start": 30845, - "end": 30849, + "start": 30888, + "end": 30892, "loc": { "start": { "line": 758, @@ -183640,8 +183630,8 @@ "postfix": false, "binop": null }, - "start": 30849, - "end": 30850, + "start": 30892, + "end": 30893, "loc": { "start": { "line": 758, @@ -183666,8 +183656,8 @@ "binop": null }, "value": "Pathway", - "start": 30850, - "end": 30857, + "start": 30893, + "end": 30900, "loc": { "start": { "line": 758, @@ -183691,8 +183681,8 @@ "postfix": false, "binop": null }, - "start": 30857, - "end": 30858, + "start": 30900, + "end": 30901, "loc": { "start": { "line": 758, @@ -183717,8 +183707,8 @@ "binop": null, "updateContext": null }, - "start": 30858, - "end": 30859, + "start": 30901, + "end": 30902, "loc": { "start": { "line": 758, @@ -183733,8 +183723,8 @@ { "type": "CommentLine", "value": " If on the server we use an interval", - "start": 30863, - "end": 30901, + "start": 30906, + "end": 30944, "loc": { "start": { "line": 760, @@ -183761,8 +183751,8 @@ "updateContext": null }, "value": "if", - "start": 30903, - "end": 30905, + "start": 30946, + "end": 30948, "loc": { "start": { "line": 761, @@ -183786,8 +183776,8 @@ "postfix": false, "binop": null }, - "start": 30906, - "end": 30907, + "start": 30949, + "end": 30950, "loc": { "start": { "line": 761, @@ -183812,8 +183802,8 @@ "binop": null }, "value": "server", - "start": 30907, - "end": 30913, + "start": 30950, + "end": 30956, "loc": { "start": { "line": 761, @@ -183837,8 +183827,8 @@ "postfix": false, "binop": null }, - "start": 30913, - "end": 30914, + "start": 30956, + "end": 30957, "loc": { "start": { "line": 761, @@ -183862,8 +183852,8 @@ "postfix": false, "binop": null }, - "start": 30915, - "end": 30916, + "start": 30958, + "end": 30959, "loc": { "start": { "line": 761, @@ -183878,8 +183868,8 @@ { "type": "CommentLine", "value": " Update interval", - "start": 30919, - "end": 30937, + "start": 30962, + "end": 30980, "loc": { "start": { "line": 762, @@ -183906,8 +183896,8 @@ "updateContext": null }, "value": "const", - "start": 30940, - "end": 30945, + "start": 30983, + "end": 30988, "loc": { "start": { "line": 763, @@ -183932,8 +183922,8 @@ "binop": null }, "value": "updateInterval", - "start": 30946, - "end": 30960, + "start": 30989, + "end": 31003, "loc": { "start": { "line": 763, @@ -183959,8 +183949,8 @@ "updateContext": null }, "value": "=", - "start": 30961, - "end": 30962, + "start": 31004, + "end": 31005, "loc": { "start": { "line": 763, @@ -183985,8 +183975,8 @@ "binop": null }, "value": "setInterval", - "start": 30963, - "end": 30974, + "start": 31006, + "end": 31017, "loc": { "start": { "line": 763, @@ -184010,8 +184000,8 @@ "postfix": false, "binop": null }, - "start": 30974, - "end": 30975, + "start": 31017, + "end": 31018, "loc": { "start": { "line": 763, @@ -184036,8 +184026,8 @@ "binop": null }, "value": "update", - "start": 30975, - "end": 30981, + "start": 31018, + "end": 31024, "loc": { "start": { "line": 763, @@ -184062,8 +184052,8 @@ "binop": null, "updateContext": null }, - "start": 30981, - "end": 30982, + "start": 31024, + "end": 31025, "loc": { "start": { "line": 763, @@ -184089,8 +184079,8 @@ "updateContext": null }, "value": 16, - "start": 30983, - "end": 30985, + "start": 31026, + "end": 31028, "loc": { "start": { "line": 763, @@ -184114,8 +184104,8 @@ "postfix": false, "binop": null }, - "start": 30985, - "end": 30986, + "start": 31028, + "end": 31029, "loc": { "start": { "line": 763, @@ -184140,8 +184130,8 @@ "binop": null, "updateContext": null }, - "start": 30986, - "end": 30987, + "start": 31029, + "end": 31030, "loc": { "start": { "line": 763, @@ -184156,8 +184146,8 @@ { "type": "CommentLine", "value": " Otherwise we use raf", - "start": 30989, - "end": 31012, + "start": 31032, + "end": 31055, "loc": { "start": { "line": 764, @@ -184181,8 +184171,8 @@ "postfix": false, "binop": null }, - "start": 31014, - "end": 31015, + "start": 31057, + "end": 31058, "loc": { "start": { "line": 765, @@ -184209,8 +184199,8 @@ "updateContext": null }, "value": "else", - "start": 31016, - "end": 31020, + "start": 31059, + "end": 31063, "loc": { "start": { "line": 765, @@ -184234,8 +184224,8 @@ "postfix": false, "binop": null }, - "start": 31021, - "end": 31022, + "start": 31064, + "end": 31065, "loc": { "start": { "line": 765, @@ -184262,8 +184252,8 @@ "updateContext": null }, "value": "const", - "start": 31025, - "end": 31030, + "start": 31068, + "end": 31073, "loc": { "start": { "line": 766, @@ -184288,8 +184278,8 @@ "binop": null }, "value": "updateLoop", - "start": 31031, - "end": 31041, + "start": 31074, + "end": 31084, "loc": { "start": { "line": 766, @@ -184315,8 +184305,8 @@ "updateContext": null }, "value": "=", - "start": 31042, - "end": 31043, + "start": 31085, + "end": 31086, "loc": { "start": { "line": 766, @@ -184340,8 +184330,8 @@ "postfix": false, "binop": null }, - "start": 31044, - "end": 31045, + "start": 31087, + "end": 31088, "loc": { "start": { "line": 766, @@ -184365,8 +184355,8 @@ "postfix": false, "binop": null }, - "start": 31045, - "end": 31046, + "start": 31088, + "end": 31089, "loc": { "start": { "line": 766, @@ -184391,8 +184381,8 @@ "binop": null, "updateContext": null }, - "start": 31047, - "end": 31049, + "start": 31090, + "end": 31092, "loc": { "start": { "line": 766, @@ -184416,8 +184406,8 @@ "postfix": false, "binop": null }, - "start": 31050, - "end": 31051, + "start": 31093, + "end": 31094, "loc": { "start": { "line": 766, @@ -184442,8 +184432,8 @@ "binop": null }, "value": "update", - "start": 31055, - "end": 31061, + "start": 31098, + "end": 31104, "loc": { "start": { "line": 767, @@ -184467,8 +184457,8 @@ "postfix": false, "binop": null }, - "start": 31061, - "end": 31062, + "start": 31104, + "end": 31105, "loc": { "start": { "line": 767, @@ -184492,8 +184482,8 @@ "postfix": false, "binop": null }, - "start": 31062, - "end": 31063, + "start": 31105, + "end": 31106, "loc": { "start": { "line": 767, @@ -184518,8 +184508,8 @@ "binop": null, "updateContext": null }, - "start": 31063, - "end": 31064, + "start": 31106, + "end": 31107, "loc": { "start": { "line": 767, @@ -184544,8 +184534,8 @@ "binop": null }, "value": "requestAnimationFrame", - "start": 31068, - "end": 31089, + "start": 31111, + "end": 31132, "loc": { "start": { "line": 768, @@ -184569,8 +184559,8 @@ "postfix": false, "binop": null }, - "start": 31089, - "end": 31090, + "start": 31132, + "end": 31133, "loc": { "start": { "line": 768, @@ -184595,8 +184585,8 @@ "binop": null }, "value": "updateLoop", - "start": 31090, - "end": 31100, + "start": 31133, + "end": 31143, "loc": { "start": { "line": 768, @@ -184620,8 +184610,8 @@ "postfix": false, "binop": null }, - "start": 31100, - "end": 31101, + "start": 31143, + "end": 31144, "loc": { "start": { "line": 768, @@ -184646,8 +184636,8 @@ "binop": null, "updateContext": null }, - "start": 31101, - "end": 31102, + "start": 31144, + "end": 31145, "loc": { "start": { "line": 768, @@ -184671,8 +184661,8 @@ "postfix": false, "binop": null }, - "start": 31105, - "end": 31106, + "start": 31148, + "end": 31149, "loc": { "start": { "line": 769, @@ -184697,8 +184687,8 @@ "binop": null }, "value": "requestAnimationFrame", - "start": 31109, - "end": 31130, + "start": 31152, + "end": 31173, "loc": { "start": { "line": 770, @@ -184722,8 +184712,8 @@ "postfix": false, "binop": null }, - "start": 31130, - "end": 31131, + "start": 31173, + "end": 31174, "loc": { "start": { "line": 770, @@ -184748,8 +184738,8 @@ "binop": null }, "value": "updateLoop", - "start": 31131, - "end": 31141, + "start": 31174, + "end": 31184, "loc": { "start": { "line": 770, @@ -184773,8 +184763,8 @@ "postfix": false, "binop": null }, - "start": 31141, - "end": 31142, + "start": 31184, + "end": 31185, "loc": { "start": { "line": 770, @@ -184799,8 +184789,8 @@ "binop": null, "updateContext": null }, - "start": 31142, - "end": 31143, + "start": 31185, + "end": 31186, "loc": { "start": { "line": 770, @@ -184824,8 +184814,8 @@ "postfix": false, "binop": null }, - "start": 31145, - "end": 31146, + "start": 31188, + "end": 31189, "loc": { "start": { "line": 771, @@ -184852,8 +184842,8 @@ "updateContext": null }, "value": "export", - "start": 31150, - "end": 31156, + "start": 31193, + "end": 31199, "loc": { "start": { "line": 773, @@ -184877,8 +184867,8 @@ "postfix": false, "binop": null }, - "start": 31157, - "end": 31158, + "start": 31200, + "end": 31201, "loc": { "start": { "line": 773, @@ -184903,8 +184893,8 @@ "binop": null }, "value": "Pathway", - "start": 31159, - "end": 31166, + "start": 31202, + "end": 31209, "loc": { "start": { "line": 773, @@ -184928,8 +184918,8 @@ "postfix": false, "binop": null }, - "start": 31167, - "end": 31168, + "start": 31210, + "end": 31211, "loc": { "start": { "line": 773, @@ -184954,8 +184944,8 @@ "binop": null, "updateContext": null }, - "start": 31168, - "end": 31169, + "start": 31211, + "end": 31212, "loc": { "start": { "line": 773, @@ -184980,8 +184970,8 @@ "binop": null, "updateContext": null }, - "start": 31169, - "end": 31169, + "start": 31212, + "end": 31212, "loc": { "start": { "line": 773, diff --git a/docs/file/src/pathway.mjs.html b/docs/file/src/pathway.mjs.html index ae1a1c0..2fc6dc8 100644 --- a/docs/file/src/pathway.mjs.html +++ b/docs/file/src/pathway.mjs.html @@ -172,7 +172,7 @@ */ to(pInstance, pDestination, pOptions) { if (typeof(pInstance) === 'object') { - // If this instance is not on a mapname. + // If this instance is not on a map. if (!pInstance.mapName) { this.logger.prefix('Pathway-Module').error('Cannot generate a path. pInstance is not on a map.'); return; @@ -230,7 +230,7 @@ } /** - * An exclusion list of tiles. + * An exclusion list of instances and tiles. * @type {Array} */ let excludeList = []; @@ -283,13 +283,13 @@ instanceData.events.onPathStuck = pOptions.onPathStuck; } - // Copy the contents of the exclude array to the exclude list we manage. + // Copy the contents of the exclude array to the exclude array we manage. if (Array.isArray(pOptions.exclude)) { excludeList.push(...pOptions.exclude); } } - // We add the instance to the exclude list so that it is excluded. + // We add the instance to the exclude array so that it is excluded. if (!excludeList.includes(pInstance)) { excludeList.push(pInstance); } @@ -319,11 +319,12 @@ // Get the end nodes position so we can get the destinationTile const endNodeX = Utils.clamp(Utils.clamp(pDestination.x, 0, mapSize.x) * this.tileSize.width + this.tileSize.width / 2, 0, mapSize.xPos - this.tileSize.width); const endNodeY = Utils.clamp(Utils.clamp(pDestination.y, 0, mapSize.y) * this.tileSize.height + this.tileSize.height / 2, 0, mapSize.yPos - this.tileSize.height); - // Get the end time tile + // Get the end tile const destinationTile = VYLO.Map.getLocByPos(endNodeX, endNodeY, pInstance.mapName); // Make sure these have resolved to actual tiles. if (originTile && destinationTile) { + // Check if the origin and end tile are accessible if (this.isTileAccessible(originTile, excludeList) && this.isTileAccessible(destinationTile, excludeList)) { // Get the start node from the originTile let startNode = this.tileToNode(originTile); @@ -335,12 +336,11 @@ this.getPath(pInstance, { x: startNode.x, y: startNode.y }, { x: endNode.x, y: endNode.y }); // If the origin tile or end tile is not accessible to be walked on then return no path found. } else { - // So fire the path not found event. + // Fire the path not found event. if (typeof(instanceData.events.onPathNotFound) === 'function') { instanceData.events.onPathNotFound(); } this.end(pInstance); - return; } } else { this.logger.prefix('Pathway-Module').error('Origin tile or destination tile cannot be found.'); @@ -403,7 +403,7 @@ instanceData.stuckCounter = 0; // Reset the max stuck counter instanceData.maxStuckCounter = PathwaySingleton.MAX_STUCK_COUNTER; - // Empty path(s) array + // Empty path array instanceData.path.length = 0; // Reset it to not being moved. instanceData.moving = false; diff --git a/docs/index.html b/docs/index.html index b319c2a..ca540a5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -35,51 +35,54 @@ -

Pathway

A module that will enable pathfinding functionality in the Vylocity Game Engine

+

Pathway Module

The Pathway module smoothly integrates pathfinding into the Vylocity Game Engine, allowing map instances to navigate environments more efficiently.

Uses easystar under the hood.

-

ES Module

// Importing as an ES module
-import { Pathway } from './pathway.mjs';
+

Installation

ES Module

import { Pathway } from './pathway.mjs';
 
-

IIFE (Immediately Invoked Function Expression)

<!-- Including the IIFE bundle in an HTML file -->
-<script src="pathway.js"></script>
-
+

IIFE (Immediately Invoked Function Expression)

<script src="pathway.js"></script>;
 // ...
-window.PathwayBundle.Pathway
+window.PathwayBundle.Pathway;
 
-

CommonJS (CJS) Module

// Importing as a CommonJS module (Node.js)
-const { Pathway } = require('./pathway.cjs.js');
+

CommonJS (CJS) Module

const { Pathway } = require('./pathway.cjs.js');
 
-

API

instance.pathwayWeight

    -
  • type: number
  • -
  • desc: The weight of this instance in the pathfinder system, higher values will try to make the pathfinder generate paths that do not include this instance. A weight of 0 is converying that is is passable. A weight of -1 means it is impassable. Weights are optional!
  • +

    API

    MapInstance Properties

    pathwayWeight

      +
    • Type: number
    • +
    • Description: Represents the importance of an element in pathfinding. Higher values indicate that paths should avoid this element. A weight of 0 means it's easy to traverse, while -1 indicates an impassable obstacle. This property is optional.
    -

    Pathway.to(pInstance, pDestination, pOptions)

      -
    • pInstance: The instance to move. object
    • -
    • pDestination.x: The xCoordinate to move to integer
    • -
    • pDestination.y: The yCoordinate to move to integer
    • -
    • pOptions.diagonal: Whether or not the pathfinder allows diagonal moves boolean
    • -
    • pOptions.mode: How this instance will move. collision for moving with collisions in mind (movePos). position for moving with no collisions in mind (setPos). string
    • -
    • pOptions.pixelsPerSecond: The speed in pixels this instance moves per second. This setting only works when pOptions.mode is set to position.number
    • -
    • pOptions.exclude: An array of diobs that will be excluded when calculating the path array
    • -
    • pOptions.minDistance: The minimum distance this pathway system will use to calculate if you have reached the (next) node. number
    • -
    • pOptions.maxStuckCounter: The maximum amount of ticks of pInstance being in the same position as the last tick before its considered stuck. number
        -
      • pOptions.onPathComplete: Callback for when pInstance makes it to the function
      • -
      • pOptions.onPathFound: Callback for when pInstance finds a path. The first parameter is the path that was generated. function
      • -
      • pOptions.onPathStuck: Callback for when pInstance gets stuck on a path. function
      • -
      • pOptions.onPathNotFound: Callback for when no path is found. function
      • +

        Methods

        Pathway.to(pInstance, pDestination, pOptions)

          +
        • Parameters:
            +
          • pInstance: The moving element.
          • +
          • pDestination.x: The destination's x-coordinate.
          • +
          • pDestination.y: The destination's y-coordinate.
          • +
          • pOptions.diagonal: Whether diagonal movement is allowed.
          • +
          • pOptions.mode: Movement style (collision considers obstacles, position ignores obstacles).
          • +
          • pOptions.pixelsPerSecond: Speed of movement in pixels per second (applies only in position mode).
          • +
          • pOptions.exclude: An array of obstacles to avoid when planning the path.
          • +
          • pOptions.minDistance: Minimum distance to determine node proximity.
          • +
          • pOptions.maxStuckCounter: Maximum consecutive ticks without movement before considering the instance stuck.
          • +
          • pOptions.onPathComplete: Callback executed when the element reaches its destination.
          • +
          • pOptions.onPathFound: Callback executed when a viable path is found.
          • +
          • pOptions.onPathStuck: Callback executed when an element gets stuck on its path.
          • +
          • pOptions.onPathNotFound: Callback executed when no path is found.
        • -
        • desc: Moves pInstance to the provided coordinates by walking along a generated path free of obstacles.
        • +
        • Description: Guides an element to a destination along a clear path, avoiding obstacles as necessary.
        • +
        +

        Pathway.end(pInstance)

          +
        • Parameters:
            +
          • pInstance: The element to stop pathfinding for.
          -

          Pathway.end(pInstance)

            -
          • pInstance: The instance to end the pathfinding on.
          • -
          • desc: Cancels the current path if there is one and stops this instance from moving
          • + +
          • Description: Halts the current path and stops the element's movement.
          -

          Pathway.setTileSize(pTileSize)

            -
          • pTileSize: The size of the tileset. number | object pTileSize.width and pTileSize.height when using an object.
          • -
          • desc: Sets the tile size internally for this pathway system to reference. This is how pathway will determine node positions.
          • +

            Pathway.setTileSize(pTileSize)

              +
            • Parameters:
                +
              • pTileSize: The dimensions of the tileset.
              • +
              +
            • +
            • Description: Sets the size of tiles for the pathway system to reference.
            -

            This module expects the VYLO variable to be exposed globally.

            +

            Global Dependency

            Pathway relies on the VYLO variable being globally accessible.

diff --git a/docs/index.json b/docs/index.json index a455832..c7ba581 100644 --- a/docs/index.json +++ b/docs/index.json @@ -567,7 +567,7 @@ "__docId__": 48, "kind": "file", "name": "src/pathway.mjs", - "content": "import { Utils } from './vendor/utils.min.mjs';\r\nimport { Logger } from './vendor/logger.min.mjs';\r\nimport { EasyStar } from './vendor/easystar-0.4.4.min.js';\r\n\r\n/**\r\n * @todo Test on server\r\n * @todo Make debugging class\r\n * @private\r\n */\r\nclass PathwaySingleton {\r\n\t/**\r\n\t * The maximum amount of ticks an instance can be in the same position before the pathfinder deems it \"stuck\". The user will be able to tweak values up to this max value.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic MAX_STUCK_COUNTER = 100;\r\n\t/**\r\n\t * The max amount of delta time between ticks. If this limit is passed, it will be clamped.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic MAX_DELTA_TIME = 0.03333333333;\r\n\t/**\r\n\t * The weight that indicates that this tile is walkable. This is used as the default weight of every instance unless otherwise stated.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic PASSABLE_WEIGHT = 0;\r\n\t/**\r\n\t * A static weight to be applied when a tile should be not be traveled to at all.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic IMPASSABLE_WEIGHT = -1;\r\n\t/**\r\n\t * The default amount of pixels per second to move the instance when using `position` mode.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic DEFAULT_PIXELS_PER_SECOND = 120;\r\n\t/**\r\n\t * The minimum distance away from a node before this system determines it has made it to that node.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic DEFAULT_MINIMUM_DISTANCE = 2;\r\n\t/**\r\n\t * The default mode this pathway system uses.\r\n\t * @private\r\n\t * @type {string}\r\n\t */\r\n\tstatic DEFAULT_MODE = 'collision';\r\n\t/**\r\n\t * An object that stores the map tiles in normal format and in 2D format.\r\n\t * @private\r\n\t * @type {Object}\r\n\t */\r\n\tstatic storedMapTiles = {};\r\n\t/**\r\n\t * The tile size to use if no tile size has been assigned.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic DEFAULT_TILE_SIZE = { width: 32, height: 32 };\r\n\t/**\r\n\t * The tile size to use for this system.\r\n\t * @private\r\n\t * @type {Object}\r\n\t */\r\n\ttileSize = { ...PathwaySingleton.DEFAULT_TILE_SIZE };\r\n\t/**\r\n\t * The version of the module.\r\n\t */\r\n\tversion = \"VERSION_REPLACE_ME\";\r\n\t/**\r\n\t * A weakmap storing the data of instances used in this pathfinder.\r\n\t * @private\r\n\t * @type {WeakMap}\r\n\t */\r\n\tinstanceWeakMap = new WeakMap();\r\n\t/**\r\n\t * The last tracked time in the ticker.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tlastTime = 0;\r\n\t/**\r\n\t * The delta time between the current and last tick.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tdeltaTime = 0;\r\n\t/**\r\n\t * The time in ms between the current and last tick.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\telapsedMS = 0;\r\n\t/**\r\n\t * An array of active instances that are currently pathfinding.\r\n\t * @private\r\n\t * @type {Array}\r\n\t */\r\n\tactiveInstances = [];\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tconstructor() {\r\n // Create a logger\r\n /** The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n */\r\n this.logger = new Logger();\r\n this.logger.registerType('Pathway-Module', '#ff6600');\r\n\t}\r\n\t/**\r\n\t * Moves pInstance to the destination position with pOptions in mind.\r\n\t * @param {Object} pInstance - The instance to move to the destination. The origin position will be retrived from this instance as well.\r\n\t * @param {Object} pDestination - The end position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t * @param {Object} pOptions - An object of settings on how to move pInstance to pDestination.\r\n\t * @property {boolean} [pOptions.diagonal = false] - Whether or not the pathfinder allows diagonal moves.\r\n\t * @property {Array} pOptions.exclude - An array of diobs that will be excluded when calculating the path.\r\n\t * @property {number} [pOptions.minDistance = 2] = The minimum distance this pathway system will use to calculate if you have reached the (next) node. \r\n\t * @property {number} [pOptions.maxStuckCounter = 100] - The maximum amount of ticks of pInstance being in the same position as the last tick before its considered stuck.\r\n\t * @property {string} [pOptions.mode = 'collision'] - How this instance will move. `collision` for moving with collisions in mind (movePos). `position` for moving with no collisions in mind (setPos) Must use pOptions.pixelsPerSecond when using `position` mode. \r\n\t * @property {string} [pOptions.pixelsPerSecond = 120] - The speed in pixels this instance moves per second. This setting only works when pOptions.mode is set to `position`. \r\n\t * @property {Function} pOptions.onPathComplete - Callback for when pInstance makes it to the destination node.\r\n\t * @property {Function} pOptions.onPathFound - Callback for when pInstance finds a path.\r\n\t * @property {Function} pOptions.onPathStuck - Callback for when pInstance gets stuck on a path.\r\n\t * @property {Function} pOptions.onPathNotFound - Callback for when no path is found.\r\n\t */\r\n\tto(pInstance, pDestination, pOptions) {\r\n\t\tif (typeof(pInstance) === 'object') {\r\n\t\t\t// If this instance is not on a mapname.\r\n\t\t\tif (!pInstance.mapName) {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Cannot generate a path. pInstance is not on a map.');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// If there is no destination object passed return.\r\n\t\t\tif (typeof(pDestination) !== 'object') {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type passed for pDestination. Expecting an object.');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Get the instance data for this instance\r\n\t\t\tlet instanceData = this.instanceWeakMap.get(pInstance);\r\n\r\n\t\t\tif (!instanceData) {\r\n\t\t\t\t// Set the instance data\r\n\t\t\t\tinstanceData = {\r\n\t\t\t\t\ttrajectory: { \r\n\t\t\t\t\t\tangle: 0, \r\n\t\t\t\t\t\tx: 0, \r\n\t\t\t\t\t\ty: 0, \r\n\t\t\t\t\t\tnextNodePos: null,\r\n\t\t\t\t\t},\r\n\t\t\t\t\t// The current position of the instance.\r\n\t\t\t\t\tcurrentPosition: { x: 0, y: 0 },\r\n\t\t\t\t\t// The previous position of the instance in the tick before.\r\n\t\t\t\t\tpreviousPosition: { x: 0, y: 0 },\r\n\t\t\t\t\t// The stuck counter of this instance. When this instance is in the same position for multiple ticks, this value is added onto up until -\r\n\t\t\t\t\t// the max stuck counter is reached and the `stuck` event is called.\r\n\t\t\t\t\tstuckCounter: 0,\r\n\t\t\t\t\tmaxStuckCounter: PathwaySingleton.MAX_STUCK_COUNTER,\r\n\t\t\t\t\tpathID: null, // ID of the path that was generated. Used to cancel the path.\r\n\t\t\t\t\tpath: [],\r\n\t\t\t\t\tmoving: null,\r\n\t\t\t\t\tmode: PathwaySingleton.DEFAULT_MODE,\r\n\t\t\t\t\tpixelsPerSecond: PathwaySingleton.DEFAULT_PIXELS_PER_SECOND,\r\n\t\t\t\t\tminDistance: PathwaySingleton.DEFAULT_MINIMUM_DISTANCE,\r\n\t\t\t\t\tevents: {\r\n\t\t\t\t\t\tonPathStuck: null,\r\n\t\t\t\t\t\tonPathComplete: null,\r\n\t\t\t\t\t\tonPathFound: null,\r\n\t\t\t\t\t\tonPathNotFound: null,\r\n\t\t\t\t\t},\r\n\t\t\t\t\teasystar: new EasyStar.js()\r\n\t\t\t\t};\r\n\t\t\t\t// If you have a large grid, then it is possible that these calculations could slow down the browser. \r\n\t\t\t\t// For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation\r\n\t\t\t\t// https://github.com/prettymuchbryce/easystarjs\r\n\t\t\t\tinstanceData.easystar.setIterationsPerCalculation(1000);\r\n\t\t\t\t// Assign the instance data\r\n\t\t\t\tthis.instanceWeakMap.set(pInstance, instanceData);\r\n\t\t\t} else {\r\n\t\t\t\t// If this instance has data already, we reset it\r\n\t\t\t\tthis.end(pInstance);\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * An exclusion list of tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t */\r\n\t\t\tlet excludeList = [];\r\n\r\n\t\t\t// If there are options passed. Parse them.\r\n\t\t\tif (typeof(pOptions) === 'object') {\r\n\t\t\t\t// If max stuck counter is found in options, set it.\r\n\t\t\t\tif (typeof(pOptions.maxStuckCounter) === 'number') {\r\n\t\t\t\t\tinstanceData.maxStuckCounter = pOptions.maxStuckCounter;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Enable diagonals if found in passed options.\r\n\t\t\t\t// This can cause some \"issues\" such as trying to cut through corners.\r\n\t\t\t\tif (pOptions.diagonal) {\r\n\t\t\t\t\tinstanceData.easystar.enableDiagonals();\r\n\t\t\t\t\tinstanceData.easystar.enableCornerCutting();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Set the positioning mode\r\n\t\t\t\tif (pOptions.mode) {\r\n\t\t\t\t\t// Get the mode, if an invalid mode is passed, we default to the default mode.\r\n\t\t\t\t\tconst mode = (pOptions.mode === 'collision' || pOptions.mode === 'position') ? pOptions.mode : PathwaySingleton.DEFAULT_MODE;\r\n\t\t\t\t\tinstanceData.mode = mode;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Assign pixels per second \r\n\t\t\t\tif (typeof(pOptions.pixelsPerSecond) === 'number') {\r\n\t\t\t\t\tinstanceData.pixelsPerSecond = pOptions.pixelsPerSecond;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Assign the min distance\r\n\t\t\t\tif (typeof(pOptions.minDistance) === 'number') {\r\n\t\t\t\t\tinstanceData.minDistance = pOptions.minDistance;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Assign events\r\n\t\t\t\tif (typeof(pOptions.onPathComplete) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathComplete = pOptions.onPathComplete;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof(pOptions.onPathFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathFound = pOptions.onPathFound;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof(pOptions.onPathNotFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathNotFound = pOptions.onPathNotFound;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof(pOptions.onPathStuck) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathStuck = pOptions.onPathStuck;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Copy the contents of the exclude array to the exclude list we manage.\r\n\t\t\t\tif (Array.isArray(pOptions.exclude)) {\r\n\t\t\t\t\texcludeList.push(...pOptions.exclude);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// We add the instance to the exclude list so that it is excluded.\r\n\t\t\tif (!excludeList.includes(pInstance)) {\r\n\t\t\t\texcludeList.push(pInstance);\r\n\t\t\t}\r\n\r\n\t\t\t// Build the 2D array grid that represents the map\r\n\t\t\tconst gridInfo = this.mapTilesToGrid(pInstance.mapName, excludeList);\r\n\t\t\t\r\n\t\t\t// Assign the grid to easystar\r\n\t\t\tinstanceData.easystar.setGrid(gridInfo.grid);\r\n\t\t\t\r\n\t\t\t// Assign the weight of each tile\r\n\t\t\tgridInfo.weights.forEach((pWeight) => {\r\n\t\t\t\tinstanceData.easystar.setTileCost(pWeight, pWeight);\r\n\t\t\t});\r\n\r\n\t\t\t// Assign what tiles can be used\r\n\t\t\tinstanceData.easystar.setAcceptableTiles(gridInfo.acceptedTiles);\r\n\r\n\t\t\t// Grab the pos of the instance so we can locate the starting tile its on.\r\n\t\t\t// This is also used as the startingNode position.\r\n\t\t\tconst instancePosition = this.getPositionFromInstance(pInstance);\r\n\t\t\t// Get the origin tile the instance is on.\r\n\t\t\tconst originTile = VYLO.Map.getLocByPos(instancePosition.x, instancePosition.y, pInstance.mapName);\r\n\t\t\t// Get the dimensions of the map that was passed.\r\n\t\t\tconst mapSize = VYLO.Map.getMapSize(pInstance.mapName);\r\n\r\n\t\t\t// Get the end nodes position so we can get the destinationTile\r\n\t\t\tconst endNodeX = Utils.clamp(Utils.clamp(pDestination.x, 0, mapSize.x) * this.tileSize.width + this.tileSize.width / 2, 0, mapSize.xPos - this.tileSize.width);\r\n\t\t\tconst endNodeY = Utils.clamp(Utils.clamp(pDestination.y, 0, mapSize.y) * this.tileSize.height + this.tileSize.height / 2, 0, mapSize.yPos - this.tileSize.height);\r\n\t\t\t// Get the end time tile\r\n\t\t\tconst destinationTile = VYLO.Map.getLocByPos(endNodeX, endNodeY, pInstance.mapName);\r\n\t\t\t\r\n\t\t\t// Make sure these have resolved to actual tiles.\r\n\t\t\tif (originTile && destinationTile) {\r\n\t\t\t\tif (this.isTileAccessible(originTile, excludeList) && this.isTileAccessible(destinationTile, excludeList)) {\r\n\t\t\t\t\t// Get the start node from the originTile\r\n\t\t\t\t\tlet startNode = this.tileToNode(originTile);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Get the end node from the destinationTile\r\n\t\t\t\t\tlet endNode = this.tileToNode(destinationTile);\r\n\r\n\t\t\t\t\t// Generate the path for the player\r\n\t\t\t\t\tthis.getPath(pInstance, { x: startNode.x, y: startNode.y }, { x: endNode.x, y: endNode.y });\t\t\t\t\r\n\t\t\t\t// If the origin tile or end tile is not accessible to be walked on then return no path found.\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// So fire the path not found event.\t\r\n\t\t\t\t\tif (typeof(instanceData.events.onPathNotFound) === 'function') {\r\n\t\t\t\t\t\tinstanceData.events.onPathNotFound();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.end(pInstance);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Origin tile or destination tile cannot be found.');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type passed for pInstance. Expecting an object.');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t */\r\n\ttrack(pInstance) {\r\n\t\t// Add this instance to being tracked.\r\n\t\tif (!this.activeInstances.includes(pInstance)) {\r\n\t\t\tthis.activeInstances.push(pInstance);\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t */\r\n\tuntrack(pInstance) {\r\n\t\t// Remove this instance from being tracked.\r\n\t\tif (this.activeInstances.includes(pInstance)) {\r\n\t\t\tthis.activeInstances.splice(this.activeInstances.indexOf(pInstance), 1);\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t */\r\n\tend(pInstance) {\r\n\t\t// Get the instance data for this instance\r\n\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\tif (instanceData) {\r\n\t\t\t// We are ending the pathfinding. So we get the path ID so we can cancel calculations being made for this path.\r\n\t\t\tif (instanceData.pathID) {\r\n\t\t\t\tinstanceData.easystar.cancelPath(instanceData.pathID);\r\n\t\t\t\tinstanceData.pathID = null;\r\n\t\t\t}\r\n\t\t\t// Disable diagonals in the event they were enabled in a previous call\r\n\t\t\tinstanceData.easystar.disableDiagonals();\r\n\t\t\t// Disable corner cutting in the event it was enabled in a previous call\r\n\t\t\tinstanceData.easystar.disableCornerCutting();\r\n\t\t\t// Reset trajectory data\r\n\t\t\tinstanceData.trajectory.x = 0;\r\n\t\t\tinstanceData.trajectory.y = 0;\r\n\t\t\tinstanceData.trajectory.angle = 0;\r\n\t\t\tinstanceData.trajectory.nextNodePos = null;\r\n\t\t\t// Reset events\r\n\t\t\tinstanceData.events.onPathStuck = null;\r\n\t\t\tinstanceData.events.onPathComplete = null;\r\n\t\t\tinstanceData.events.onPathFound = null;\r\n\t\t\tinstanceData.events.onPathNotFound = null;\r\n\t\t\t// Reset stuck counter\r\n\t\t\tinstanceData.stuckCounter = 0;\r\n\t\t\t// Reset the max stuck counter\r\n\t\t\tinstanceData.maxStuckCounter = PathwaySingleton.MAX_STUCK_COUNTER;\r\n\t\t\t// Empty path(s) array\r\n\t\t\tinstanceData.path.length = 0;\r\n\t\t\t// Reset it to not being moved.\r\n\t\t\tinstanceData.moving = false;\r\n\t\t\t// Reset the mode\r\n\t\t\tinstanceData.mode = 'collision';\r\n\t\t\t// Reset the pixels per second.\r\n\t\t\tinstanceData.pixelsPerSecond = PathwaySingleton.DEFAULT_PIXELS_PER_SECOND;\r\n\t\t\t// Reset the min distance\r\n\t\t\tinstanceData.minDistance = PathwaySingleton.DEFAULT_MINIMUM_DISTANCE;\r\n\t\t\t// Stop instance from moving via VYLO API.\r\n\t\t\tpInstance.move();\r\n\t\t\t// Untrack pInstance as an active instance.\r\n\t\t\tthis.untrack(pInstance);\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('No instance data found from pInstance. This instance is not engaged in pathfinding.');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t */\r\n\tgetPositionFromInstance(pInstance) {\r\n\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\tif (instanceData) {\r\n\t\t\tinstanceData.currentPosition.x = Math.floor(pInstance.x + pInstance.xOrigin + pInstance.width / 2);\r\n\t\t\tinstanceData.currentPosition.y = Math.floor(pInstance.y + pInstance.yOrigin + pInstance.height / 2);\r\n\t\t\treturn instanceData.currentPosition;\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t */\r\n\tupdate() {\r\n\t\t// Get current timestamp\r\n\t\tconst now = Date.now();\r\n\t\t// Get the elapsed ms from the last tick\r\n\t\tthis.elapsedMS = now - this.lastTime;\r\n\t\t// Get the delta time between the last tick\r\n\t\tthis.deltaTime = (this.elapsedMS / 1000);\r\n\t\t// If the delta time grows too large, we clamp it\r\n\t\tif (this.deltaTime >= PathwaySingleton.MAX_DELTA_TIME) {\r\n\t\t\tthis.deltaTime = PathwaySingleton.MAX_DELTA_TIME;\r\n\t\t}\r\n\t\t// Loop active instances and update.\r\n\t\tthis.activeInstances.forEach((pInstance) => {\r\n\t\t\t// Get the instance data for this instance\r\n\t\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\t\tif (instanceData) {\r\n\t\t\t\t// Calculate the path\r\n\t\t\t\tinstanceData.easystar.calculate();\r\n\r\n\t\t\t\t// If this instance is being moved\r\n\t\t\t\tif (Array.isArray(instanceData.path) && (instanceData.path.length || instanceData.moving)) {\r\n\t\t\t\t\t// Get the position of the instance\r\n\t\t\t\t\tconst instancePosition = this.getPositionFromInstance(pInstance);\r\n\t\t\t\t\t// If the instance is not moving\r\n\t\t\t\t\tif (!instanceData.moving) {\r\n\t\t\t\t\t\t// Get the next node to travel to.\r\n\t\t\t\t\t\tconst node = instanceData.path.shift();\r\n\t\t\t\t\t\t// Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.\r\n\t\t\t\t\t\tconst nodePos = { \r\n\t\t\t\t\t\t\tx: (node.x * this.tileSize.width) - this.tileSize.width / 2, \r\n\t\t\t\t\t\t\ty: (node.y * this.tileSize.height) - this.tileSize.height / 2 \r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t// Store the next node position\r\n\t\t\t\t\t\tinstanceData.trajectory.nextNodePos = nodePos;\r\n\t\t\t\t\t\t// Get the angle from the instance's position to the next node\r\n\t\t\t\t\t\tinstanceData.trajectory.angle = Utils.getAngle2(instancePosition, instanceData.trajectory.nextNodePos);\r\n\t\t\t\t\t\t// Get the trajectory of where to move the instance based on the angle\r\n\t\t\t\t\t\tinstanceData.trajectory.x = Math.cos(instanceData.trajectory.angle);\r\n\t\t\t\t\t\tinstanceData.trajectory.y = -Math.sin(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t// Update the direction of the instance based on the angle to the next node\r\n\t\t\t\t\t\tpInstance.dir = Utils.getDirection(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t// Move the instance with collision mode or positional mode\r\n\t\t\t\t\t\tif (instanceData.mode === 'collision') {\r\n\t\t\t\t\t\t\tpInstance.movePos(instanceData.trajectory.x, instanceData.trajectory.y);\r\n\t\t\t\t\t\t} else if (instanceData.mode === 'position') {\r\n\t\t\t\t\t\t\tconst speed = instanceData.pixelsPerSecond * this.deltaTime;\r\n\t\t\t\t\t\t\tpInstance.setPos(pInstance.x + speed * instanceData.trajectory.x, pInstance.y + speed * instanceData.trajectory.y, pInstance.mapName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tinstanceData.moving = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Get the distance from the instance's position to the next node's position.\r\n\t\t\t\t\t\tconst distance = Utils.getDistance(instancePosition, instanceData.trajectory.nextNodePos);\r\n\t\t\t\t\t\t// Stop moving when you are this close distance.\r\n\t\t\t\t\t\tif (distance <= instanceData.minDistance) {\r\n\t\t\t\t\t\t\t// Stop moving\r\n\t\t\t\t\t\t\tinstanceData.moving = false;\r\n\t\t\t\t\t\t\t// Reset stuck counter when moving has \"stopped\".\r\n\t\t\t\t\t\t\tinstanceData.stuckCounter = 0;\r\n\t\t\t\t\t\t\t// If there is no more nodes left in the path\r\n\t\t\t\t\t\t\tif (!instanceData.path.length) {\r\n\t\t\t\t\t\t\t\t// You have completed the path. Call the event function if supplied.\r\n\t\t\t\t\t\t\t\tif (typeof(instanceData.events.onPathComplete) === 'function') {\r\n\t\t\t\t\t\t\t\t\tinstanceData.events.onPathComplete();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.end(pInstance);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tinstanceData.trajectory.angle = Utils.getAngle2(instancePosition, instanceData.trajectory.nextNodePos);\r\n\t\t\t\t\t\t\tinstanceData.trajectory.x = Math.cos(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t\tinstanceData.trajectory.y = -Math.sin(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t\tpInstance.dir = Utils.getDirection(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t\t// Move the instance with collision mode or positional mode\r\n\t\t\t\t\t\t\tif (instanceData.mode === 'collision') {\r\n\t\t\t\t\t\t\t\tpInstance.movePos(instanceData.trajectory.x, instanceData.trajectory.y);\r\n\t\t\t\t\t\t\t} else if (instanceData.mode === 'position') {\r\n\t\t\t\t\t\t\t\tconst speed = instanceData.pixelsPerSecond * this.deltaTime;\r\n\t\t\t\t\t\t\t\tpInstance.setPos(pInstance.x + speed * instanceData.trajectory.x, pInstance.y + speed * instanceData.trajectory.y, pInstance.mapName);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tinstanceData.moving = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the instance's position is in the same spot it was in the last tick\r\n\t\t\t\t\tif (instancePosition.x === instanceData.previousPosition.x && instancePosition.y === instanceData.previousPosition.y) {\r\n\t\t\t\t\t\t// Increment the stuck counter\r\n\t\t\t\t\t\tinstanceData.stuckCounter++;\r\n\t\t\t\t\t\t// Chekck if the stuck counter is greater or equal to the max stuck counter\r\n\t\t\t\t\t\tif (instanceData.stuckCounter >= instanceData.maxStuckCounter) {\r\n\t\t\t\t\t\t\t// Call the stuck event if defined.\r\n\t\t\t\t\t\t\tif (typeof(instanceData.events.onPathStuck) === 'function') {\r\n\t\t\t\t\t\t\t\tinstanceData.events.onPathStuck();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// End this pathfinding.\r\n\t\t\t\t\t\t\tthis.end(pInstance);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Store the previous position as the position of this tick\r\n\t\t\t\t\tinstanceData.previousPosition = instancePosition;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Store this tick's time\r\n\t\tthis.lastTime = now;\r\n\t}\r\n\t/**\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t */\r\n\tsetTileSize(pTileSize) {\r\n\t\tif (typeof(pTileSize) === 'number') {\r\n\t\t\tthis.tileSize = { width: pTileSize, height: pTileSize };\r\n\t\t} else if(typeof(pTileSize) === 'object') {\r\n\t\t\tconst width = pTileSize.width;\r\n\t\t\tconst height = pTileSize.height;\r\n\t\t\t// Assign the tilesize width\r\n\t\t\tif (typeof(width) === 'number') {\r\n\t\t\t\tthis.tileSize.width = width;\r\n\t\t\t}\r\n\t\t\t// Assign the tilesize height\r\n\t\t\tif (typeof(height) === 'number') {\r\n\t\t\t\tthis.tileSize.height = height;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type used for pTileSize');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t */\r\n\tisTileAccessible(pTile, pExclusionList) {\r\n\t\t// If the tile is in the exclude list, we simply say it is accessible. This prevents the tile's contents from being searched. \r\n\t\t// There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.\r\n\t\tconst isExcluded = (pInstance) => pExclusionList.includes(pInstance);\r\n\t\t// This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.\r\n\t\tconst isImpassable = (pInstance) => (pInstance.pathwayWeight === PathwaySingleton.IMPASSABLE_WEIGHT) || pInstance.density && (!pInstance.pathwayWeight && pInstance.pathwayWeight !== PathwaySingleton.PASSABLE_WEIGHT);\r\n\t\t// If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.\r\n\t\tconst hasImpassableContent = (pInstance) => pInstance.getContents().some((pInstance) => {\r\n\t\t\treturn isImpassable(pInstance) && !isExcluded(pInstance);\r\n\t\t});\r\n\t\treturn isExcluded(pTile) || (!isImpassable(pTile) && !hasImpassableContent(pTile));\r\n\t}\r\n\t/**\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t */\r\n\tgetPath(pInstance, pOrigin, pDestination) {\r\n\t\t// Get the instance data\r\n\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\tif (!instanceData) {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Instance data not found!');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Find the path\r\n\t\tconst pathID = instanceData.easystar.findPath(pOrigin.x, pOrigin.y, pDestination.x, pDestination.y, (pPath) => {\r\n\t\t\t// Check if the path is valid.\r\n\t\t\tif (Array.isArray(pPath) && pPath.length) {\r\n\t\t\t\t/**\r\n\t\t\t\t * The path generated.\r\n\t\t\t\t * @private\r\n\t\t\t\t * @type {Array}\r\n\t\t\t\t */\r\n\t\t\t\tlet path;\r\n\t\t\t\t// Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.\r\n\t\t\t\tpath = pPath.map((pElement) => ({\r\n\t\t\t\t\tx: ++pElement.x,\r\n\t\t\t\t\ty: ++pElement.y\r\n\t\t\t\t}));\r\n\t\t\t\t// Remove the node you start on.\r\n\t\t\t\tpath.shift();\r\n\t\t\t\t// Store the path\r\n\t\t\t\tinstanceData.path = path;\r\n\t\t\t\t// Store the pathID\r\n\t\t\t\tinstanceData.pathID = pathID;\r\n\t\t\t\t// Call event when path is found\r\n\t\t\t\tif (typeof(instanceData.events.onPathFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathFound([...path]);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// Call event when no path is found\r\n\t\t\t\tif (typeof(instanceData.events.onPathNotFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathNotFound();\r\n\t\t\t\t}\r\n\t\t\t\t// If no path is found then we end the pathfinding on this instance.\r\n\t\t\t\tthis.end(pInstance);\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Track pInstance as an active instance.\r\n\t\tthis.track(pInstance);\r\n\t}\r\n\t/**\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t */\r\n\ttoTwoDimensionalArray(pArray, pLengthOfSubArray) {\r\n\t\tlet i = 0;\r\n\t\tconst result = [];\r\n\t\twhile (i < pArray.length) {\r\n\t\t\tresult.push(pArray.slice(i, i+= pLengthOfSubArray));\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\t/**\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t */\r\n\ttileToNode(pTile) {\r\n\t\tif (typeof(pTile.mapName) === 'string') {\r\n\t\t\tif (PathwaySingleton.storedMapTiles[pTile.mapName]) {\r\n\t\t\t\tconst index = this.getIndexOf2DArray(PathwaySingleton.storedMapTiles[pTile.mapName].tiles2d, pTile);\r\n\t\t\t\tconst node = { x: index[1], y: index[0] };\r\n\t\t\t\treturn node;\r\n\t\t\t} else {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('There is no stored grid for the map this tile belongs to.');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid mapname found on pTile');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t */\r\n\tgetIndexOf2DArray(pArray, pValue) {\r\n\t\tfor (let i = 0; i < pArray.length; i++) {\r\n\t\t\tlet index = pArray[i].indexOf(pValue);\r\n\t\t\tif (index > -1) {\r\n\t\t\t\treturn [i, index];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t */\r\n\tmapTilesToGrid(pMapName, pExclusionList) {\r\n\t\tif (typeof(pMapName) === 'string') {\r\n\t\t\tif (Array.isArray(pExclusionList)) {\r\n\t\t\t\t// We check if this is a valid mapname found in VYLO.\r\n\t\t\t\tif (VYLO.Map.getMaps().includes(pMapName)) {\r\n\t\t\t\t\t// An array of tiles that we get from the map\r\n\t\t\t\t\tlet tilesArray;\r\n\t\t\t\t\t// An array of accepted tiles to be walked on.\r\n\t\t\t\t\tconst acceptedTiles = [0];\r\n\t\t\t\t\t// An array holding the weights of tiles.\r\n\t\t\t\t\tconst weights = [];\r\n\t\t\t\t\t// Get the dimensions of the map that was passed.\r\n\t\t\t\t\tconst mapSize = VYLO.Map.getMapSize(pMapName);\r\n\r\n\t\t\t\t\t// We check if we have stored tiles from this map before. If so we cache them.\r\n\t\t\t\t\tif (PathwaySingleton.storedMapTiles[pMapName]) {\r\n\t\t\t\t\t\t// We get the tile array from memory.\r\n\t\t\t\t\t\ttilesArray = PathwaySingleton.storedMapTiles[pMapName].tiles;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttilesArray = VYLO.Map.getTiles(pMapName);\r\n\t\t\t\t\t\t// We store this tiles array\r\n\t\t\t\t\t\tPathwaySingleton.storedMapTiles[pMapName] = { tiles: tilesArray, tiles2d: this.toTwoDimensionalArray(tilesArray, mapSize.x) };\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.\r\n\t\t\t\t\tconst isImpassable = (pInstance) => (pInstance.pathwayWeight === PathwaySingleton.IMPASSABLE_WEIGHT) || pInstance.density && (!pInstance.pathwayWeight && pInstance.pathwayWeight !== PathwaySingleton.PASSABLE_WEIGHT);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Loop through the tiles array to build weights and accepted tile lists.\r\n\t\t\t\t\tconst grid = tilesArray.map((pTile) => {\r\n\t\t\t\t\t\t// If the tile is in the exclude list, we simply say it is passable. This prevents the tile's contents from being searched. \r\n\t\t\t\t\t\t// There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.\r\n\t\t\t\t\t\tif (pExclusionList.includes(pTile)) return PathwaySingleton.PASSABLE_WEIGHT;\r\n\r\n\t\t\t\t\t\t// A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.\r\n\t\t\t\t\t\tlet weight = typeof(pTile.pathwayWeight) === 'number' ? pTile.pathwayWeight : PathwaySingleton.PASSABLE_WEIGHT;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// If this tile is not accessible, we cannot pass it, so we skip this tile.\r\n\t\t\t\t\t\tif (!this.isTileAccessible(pTile, pExclusionList)) {\r\n\t\t\t\t\t\t\treturn PathwaySingleton.IMPASSABLE_WEIGHT;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Accumulate weights of instances on the tile\r\n\t\t\t\t\t\tfor (const instance of pTile.getContents()) {\r\n\t\t\t\t\t\t\t// If this instance is to be excluded. We don't calculate its weight.\r\n\t\t\t\t\t\t\tif (pExclusionList.includes(instance)) continue;\r\n\r\n\t\t\t\t\t\t\t// If this instance is impassable we skip this tile.\r\n\t\t\t\t\t\t\tif (isImpassable(instance)) {\r\n\t\t\t\t\t\t\t\treturn PathwaySingleton.IMPASSABLE_WEIGHT;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// We accumulate the weight of instances\r\n\t\t\t\t\t\t\t\tif (typeof(instance.pathwayWeight) === 'number') {\r\n\t\t\t\t\t\t\t\t\tweight += instance.pathwayWeight;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Add weight to acceptedTiles if not already present\r\n\t\t\t\t\t\tif (weight !== PathwaySingleton.IMPASSABLE_WEIGHT && weight !== PathwaySingleton.PASSABLE_WEIGHT) {\r\n\t\t\t\t\t\t\tif (!acceptedTiles.includes(weight)) acceptedTiles.push(weight);\r\n\t\t\t\t\t\t\tif (!weights.includes(weight)) weights.push(weight);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn weight;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\treturn { \r\n\t\t\t\t\t\t'acceptedTiles': acceptedTiles, \r\n\t\t\t\t\t\t'grid': this.toTwoDimensionalArray(grid, mapSize.x), \r\n\t\t\t\t\t\t'weights': weights \r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.logger.prefix('Pathway-Module').error('pMapName was not found in VYLO.');\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type for pExclusionList.');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type for pMapName.');\r\n\t\t}\r\n\t}\r\n}\r\n/**\r\n * The module instantiated for use.\r\n * @type {PathwaySingleton}\r\n */\r\nconst Pathway = new PathwaySingleton();\r\n/**\r\n * Check if this is a server environment\r\n * @ignore\r\n */\r\nconst server = (typeof(window) === 'undefined');\r\n/**\r\n * Update API bound to Pathway\r\n * @ignore\r\n */\r\nconst update = Pathway.update.bind(Pathway);\r\n\r\n// If on the server we use an interval\r\nif (server) {\r\n\t// Update interval\r\n\tconst updateInterval = setInterval(update, 16);\r\n// Otherwise we use raf\r\n} else {\r\n\tconst updateLoop = () => {\r\n\t\tupdate();\r\n\t\trequestAnimationFrame(updateLoop);\r\n\t}\r\n\trequestAnimationFrame(updateLoop);\r\n}\r\n\r\nexport { Pathway };", + "content": "import { Utils } from './vendor/utils.min.mjs';\r\nimport { Logger } from './vendor/logger.min.mjs';\r\nimport { EasyStar } from './vendor/easystar-0.4.4.min.js';\r\n\r\n/**\r\n * @todo Test on server\r\n * @todo Make debugging class\r\n * @private\r\n */\r\nclass PathwaySingleton {\r\n\t/**\r\n\t * The maximum amount of ticks an instance can be in the same position before the pathfinder deems it \"stuck\". The user will be able to tweak values up to this max value.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic MAX_STUCK_COUNTER = 100;\r\n\t/**\r\n\t * The max amount of delta time between ticks. If this limit is passed, it will be clamped.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic MAX_DELTA_TIME = 0.03333333333;\r\n\t/**\r\n\t * The weight that indicates that this tile is walkable. This is used as the default weight of every instance unless otherwise stated.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic PASSABLE_WEIGHT = 0;\r\n\t/**\r\n\t * A static weight to be applied when a tile should be not be traveled to at all.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic IMPASSABLE_WEIGHT = -1;\r\n\t/**\r\n\t * The default amount of pixels per second to move the instance when using `position` mode.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic DEFAULT_PIXELS_PER_SECOND = 120;\r\n\t/**\r\n\t * The minimum distance away from a node before this system determines it has made it to that node.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic DEFAULT_MINIMUM_DISTANCE = 2;\r\n\t/**\r\n\t * The default mode this pathway system uses.\r\n\t * @private\r\n\t * @type {string}\r\n\t */\r\n\tstatic DEFAULT_MODE = 'collision';\r\n\t/**\r\n\t * An object that stores the map tiles in normal format and in 2D format.\r\n\t * @private\r\n\t * @type {Object}\r\n\t */\r\n\tstatic storedMapTiles = {};\r\n\t/**\r\n\t * The tile size to use if no tile size has been assigned.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tstatic DEFAULT_TILE_SIZE = { width: 32, height: 32 };\r\n\t/**\r\n\t * The tile size to use for this system.\r\n\t * @private\r\n\t * @type {Object}\r\n\t */\r\n\ttileSize = { ...PathwaySingleton.DEFAULT_TILE_SIZE };\r\n\t/**\r\n\t * The version of the module.\r\n\t */\r\n\tversion = \"VERSION_REPLACE_ME\";\r\n\t/**\r\n\t * A weakmap storing the data of instances used in this pathfinder.\r\n\t * @private\r\n\t * @type {WeakMap}\r\n\t */\r\n\tinstanceWeakMap = new WeakMap();\r\n\t/**\r\n\t * The last tracked time in the ticker.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tlastTime = 0;\r\n\t/**\r\n\t * The delta time between the current and last tick.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\tdeltaTime = 0;\r\n\t/**\r\n\t * The time in ms between the current and last tick.\r\n\t * @private\r\n\t * @type {number}\r\n\t */\r\n\telapsedMS = 0;\r\n\t/**\r\n\t * An array of active instances that are currently pathfinding.\r\n\t * @private\r\n\t * @type {Array}\r\n\t */\r\n\tactiveInstances = [];\r\n\t/**\r\n\t * @private\r\n\t */\r\n\tconstructor() {\r\n // Create a logger\r\n /** The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n */\r\n this.logger = new Logger();\r\n this.logger.registerType('Pathway-Module', '#ff6600');\r\n\t}\r\n\t/**\r\n\t * Moves pInstance to the destination position with pOptions in mind.\r\n\t * @param {Object} pInstance - The instance to move to the destination. The origin position will be retrived from this instance as well.\r\n\t * @param {Object} pDestination - The end position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t * @param {Object} pOptions - An object of settings on how to move pInstance to pDestination.\r\n\t * @property {boolean} [pOptions.diagonal = false] - Whether or not the pathfinder allows diagonal moves.\r\n\t * @property {Array} pOptions.exclude - An array of diobs that will be excluded when calculating the path.\r\n\t * @property {number} [pOptions.minDistance = 2] = The minimum distance this pathway system will use to calculate if you have reached the (next) node. \r\n\t * @property {number} [pOptions.maxStuckCounter = 100] - The maximum amount of ticks of pInstance being in the same position as the last tick before its considered stuck.\r\n\t * @property {string} [pOptions.mode = 'collision'] - How this instance will move. `collision` for moving with collisions in mind (movePos). `position` for moving with no collisions in mind (setPos) Must use pOptions.pixelsPerSecond when using `position` mode. \r\n\t * @property {string} [pOptions.pixelsPerSecond = 120] - The speed in pixels this instance moves per second. This setting only works when pOptions.mode is set to `position`. \r\n\t * @property {Function} pOptions.onPathComplete - Callback for when pInstance makes it to the destination node.\r\n\t * @property {Function} pOptions.onPathFound - Callback for when pInstance finds a path.\r\n\t * @property {Function} pOptions.onPathStuck - Callback for when pInstance gets stuck on a path.\r\n\t * @property {Function} pOptions.onPathNotFound - Callback for when no path is found.\r\n\t */\r\n\tto(pInstance, pDestination, pOptions) {\r\n\t\tif (typeof(pInstance) === 'object') {\r\n\t\t\t// If this instance is not on a map.\r\n\t\t\tif (!pInstance.mapName) {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Cannot generate a path. pInstance is not on a map.');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// If there is no destination object passed return.\r\n\t\t\tif (typeof(pDestination) !== 'object') {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type passed for pDestination. Expecting an object.');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Get the instance data for this instance\r\n\t\t\tlet instanceData = this.instanceWeakMap.get(pInstance);\r\n\r\n\t\t\tif (!instanceData) {\r\n\t\t\t\t// Set the instance data\r\n\t\t\t\tinstanceData = {\r\n\t\t\t\t\ttrajectory: { \r\n\t\t\t\t\t\tangle: 0, \r\n\t\t\t\t\t\tx: 0, \r\n\t\t\t\t\t\ty: 0, \r\n\t\t\t\t\t\tnextNodePos: null,\r\n\t\t\t\t\t},\r\n\t\t\t\t\t// The current position of the instance.\r\n\t\t\t\t\tcurrentPosition: { x: 0, y: 0 },\r\n\t\t\t\t\t// The previous position of the instance in the tick before.\r\n\t\t\t\t\tpreviousPosition: { x: 0, y: 0 },\r\n\t\t\t\t\t// The stuck counter of this instance. When this instance is in the same position for multiple ticks, this value is added onto up until -\r\n\t\t\t\t\t// the max stuck counter is reached and the `stuck` event is called.\r\n\t\t\t\t\tstuckCounter: 0,\r\n\t\t\t\t\tmaxStuckCounter: PathwaySingleton.MAX_STUCK_COUNTER,\r\n\t\t\t\t\tpathID: null, // ID of the path that was generated. Used to cancel the path.\r\n\t\t\t\t\tpath: [],\r\n\t\t\t\t\tmoving: null,\r\n\t\t\t\t\tmode: PathwaySingleton.DEFAULT_MODE,\r\n\t\t\t\t\tpixelsPerSecond: PathwaySingleton.DEFAULT_PIXELS_PER_SECOND,\r\n\t\t\t\t\tminDistance: PathwaySingleton.DEFAULT_MINIMUM_DISTANCE,\r\n\t\t\t\t\tevents: {\r\n\t\t\t\t\t\tonPathStuck: null,\r\n\t\t\t\t\t\tonPathComplete: null,\r\n\t\t\t\t\t\tonPathFound: null,\r\n\t\t\t\t\t\tonPathNotFound: null,\r\n\t\t\t\t\t},\r\n\t\t\t\t\teasystar: new EasyStar.js()\r\n\t\t\t\t};\r\n\t\t\t\t// If you have a large grid, then it is possible that these calculations could slow down the browser. \r\n\t\t\t\t// For this reason, it might be a good idea to give EasyStar a smaller iterationsPerCalculation\r\n\t\t\t\t// https://github.com/prettymuchbryce/easystarjs\r\n\t\t\t\tinstanceData.easystar.setIterationsPerCalculation(1000);\r\n\t\t\t\t// Assign the instance data\r\n\t\t\t\tthis.instanceWeakMap.set(pInstance, instanceData);\r\n\t\t\t} else {\r\n\t\t\t\t// If this instance has data already, we reset it\r\n\t\t\t\tthis.end(pInstance);\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * An exclusion list of instances and tiles.\r\n\t\t\t * @type {Array}\r\n\t\t\t */\r\n\t\t\tlet excludeList = [];\r\n\r\n\t\t\t// If there are options passed. Parse them.\r\n\t\t\tif (typeof(pOptions) === 'object') {\r\n\t\t\t\t// If max stuck counter is found in options, set it.\r\n\t\t\t\tif (typeof(pOptions.maxStuckCounter) === 'number') {\r\n\t\t\t\t\tinstanceData.maxStuckCounter = pOptions.maxStuckCounter;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Enable diagonals if found in passed options.\r\n\t\t\t\t// This can cause some \"issues\" such as trying to cut through corners.\r\n\t\t\t\tif (pOptions.diagonal) {\r\n\t\t\t\t\tinstanceData.easystar.enableDiagonals();\r\n\t\t\t\t\tinstanceData.easystar.enableCornerCutting();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Set the positioning mode\r\n\t\t\t\tif (pOptions.mode) {\r\n\t\t\t\t\t// Get the mode, if an invalid mode is passed, we default to the default mode.\r\n\t\t\t\t\tconst mode = (pOptions.mode === 'collision' || pOptions.mode === 'position') ? pOptions.mode : PathwaySingleton.DEFAULT_MODE;\r\n\t\t\t\t\tinstanceData.mode = mode;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Assign pixels per second \r\n\t\t\t\tif (typeof(pOptions.pixelsPerSecond) === 'number') {\r\n\t\t\t\t\tinstanceData.pixelsPerSecond = pOptions.pixelsPerSecond;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Assign the min distance\r\n\t\t\t\tif (typeof(pOptions.minDistance) === 'number') {\r\n\t\t\t\t\tinstanceData.minDistance = pOptions.minDistance;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Assign events\r\n\t\t\t\tif (typeof(pOptions.onPathComplete) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathComplete = pOptions.onPathComplete;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof(pOptions.onPathFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathFound = pOptions.onPathFound;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof(pOptions.onPathNotFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathNotFound = pOptions.onPathNotFound;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof(pOptions.onPathStuck) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathStuck = pOptions.onPathStuck;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Copy the contents of the exclude array to the exclude array we manage.\r\n\t\t\t\tif (Array.isArray(pOptions.exclude)) {\r\n\t\t\t\t\texcludeList.push(...pOptions.exclude);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// We add the instance to the exclude array so that it is excluded.\r\n\t\t\tif (!excludeList.includes(pInstance)) {\r\n\t\t\t\texcludeList.push(pInstance);\r\n\t\t\t}\r\n\r\n\t\t\t// Build the 2D array grid that represents the map\r\n\t\t\tconst gridInfo = this.mapTilesToGrid(pInstance.mapName, excludeList);\r\n\t\t\t\r\n\t\t\t// Assign the grid to easystar\r\n\t\t\tinstanceData.easystar.setGrid(gridInfo.grid);\r\n\t\t\t\r\n\t\t\t// Assign the weight of each tile\r\n\t\t\tgridInfo.weights.forEach((pWeight) => {\r\n\t\t\t\tinstanceData.easystar.setTileCost(pWeight, pWeight);\r\n\t\t\t});\r\n\r\n\t\t\t// Assign what tiles can be used\r\n\t\t\tinstanceData.easystar.setAcceptableTiles(gridInfo.acceptedTiles);\r\n\r\n\t\t\t// Grab the pos of the instance so we can locate the starting tile its on.\r\n\t\t\t// This is also used as the startingNode position.\r\n\t\t\tconst instancePosition = this.getPositionFromInstance(pInstance);\r\n\t\t\t// Get the origin tile the instance is on.\r\n\t\t\tconst originTile = VYLO.Map.getLocByPos(instancePosition.x, instancePosition.y, pInstance.mapName);\r\n\t\t\t// Get the dimensions of the map that was passed.\r\n\t\t\tconst mapSize = VYLO.Map.getMapSize(pInstance.mapName);\r\n\r\n\t\t\t// Get the end nodes position so we can get the destinationTile\r\n\t\t\tconst endNodeX = Utils.clamp(Utils.clamp(pDestination.x, 0, mapSize.x) * this.tileSize.width + this.tileSize.width / 2, 0, mapSize.xPos - this.tileSize.width);\r\n\t\t\tconst endNodeY = Utils.clamp(Utils.clamp(pDestination.y, 0, mapSize.y) * this.tileSize.height + this.tileSize.height / 2, 0, mapSize.yPos - this.tileSize.height);\r\n\t\t\t// Get the end tile\r\n\t\t\tconst destinationTile = VYLO.Map.getLocByPos(endNodeX, endNodeY, pInstance.mapName);\r\n\t\t\t\r\n\t\t\t// Make sure these have resolved to actual tiles.\r\n\t\t\tif (originTile && destinationTile) {\r\n\t\t\t\t// Check if the origin and end tile are accessible\r\n\t\t\t\tif (this.isTileAccessible(originTile, excludeList) && this.isTileAccessible(destinationTile, excludeList)) {\r\n\t\t\t\t\t// Get the start node from the originTile\r\n\t\t\t\t\tlet startNode = this.tileToNode(originTile);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Get the end node from the destinationTile\r\n\t\t\t\t\tlet endNode = this.tileToNode(destinationTile);\r\n\r\n\t\t\t\t\t// Generate the path for the player\r\n\t\t\t\t\tthis.getPath(pInstance, { x: startNode.x, y: startNode.y }, { x: endNode.x, y: endNode.y });\t\t\t\t\r\n\t\t\t\t// If the origin tile or end tile is not accessible to be walked on then return no path found.\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Fire the path not found event.\t\r\n\t\t\t\t\tif (typeof(instanceData.events.onPathNotFound) === 'function') {\r\n\t\t\t\t\t\tinstanceData.events.onPathNotFound();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.end(pInstance);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Origin tile or destination tile cannot be found.');\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type passed for pInstance. Expecting an object.');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Tracks this instance as active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to track.\r\n\t */\r\n\ttrack(pInstance) {\r\n\t\t// Add this instance to being tracked.\r\n\t\tif (!this.activeInstances.includes(pInstance)) {\r\n\t\t\tthis.activeInstances.push(pInstance);\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Untracks this instance. It is no longer considered active.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to untrack.\r\n\t */\r\n\tuntrack(pInstance) {\r\n\t\t// Remove this instance from being tracked.\r\n\t\tif (this.activeInstances.includes(pInstance)) {\r\n\t\t\tthis.activeInstances.splice(this.activeInstances.indexOf(pInstance), 1);\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Ends the current pathfinding for pInstance.\r\n\t * @param {Object} pInstance - The instance to terminate pathfinding on.\r\n\t */\r\n\tend(pInstance) {\r\n\t\t// Get the instance data for this instance\r\n\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\tif (instanceData) {\r\n\t\t\t// We are ending the pathfinding. So we get the path ID so we can cancel calculations being made for this path.\r\n\t\t\tif (instanceData.pathID) {\r\n\t\t\t\tinstanceData.easystar.cancelPath(instanceData.pathID);\r\n\t\t\t\tinstanceData.pathID = null;\r\n\t\t\t}\r\n\t\t\t// Disable diagonals in the event they were enabled in a previous call\r\n\t\t\tinstanceData.easystar.disableDiagonals();\r\n\t\t\t// Disable corner cutting in the event it was enabled in a previous call\r\n\t\t\tinstanceData.easystar.disableCornerCutting();\r\n\t\t\t// Reset trajectory data\r\n\t\t\tinstanceData.trajectory.x = 0;\r\n\t\t\tinstanceData.trajectory.y = 0;\r\n\t\t\tinstanceData.trajectory.angle = 0;\r\n\t\t\tinstanceData.trajectory.nextNodePos = null;\r\n\t\t\t// Reset events\r\n\t\t\tinstanceData.events.onPathStuck = null;\r\n\t\t\tinstanceData.events.onPathComplete = null;\r\n\t\t\tinstanceData.events.onPathFound = null;\r\n\t\t\tinstanceData.events.onPathNotFound = null;\r\n\t\t\t// Reset stuck counter\r\n\t\t\tinstanceData.stuckCounter = 0;\r\n\t\t\t// Reset the max stuck counter\r\n\t\t\tinstanceData.maxStuckCounter = PathwaySingleton.MAX_STUCK_COUNTER;\r\n\t\t\t// Empty path array\r\n\t\t\tinstanceData.path.length = 0;\r\n\t\t\t// Reset it to not being moved.\r\n\t\t\tinstanceData.moving = false;\r\n\t\t\t// Reset the mode\r\n\t\t\tinstanceData.mode = 'collision';\r\n\t\t\t// Reset the pixels per second.\r\n\t\t\tinstanceData.pixelsPerSecond = PathwaySingleton.DEFAULT_PIXELS_PER_SECOND;\r\n\t\t\t// Reset the min distance\r\n\t\t\tinstanceData.minDistance = PathwaySingleton.DEFAULT_MINIMUM_DISTANCE;\r\n\t\t\t// Stop instance from moving via VYLO API.\r\n\t\t\tpInstance.move();\r\n\t\t\t// Untrack pInstance as an active instance.\r\n\t\t\tthis.untrack(pInstance);\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('No instance data found from pInstance. This instance is not engaged in pathfinding.');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Gets the position from the instance based on the pathfinding info. Centered position from the geometrical.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to get the position from.\r\n\t * @returns {Object} - The position of the instance.\r\n\t */\r\n\tgetPositionFromInstance(pInstance) {\r\n\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\tif (instanceData) {\r\n\t\t\tinstanceData.currentPosition.x = Math.floor(pInstance.x + pInstance.xOrigin + pInstance.width / 2);\r\n\t\t\tinstanceData.currentPosition.y = Math.floor(pInstance.y + pInstance.yOrigin + pInstance.height / 2);\r\n\t\t\treturn instanceData.currentPosition;\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Updates active instances on the pathfinder.\r\n\t * @private\r\n\t */\r\n\tupdate() {\r\n\t\t// Get current timestamp\r\n\t\tconst now = Date.now();\r\n\t\t// Get the elapsed ms from the last tick\r\n\t\tthis.elapsedMS = now - this.lastTime;\r\n\t\t// Get the delta time between the last tick\r\n\t\tthis.deltaTime = (this.elapsedMS / 1000);\r\n\t\t// If the delta time grows too large, we clamp it\r\n\t\tif (this.deltaTime >= PathwaySingleton.MAX_DELTA_TIME) {\r\n\t\t\tthis.deltaTime = PathwaySingleton.MAX_DELTA_TIME;\r\n\t\t}\r\n\t\t// Loop active instances and update.\r\n\t\tthis.activeInstances.forEach((pInstance) => {\r\n\t\t\t// Get the instance data for this instance\r\n\t\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\t\tif (instanceData) {\r\n\t\t\t\t// Calculate the path\r\n\t\t\t\tinstanceData.easystar.calculate();\r\n\r\n\t\t\t\t// If this instance is being moved\r\n\t\t\t\tif (Array.isArray(instanceData.path) && (instanceData.path.length || instanceData.moving)) {\r\n\t\t\t\t\t// Get the position of the instance\r\n\t\t\t\t\tconst instancePosition = this.getPositionFromInstance(pInstance);\r\n\t\t\t\t\t// If the instance is not moving\r\n\t\t\t\t\tif (!instanceData.moving) {\r\n\t\t\t\t\t\t// Get the next node to travel to.\r\n\t\t\t\t\t\tconst node = instanceData.path.shift();\r\n\t\t\t\t\t\t// Get the position of that node in real world coordinates. We subtract half of the tileSize to get the center of the node's posiiton.\r\n\t\t\t\t\t\tconst nodePos = { \r\n\t\t\t\t\t\t\tx: (node.x * this.tileSize.width) - this.tileSize.width / 2, \r\n\t\t\t\t\t\t\ty: (node.y * this.tileSize.height) - this.tileSize.height / 2 \r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\t// Store the next node position\r\n\t\t\t\t\t\tinstanceData.trajectory.nextNodePos = nodePos;\r\n\t\t\t\t\t\t// Get the angle from the instance's position to the next node\r\n\t\t\t\t\t\tinstanceData.trajectory.angle = Utils.getAngle2(instancePosition, instanceData.trajectory.nextNodePos);\r\n\t\t\t\t\t\t// Get the trajectory of where to move the instance based on the angle\r\n\t\t\t\t\t\tinstanceData.trajectory.x = Math.cos(instanceData.trajectory.angle);\r\n\t\t\t\t\t\tinstanceData.trajectory.y = -Math.sin(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t// Update the direction of the instance based on the angle to the next node\r\n\t\t\t\t\t\tpInstance.dir = Utils.getDirection(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t// Move the instance with collision mode or positional mode\r\n\t\t\t\t\t\tif (instanceData.mode === 'collision') {\r\n\t\t\t\t\t\t\tpInstance.movePos(instanceData.trajectory.x, instanceData.trajectory.y);\r\n\t\t\t\t\t\t} else if (instanceData.mode === 'position') {\r\n\t\t\t\t\t\t\tconst speed = instanceData.pixelsPerSecond * this.deltaTime;\r\n\t\t\t\t\t\t\tpInstance.setPos(pInstance.x + speed * instanceData.trajectory.x, pInstance.y + speed * instanceData.trajectory.y, pInstance.mapName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tinstanceData.moving = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Get the distance from the instance's position to the next node's position.\r\n\t\t\t\t\t\tconst distance = Utils.getDistance(instancePosition, instanceData.trajectory.nextNodePos);\r\n\t\t\t\t\t\t// Stop moving when you are this close distance.\r\n\t\t\t\t\t\tif (distance <= instanceData.minDistance) {\r\n\t\t\t\t\t\t\t// Stop moving\r\n\t\t\t\t\t\t\tinstanceData.moving = false;\r\n\t\t\t\t\t\t\t// Reset stuck counter when moving has \"stopped\".\r\n\t\t\t\t\t\t\tinstanceData.stuckCounter = 0;\r\n\t\t\t\t\t\t\t// If there is no more nodes left in the path\r\n\t\t\t\t\t\t\tif (!instanceData.path.length) {\r\n\t\t\t\t\t\t\t\t// You have completed the path. Call the event function if supplied.\r\n\t\t\t\t\t\t\t\tif (typeof(instanceData.events.onPathComplete) === 'function') {\r\n\t\t\t\t\t\t\t\t\tinstanceData.events.onPathComplete();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.end(pInstance);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tinstanceData.trajectory.angle = Utils.getAngle2(instancePosition, instanceData.trajectory.nextNodePos);\r\n\t\t\t\t\t\t\tinstanceData.trajectory.x = Math.cos(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t\tinstanceData.trajectory.y = -Math.sin(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t\tpInstance.dir = Utils.getDirection(instanceData.trajectory.angle);\r\n\t\t\t\t\t\t\t// Move the instance with collision mode or positional mode\r\n\t\t\t\t\t\t\tif (instanceData.mode === 'collision') {\r\n\t\t\t\t\t\t\t\tpInstance.movePos(instanceData.trajectory.x, instanceData.trajectory.y);\r\n\t\t\t\t\t\t\t} else if (instanceData.mode === 'position') {\r\n\t\t\t\t\t\t\t\tconst speed = instanceData.pixelsPerSecond * this.deltaTime;\r\n\t\t\t\t\t\t\t\tpInstance.setPos(pInstance.x + speed * instanceData.trajectory.x, pInstance.y + speed * instanceData.trajectory.y, pInstance.mapName);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tinstanceData.moving = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the instance's position is in the same spot it was in the last tick\r\n\t\t\t\t\tif (instancePosition.x === instanceData.previousPosition.x && instancePosition.y === instanceData.previousPosition.y) {\r\n\t\t\t\t\t\t// Increment the stuck counter\r\n\t\t\t\t\t\tinstanceData.stuckCounter++;\r\n\t\t\t\t\t\t// Chekck if the stuck counter is greater or equal to the max stuck counter\r\n\t\t\t\t\t\tif (instanceData.stuckCounter >= instanceData.maxStuckCounter) {\r\n\t\t\t\t\t\t\t// Call the stuck event if defined.\r\n\t\t\t\t\t\t\tif (typeof(instanceData.events.onPathStuck) === 'function') {\r\n\t\t\t\t\t\t\t\tinstanceData.events.onPathStuck();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// End this pathfinding.\r\n\t\t\t\t\t\t\tthis.end(pInstance);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Store the previous position as the position of this tick\r\n\t\t\t\t\tinstanceData.previousPosition = instancePosition;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Store this tick's time\r\n\t\tthis.lastTime = now;\r\n\t}\r\n\t/**\r\n\t * Sets the tilesize of this system.\r\n\t * @param {number} pTileSize - The tilesize of the game.\r\n\t */\r\n\tsetTileSize(pTileSize) {\r\n\t\tif (typeof(pTileSize) === 'number') {\r\n\t\t\tthis.tileSize = { width: pTileSize, height: pTileSize };\r\n\t\t} else if(typeof(pTileSize) === 'object') {\r\n\t\t\tconst width = pTileSize.width;\r\n\t\t\tconst height = pTileSize.height;\r\n\t\t\t// Assign the tilesize width\r\n\t\t\tif (typeof(width) === 'number') {\r\n\t\t\t\tthis.tileSize.width = width;\r\n\t\t\t}\r\n\t\t\t// Assign the tilesize height\r\n\t\t\tif (typeof(height) === 'number') {\r\n\t\t\t\tthis.tileSize.height = height;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type used for pTileSize');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Checks to see if pTile is accessible for movement.\r\n\t * @private\r\n\t * @param {Object} pTile - The tile to check the validity of.\r\n\t * @param {Array} pExclusionList - The list of excluded tiles/instances.\r\n\t * @returns {boolean} - If this tile is accessible.\r\n\t */\r\n\tisTileAccessible(pTile, pExclusionList) {\r\n\t\t// If the tile is in the exclude list, we simply say it is accessible. This prevents the tile's contents from being searched. \r\n\t\t// There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.\r\n\t\tconst isExcluded = (pInstance) => pExclusionList.includes(pInstance);\r\n\t\t// This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.\r\n\t\tconst isImpassable = (pInstance) => (pInstance.pathwayWeight === PathwaySingleton.IMPASSABLE_WEIGHT) || pInstance.density && (!pInstance.pathwayWeight && pInstance.pathwayWeight !== PathwaySingleton.PASSABLE_WEIGHT);\r\n\t\t// If this tile has dense instances that are not being excluded, doesn't have a pathwayWeight set, or are explicitely set to be impassable.\r\n\t\tconst hasImpassableContent = (pInstance) => pInstance.getContents().some((pInstance) => {\r\n\t\t\treturn isImpassable(pInstance) && !isExcluded(pInstance);\r\n\t\t});\r\n\t\treturn isExcluded(pTile) || (!isImpassable(pTile) && !hasImpassableContent(pTile));\r\n\t}\r\n\t/**\r\n\t * Generates a path from the origin point to the end point with obstacles in mind.\r\n\t * @private\r\n\t * @param {Object} pInstance - The instance to grab data from.\r\n\t * @param {Object} pOrigin - An object containing the start x and y position. \r\n\t * @property {number} pOrigin.x - The start x coordinate.\r\n\t * @property {number} pOrigin.y -The start y coordinate.\r\n\t * @param {Object} pDestination - An object containing the end x and y position to travel to.\r\n\t * @property {number} pDestination.x - The end x coordinate.\r\n\t * @property {number} pDestination.y - The end y coordinate.\r\n\t */\r\n\tgetPath(pInstance, pOrigin, pDestination) {\r\n\t\t// Get the instance data\r\n\t\tconst instanceData = this.instanceWeakMap.get(pInstance);\r\n\t\tif (!instanceData) {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Instance data not found!');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Find the path\r\n\t\tconst pathID = instanceData.easystar.findPath(pOrigin.x, pOrigin.y, pDestination.x, pDestination.y, (pPath) => {\r\n\t\t\t// Check if the path is valid.\r\n\t\t\tif (Array.isArray(pPath) && pPath.length) {\r\n\t\t\t\t/**\r\n\t\t\t\t * The path generated.\r\n\t\t\t\t * @private\r\n\t\t\t\t * @type {Array}\r\n\t\t\t\t */\r\n\t\t\t\tlet path;\r\n\t\t\t\t// Offset the nodes by 1, because VYLO xCoord and yCoord start at 1.\r\n\t\t\t\tpath = pPath.map((pElement) => ({\r\n\t\t\t\t\tx: ++pElement.x,\r\n\t\t\t\t\ty: ++pElement.y\r\n\t\t\t\t}));\r\n\t\t\t\t// Remove the node you start on.\r\n\t\t\t\tpath.shift();\r\n\t\t\t\t// Store the path\r\n\t\t\t\tinstanceData.path = path;\r\n\t\t\t\t// Store the pathID\r\n\t\t\t\tinstanceData.pathID = pathID;\r\n\t\t\t\t// Call event when path is found\r\n\t\t\t\tif (typeof(instanceData.events.onPathFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathFound([...path]);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// Call event when no path is found\r\n\t\t\t\tif (typeof(instanceData.events.onPathNotFound) === 'function') {\r\n\t\t\t\t\tinstanceData.events.onPathNotFound();\r\n\t\t\t\t}\r\n\t\t\t\t// If no path is found then we end the pathfinding on this instance.\r\n\t\t\t\tthis.end(pInstance);\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Track pInstance as an active instance.\r\n\t\tthis.track(pInstance);\r\n\t}\r\n\t/**\r\n\t * Converts an array to an 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The array to convert to a 2D array.\r\n\t * @param {number} pLengthOfSubArray - The length of the subarray.\r\n\t * @returns {Array} The 2D array.\r\n\t */\r\n\ttoTwoDimensionalArray(pArray, pLengthOfSubArray) {\r\n\t\tlet i = 0;\r\n\t\tconst result = [];\r\n\t\twhile (i < pArray.length) {\r\n\t\t\tresult.push(pArray.slice(i, i+= pLengthOfSubArray));\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\t/**\r\n\t * Converts a tile to a node position.\r\n\t * @private\r\n\t * @param {Object}} pTile - The tile to convert into a node position.\r\n\t * @returns {Object} The node.\r\n\t */\r\n\ttileToNode(pTile) {\r\n\t\tif (typeof(pTile.mapName) === 'string') {\r\n\t\t\tif (PathwaySingleton.storedMapTiles[pTile.mapName]) {\r\n\t\t\t\tconst index = this.getIndexOf2DArray(PathwaySingleton.storedMapTiles[pTile.mapName].tiles2d, pTile);\r\n\t\t\t\tconst node = { x: index[1], y: index[0] };\r\n\t\t\t\treturn node;\r\n\t\t\t} else {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('There is no stored grid for the map this tile belongs to.');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid mapname found on pTile');\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Finds the index of a value in a 2D array.\r\n\t * @private\r\n\t * @param {Array} pArray - The 2D array to search in.\r\n\t * @param {any} pValue - The value to find in the 2D array.\r\n\t * @returns {Array} Returns an array containing the row and column indices of the found value, or undefined if not found.\r\n\t */\r\n\tgetIndexOf2DArray(pArray, pValue) {\r\n\t\tfor (let i = 0; i < pArray.length; i++) {\r\n\t\t\tlet index = pArray[i].indexOf(pValue);\r\n\t\t\tif (index > -1) {\r\n\t\t\t\treturn [i, index];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Converts map tiles to grids.\r\n\t * @private\r\n\t * @param {string} pMapName - The mapname where the tile should come from.\r\n\t * @param {Array} pExclusionList - The exclude list to use for this grid.\r\n\t * @returns {Object|undefined} An object containing the grid created, an array of tiles that are to be accepted in the pathfinding system, and the weights of each tile.\r\n\t */\r\n\tmapTilesToGrid(pMapName, pExclusionList) {\r\n\t\tif (typeof(pMapName) === 'string') {\r\n\t\t\tif (Array.isArray(pExclusionList)) {\r\n\t\t\t\t// We check if this is a valid mapname found in VYLO.\r\n\t\t\t\tif (VYLO.Map.getMaps().includes(pMapName)) {\r\n\t\t\t\t\t// An array of tiles that we get from the map\r\n\t\t\t\t\tlet tilesArray;\r\n\t\t\t\t\t// An array of accepted tiles to be walked on.\r\n\t\t\t\t\tconst acceptedTiles = [0];\r\n\t\t\t\t\t// An array holding the weights of tiles.\r\n\t\t\t\t\tconst weights = [];\r\n\t\t\t\t\t// Get the dimensions of the map that was passed.\r\n\t\t\t\t\tconst mapSize = VYLO.Map.getMapSize(pMapName);\r\n\r\n\t\t\t\t\t// We check if we have stored tiles from this map before. If so we cache them.\r\n\t\t\t\t\tif (PathwaySingleton.storedMapTiles[pMapName]) {\r\n\t\t\t\t\t\t// We get the tile array from memory.\r\n\t\t\t\t\t\ttilesArray = PathwaySingleton.storedMapTiles[pMapName].tiles;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttilesArray = VYLO.Map.getTiles(pMapName);\r\n\t\t\t\t\t\t// We store this tiles array\r\n\t\t\t\t\t\tPathwaySingleton.storedMapTiles[pMapName] = { tiles: tilesArray, tiles2d: this.toTwoDimensionalArray(tilesArray, mapSize.x) };\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// This instance is impassible because it is dense and has no pathwayWeight, or it was explicitely set to be impassable.\r\n\t\t\t\t\tconst isImpassable = (pInstance) => (pInstance.pathwayWeight === PathwaySingleton.IMPASSABLE_WEIGHT) || pInstance.density && (!pInstance.pathwayWeight && pInstance.pathwayWeight !== PathwaySingleton.PASSABLE_WEIGHT);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Loop through the tiles array to build weights and accepted tile lists.\r\n\t\t\t\t\tconst grid = tilesArray.map((pTile) => {\r\n\t\t\t\t\t\t// If the tile is in the exclude list, we simply say it is passable. This prevents the tile's contents from being searched. \r\n\t\t\t\t\t\t// There is a possibility it could actually be an obstacle on this tile blocking movement from being completed. Use with caution.\r\n\t\t\t\t\t\tif (pExclusionList.includes(pTile)) return PathwaySingleton.PASSABLE_WEIGHT;\r\n\r\n\t\t\t\t\t\t// A weight of PathwaySingleton.PASSABLE_WEIGHT indicates no weight.\r\n\t\t\t\t\t\tlet weight = typeof(pTile.pathwayWeight) === 'number' ? pTile.pathwayWeight : PathwaySingleton.PASSABLE_WEIGHT;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// If this tile is not accessible, we cannot pass it, so we skip this tile.\r\n\t\t\t\t\t\tif (!this.isTileAccessible(pTile, pExclusionList)) {\r\n\t\t\t\t\t\t\treturn PathwaySingleton.IMPASSABLE_WEIGHT;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Accumulate weights of instances on the tile\r\n\t\t\t\t\t\tfor (const instance of pTile.getContents()) {\r\n\t\t\t\t\t\t\t// If this instance is to be excluded. We don't calculate its weight.\r\n\t\t\t\t\t\t\tif (pExclusionList.includes(instance)) continue;\r\n\r\n\t\t\t\t\t\t\t// If this instance is impassable we skip this tile.\r\n\t\t\t\t\t\t\tif (isImpassable(instance)) {\r\n\t\t\t\t\t\t\t\treturn PathwaySingleton.IMPASSABLE_WEIGHT;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// We accumulate the weight of instances\r\n\t\t\t\t\t\t\t\tif (typeof(instance.pathwayWeight) === 'number') {\r\n\t\t\t\t\t\t\t\t\tweight += instance.pathwayWeight;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Add weight to acceptedTiles if not already present\r\n\t\t\t\t\t\tif (weight !== PathwaySingleton.IMPASSABLE_WEIGHT && weight !== PathwaySingleton.PASSABLE_WEIGHT) {\r\n\t\t\t\t\t\t\tif (!acceptedTiles.includes(weight)) acceptedTiles.push(weight);\r\n\t\t\t\t\t\t\tif (!weights.includes(weight)) weights.push(weight);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn weight;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\treturn { \r\n\t\t\t\t\t\t'acceptedTiles': acceptedTiles, \r\n\t\t\t\t\t\t'grid': this.toTwoDimensionalArray(grid, mapSize.x), \r\n\t\t\t\t\t\t'weights': weights \r\n\t\t\t\t\t};\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.logger.prefix('Pathway-Module').error('pMapName was not found in VYLO.');\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type for pExclusionList.');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.logger.prefix('Pathway-Module').error('Invalid type for pMapName.');\r\n\t\t}\r\n\t}\r\n}\r\n/**\r\n * The module instantiated for use.\r\n * @type {PathwaySingleton}\r\n */\r\nconst Pathway = new PathwaySingleton();\r\n/**\r\n * Check if this is a server environment\r\n * @ignore\r\n */\r\nconst server = (typeof(window) === 'undefined');\r\n/**\r\n * Update API bound to Pathway\r\n * @ignore\r\n */\r\nconst update = Pathway.update.bind(Pathway);\r\n\r\n// If on the server we use an interval\r\nif (server) {\r\n\t// Update interval\r\n\tconst updateInterval = setInterval(update, 16);\r\n// Otherwise we use raf\r\n} else {\r\n\tconst updateLoop = () => {\r\n\t\tupdate();\r\n\t\trequestAnimationFrame(updateLoop);\r\n\t}\r\n\trequestAnimationFrame(updateLoop);\r\n}\r\n\r\nexport { Pathway };", "static": true, "longname": "C:/Users/jared/Documents/Github/Pathway/src/pathway.mjs", "access": "public", @@ -1651,7 +1651,7 @@ }, { "kind": "index", - "content": "# Pathway\r\nA module that will enable pathfinding functionality in the Vylocity Game Engine \r\n\r\nUses [easystar](https://github.com/prettymuchbryce/easystarjs) under the hood.\r\n\r\n\r\n# ES Module\r\n```js\r\n// Importing as an ES module\r\nimport { Pathway } from './pathway.mjs';\r\n```\r\n\r\n# IIFE (Immediately Invoked Function Expression)\r\n```js\r\n\r\n\r\n\r\n// ...\r\nwindow.PathwayBundle.Pathway\r\n```\r\n\r\n# CommonJS (CJS) Module\r\n\r\n```js\r\n// Importing as a CommonJS module (Node.js)\r\nconst { Pathway } = require('./pathway.cjs.js');\r\n```\r\n\r\n## API \r\n\r\n### instance.pathwayWeight \r\n - `type`: `number` \r\n - `desc`: The weight of this instance in the pathfinder system, higher values will try to make the pathfinder generate paths that do not include this instance. A weight of `0` is converying that is is passable. A weight of `-1` means it is impassable. Weights are optional! \r\n\r\n### Pathway.to(pInstance, pDestination, pOptions) \r\n - `pInstance`: The instance to move. `object`\r\n - `pDestination.x`: The xCoordinate to move to `integer` \r\n - `pDestination.y`: The yCoordinate to move to `integer` \r\n - `pOptions.diagonal`: Whether or not the pathfinder allows diagonal moves `boolean` \r\n - `pOptions.mode`: How this instance will move. `collision` for moving with collisions in mind (movePos). `position` for moving with no collisions in mind (setPos). `string` \r\n - `pOptions.pixelsPerSecond`: The speed in pixels this instance moves per second. This setting only works when `pOptions.mode` is set to `position`.`number` \r\n - `pOptions.exclude`: An array of diobs that will be excluded when calculating the path `array` \r\n - `pOptions.minDistance`: The minimum distance this pathway system will use to calculate if you have reached the (next) node. `number` \r\n - `pOptions.maxStuckCounter`: The maximum amount of ticks of pInstance being in the same position as the last tick before its considered stuck. `number` \r\n\t- `pOptions.onPathComplete`: Callback for when pInstance makes it to the `function` \r\n\t- `pOptions.onPathFound`: Callback for when pInstance finds a path. The first parameter is the path that was generated. `function` \r\n\t- `pOptions.onPathStuck`: Callback for when pInstance gets stuck on a path. `function` \r\n\t- `pOptions.onPathNotFound`: Callback for when no path is found. `function` \r\n - `desc`: Moves `pInstance` to the provided coordinates by walking along a generated path free of obstacles.\r\n\r\n### Pathway.end(pInstance) \r\n - `pInstance`: The instance to end the pathfinding on.\r\n - `desc`: Cancels the current path if there is one and stops this instance from moving \r\n \r\n### Pathway.setTileSize(pTileSize)\r\n - `pTileSize`: The size of the tileset. `number` | `object` `pTileSize.width` and `pTileSize.height` when using an object. \r\n - `desc`: Sets the tile size internally for this pathway system to reference. This is how pathway will determine node positions.\r\n\r\nThis module expects the `VYLO` variable to be exposed globally.", + "content": "# Pathway Module\r\n\r\nThe Pathway module smoothly integrates pathfinding into the Vylocity Game Engine, allowing map instances to navigate environments more efficiently.\r\n\r\nUses [easystar](https://github.com/prettymuchbryce/easystarjs) under the hood.\r\n\r\n## Installation\r\n\r\n### ES Module\r\n\r\n```js\r\nimport { Pathway } from './pathway.mjs';\r\n```\r\n\r\n### IIFE (Immediately Invoked Function Expression)\r\n\r\n```js\r\n;\r\n// ...\r\nwindow.PathwayBundle.Pathway;\r\n```\r\n\r\n### CommonJS (CJS) Module\r\n\r\n```js\r\nconst { Pathway } = require('./pathway.cjs.js');\r\n```\r\n\r\n## API\r\n\r\n### MapInstance Properties\r\n\r\n#### `pathwayWeight`\r\n\r\n- **Type**: `number`\r\n- **Description**: Represents the importance of an element in pathfinding. Higher values indicate that paths should avoid this element. A weight of `0` means it's easy to traverse, while `-1` indicates an impassable obstacle. This property is optional.\r\n\r\n### Methods\r\n\r\n#### `Pathway.to(pInstance, pDestination, pOptions)`\r\n\r\n- **Parameters**:\r\n - `pInstance`: The moving element.\r\n - `pDestination.x`: The destination's x-coordinate.\r\n - `pDestination.y`: The destination's y-coordinate.\r\n - `pOptions.diagonal`: Whether diagonal movement is allowed.\r\n - `pOptions.mode`: Movement style (`collision` considers obstacles, `position` ignores obstacles).\r\n - `pOptions.pixelsPerSecond`: Speed of movement in pixels per second (applies only in `position` mode).\r\n - `pOptions.exclude`: An array of obstacles to avoid when planning the path.\r\n - `pOptions.minDistance`: Minimum distance to determine node proximity.\r\n - `pOptions.maxStuckCounter`: Maximum consecutive ticks without movement before considering the instance stuck.\r\n - `pOptions.onPathComplete`: Callback executed when the element reaches its destination.\r\n - `pOptions.onPathFound`: Callback executed when a viable path is found.\r\n - `pOptions.onPathStuck`: Callback executed when an element gets stuck on its path.\r\n - `pOptions.onPathNotFound`: Callback executed when no path is found.\r\n- **Description**: Guides an element to a destination along a clear path, avoiding obstacles as necessary.\r\n\r\n#### `Pathway.end(pInstance)`\r\n\r\n- **Parameters**:\r\n - `pInstance`: The element to stop pathfinding for.\r\n- **Description**: Halts the current path and stops the element's movement.\r\n\r\n#### `Pathway.setTileSize(pTileSize)`\r\n\r\n- **Parameters**:\r\n - `pTileSize`: The dimensions of the tileset.\r\n- **Description**: Sets the size of tiles for the pathway system to reference.\r\n\r\n### Global Dependency\r\n\r\nPathway relies on the `VYLO` variable being globally accessible.\r\n", "longname": "C:\\Users\\jared\\Documents\\Github\\Pathway\\README.md", "name": "./README.md", "static": true, diff --git a/docs/source.html b/docs/source.html index b191531..377a4d0 100644 --- a/docs/source.html +++ b/docs/source.html @@ -55,9 +55,9 @@ Pathway PathwaySingleton - - 31169 byte + 31212 byte 772 - 2024-04-04 22:50:57 (UTC) + 2024-04-05 14:03:11 (UTC) diff --git a/src/pathway.mjs b/src/pathway.mjs index 64547e4..6add158 100644 --- a/src/pathway.mjs +++ b/src/pathway.mjs @@ -134,7 +134,7 @@ class PathwaySingleton { */ to(pInstance, pDestination, pOptions) { if (typeof(pInstance) === 'object') { - // If this instance is not on a mapname. + // If this instance is not on a map. if (!pInstance.mapName) { this.logger.prefix('Pathway-Module').error('Cannot generate a path. pInstance is not on a map.'); return; @@ -192,7 +192,7 @@ class PathwaySingleton { } /** - * An exclusion list of tiles. + * An exclusion list of instances and tiles. * @type {Array} */ let excludeList = []; @@ -245,13 +245,13 @@ class PathwaySingleton { instanceData.events.onPathStuck = pOptions.onPathStuck; } - // Copy the contents of the exclude array to the exclude list we manage. + // Copy the contents of the exclude array to the exclude array we manage. if (Array.isArray(pOptions.exclude)) { excludeList.push(...pOptions.exclude); } } - // We add the instance to the exclude list so that it is excluded. + // We add the instance to the exclude array so that it is excluded. if (!excludeList.includes(pInstance)) { excludeList.push(pInstance); } @@ -281,11 +281,12 @@ class PathwaySingleton { // Get the end nodes position so we can get the destinationTile const endNodeX = Utils.clamp(Utils.clamp(pDestination.x, 0, mapSize.x) * this.tileSize.width + this.tileSize.width / 2, 0, mapSize.xPos - this.tileSize.width); const endNodeY = Utils.clamp(Utils.clamp(pDestination.y, 0, mapSize.y) * this.tileSize.height + this.tileSize.height / 2, 0, mapSize.yPos - this.tileSize.height); - // Get the end time tile + // Get the end tile const destinationTile = VYLO.Map.getLocByPos(endNodeX, endNodeY, pInstance.mapName); // Make sure these have resolved to actual tiles. if (originTile && destinationTile) { + // Check if the origin and end tile are accessible if (this.isTileAccessible(originTile, excludeList) && this.isTileAccessible(destinationTile, excludeList)) { // Get the start node from the originTile let startNode = this.tileToNode(originTile); @@ -297,12 +298,11 @@ class PathwaySingleton { this.getPath(pInstance, { x: startNode.x, y: startNode.y }, { x: endNode.x, y: endNode.y }); // If the origin tile or end tile is not accessible to be walked on then return no path found. } else { - // So fire the path not found event. + // Fire the path not found event. if (typeof(instanceData.events.onPathNotFound) === 'function') { instanceData.events.onPathNotFound(); } this.end(pInstance); - return; } } else { this.logger.prefix('Pathway-Module').error('Origin tile or destination tile cannot be found.'); @@ -365,7 +365,7 @@ class PathwaySingleton { instanceData.stuckCounter = 0; // Reset the max stuck counter instanceData.maxStuckCounter = PathwaySingleton.MAX_STUCK_COUNTER; - // Empty path(s) array + // Empty path array instanceData.path.length = 0; // Reset it to not being moved. instanceData.moving = false;