|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrle.core.vm.PlugInBase
rle.core.ui.FieldOfViewEngineBase
public class FieldOfViewEngineBase
Recursive field-of-view class implementing a spiraling shadow-casting algorithm. This algorithm chosen because it can establish field-of-view by visiting each grid at most once, and is (for me) much simpler to implement than octant oriented or non-recursive approaches. -TSS
| Field Summary |
|---|
| Fields inherited from class rle.core.vm.PlugInBase |
|---|
config, context, parameters |
| Constructor Summary | |
|---|---|
FieldOfViewEngineBase()
|
|
| Method Summary | |
|---|---|
java.util.Set<RLPoint> |
lineOfSightPoints(Locator locator,
int distance)
Compute and return the list of RLPoints in line-of-sight to the given region. |
| Methods inherited from class rle.core.vm.PlugInBase |
|---|
config, getContext, getParameters, paramMap, setConfig, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldOfViewEngineBase()
| Method Detail |
|---|
public java.util.Set<RLPoint> lineOfSightPoints(Locator locator,
int distance)
lineOfSightPoints in interface FieldOfViewEngine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||