Class ShrapnelBulletType

All Implemented Interfaces:
Cloneable, Comparable<Content>

public class ShrapnelBulletType extends BulletType
  • Field Details

    • length

      public float length
    • width

      public float width
    • fromColor

      public Color fromColor
    • toColor

      public Color toColor
    • hitLarge

      public boolean hitLarge
    • serrations

      public int serrations
    • serrationLenScl

      public float serrationLenScl
    • serrationWidth

      public float serrationWidth
    • serrationSpacing

      public float serrationSpacing
    • serrationSpaceOffset

      public float serrationSpaceOffset
    • serrationFadeOffset

      public float serrationFadeOffset
  • Constructor Details

    • ShrapnelBulletType

      public ShrapnelBulletType()
  • Method Details

    • init

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

      public void init()
      Description copied from class: Content
      Called after all content and modules are created. Do not use to load regions or texture data!
      Overrides:
      init in class BulletType
    • calculateRange

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

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