Class WaveClass

java.lang.Object
com.csse3200.game.components.tasks.waves.WaveClass

public class WaveClass extends Object
  • Constructor Details

    • WaveClass

      public WaveClass(HashMap<String,int[]> entities)
      Constructor for the WaveClass
      Parameters:
      entities - : HashMap of entities and the quantity of them to be spawned in this wave
  • Method Details

    • entitiesToWave

      public List<Tuple> entitiesToWave()
      Get the entities that are part of this wave and randomise the order they are spawned
      Returns:
      mobs for the wave in form of (mob name, mob health)
    • getSize

      public int getSize()
      Gets the current number of entities spawned in the wave
      Returns:
      size of the current wave (number of entities)
    • getMobs

      public List<Tuple> getMobs()
      Gets the current entities that have spawned in the wave
      Returns:
      list of mobs in the current wave
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getEntities

      public HashMap<String,int[]> getEntities()