Class SapBulletType

All Implemented Interfaces:
Cloneable, Comparable<Content>

public class SapBulletType extends BulletType
  • Field Details

    • length

      public float length
    • lengthRand

      public float lengthRand
    • sapStrength

      public float sapStrength
    • color

      public arc.graphics.Color color
    • width

      public float width
    • sprite

      public String sprite
    • laserRegion

      public arc.graphics.g2d.TextureRegion laserRegion
    • laserEndRegion

      public arc.graphics.g2d.TextureRegion laserEndRegion
  • Constructor Details

    • SapBulletType

      public SapBulletType()
  • Method Details

    • 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
    • drawLight

      public void drawLight(mindustry.gen.Bullet b)
      Overrides:
      drawLight 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