C# Class game.AStarPathfinding

显示文件 Open project: balaam/tiny_rogue Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

getNextStep() public static method

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

getPath() public static method

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

stepAlong() public static method

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