C# Class HPASharp.ConcreteMap

Inheritance: IMap
Exibir arquivo Open project: Rydra/HierarchicalPathfinder Class Usage Examples

Public Methods

Method Description
CanJump ( Position p1, Position p2 ) : bool

Tells whether we can move from p1 to p2 in line. Bear in mind this function does not consider intermediate points (it is assumed you can jump between intermediate points)

ConcreteMap ( TileType tileType, int width, int height, IPassability passability ) : System
GetHeuristic ( int startNodeId, int targetNodeId ) : int
GetNeighbours ( int nodeId ) : IEnumerable
GetNodeIdFromPos ( int x, int y ) : int
PrintFormatted ( ) : void
PrintFormatted ( List path ) : void
Slice ( int horizOrigin, int vertOrigin, int width, int height, IPassability passability ) : ConcreteMap

Private Methods

Method Description
GetCharVector ( ) : List
Init ( TileType tileType, int width, int height ) : void
PrintFormatted ( List chars ) : void

Method Details

CanJump() public method

Tells whether we can move from p1 to p2 in line. Bear in mind this function does not consider intermediate points (it is assumed you can jump between intermediate points)
public CanJump ( Position p1, Position p2 ) : bool
p1 Position
p2 Position
return bool

ConcreteMap() public method

public ConcreteMap ( TileType tileType, int width, int height, IPassability passability ) : System
tileType TileType
width int
height int
passability IPassability
return System

GetHeuristic() public method

public GetHeuristic ( int startNodeId, int targetNodeId ) : int
startNodeId int
targetNodeId int
return int

GetNeighbours() public method

public GetNeighbours ( int nodeId ) : IEnumerable
nodeId int
return IEnumerable

GetNodeIdFromPos() public method

public GetNodeIdFromPos ( int x, int y ) : int
x int
y int
return int

PrintFormatted() public method

public PrintFormatted ( ) : void
return void

PrintFormatted() public method

public PrintFormatted ( List path ) : void
path List
return void

Slice() public method

public Slice ( int horizOrigin, int vertOrigin, int width, int height, IPassability passability ) : ConcreteMap
horizOrigin int
vertOrigin int
width int
height int
passability IPassability
return ConcreteMap