Class MetaphorBossWaveProcessor

java.lang.Object
com.prineside.tdi2.waves.processors.MetaphorBossWaveProcessor
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, Listener<EnemySpawn>, WaveProcessor

public class MetaphorBossWaveProcessor extends Object implements WaveProcessor, com.esotericsoftware.kryo.KryoSerializable, Listener<EnemySpawn>
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • generateEnemyGroups

      public com.badlogic.gdx.utils.Array<EnemyGroup> generateEnemyGroups(int waveNumber, int difficulty)
      Specified by:
      generateEnemyGroups in interface WaveProcessor
    • setup

      public Wave setup(GameSystemProvider S, int waveNumber, int difficulty)
      Description copied from interface: WaveProcessor
      Создает волну, в которой является процессором. Здесь можно начать слушать события систем.
      Specified by:
      setup in interface WaveProcessor
    • getNextWaveDelayMultiplier

      public float getNextWaveDelayMultiplier()
      Specified by:
      getNextWaveDelayMultiplier in interface WaveProcessor
      Returns:
      множитель времени до следующей после босса волны (чем медленнее идет босс, тем больше это значение должно быть)
    • update

      public void update(float deltaTime)
      Description copied from interface: WaveProcessor
      Вызывается, если сейчас идет волна с этим процессором в WaveSystem.update()
      Specified by:
      update in interface WaveProcessor
    • isDone

      public boolean isDone()
      Specified by:
      isDone in interface WaveProcessor
      Returns:
      true, когда работа закончена и не требуется вызывать update()
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float deltaTime)
      Specified by:
      draw in interface WaveProcessor
    • handleEvent

      public void handleEvent(EnemySpawn event)
      Specified by:
      handleEvent in interface Listener<EnemySpawn>