Class SectorDamage

java.lang.Object
mindustry.maps.SectorDamage

public class SectorDamage extends Object
  • Field Details

  • Constructor Details

    • SectorDamage

      public SectorDamage()
  • Method Details

    • getDamage

      public static float getDamage(SectorInfo info)
      Returns:
      calculated capture progress of the enemy
    • getDamage

      public static float getDamage(SectorInfo info, int wavesPassed)
      Returns:
      calculated capture progress of the enemy
    • getWavesSurvived

      public static int getWavesSurvived(SectorInfo info)
      Returns:
      maximum waves survived, up to maxRetWave.
    • getDamage

      public static float getDamage(SectorInfo info, int wavesPassed, boolean retWave)
      Returns:
      calculated capture progress of the enemy if retWave if false, otherwise return the maximum waves survived as int. if it survives all the waves, returns maxRetWave.
    • applyCalculatedDamage

      public static void applyCalculatedDamage()
      Applies wave damage based on sector parameters.
    • writeParameters

      public static void writeParameters(SectorInfo info)
      Calculates damage simulation parameters before a game is saved.
    • apply

      public static void apply(float fraction)