Package mindustry.type.weapons
Class RepairBeamWeapon
java.lang.Object
mindustry.type.Weapon
mindustry.type.weapons.RepairBeamWeapon
- All Implemented Interfaces:
Cloneable
Note that this weapon requires a bullet with a positive maxRange.
Rotation must be set to true. Fixed repair points are not supported.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfloat
float
float
float
float
float
boolean
boolean
float
float
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 TypeMethodDescriptionvoid
protected boolean
checkTarget
(mindustry.gen.Unit unit, mindustry.gen.Teamc target, float x, float y, float range) float
dps()
void
draw
(mindustry.gen.Unit unit, WeaponMount mount) protected mindustry.gen.Teamc
findTarget
(mindustry.gen.Unit unit, float x, float y, float range, boolean air, boolean ground) void
init()
void
load()
protected void
shoot
(mindustry.gen.Unit unit, WeaponMount mount, float shootX, float shootY, float rotation) void
update
(mindustry.gen.Unit unit, WeaponMount mount) Methods inherited from class mindustry.type.Weapon
bullet, bulletRotation, copy, drawOutline, flip, handleBullet, hasStats, range, shotsPerSec, toString
-
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
-
laserEnd
-
laserTop
-
laserTopEnd
-
laserColor
-
laserTopColor
-
healColor
-
healEffect
-
-
Constructor Details
-
RepairBeamWeapon
-
RepairBeamWeapon
public RepairBeamWeapon()
-
-
Method Details
-
addStats
-
dps
public float dps() -
load
public void load() -
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) -
update
-
draw
-
init
public void init()
-