public static class PanelEffect.GlowBallEffect extends PanelEffect
PanelEffect.ExplosionEffect, PanelEffect.GibberishEffect, PanelEffect.GlowBallEffect, PanelEffect.ProjectileEffect, PanelEffect.PulseEffect, PanelEffect.SteadyProjectileEffect
Modifier and Type | Field and Description |
---|---|
java.util.List<squidpony.squidmath.Coord> |
affected
The raw list of Coords that might be affected by the glow; may include some cells that aren't going to
show as glowing (it usually has some false positives), but shouldn't exclude any cells that should show as
such (no false negatives).
|
squidpony.squidmath.Coord[] |
centers
This will change over the course of the effect's duration, and includes 16 overlapping faint glowing areas.
|
float |
color
The default glow ball color is medium-light blue.
|
squidpony.squidmath.Coord |
end
Where the glow effect should travel towards as a whole.
|
double[][][] |
lightMaps
The internal representation of how affected each cell is by the glow, based on proximity to center.
|
int |
radius
Normally you should set this in the constructor, and not change it later.
|
fastInSlowMidFastOut, target, validCells
Constructor and Description |
---|
GlowBallEffect(IPackedColorPanel targeting,
squidpony.squidmath.Coord start,
squidpony.squidmath.Coord end,
int radius)
Constructs a GlowBallEffect with explicit settings for some fields.
|
GlowBallEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.Coord start,
squidpony.squidmath.Coord end,
int radius)
Constructs a GlowBallEffect with explicit settings for some fields.
|
GlowBallEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord start,
squidpony.squidmath.Coord end,
int radius)
Constructs a GlowBallEffect with explicit settings for some fields.
|
GlowBallEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord start,
squidpony.squidmath.Coord end,
int radius,
com.badlogic.gdx.graphics.Color coloring)
Constructs a GlowBallEffect with explicit settings for some fields.
|
GlowBallEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord start,
squidpony.squidmath.Coord end,
int radius,
float coloring)
Constructs a GlowBallEffect with explicit settings for some fields.
|
Modifier and Type | Method and Description |
---|---|
protected void |
update(float percent)
Called each frame.
|
makeGrenadeEffect
act, begin, end, finish, getDuration, getInterpolation, getTime, isComplete, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
public squidpony.squidmath.Coord[] centers
public squidpony.squidmath.Coord end
public int radius
public float color
public double[][][] lightMaps
public java.util.List<squidpony.squidmath.Coord> affected
public GlowBallEffect(IPackedColorPanel targeting, squidpony.squidmath.Coord start, squidpony.squidmath.Coord end, int radius)
targeting
- the IPackedColorPanel to affectstart
- the starting point for the glow ball(s)end
- the ending point for the glow ball(s)radius
- the radius of the explosion, in cellspublic GlowBallEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.Coord start, squidpony.squidmath.Coord end, int radius)
targeting
- the IPackedColorPanel to affectduration
- the duration of this PanelEffect in seconds, as a floatstart
- the starting point for the glow ball(s)end
- the ending point for the glow ball(s)radius
- the radius of the explosion, in cellspublic GlowBallEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord start, squidpony.squidmath.Coord end, int radius)
targeting
- the IPackedColorPanel to affectduration
- the duration of this PanelEffect in seconds, as a floatvalid
- the valid cells that can be changed by this PanelEffect, as a GreasedRegionstart
- the starting point for the glow ball(s)end
- the ending point for the glow ball(s)radius
- the radius of the explosion, in cellspublic GlowBallEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord start, squidpony.squidmath.Coord end, int radius, com.badlogic.gdx.graphics.Color coloring)
targeting
- the IPackedColorPanel to affectduration
- the duration of this PanelEffect in seconds, as a floatvalid
- the valid cells that can be changed by this PanelEffect, as a GreasedRegionstart
- the starting point for the glow ball(s)end
- the ending point for the glow ball(s)radius
- the radius of the explosion, in cellspublic GlowBallEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord start, squidpony.squidmath.Coord end, int radius, float coloring)
targeting
- the IPackedColorPanel to affectduration
- the duration of this PanelEffect in seconds, as a floatvalid
- the valid cells that can be changed by this PanelEffect, as a GreasedRegionstart
- the starting point for the glow ball(s)end
- the ending point for the glow ball(s)radius
- the radius of the explosion, in cellsprotected void update(float percent)
update
in class com.badlogic.gdx.scenes.scene2d.actions.TemporalAction
percent
- The percentage of completion for this action, growing from 0 to 1 over the duration. If
reversed
, this will shrink from 1 to 0.Copyright © Eben Howard 2012–2022. All rights reserved.