Interface EntitiesFactory

All Known Implementing Classes:
SunsFactory, ZombiesFactory

public interface EntitiesFactory
Factory Pattern for auomatically generated Entities, such as Zombies and Suns.
  • Method Details

    • createEntity

      Entities createEntity()
      Generates an Entity.
      Returns:
      the generated entity.
    • createEntities

      Set<Entities> createEntities(int n)
      Generates a Set of Entities. Calls createEntity() n times.
      Parameters:
      n - number of entities to generate.
      Returns:
      the generated set of entities.