Class MultiBulletType

All Implemented Interfaces:
Cloneable, Comparable<Content>

public class MultiBulletType extends BulletType
A fake bullet type that spawns multiple sub-bullets when "fired".
  • Field Details

    • bullets

      public BulletType[] bullets
    • repeat

      public int repeat
      Amount of times the bullet array is repeated.
  • Constructor Details

    • MultiBulletType

      public MultiBulletType(BulletType... bullets)
    • MultiBulletType

      public MultiBulletType(int repeat, BulletType... bullets)
    • MultiBulletType

      public MultiBulletType()
  • Method Details

    • estimateDPS

      public float estimateDPS()
      Overrides:
      estimateDPS in class BulletType
      Returns:
      estimated damage per shot. this can be very inaccurate.
    • calculateRange

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

      @Nullable public mindustry.gen.Bullet create(@Nullable mindustry.gen.Entityc owner, @Nullable mindustry.gen.Entityc shooter, Team team, float x, float y, float angle, float damage, float velocityScl, float lifetimeScl, Object data, @Nullable Mover mover, float aimX, float aimY, @Nullable mindustry.gen.Teamc target)
      Overrides:
      create in class BulletType