Package com.csse3200.game.entities
Class FireflySpawner
java.lang.Object
com.csse3200.game.entities.FireflySpawner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
The amount of fireflies to spawn in -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the spawner, making this will call startSpawning at nightTime event triggered by TimeService -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Starts to spawn the fireflies Spawns MAX_FIREFLIES fireflies
-
Field Details
-
MAX_FIREFLIES
protected static final int MAX_FIREFLIESThe amount of fireflies to spawn in- See Also:
-
-
Constructor Details
-
FireflySpawner
public FireflySpawner()Constructor for the spawner, making this will call startSpawning at nightTime event triggered by TimeService
-
-
Method Details
-
startSpawning
protected void startSpawning()Starts to spawn the fireflies Spawns MAX_FIREFLIES fireflies
-