C# 클래스 HPASharp.ConcreteMap

상속: IMap
파일 보기 프로젝트 열기: Rydra/HierarchicalPathfinder 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetCharVector ( ) : List
Init ( TileType tileType, int width, int height ) : void
PrintFormatted ( List chars ) : void

메소드 상세

CanJump() 공개 메소드

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
리턴 bool

ConcreteMap() 공개 메소드

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

GetHeuristic() 공개 메소드

public GetHeuristic ( int startNodeId, int targetNodeId ) : int
startNodeId int
targetNodeId int
리턴 int

GetNeighbours() 공개 메소드

public GetNeighbours ( int nodeId ) : IEnumerable
nodeId int
리턴 IEnumerable

GetNodeIdFromPos() 공개 메소드

public GetNodeIdFromPos ( int x, int y ) : int
x int
y int
리턴 int

PrintFormatted() 공개 메소드

public PrintFormatted ( ) : void
리턴 void

PrintFormatted() 공개 메소드

public PrintFormatted ( List path ) : void
path List
리턴 void

Slice() 공개 메소드

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