Interface DamageAPI


public interface DamageAPI
  • Method Details

    • computeFluxDealt

      float computeFluxDealt(float amount)
      Emp damage.
      Parameters:
      amount - seconds, used when damage is dps.
      Returns:
    • computeDamageDealt

      float computeDamageDealt(float amount)
      Parameters:
      amount - seconds, used when damage is dps.
      Returns:
    • isMissile

      boolean isMissile()
    • setMissile

      void setMissile(boolean isMissile)
    • setStats

      void setStats(MutableShipStatsAPI stats)
    • getStats

    • getDamage

      float getDamage()
    • setDamage

      void setDamage(float amount)
    • isDps

      boolean isDps()
    • getMultiplier

      float getMultiplier()
    • setMultiplier

      void setMultiplier(float multiplier)
    • getType

      DamageType getType()
    • setType

      void setType(DamageType type)
    • getFluxComponent

      float getFluxComponent()
    • setFluxComponent

      void setFluxComponent(float fluxComponent)
    • isSoftFlux

      boolean isSoftFlux()
    • setSoftFlux

      void setSoftFlux(boolean isSoftFlux)
      Only useful for making non-beam weapons deal hard flux damage. For making beam weapons deal hard flux, use setForceHardFlux(true).
      Parameters:
      isSoftFlux -
    • getDpsDuration

      float getDpsDuration()
    • setDpsDuration

      void setDpsDuration(float dpsDuration)
    • clone

      DamageAPI clone()
    • getModifier

      MutableStat getModifier()
    • isForceHardFlux

      boolean isForceHardFlux()
    • setForceHardFlux

      void setForceHardFlux(boolean forceHardFlux)
      Useful to make beam weapons deal hard flux.
      Parameters:
      forceHardFlux -
    • getBaseDamage

      float getBaseDamage()