Class PointDefenseWeapon

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

public class PointDefenseWeapon extends Weapon
Note that this requires several things: - A bullet with positive maxRange - A bullet with positive damage - Rotation
  • Field Details

    • color

      public Color color
    • beamEffect

      public Effect beamEffect
  • Constructor Details

    • PointDefenseWeapon

      public PointDefenseWeapon(String name)
    • PointDefenseWeapon

      public PointDefenseWeapon()
  • Method Details

    • 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