Class RailBulletType

All Implemented Interfaces:
Cloneable, Comparable<Content>

public class RailBulletType extends BulletType
  • Field Details

    • pierceEffect

      public Effect pierceEffect
    • pointEffect

      public Effect pointEffect
    • lineEffect

      public Effect lineEffect
    • endEffect

      public Effect endEffect
    • length

      public float length
    • pointEffectSpace

      public float pointEffectSpace
  • Constructor Details

    • RailBulletType

      public RailBulletType()
  • Method Details

    • calculateRange

      protected float calculateRange()
      Overrides:
      calculateRange in class BulletType
      Returns:
      maximum distance the bullet this bullet type has can travel.
    • handlePierce

      public void handlePierce(mindustry.gen.Bullet b, float initialHealth, float x, float y)
      Overrides:
      handlePierce in class BulletType
    • init

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

      public boolean testCollision(mindustry.gen.Bullet bullet, mindustry.gen.Building tile)
      Overrides:
      testCollision in class BulletType
    • hitTile

      public void hitTile(mindustry.gen.Bullet b, mindustry.gen.Building build, float x, float y, float initialHealth, boolean direct)
      Description copied from class: BulletType
      If direct is false, this is an indirect hit and the tile was already damaged. TODO this is a mess.
      Overrides:
      hitTile in class BulletType