Packagecom.lookbackon.ds
Interfacepublic interface IAStar
Implementors AStarNodeBoard

Holds a two-dimensional array of Nodes methods to manipulate them, start node and end node for finding a path. Notice: this class code base based on some open source code.



Public Properties
 PropertyDefined By
  endNode : AStarNode
[read-only] Returns the end node.
IAStar
  startNode : AStarNode
[read-only] Returns the start node.
IAStar
Public Methods
 MethodDefined By
  
getNode(x:int, y:int):AStarNode
Returns the node at the given coords.
IAStar
  
setEndNode(x:int, y:int):void
Sets the node at the given coords as the end node.
IAStar
  
setStartNode(x:int, y:int):void
Sets the node at the given coords as the start node.
IAStar
  
setWalkable(x:int, y:int, value:Boolean):void
Sets the node at the given coords as walkable or not.
IAStar
Property Detail
endNodeproperty
endNode:AStarNode  [read-only]

Returns the end node.


Implementation
    public function get endNode():AStarNode
startNodeproperty 
startNode:AStarNode  [read-only]

Returns the start node.


Implementation
    public function get startNode():AStarNode
Method Detail
getNode()method
public function getNode(x:int, y:int):AStarNode

Returns the node at the given coords.

Parameters

x:int — The x coord.
 
y:int — The y coord.

Returns
AStarNode
setEndNode()method 
public function setEndNode(x:int, y:int):void

Sets the node at the given coords as the end node.

Parameters

x:int — The x coord.
 
y:int — The y coord.

setStartNode()method 
public function setStartNode(x:int, y:int):void

Sets the node at the given coords as the start node.

Parameters

x:int — The x coord.
 
y:int — The y coord.

setWalkable()method 
public function setWalkable(x:int, y:int, value:Boolean):void

Sets the node at the given coords as walkable or not.

Parameters

x:int — The x coord.
 
y:int — The y coord.
 
value:Boolean