Interface Entities

All Known Subinterfaces:
ActiveEntities, Bullet, Plant, Sun, Zombie
All Known Implementing Classes:
BulletImpl, PlantImpl, SunImpl, ZombieImpl

public interface Entities
This interface models a generic entity. Contains methods common to all entities.
  • Method Details

    • getPosition

      Pair<Integer,Integer> getPosition()
      Returns:
      position of the entity.
    • isAlive

      boolean isAlive()
      Returns:
      life state of the entity.
    • getEntityName

      String getEntityName()
      Returns:
      name of the entity.