Class LightningBulletType

All Implemented Interfaces:
Cloneable, Comparable<Content>

public class LightningBulletType extends BulletType
  • Field Details

    • lightningColor

      public Color lightningColor
    • lightningLength

      public int lightningLength
    • lightningLengthRand

      public int lightningLengthRand
  • Constructor Details

    • LightningBulletType

      public LightningBulletType()
  • Method Details

    • calculateRange

      protected float calculateRange()
      Overrides:
      calculateRange in class BulletType
      Returns:
      maximum distance the bullet this bullet type has can travel.
    • estimateDPS

      public float estimateDPS()
      Overrides:
      estimateDPS in class BulletType
      Returns:
      estimated damage per shot. this can be very inaccurate.
    • draw

      public void draw(mindustry.gen.Bullet b)
      Overrides:
      draw in class BulletType
    • init

      public void init(mindustry.gen.Bullet b)
      Overrides:
      init in class BulletType