![]() |
Adventure at Umalu
22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
|
Public Member Functions | |
final Collection< Coordinate > | getViewField (World world, int x, int y, int r) |
final Collection< Coordinate > | getViewFieldplayer (World world, int x, int y, int r) |
final Collection< Coordinate > | getViewField (World world, Coordinate coord, int r) |
Protected Member Functions | |
abstract Collection< Coordinate > | calcViewField (World world, int x, int y, int r) |
abstract Collection< Coordinate > | calcViewFieldplayer (World world, int x, int y, int r) |
Represents an algorithm for determining field of view on a
.
|
protectedpure virtual |
Calculates the field of view on the given
from the given (x, y) coordinates with the specified radius.
world | the World
|
x | the x value of the coordinate being queried |
y | the y value of the coordinate being queried |
r | the radius of the field of view |
Implemented in jade.fov.RayCaster, and jade.fov.ShadowCaster.
final Collection<Coordinate> jade.fov.ViewField.getViewField | ( | World | world, |
int | x, | ||
int | y, | ||
int | r | ||
) |
Calculates the field of view on the given
from the given (x, y) coordinates with the specified radius.
world | the World
|
x | the x value of the coordinate being queried |
y | the y value of the coordinate being queried |
r | the radius of the field of view |
final Collection<Coordinate> jade.fov.ViewField.getViewField | ( | World | world, |
Coordinate | coord, | ||
int | r | ||
) |
Calculates the field of view on the given
from the given
with the specified radius.
world | the World
|
coord | the value of the coordinate being queried |
r | the radius of the field of view |