create a path node
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object |
|
Methods
-
getDestination ()Grid
-
get destination where player wants to be
Returns:
Type Description Grid -
getFrom ()PathNode
-
get where this path connect with
Returns:
Type Description PathNode -
getLocation ()Grid
-
get this path's grid location
Returns:
Type Description Grid -
getNeighbors ()Array.<PathNode>
-
get neighbors pathNode according to this path's grid location
Returns:
Type Description Array.<PathNode> -
get current step
Returns:
Type Description number -
get navigation weight on this path
Returns:
Type Description number -
set where this path connect with
Name Type Description point
PathNode