Class: TerrainNavigator

TerrainNavigator

class of a terrain navigator which provide navigation router

new TerrainNavigator (props)

create a terrain navigator
Name Type Description
props Object

Extends

Methods

getCorrectPath (startNode)Array.<Grid>

get an array of grid that should navigate a correct path, return empty array if there is no correct path
Name Type Description
startNode PathNode array of PathNode
Returns:
Type Description
Array.<Grid> array of Grid

getNavigation (destinationInfo)Array.<Grid> abstract overrides

get navigation from here(current) to here(destination)
Name Type Description
destinationInfo Object
Name Type Description
current TerrainGrid start point of the grid
destination TerrainGrid destination point of the grid
Returns:
Type Description
Array.<Grid> array of Grid