Packagecom.lookbackon.ds
Classpublic class AStarNodeBoard
InheritanceAStarNodeBoard Inheritance Object
Implements IAStar

It is a similar of bitboard struct,and every cell representation a star node.

See also

http://www.fzibi.com/cchess/bitboards.htm
http://en.wikipedia.org/wiki/Asearch_algorithm


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


Implementation
    public function get column():int
    public function set column(value:int):void
endNodeproperty 
endNode:AStarNode  [read-only]


Implementation
    public function get endNode():AStarNode
rowproperty 
row:int


Implementation
    public function get row():int
    public function set row(value:int):void
startNodeproperty 
startNode:AStarNode  [read-only]


Implementation
    public function get startNode():AStarNode
Constructor Detail
AStarNodeBoard()Constructor
public function AStarNodeBoard(column:int, row:int)



Parameters
column:int
 
row:int
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

toString()method 
public function toString():String

Returns
String