Package com.csse3200.game.entities.spawn
Interface EntitySpawner
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for creating or spawning entities.
This allows entity creation logic to be passed around as method reference.
This way, different factories can provide their own EntitySpawner implementations.
-
Method Summary
-
Method Details
-
spawn
Spawns and returns a newEntity.- Returns:
- a newly created entity
-