Modifier and Type | Field and Description |
---|---|
squidpony.squidmath.OrderedMap<squidpony.squidmath.Coord,Radiance> |
LightingHandler.lights
A mapping from positions as
Coord objects to Radiance 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. |
Modifier and Type | Method and Description |
---|---|
static Radiance |
Radiance.deserializeFromString(java.lang.String data) |
Radiance |
LightingHandler.get(squidpony.squidmath.Coord position)
Gets the Radiance at the given position, if present, or null if there is no light source there.
|
Radiance |
LightingHandler.get(int x,
int y)
Gets the Radiance at the given position, if present, or null if there is no light source there.
|
static Radiance[] |
Radiance.makeChain(int length,
float range,
float color,
float strobe)
Makes a chain of Radiance objects that will pulse in a sequence, expanding from one to the next.
|
Modifier and Type | Method and Description |
---|---|
LightingHandler |
LightingHandler.addLight(squidpony.squidmath.Coord position,
Radiance light)
Adds a Radiance as a light source at the given position.
|
LightingHandler |
LightingHandler.addLight(int x,
int y,
Radiance light)
Adds a Radiance as a light source at the given position.
|
void |
LightingHandler.updateUI(squidpony.squidmath.Coord pos,
Radiance radiance)
Updates the flicker and strobe effects of a Radiance object and applies the lighting from just that Radiance to
just the
LightingHandler.colorLighting field, without changing FOV. |
void |
LightingHandler.updateUI(int lightX,
int lightY,
Radiance radiance)
Updates the flicker and strobe effects of a Radiance object and applies the lighting from just that Radiance to
just the
LightingHandler.colorLighting field, without changing FOV. |
Constructor and Description |
---|
Radiance(Radiance other)
Copies another Radiance exactly, except for the pattern its flicker may have, if any.
|
Copyright © Eben Howard 2012–2022. All rights reserved.