Properties
Private _height
_height: number
Private _neighbors
_neighbors
: Vector2[] = new Array(4)
Private _width
_width: number
defaultWeight
defaultWeight: number = 1
weightedNodeWeight
weightedNodeWeight: number = 5
Static Readonly CARDINAL_DIRS
CARDINAL_
DIRS: Vector2[] = [new Vector2(1, 0),new Vector2(0, -1),new Vector2(-1, 0),new Vector2(0, 1)]
Static Private Readonly COMPASS_DIRS
COMPASS_
DIRS: Vector2[] = [new Vector2(1, 0),new Vector2(1, -1),new Vector2(0, -1),new Vector2(-1, -1),new Vector2(-1, 0),new Vector2(-1, 1),new Vector2(0, 1),new Vector2(1, 1),]
支持一种加权节点的基本网格图