Package mindustry.entities.abilities
Class ShieldArcAbility
java.lang.Object
mindustry.entities.abilities.Ability
mindustry.entities.abilities.ShieldArcAbility
- All Implemented Interfaces:
Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
State.float
Angle of shield arc.float
Offset parameters for shield.float
Cooldown after the shield is broken, in ticks.boolean
Whether to draw the arc line.float
Maximum shield.boolean
If true, sprite position will be influenced by x/y.float
Shield radius.float
Shield regen speed in damage/tick.If not null, will be drawn on top.boolean
If true, only activates when shooting.float
Width of shield line.protected float
State.float
Offset parameters for shield.float
Offset parameters for shield. -
Constructor Summary
-
Method Summary
-
Field Details
-
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. -
drawArc
public boolean drawArcWhether to draw the arc line. -
region
If not null, will be drawn on top. -
offsetRegion
public boolean offsetRegionIf true, sprite position will be influenced by x/y. -
widthScale
protected float widthScaleState. -
alpha
protected float alphaState.
-
-
Constructor Details
-
ShieldArcAbility
public ShieldArcAbility()
-
-
Method Details
-
addStats
-
update
public void update(mindustry.gen.Unit unit) -
init
-
draw
public void draw(mindustry.gen.Unit unit) -
displayBars
- Overrides:
displayBars
in classAbility
-