Constructors
constructor
- new GridNode(x: number, y: number, weight: number): GridNode
-
Parameters
-
x: number
-
y: number
-
weight: number
Properties
closed
closed: boolean = false
visited
visited: boolean = false
Readonly weight
weight: number
Methods
getCost
-
Parameters
Returns number