C# Class AStarNode2D, tutorials

Inheritance: AStarNode
ファイルを表示 Open project: poeticmatter/tutorials Class Usage Examples

Public Properties

Property Type Description
allowDiagonal bool

Public Methods

Method Description
AStarNode2D ( AStarCost, aStarCost, float cost, int x, int y, AStarNode, goalNode = null, AStarNode, parent = null ) : System.Collections
ToString ( ) : string
calculateGoalEstimate ( ) : float
getSuccessors ( ) : List
isSameState ( AStarNode, node ) : bool
printNodeInfo ( ) : void

Private Methods

Method Description
addSuccessor ( List successors, int x, int y ) : void

Method Details

AStarNode2D() public method

public AStarNode2D ( AStarCost, aStarCost, float cost, int x, int y, AStarNode, goalNode = null, AStarNode, parent = null ) : System.Collections
aStarCost AStarCost,
cost float
x int
y int
goalNode AStarNode,
parent AStarNode,
return System.Collections

ToString() public method

public ToString ( ) : string
return string

calculateGoalEstimate() public method

public calculateGoalEstimate ( ) : float
return float

getSuccessors() public method

public getSuccessors ( ) : List
return List

isSameState() public method

public isSameState ( AStarNode, node ) : bool
node AStarNode,
return bool

printNodeInfo() public method

public printNodeInfo ( ) : void
return void

Property Details

allowDiagonal public_oe property

public bool allowDiagonal
return bool