public static var count: Number
private var inOpen: Boolean
private var closed: Boolean
private var parent: Tile
private static var ids: Number
private var gUp: Boolean
private var h: Number
private var g: Number
private var cost: Number
public var x: Number
public var y: Number
public var id: Number
public var walkable: Boolean
Constructor.
public function Tile( xp: Number, yp: Number )
Set the ability to walk on this the tile
public function setWalkable( b: Boolean ):Void
Set this tile to be in the open-array.
public function setOpen():Void
Set this tile to be in the closed-array.
public function setClosed():Void
returns whether or not the tile is in the closed list.
public function isClosed():Boolean
returns whether or not the tile is in the open list.
public function getOpen():Boolean
sets the parent of the node
public function setParent( t: Tile ):Void
Returns the parent of the node
public function getParent():Tile
sets the H for the node.
public function setH( ex: Number, ey: Number ):Void
Sets the G (cost) for the tile
public function setG( _g: Number ):Void
Returns the F of the tile (F = G + H);
public function getF():Number
Returns the H of the tile
public function getH():Number
Set the cost for the tile
public function setCost( _cost: Number ):Void
get the G (cost) of the tile
public function getG():Number
Returns the cost for the tile
public function getCost():Number
Toggles the ability to walk on the tile
public function toggleWalkable():Void
This method resets the tile for further use
public function reset():Void
This method tells the node that its being accessed diagonally
public function costUp():Void
This method tells the node that its NOT being accessed diagonally
public function costDown():Void
This method is called by A*.
public function notice():Void