Class FireflySpawner

java.lang.Object
com.csse3200.game.entities.FireflySpawner

public class FireflySpawner extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
    The amount of fireflies to spawn in
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the spawner, making this will call startSpawning at nightTime event triggered by TimeService
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Starts to spawn the fireflies Spawns MAX_FIREFLIES fireflies

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MAX_FIREFLIES

      protected static final int MAX_FIREFLIES
      The 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