# Uses of Class
edu.uky.ai.path.Location

Packages that use Location
Package | Description
--- | ---
edu.uky.ai.path |
edu.uky.ai.path.gui |

- ## Uses of Location in edu.uky.ai.path

  Subclasses of Location in edu.uky.ai.path
  Modifier and Type | Class | Description
  --- | --- | ---
  `class` | `Path` | A path is a sequence of `Location`s that is defined by the last location on the path.
  `class` | `Sprite` | A sprite is a thing located in a 2D space that can move.

  Methods in edu.uky.ai.path that return Location
  Modifier and Type | Method | Description
  --- | --- | ---
  `Location` | Map.`getLocation​(int x, int y)` | Returns the `Location` object at the given coordinates.
  `Location` | Map.`getLocation​(Sprite sprite)` | Returns the `Location` object at the position of a given `Sprite`.

  Methods in edu.uky.ai.path that return types with arguments of type Location
  Modifier and Type | Method | Description
  --- | --- | ---
  `java.util.Iterator<Location>` | Map.`iterator()` |
  `java.lang.Iterable<Location>` | Location.`neighbors()` | Returns all locations around this object which are accessible by one step north, south, east, or west.

  Methods in edu.uky.ai.path with parameters of type Location
  Modifier and Type | Method | Description
  --- | --- | ---
  `Path` | Path.`addToPath​(Location last)` | Returns a new path with the given location added to the end.
  `boolean` | Path.`contains​(Location location)` | Tests whether or not this path contains the given location.

  Method parameters in edu.uky.ai.path with type arguments of type Location
  Modifier and Type | Method | Description
  --- | --- | ---
  `void` | Map.`forEach​(java.util.function.Consumer<? super Location> consumer)` |

  Constructors in edu.uky.ai.path with parameters of type Location
  Constructor | Description
  --- | ---
  `Path​(Location first)` | Constructs a path with only a single given location.

- ## Uses of Location in edu.uky.ai.path.gui

  Constructor parameters in edu.uky.ai.path.gui with type arguments of type Location
  Constructor | Description
  --- | ---
  `GridPanel​(Map map, java.util.Set<Location> visited, PriorityQueue<Path> frontier)` | Constructs a new visualization of a path search.