Package edu.uky.ai.path

# Class Sprite

java.lang.Object
edu.uky.ai.path.Location
edu.uky.ai.path.Sprite

    public class Sprite
    extends Location

A sprite is a thing located in a 2D space that can move.

Author:
  Stephen G. Ware

- ## Field Summary

  ### Fields inherited from class edu.uky.ai.path.Location

  `map, solid, x, y`

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `Sprite​(Map map, int x, int y)` | Creates a new sprite at a given location.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `void` | `move​(int dx, int dy)` | Moves a sprite to a new location.

  ### Methods inherited from class edu.uky.ai.path.Location

  `equals, getX, getY, hashCode, neighbors, toString`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Sprite

    public Sprite​(Map map, int x, int y)
    Creates a new sprite at a given location.
    Parameters:
      `map` - the map on which the sprite will appear
      `x` - the horizontal location of the sprite
      `y` - the vertical location of the sprite

- ## Method Details

  - ### move

    public void move​(int dx, int dy)
    Moves a sprite to a new location.
    Parameters:
      `dx` - the change in the horizontal position
      `dy` - the change in the vertical position