import Pathfinder from 'WTF-Adventure/WTF-Adventure/src/client/js/utils/pathfinder.js'Pathfinder
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
blankGrid: *[] |
|
| public |
grid: * |
|
| public |
height: * |
|
| public |
ignores: *[] |
|
| public |
width: * |
|
Method Summary
| Public Methods | ||
| public |
applyIgnore(ignored: *) |
|
| public |
|
|
| public |
find(grid: *, entity: *, x: *, y: *, incomplete: *): * |
|
| public |
findIncomplete(start: *, end: *): * |
|
| public |
ignoreEntity(entity: *) |
|
| public |
load() |
|
Public Constructors
public constructor() source
Public Members
public blankGrid: *[] source
public grid: * source
public height: * source
public ignores: *[] source
public width: * source
Public Methods
public applyIgnore(ignored: *) source
Params:
| Name | Type | Attribute | Description |
| ignored | * |
public clearIgnores() source
public find(grid: *, entity: *, x: *, y: *, incomplete: *): * source
Params:
| Name | Type | Attribute | Description |
| grid | * | ||
| entity | * | ||
| x | * | ||
| y | * | ||
| incomplete | * |
Return:
| * |
public findIncomplete(start: *, end: *): * source
Params:
| Name | Type | Attribute | Description |
| start | * | ||
| end | * |
Return:
| * |
public ignoreEntity(entity: *) source
Params:
| Name | Type | Attribute | Description |
| entity | * |
Reference
Source
Test
