public static class PanelEffect.GibberishEffect extends PanelEffect.ExplosionEffect
PanelEffect.ExplosionEffect, PanelEffect.GibberishEffect, PanelEffect.GlowBallEffect, PanelEffect.ProjectileEffect, PanelEffect.PulseEffect, PanelEffect.SteadyProjectileEffect
Modifier and Type | Field and Description |
---|---|
char[] |
choices
This char array contains all characters that can be used in the foreground of this effect.
|
affected, center, colors, lightMap, radius
fastInSlowMidFastOut, target, validCells
Constructor and Description |
---|
GibberishEffect(IPackedColorPanel targeting,
squidpony.squidmath.Coord center,
int radius) |
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.Coord center,
int radius)
Constructs an ExplosionEffect with explicit settings for some fields.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.Coord center,
int radius,
char[] choices)
Constructs an ExplosionEffect with explicit settings for some fields.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius)
Constructs an ExplosionEffect with explicit settings for most fields.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
char[] choices)
Constructs an ExplosionEffect with explicit settings for most fields.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
double angle,
double span,
char[] choices)
Constructs an ExplosionEffect with explicit settings for most fields; this constructor allows
the case where an explosion is directed in a cone or sector shape.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
double angle,
double span,
float[] coloring)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors; this constructor allows
the case where an explosion is directed in a cone or sector shape.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
double angle,
double span,
float[] coloring,
char[] choices)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors; this constructor allows
the case where an explosion is directed in a cone or sector shape.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
double angle,
double span,
java.util.List<? extends com.badlogic.gdx.graphics.Color> coloring)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors; this constructor allows
the case where an explosion is directed in a cone or sector shape.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
double angle,
double span,
java.util.List<? extends com.badlogic.gdx.graphics.Color> coloring,
char[] choices)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors; this constructor allows
the case where an explosion is directed in a cone or sector shape.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
float[] coloring)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
float[] coloring,
char[] choices)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
java.util.List<? extends com.badlogic.gdx.graphics.Color> coloring)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors.
|
GibberishEffect(IPackedColorPanel targeting,
float duration,
squidpony.squidmath.GreasedRegion valid,
squidpony.squidmath.Coord center,
int radius,
java.util.List<? extends com.badlogic.gdx.graphics.Color> coloring,
char[] choices)
Constructs an ExplosionEffect with explicit settings for most fields but also an alternate group of Color
objects that it will use to color the explosion instead of using purple spark colors.
|
Modifier and Type | Method and Description |
---|---|
protected void |
update(float percent)
Called each frame.
|
useElectricColors, useFieryColors
makeGrenadeEffect
act, begin, end, finish, getDuration, getInterpolation, getTime, isComplete, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
public char[] choices
StringKit.PUNCTUATION
and call
String.toCharArray()
on it, to this at any time between calls to update(float)
(which is
usually called indirectly via Stage's Stage.act()
method if this has
been added to an Actor on that Stage). These chars are pseudo-randomly selected approximately once every
eighth of a second, and may change sooner if the effect expands more quickly than that.public GibberishEffect(IPackedColorPanel targeting, squidpony.squidmath.Coord center, int radius)
public GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.Coord center, int radius)
targeting
- the IPackedColorPanel to affectduration
- the duration of this PanelEffect in seconds, as a floatcenter
- the center of the explosionradius
- the radius of the explosion, in cellspublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.Coord center, int radius, char[] choices)
targeting
- the IPackedColorPanel to affectduration
- the duration of this PanelEffect in seconds, as a floatcenter
- the center of the explosionradius
- the radius of the explosion, in cellspublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, 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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellspublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, char[] choices)
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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellspublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, java.util.List<? extends 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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellscoloring
- a List of Color or subclasses thereof that will replace the default purple spark colors herepublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, java.util.List<? extends com.badlogic.gdx.graphics.Color> coloring, char[] choices)
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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellscoloring
- a List of Color or subclasses thereof that will replace the default purple spark colors herepublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, 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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellscoloring
- an array of colors as packed floats that will replace the default purple spark colors herepublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, float[] coloring, char[] choices)
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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellscoloring
- an array of colors as packed floats that will replace the default purple spark colors herepublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, double angle, double span, char[] choices)
angle
(in degrees) and will cover an amount of the circular area (in degrees) equal to span
.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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellsangle
- the angle, in degrees, that will be the center of the sector-shaped effectspan
- the span, in degrees, of the full arc at the end of the sector-shaped effectpublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, double angle, double span, java.util.List<? extends com.badlogic.gdx.graphics.Color> coloring)
angle
(in degrees) and will cover an amount of the circular area (in degrees) equal to span
.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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellsangle
- the angle, in degrees, that will be the center of the sector-shaped effectspan
- the span, in degrees, of the full arc at the end of the sector-shaped effectcoloring
- a List of Color or subclasses thereof that will replace the default purple spark colors herepublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, double angle, double span, java.util.List<? extends com.badlogic.gdx.graphics.Color> coloring, char[] choices)
angle
(in degrees) and will cover an amount of the circular area (in degrees) equal to span
.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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellsangle
- the angle, in degrees, that will be the center of the sector-shaped effectspan
- the span, in degrees, of the full arc at the end of the sector-shaped effectcoloring
- a List of Color or subclasses thereof that will replace the default purple spark colors herepublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, double angle, double span, float[] coloring)
angle
(in degrees) and will cover an amount of the circular area (in degrees) equal to span
.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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellsangle
- the angle, in degrees, that will be the center of the sector-shaped effectspan
- the span, in degrees, of the full arc at the end of the sector-shaped effectcoloring
- an array of colors as packed floats that will replace the default purple spark colors herepublic GibberishEffect(IPackedColorPanel targeting, float duration, squidpony.squidmath.GreasedRegion valid, squidpony.squidmath.Coord center, int radius, double angle, double span, float[] coloring, char[] choices)
angle
(in degrees) and will cover an amount of the circular area (in degrees) equal to span
.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 GreasedRegioncenter
- the center of the explosionradius
- the radius of the explosion, in cellsangle
- the angle, in degrees, that will be the center of the sector-shaped effectspan
- the span, in degrees, of the full arc at the end of the sector-shaped effectcoloring
- an array of colors as packed floats that will replace the default purple spark colors hereprotected void update(float percent)
update
in class PanelEffect.ExplosionEffect
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.