Class ShootBarrel

java.lang.Object
mindustry.entities.pattern.ShootPattern
mindustry.entities.pattern.ShootBarrel
All Implemented Interfaces:
Cloneable

public class ShootBarrel extends ShootPattern
  • Field Details

    • barrels

      public float[] barrels
      barrels [in x, y, rotation] format.
    • barrelOffset

      public int barrelOffset
      offset of barrel to start on
  • Constructor Details

    • ShootBarrel

      public ShootBarrel()
  • Method Details

    • flip

      public void flip()
      Description copied from class: ShootPattern
      Subclasses should override this to flip its sides.
      Overrides:
      flip in class ShootPattern
    • shoot

      public void shoot(int totalShots, ShootPattern.BulletHandler handler, @Nullable Runnable barrelIncrementer)
      Description copied from class: ShootPattern
      Called on a single "trigger pull". This function should call the handler with any bullets that result.
      Overrides:
      shoot in class ShootPattern