Class MapItem

java.lang.Object
edu.uoc.pacman.model.entities.Entity
edu.uoc.pacman.model.entities.items.MapItem
Direct Known Subclasses:
Dot, Energizer, Life, Path, Wall

public abstract class MapItem extends Entity
Abstract class that represents any labyrinth/map item.
  • Constructor Details

    • MapItem

      protected MapItem(Position position, boolean pathable, Sprite sprite)
      Constructor with arguments.
      Parameters:
      position - Position where the item is.
      pathable - Indicates if the item is pathable or not.
      sprite - Value linked to the file configuration symbol and image.