Package pvzclone.model.impl
Class SunImpl
java.lang.Object
pvzclone.model.impl.SunImpl
Implementation of the Sun interface.
-
Constructor Details
-
SunImpl
- Parameters:
position
- starting position of the sun.speedYAxis
- speed of movement.
-
-
Method Details
-
getPosition
- Specified by:
getPosition
in interfaceEntities
- Returns:
- position of the entity.
-
isAlive
public boolean isAlive() -
getEntityName
- Specified by:
getEntityName
in interfaceEntities
- Returns:
- name of the entity.
-
kill
public void kill()Description copied from interface:Sun
It kills the sun. -
getPoints
public int getPoints() -
moveDown
public void moveDown()Description copied from interface:Sun
It changes the sun position in the y axis towards the bottom.
-