Class RepairBeamWeapon

java.lang.Object
mindustry.type.Weapon
mindustry.type.weapons.RepairBeamWeapon
All Implemented Interfaces:
Cloneable

public class RepairBeamWeapon extends Weapon
Note that this weapon requires a bullet with a positive maxRange. Rotation must be set to true. Fixed repair points are not supported.
  • Field Details

    • targetBuildings

      public boolean targetBuildings
    • targetUnits

      public boolean targetUnits
    • repairSpeed

      public float repairSpeed
    • fractionRepairSpeed

      public float fractionRepairSpeed
    • beamWidth

      public float beamWidth
    • pulseRadius

      public float pulseRadius
    • pulseStroke

      public float pulseStroke
    • widthSinMag

      public float widthSinMag
    • widthSinScl

      public float widthSinScl
    • recentDamageMultiplier

      public float recentDamageMultiplier
    • laser

      public TextureRegion laser
    • laserEnd

      public TextureRegion laserEnd
    • laserTop

      public TextureRegion laserTop
    • laserTopEnd

      public TextureRegion laserTopEnd
    • laserColor

      public Color laserColor
    • laserTopColor

      public Color laserTopColor
    • healColor

      public Color healColor
    • healEffect

      public Effect healEffect
  • Constructor Details

    • RepairBeamWeapon

      public RepairBeamWeapon(String name)
    • RepairBeamWeapon

      public RepairBeamWeapon()
  • Method Details

    • addStats

      public void addStats(UnitType u, Table w)
      Overrides:
      addStats in class Weapon
    • dps

      public float dps()
      Overrides:
      dps in class Weapon
    • load

      public void load()
      Overrides:
      load in class Weapon
    • findTarget

      protected mindustry.gen.Teamc findTarget(mindustry.gen.Unit unit, float x, float y, float range, boolean air, boolean ground)
      Overrides:
      findTarget in class Weapon
    • checkTarget

      protected boolean checkTarget(mindustry.gen.Unit unit, mindustry.gen.Teamc target, float x, float y, float range)
      Overrides:
      checkTarget in class Weapon
    • shoot

      protected void shoot(mindustry.gen.Unit unit, WeaponMount mount, float shootX, float shootY, float rotation)
      Overrides:
      shoot in class Weapon
    • update

      public void update(mindustry.gen.Unit unit, WeaponMount mount)
      Overrides:
      update in class Weapon
    • draw

      public void draw(mindustry.gen.Unit unit, WeaponMount mount)
      Overrides:
      draw in class Weapon
    • init

      public void init()
      Overrides:
      init in class Weapon