Package mindustry.type.weapons
Class PointDefenseBulletWeapon
java.lang.Object
mindustry.type.Weapon
mindustry.type.weapons.PointDefenseBulletWeapon
- All Implemented Interfaces:
Cloneable
Fires a bullet to intercept enemy bullets. The fired bullet MUST be of type InterceptorBulletType.
-
Field Summary
FieldsFields inherited from class mindustry.type.Weapon
aiControllable, aimChangeSpeed, alternate, alwaysContinuous, alwaysShooting, autoTarget, baseRotation, bullet, cellRegion, chargeSound, continuous, controllable, cooldownTime, display, ejectEffect, extraVelocity, flipSprite, heatColor, heatRegion, ignoreRotation, inaccuracy, layerOffset, linearWarmup, minShootVelocity, minWarmup, mirror, mountType, name, noAmmoSound, noAttack, otherSide, outlineRegion, parentizeEffects, parts, predictTarget, recoil, recoilPow, recoils, recoilTime, region, reload, rotate, rotateSpeed, rotationLimit, shadow, shake, shoot, shootCone, shootOnDeath, shootSound, shootStatus, shootStatusDuration, shootWarmupSpeed, shootX, shootY, showStatSprite, smoothReloadSpeed, soundPitchMax, soundPitchMin, targetInterval, targetSwitchInterval, top, useAmmo, useAttackRange, velocityRnd, x, xRand, y, yRand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkTarget
(mindustry.gen.Unit unit, mindustry.gen.Teamc target, float x, float y, float range) protected mindustry.gen.Teamc
findTarget
(mindustry.gen.Unit unit, float x, float y, float range, boolean air, boolean ground) protected void
handleBullet
(mindustry.gen.Unit unit, WeaponMount mount, mindustry.gen.Bullet bullet)
-
Field Details
-
damageTargetWeight
public float damageTargetWeight
-
-
Constructor Details
-
PointDefenseBulletWeapon
-
PointDefenseBulletWeapon
public PointDefenseBulletWeapon()
-
-
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 classWeapon
-
checkTarget
protected boolean checkTarget(mindustry.gen.Unit unit, mindustry.gen.Teamc target, float x, float y, float range) - Overrides:
checkTarget
in classWeapon
-
handleBullet
protected void handleBullet(mindustry.gen.Unit unit, WeaponMount mount, mindustry.gen.Bullet bullet) - Overrides:
handleBullet
in classWeapon
-