Class Clyde
java.lang.Object
edu.uoc.pacman.model.entities.Entity
edu.uoc.pacman.model.entities.characters.Character
edu.uoc.pacman.model.entities.characters.ghosts.Ghost
edu.uoc.pacman.model.entities.characters.ghosts.Clyde
Represents a Clyde (orange) ghost.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
This attribute stores the amount of points that the Inky ghost gives.Fields inherited from class edu.uoc.pacman.model.entities.characters.ghosts.Ghost
chaseBehaviour
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.uoc.pacman.model.entities.characters.ghosts.Ghost
equals, getBehaviour, getScatterPosition, hit, kill, move, reset, setBehaviour, toString
Methods inherited from class edu.uoc.pacman.model.entities.characters.Character
alive, getDirection, getDuration, getLevel, getStartPosition, isDead, setDirection, setDuration, setLevel
Methods inherited from class edu.uoc.pacman.model.entities.Entity
getPosition, getSprite, isPathable, setPathable, setPosition, setSprite
-
Field Details
-
POINTS
private static final int POINTSThis attribute stores the amount of points that the Inky ghost gives.- See Also:
-
-
Constructor Details
-
Clyde
Constructor with arguments.
The value of thescatterPosition
is (-1,LEVEL.HEIGHT).
The value of thesprite
isSprite.CLYDE
.
It assigns tochaseBehaviour
aChaseCoward
object.- Parameters:
startPosition
- The position where the ghost is in the beginning (value given by the level configuration file).direction
- Direction which the ghost faces in the beginning.behaviour
- Current behaviour of the ghost.level
- Reference to the current level object.
-
-
Method Details
-
getPoints
public int getPoints()Getter of the attributePOINTS
.- Returns:
- Returns the value of the attribute
POINTS
. - Since:
- getPoints in interface
Scorable
.
-