@Beta public class RippleFOV extends java.lang.Object implements FOVSolver
Constructor and Description |
---|
RippleFOV() |
Modifier and Type | Method and Description |
---|---|
float[][] |
calculateFOV(float[][] map,
int startx,
int starty,
float radius)
Calculates the Field of View in the same manner as the version with more
parameters.
|
float[][] |
calculateFOV(float[][] map,
int startx,
int starty,
float force,
float decay,
RadiusStrategy rStrat)
Calculates the Field Of View for the provided map from the given x, y
coordinates.
|
public float[][] calculateFOV(float[][] map, int startx, int starty, float force, float decay, RadiusStrategy rStrat)
FOVSolver
calculateFOV
in interface FOVSolver
map
- the grid of cells to calculate onstartx
- the horizontal component of the starting locationstarty
- the vertical component of the starting locationforce
- the power of the raydecay
- how much the light is reduced for each whole integer step in
distancerStrat
- provides a means to calculate the radius as desiredpublic float[][] calculateFOV(float[][] map, int startx, int starty, float radius)
FOVSolver
calculateFOV
in interface FOVSolver
map
- the grid of cells to calculate on