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:
getPositionin interfaceEntities- Returns:
- position of the entity.
-
isAlive
public boolean isAlive() -
getEntityName
- Specified by:
getEntityNamein interfaceEntities- Returns:
- name of the entity.
-
kill
public void kill()Description copied from interface:SunIt kills the sun. -
getPoints
public int getPoints() -
moveDown
public void moveDown()Description copied from interface:SunIt changes the sun position in the y axis towards the bottom.
-