Class BasicBulletType

All Implemented Interfaces:
Cloneable, Comparable<Content>
Direct Known Subclasses:
ArtilleryBulletType, BombBulletType, EmpBulletType, FlakBulletType, LaserBoltBulletType, MissileBulletType

public class BasicBulletType extends BulletType
An extended BulletType for most ammo-based bullets shot from turrets and units. Draws 1-2 sprites that can spin or shrink.
  • Field Details

    • backColor

      public Color backColor
    • frontColor

      public Color frontColor
    • mixColorFrom

      public Color mixColorFrom
    • mixColorTo

      public Color mixColorTo
    • width

      public float width
    • height

      public float height
    • shrinkX

      public float shrinkX
    • shrinkY

      public float shrinkY
    • shrinkInterp

      public Interp shrinkInterp
    • spin

      public float spin
    • rotationOffset

      public float rotationOffset
    • sprite

      public String sprite
    • backSprite

      @Nullable public String backSprite
    • backRegion

      public TextureRegion backRegion
    • frontRegion

      public TextureRegion frontRegion
  • Constructor Details

    • BasicBulletType

      public BasicBulletType(float speed, float damage, String bulletSprite)
    • BasicBulletType

      public BasicBulletType(float speed, float damage)
    • BasicBulletType

      public BasicBulletType()
      For mods.
  • 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