| Modifier and Type | Method and Description |
|---|---|
default CellSight<C> |
sight()
Get the current cell sight
This method is equivalent to
new CellSight<>(cell)
Note: each call of this method will recreate a new CellSight instance
{@code
// Check if the "target" cell is accessible from the current cell
if (! |
boolean |
sightBlocking()
Check if the cell block line of sight
|
coordinate, id, map, walkable@Pure boolean sightBlocking()
default CellSight<C> sight()
new CellSight<>(cell)
Note: each call of this method will recreate a new CellSight instance
// Check if the "target" cell is accessible from the current cell
if (!fighter.cell().sight().isFree(target)) {
return false;
}
Copyright © 2022. All rights reserved.