Node class

A node in grid. This class holds some basic information about a node and custom attributes may be added, depending on the algorithms' needs. @constructor @param {number} x - The x coordinate of the node on the grid. @param {number} y - The y coordinate of the node on the grid. @param {boolean} walkable - Whether this node is walkable.

Constructors

Node(int? x, int? y, [dynamic walkable])

Properties

closed ↔ bool?
getter/setter pair
f ↔ num?
getter/setter pair
g ↔ num?
getter/setter pair
h ↔ num?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
opened ↔ bool?
getter/setter pair
parent ↔ Node?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
walkable ↔ bool?
Whether this node can be walked through. @type boolean
getter/setter pair
x ↔ int?
The x coordinate of the node on the grid. @type number
getter/setter pair
y ↔ int?
The y coordinate of the node on the grid. @type number
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited