Class ContinuousBulletType

java.lang.Object
mindustry.ctype.Content
mindustry.entities.bullet.BulletType
mindustry.entities.bullet.ContinuousBulletType
All Implemented Interfaces:
Cloneable, Comparable<Content>
Direct Known Subclasses:
ContinuousFlameBulletType, ContinuousLaserBulletType

public class ContinuousBulletType extends BulletType
Basic continuous (line) bullet type that does not draw itself. Essentially abstract.
  • Field Details

    • length

      public float length
    • shake

      public float shake
    • damageInterval

      public float damageInterval
    • largeHit

      public boolean largeHit
    • continuous

      public boolean continuous
  • Constructor Details

    • ContinuousBulletType

      public ContinuousBulletType()
  • Method Details

    • continuousDamage

      public float continuousDamage()
      Overrides:
      continuousDamage in class BulletType
      Returns:
      continuous damage in damage/sec, or -1 if not continuous.
    • estimateDPS

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

      protected float calculateRange()
      Overrides:
      calculateRange in class BulletType
      Returns:
      maximum distance the bullet this bullet type has can travel.
    • 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
    • init

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

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

      public void applyDamage(mindustry.gen.Bullet b)
    • currentLength

      public float currentLength(mindustry.gen.Bullet b)