Uses of Class
squidpony.squidai.DijkstraMap
Package | Description |
---|---|
squidpony.squidai |
Tools for finding paths, optimizing targets for area-of-effect (AOE) abilities, and evaluating influence on a grid.
|
-
Uses of DijkstraMap in squidpony.squidai
Methods in squidpony.squidai that return DijkstraMap Modifier and Type Method Description DijkstraMap
DijkstraMap. initialize(char[][] level)
Used to initialize or re-initialize a DijkstraMap that needs a new physicalMap because it either wasn't given one when it was constructed, or because the contents of the terrain have changed permanently (not if a creature moved; for that you pass the positions of creatures that block paths to scan() or findPath() ).DijkstraMap
DijkstraMap. initialize(char[][] level, char alternateWall)
Used to initialize or re-initialize a DijkstraMap that needs a new PhysicalMap because it either wasn't given one when it was constructed, or because the contents of the terrain have changed permanently (not if a creature moved; for that you pass the positions of creatures that block paths to scan() or findPath() ).DijkstraMap
DijkstraMap. initialize(double[][] level)
Used to initialize or re-initialize a DijkstraMap that needs a new physicalMap because it either wasn't given one when it was constructed, or because the contents of the terrain have changed permanently (not if a creature moved; for that you pass the positions of creatures that block paths to scan() or findPath() ).DijkstraMap
DijkstraMap. initializeCost(char[][] level)
Used to initialize the entry cost modifiers for games that require variable costs to enter squares.DijkstraMap
DijkstraMap. initializeCost(char[][] level, char alternateWall)
Used to initialize the entry cost modifiers for games that require variable costs to enter squares.DijkstraMap
DijkstraMap. initializeCost(double[][] costs)
Used to initialize the entry cost modifiers for games that require variable costs to enter squares.Constructors in squidpony.squidai with parameters of type DijkstraMap Constructor Description WaypointPathfinder(char[][] map, DijkstraMap dijkstra, IRNG rng)
Calculates and stores the doors and doors-like connections ("chokepoints") on the given map as waypoints.