Interface Sun

All Superinterfaces:
Entities
All Known Implementing Classes:
SunImpl

public interface Sun extends Entities
Interface that models a Sun Entity and provides methods to interact with the entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    It kills the sun.
    void
    It changes the sun position in the y axis towards the bottom.

    Methods inherited from interface pvzclone.model.api.Entities

    getEntityName, getPosition, isAlive
  • Method Details

    • kill

      void kill()
      It kills the sun.
    • getPoints

      int getPoints()
      Returns:
      the points obtained if the sun is touched (killed).
    • moveDown

      void moveDown()
      It changes the sun position in the y axis towards the bottom.