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 float
State.float
Angle of shield arc.float
Offset parameters for shield.arc.graphics.Color
Color override of the 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.Fields inherited from class mindustry.entities.abilities.Ability
data, descriptionWidth, display
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStats
(arc.scene.ui.layout.Table t) void
created
(mindustry.gen.Unit unit) void
displayBars
(mindustry.gen.Unit unit, arc.scene.ui.layout.Table bars) void
draw
(mindustry.gen.Unit unit) void
update
(mindustry.gen.Unit unit)
-
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. -
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. -
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:
displayBars
in classAbility
-