Class PointLaserBulletType

java.lang.Object
mindustry.ctype.Content
mindustry.entities.bullet.BulletType
mindustry.entities.bullet.PointLaserBulletType
All Implemented Interfaces:
Cloneable, Comparable<Content>

public class PointLaserBulletType extends BulletType
A continuous bullet type that only damages in a point.
  • Field Details

    • sprite

      public String sprite
    • laser

      public TextureRegion laser
    • laserEnd

      public TextureRegion laserEnd
    • color

      public Color color
    • beamEffect

      public Effect beamEffect
    • beamEffectInterval

      public float beamEffectInterval
    • beamEffectSize

      public float beamEffectSize
    • oscScl

      public float oscScl
    • oscMag

      public float oscMag
    • damageInterval

      public float damageInterval
    • shake

      public float shake
  • Constructor Details

    • PointLaserBulletType

      public PointLaserBulletType()
  • 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.
    • load

      public void load()
      Description copied from class: Content
      Called after all content is created, only on non-headless versions. Use for loading regions or other image data.
      Overrides:
      load in class BulletType
    • draw

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

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

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

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

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