C# Class game.AStarPathfinding

Afficher le fichier Open project: balaam/tiny_rogue Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

getPath() public static méthode

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

stepAlong() public static méthode

public static stepAlong ( game.SavedPath path, int2 currentLocation ) : int2
path game.SavedPath
currentLocation int2
Résultat int2