Serialized Form
-
Package squidpony.squidgrid.gui.gdx
-
Class squidpony.squidgrid.gui.gdx.ColorNoise extends FastNoise implements Serializable
-
Class squidpony.squidgrid.gui.gdx.ICellVisible.Basic extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
packedColor
float packedColor
-
symbol
char symbol
-
-
Class squidpony.squidgrid.gui.gdx.ICellVisible.Named extends ICellVisible.Basic implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
name
String name
-
-
Class squidpony.squidgrid.gui.gdx.LightingHandler extends Object implements Serializable
- serialVersionUID:
- 0L
-
Serialized Fields
-
backgroundColor
float backgroundColor
The packed float color to mix background cells with when a cell has lighting and is within line-of-sight, but has no background color to start with (its color is 0f as a packed float, orSColor.TRANSPARENT
). -
colorLighting
float[][][] colorLighting
A pair of 2D float arrays with different usages;colorLighting[0]
is a 2D array that stores the strength of light in each cell, andcolorLighting[1]
is a 2D array that stores the color of light in each cell, as a packed float color. Both 2D arrays are the size of the map, as defined byLightingHandler.resistances
initially and later available inLightingHandler.width
andLightingHandler.height
. -
fovResult
double[][] fovResult
What the "viewer" (as passed toLightingHandler.calculateFOV(Coord)
) can see either nearby without light or because an area in line-of-sight has light in it. Edited byLightingHandler.calculateFOV(Coord)
andLightingHandler.update()
, but notLightingHandler.updateUI(Coord, Radiance)
(which is meant for effects that are purely user-interface). -
height
int height
Height of the 2D arrays used in this, as obtained fromLightingHandler.resistances
. -
lights
OrderedMap<Coord,Radiance> lights
A mapping from positions asCoord
objects toRadiance
objects that describe the color, lighting radius, and changes over time of any in-game lights that should be shown on the map and change FOV. You can edit this manually or by usingLightingHandler.moveLight(int, int, int, int)
,LightingHandler.addLight(int, int, Radiance)
, andLightingHandler.removeLight(int, int)
. -
losResult
double[][] losResult
A 2D array of doubles that are either 0.0 if a cell has an obstruction between it and the viewer, or greater than 0.0 otherwise. -
noticeable
GreasedRegion noticeable
A GreasedRegion that stores any cells that are in line-of-sight or are close enough to a cell in line-of-sight to potentially cast light into such a cell. Depends on the highestRadiance.range
inLightingHandler.lights
. -
radiusStrategy
Radius radiusStrategy
How light should spread; usuallyRadius.CIRCLE
unless gameplay reasons need it to be SQUARE or DIAMOND. -
resistances
double[][] resistances
The 2D array of light-resistance values from 0.0 to 1.0 for each cell on the map, as produced byDungeonUtility.generateResistances(char[][])
. -
tempColorLighting
float[][][] tempColorLighting
Temporary storage array used for calculations involvingLightingHandler.colorLighting
; it sometimes may make sense for other code to use this as temporary storage as well. -
tempFOV
double[][] tempFOV
Temporary storage array used for calculations involvingLightingHandler.fovResult
; it sometimes may make sense for other code to use this as temporary storage as well. -
viewerRange
double viewerRange
How far the viewer can see without light; defaults to 4.0 cells, and you are encouraged to change this member field if the vision range changes after construction. -
width
int width
Width of the 2D arrays used in this, as obtained fromLightingHandler.resistances
.
-
-
Class squidpony.squidgrid.gui.gdx.Radiance extends Object implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
color
float color
The color of light as a float; typically opaque and lighter than the glowing object's symbol. -
delay
float delay
A time delay that applies to when the strobe and flicker effects change; useful with strobe to make a strobe expand its lit radius at one point, then expand at a slightly later time at another Radiance with a delay. The range for delay should be considered 0f to 1f, with 0f the default (no delay) and values between 0 and 1f that fraction of a full strobe delayed from that default. -
flare
float flare
A temporary increase to the minimum radiance range, meant to brighten a glow during an effect. This should be a float between 0f and 1f, with 0f meaning no change and 1f meaning always max radius. -
flicker
float flicker
The rate of random continuous change to radiance range, like the light from a campfire. The random component of the change is determined by theSystem.identityHashCode(Object)
of this Radiance, which will probably make all flicker effects different when flicker is non-0. -
range
float range
How far the radiated light extends; 0f is "just this cell", anything higher can go into neighboring cells. This is permitted to be a non-integer value, which will make this extend into further cells partially. -
strobe
float strobe
The rate of non-random continuous change to radiance range, like a mechanical strobe effect. This looks like a strobe light when the value is high enough, but at lower values it will smoothly pulse, which can be less distracting to players.
-
-
Class squidpony.squidgrid.gui.gdx.SColor extends com.badlogic.gdx.graphics.Color implements Serializable
- serialVersionUID:
- 1L
-
Serialized Fields
-
calculatedFloat
float calculatedFloat
-
name
String name
-
-