Package mindustry.type.weapons
Class PointDefenseWeapon
java.lang.Object
mindustry.type.Weapon
mindustry.type.weapons.PointDefenseWeapon
- All Implemented Interfaces:
Cloneable
Note that this requires several things:
- A bullet with positive maxRange
- A bullet with positive damage
- Rotation
-
Field Summary
Fields inherited from class mindustry.type.Weapon
aiControllable, alternate, alwaysContinuous, alwaysShooting, autoTarget, baseRotation, bullet, cellRegion, chargeSound, continuous, controllable, cooldownTime, display, ejectEffect, 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
-
Constructor Summary
-
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
shoot
(mindustry.gen.Unit unit, WeaponMount mount, float shootX, float shootY, float rotation) Methods inherited from class mindustry.type.Weapon
addStats, bullet, bulletRotation, copy, dps, draw, drawOutline, flip, handleBullet, hasStats, init, load, range, shotsPerSec, toString, update
-
Field Details
-
color
-
beamEffect
-
-
Constructor Details
-
PointDefenseWeapon
-
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 classWeapon
-
checkTarget
protected boolean checkTarget(mindustry.gen.Unit unit, mindustry.gen.Teamc target, float x, float y, float range) - Overrides:
checkTarget
in classWeapon
-
shoot
protected void shoot(mindustry.gen.Unit unit, WeaponMount mount, float shootX, float shootY, float rotation)
-