Package horizons :: Package util :: Package pathfinding :: Module pather :: Class StaticPather
[hide private]
[frames] | no frames]

Class StaticPather

source code

Misc pathing routines not depending on units. Does not use AbstractPather Interface

Class Methods [hide private]
 
get_path_on_roads(cls, island, source, destination)
Returns a path that runs only on roads.
source code
Method Details [hide private]

get_path_on_roads(cls, island, source, destination)
Class Method

source code 

Returns a path that runs only on roads.

Parameters:
  • island - island to search path on
  • source, destination - Point or anything supported by FindPath
Returns:
list of tuples or None in case no path is found