|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrlgamekit.fieldofview.FieldOfView
public class FieldOfView
Generic field of view calculator. Uses fov_source_t and fov_destination_t objects to communicate with the application.
| Constructor Summary | |
|---|---|
FieldOfView(FovSource source,
FovDestination destination)
Create a new field of view calculator. |
|
| Method Summary | |
|---|---|
void |
calculate(int centerX,
int centerY,
int distance)
Calculate field of view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldOfView(FovSource source,
FovDestination destination)
source - Used to check if a map cell blocks the line of sightdestination - Used to write the results of the visibility calculation| Method Detail |
|---|
public void calculate(int centerX,
int centerY,
int distance)
centerX - X origin (center) of field of viewcenterY - Y origin (center) of field of viewdistance - the max viewing distance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||