Class LaserBulletType

All Implemented Interfaces:
Cloneable, Comparable<Content>

public class LaserBulletType extends BulletType
  • Field Details

    • colors

      public Color[] colors
    • laserEffect

      public Effect laserEffect
    • length

      public float length
    • width

      public float width
    • lengthFalloff

      public float lengthFalloff
    • sideLength

      public float sideLength
    • sideWidth

      public float sideWidth
    • sideAngle

      public float sideAngle
    • lightningSpacing

      public float lightningSpacing
    • lightningDelay

      public float lightningDelay
    • lightningAngleRand

      public float lightningAngleRand
    • largeHit

      public boolean largeHit
  • Constructor Details

    • LaserBulletType

      public LaserBulletType(float damage)
    • LaserBulletType

      public LaserBulletType()
  • Method Details

    • estimateDPS

      public float estimateDPS()
      Overrides:
      estimateDPS in class BulletType
      Returns:
      estimated damage per shot. this can be very inaccurate.
    • 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.
    • init

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

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

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