Class BuffProcessor<T extends Buff>

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.BuffProcessor<T>
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, ScheduledUpdater.Updatable
Direct Known Subclasses:
ArmorBuffProcessor, BlizzardBuffProcessor, BonusCoinsBuffProcessor, BonusXpBuffProcessor, BurnBuffProcessor, ChainReactionBuffProcessor, DeathExplosionBuffProcessor, FreezingBuffProcessor, PoisonBuffProcessor, RegenerationBuffProcessor, SnowballBuffProcessor, StunBuffProcessor, ThrowBackBuffProcessor

public abstract class BuffProcessor<T extends Buff> extends Registrable implements ScheduledUpdater.Updatable
  • Field Details

  • Constructor Details

    • BuffProcessor

      public BuffProcessor()
  • 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
      Overrides:
      write in class Registrable
    • read

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

      public float getUpdateInterval()
      Получить минимальное время между вызовами update()
      Returns:
      интервал в секундах
    • getBuffCountStatistic

      public StatisticsType getBuffCountStatistic()
    • scheduledUpdate

      public void scheduledUpdate(float deltaTime)
      Specified by:
      scheduledUpdate in interface ScheduledUpdater.Updatable
    • scheduledUpdatableSetId

      public final void scheduledUpdatableSetId(int id)
      Specified by:
      scheduledUpdatableSetId in interface ScheduledUpdater.Updatable
    • scheduledUpdatableGetId

      public int scheduledUpdatableGetId()
      Specified by:
      scheduledUpdatableGetId in interface ScheduledUpdater.Updatable
    • addBuff

      public boolean addBuff(Enemy enemy, T buff)
      Returns:
      true, если добавлено САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSE
    • removeBuff

      public void removeBuff(Enemy enemy, BuffType buffType, int index)
      САМ ОСВОБОЖДАЕТ БАФФ В ПУЛ, ЕСЛИ FALSE
    • removeBuff

      public void removeBuff(Enemy enemy, T buff)
    • removeAllBuffs

      public void removeAllBuffs(Enemy enemy, BuffType buffType)