C# 클래스 game.AStarPathfinding

파일 보기 프로젝트 열기: balaam/tiny_rogue 1 사용 예제들

공개 메소드들

메소드 설명
getNextStep ( int2 start, int2 end, game.View view, EntityManager em ) : int2
getPath ( int2 start, int2 end, game.View view, EntityManager em ) : game.SavedPath
stepAlong ( game.SavedPath path, int2 currentLocation ) : int2

비공개 메소드들

메소드 설명
EstimateDistanceToDestination ( int2 start, int2 destination ) : int
_getPath ( int2 start, int2 end, game.View view, EntityManager em ) : game.Path
getWalkableAdjacentSquares ( int2 start, List locations, game.View view, EntityManager em ) : List
isEqual ( game.Path loc, int2 simple ) : bool
listFind ( List list, int2 search ) : game.Path
minList ( List list ) : game.Path

메소드 상세

getNextStep() 공개 정적인 메소드

public static getNextStep ( int2 start, int2 end, game.View view, EntityManager em ) : int2
start int2
end int2
view game.View
em EntityManager
리턴 int2

getPath() 공개 정적인 메소드

public static getPath ( int2 start, int2 end, game.View view, EntityManager em ) : game.SavedPath
start int2
end int2
view game.View
em EntityManager
리턴 game.SavedPath

stepAlong() 공개 정적인 메소드

public static stepAlong ( game.SavedPath path, int2 currentLocation ) : int2
path game.SavedPath
currentLocation int2
리턴 int2