Class MapItem
java.lang.Object
edu.uoc.pacman.model.entities.Entity
edu.uoc.pacman.model.entities.items.MapItem
Abstract class that represents any labyrinth/map item.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.uoc.pacman.model.entities.Entity
getPosition, getSprite, isPathable, setPathable, setPosition, setSprite
-
Constructor Details
-
MapItem
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.
-