Package mindustry.entities.abilities
Class ShieldArcAbility
java.lang.Object
mindustry.entities.abilities.Ability
mindustry.entities.abilities.ShieldArcAbility
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatState.floatAngle of shield arc.floatOffset parameters for shield.floatBullet deflection chance.arc.graphics.ColorColor override of the shield.floatCooldown after the shield is broken, in ticks.arc.audio.SoundDeflection sound.booleanWhether to draw the arc line.floatMaximum shield.floatMultiplier for shield damage taken from missile units.booleanIf true, sprite position will be influenced by x/y.booleanIf true, enemy units are pushed out.floatShield radius.floatShield regen speed in damage/tick.If not null, will be drawn on top.protected static final arc.func.Cons<mindustry.gen.Unit>booleanIf true, only activates when shooting.floatWidth of shield line.protected floatState.floatOffset parameters for shield.floatOffset parameters for shield.Fields inherited from class mindustry.entities.abilities.Ability
data, descriptionWidth, display -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStats(arc.scene.ui.layout.Table t) voidcreated(mindustry.gen.Unit unit) voiddisplayBars(mindustry.gen.Unit unit, arc.scene.ui.layout.Table bars) voiddraw(mindustry.gen.Unit unit) voidupdate(mindustry.gen.Unit unit)
-
Field Details
-
unitConsumer
protected static final arc.func.Cons<mindustry.gen.Unit> unitConsumer -
radius
public float radiusShield radius. -
regen
public float regenShield regen speed in damage/tick. -
max
public float maxMaximum shield. -
cooldown
public float cooldownCooldown after the shield is broken, in ticks. -
angle
public float angleAngle of shield arc. -
angleOffset
public float angleOffsetOffset parameters for shield. -
x
public float xOffset parameters for shield. -
y
public float yOffset parameters for shield. -
whenShooting
public boolean whenShootingIf true, only activates when shooting. -
width
public float widthWidth of shield line. -
chanceDeflect
public float chanceDeflectBullet deflection chance. -1 to disable -
deflectSound
public arc.audio.Sound deflectSoundDeflection sound. -
missileUnitMultiplier
public float missileUnitMultiplierMultiplier for shield damage taken from missile units. -
drawArc
public boolean drawArcWhether to draw the arc line. -
region
If not null, will be drawn on top. -
color
@Nullable public arc.graphics.Color colorColor override of the shield. Uses unit shield colour by default. -
offsetRegion
public boolean offsetRegionIf true, sprite position will be influenced by x/y. -
pushUnits
public boolean pushUnitsIf true, enemy units are pushed out. -
widthScale
protected float widthScaleState. -
alpha
protected float alphaState.
-
-
Constructor Details
-
ShieldArcAbility
public ShieldArcAbility()
-
-
Method Details
-
addStats
public void addStats(arc.scene.ui.layout.Table t) -
update
public void update(mindustry.gen.Unit unit) -
created
public void created(mindustry.gen.Unit unit) -
draw
public void draw(mindustry.gen.Unit unit) -
displayBars
public void displayBars(mindustry.gen.Unit unit, arc.scene.ui.layout.Table bars) - Overrides:
displayBarsin classAbility
-