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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatarc.graphics.Colorarc.graphics.g2d.TextureRegionarc.graphics.Colorarc.graphics.g2d.TextureRegionarc.graphics.g2d.TextureRegionarc.graphics.Colorarc.graphics.g2d.TextureRegionfloatfloatfloatfloatbooleanbooleanfloatfloatFields 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 TypeMethodDescriptionvoidprotected booleancheckTarget(mindustry.gen.Unit unit, mindustry.gen.Teamc target, float x, float y, float range) floatdps()voiddraw(mindustry.gen.Unit unit, WeaponMount mount) protected mindustry.gen.TeamcfindTarget(mindustry.gen.Unit unit, float x, float y, float range, boolean air, boolean ground) voidinit()voidload()protected voidshoot(mindustry.gen.Unit unit, WeaponMount mount, float shootX, float shootY, float rotation) voidupdate(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
public arc.graphics.g2d.TextureRegion laser -
laserEnd
public arc.graphics.g2d.TextureRegion laserEnd -
laserTop
public arc.graphics.g2d.TextureRegion laserTop -
laserTopEnd
public arc.graphics.g2d.TextureRegion laserTopEnd -
laserColor
public arc.graphics.Color laserColor -
laserTopColor
public arc.graphics.Color laserTopColor -
healColor
public arc.graphics.Color 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:
findTargetin classWeapon
-
checkTarget
protected boolean checkTarget(mindustry.gen.Unit unit, mindustry.gen.Teamc target, float x, float y, float range) - Overrides:
checkTargetin classWeapon
-
shoot
protected void shoot(mindustry.gen.Unit unit, WeaponMount mount, float shootX, float shootY, float rotation) -
update
-
draw
-
init
public void init()
-