char symbol
float packedColor
java.lang.String name
squidpony.squidgrid.Radius radiusStrategy
Radius.CIRCLE
unless gameplay reasons need it to be SQUARE or DIAMOND.double[][] resistances
FOV.generateResistances(char[][])
.double[][] fovResult
LightingHandler.calculateFOV(Coord)
) can see either nearby without light or because an
area in line-of-sight has light in it. Edited by LightingHandler.calculateFOV(Coord)
and LightingHandler.update()
, but
not LightingHandler.updateUI(Coord, Radiance)
(which is meant for effects that are purely user-interface).double[][] losResult
double[][] tempFOV
LightingHandler.fovResult
; it sometimes may make sense for other
code to use this as temporary storage as well.float[][][] colorLighting
colorLighting[0]
is a 2D array that stores the strength
of light in each cell, and colorLighting[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 by LightingHandler.resistances
initially and
later available in LightingHandler.width
and LightingHandler.height
.float[][][] tempColorLighting
LightingHandler.colorLighting
; it sometimes may make sense for
other code to use this as temporary storage as well.int width
LightingHandler.resistances
.int height
LightingHandler.resistances
.float backgroundColor
SColor.TRANSPARENT
).double viewerRange
squidpony.squidmath.OrderedMap<K,V> lights
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. You can edit
this manually or by using LightingHandler.moveLight(int, int, int, int)
, LightingHandler.addLight(int, int, Radiance)
, and
LightingHandler.removeLight(int, int)
.squidpony.squidmath.GreasedRegion noticeable
Radiance.range
in LightingHandler.lights
.float range
float color
float flicker
System.identityHashCode(Object)
of this Radiance, which will probably
make all flicker effects different when flicker is non-0.float strobe
float delay
float flare
java.lang.String name
float calculatedFloat
Copyright © Eben Howard 2012–2022. All rights reserved.