Class PowerBonuses

java.lang.Object
com.prineside.tdi2.components.PowerBonuses
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class PowerBonuses extends Object implements com.esotericsoftware.kryo.KryoSerializable
Applied to towers Lists all the additional PWR sources (Power modifier / Basic ult)
  • Field Details

    • SOURCE_BASIC_SPECIAL_ABILITY

      public static final int SOURCE_BASIC_SPECIAL_ABILITY
      See Also:
  • Constructor Details

    • PowerBonuses

      public PowerBonuses()
  • 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
    • getEffects

      @Null public PowerBonuses.Entry[] getEffects(int entityId)
    • getBonuses

      @Null public PowerBonuses.Entry[] getBonuses(int fromEntity)
    • hasBonuses

      public boolean hasBonuses(int fromEntity)
    • hasBonuses

      public boolean hasBonuses(int fromEntity, int sourceId)
    • removeBonus

      public boolean removeBonus(int fromEntity)
    • removeBonus

      public boolean removeBonus(int fromEntity, int sourceId)
    • addOrReplaceBonus

      public boolean addOrReplaceBonus(int fromEntity, int sourceId, float delta)
    • getBonusesSum

      public float getBonusesSum()