Class EntitySpawner<T extends IEntity>

java.lang.Object
de.gurkenlabs.litiengine.environment.EntitySpawner<T>
All Implemented Interfaces:
IEntitySpawner<T>, IUpdateable

public abstract class EntitySpawner<T extends IEntity> extends Object implements IEntitySpawner<T>
TODO: Implement spawn event/listener TODO: Implement additional constructors to enhance the API
  • Constructor Details

    • EntitySpawner

      protected EntitySpawner(int interval, int amount)
    • EntitySpawner

      protected EntitySpawner(List<Spawnpoint> spawnpoints, int interval, int amount)
    • EntitySpawner

      protected EntitySpawner(List<Spawnpoint> spawnpoints, int amount, IEntitySpawner.SpawnMode spawnMode)
    • EntitySpawner

      protected EntitySpawner(List<Spawnpoint> spawnpoints, int interval, int amount, IEntitySpawner.SpawnMode spawnMode)
      Initializes a new instance of the EntitySpawner class.
      Parameters:
      spawnpoints - The spawnpoints from which this instance will choose from when spawning entities.
      interval - The interval in which entities will be spawned.
      amount - The amount of entities to spawn on every spawn event.
      spawnMode - the spawning behaviour
    • EntitySpawner

      protected EntitySpawner(int amount, Function<IEntitySpawner<T>,List<Spawnpoint>> spawnpointCallback)
    • EntitySpawner

      protected EntitySpawner(int interval, int amount, Function<IEntitySpawner<T>,List<Spawnpoint>> spawnpointCallback)
  • Method Details