Wiki
Clone wikiRogueSharp / RogueSharp / Map / IsInFov
MapIsInFov Method
Check if the Cell is in the currently computed field-of-view For newly initialized maps a field-of-view will not exist so all Cells will return false Field-of-view must first be calculated by calling ComputeFov and/or AppendFov
Namespace: RogueSharp
Assembly:
Syntax
public bool IsInFov( int x, int y )
Parameters
x
Type: SystemInt32
X location of the Cell to check starting with 0 as the farthest left
y
Type: SystemInt32
Y location of the Cell to check, starting with 0 as the top
Return Value
Type: Boolean
True if the Cell is in the currently computed field-of-view, false otherwise
Implements
Remarks
Field-of-view (FOV) is basically a calculation of what is observable in the Map from a given Cell with a given light radius
Examples
Field-of-view can be used to simulate a character holding a light source and exploring a Map representing a dark cavern Any Cells within the FOV would be what the character could see from their current location and lighting conditions
See Also
Reference
Map Class
RogueSharp Namespace
[4]: 2014-2016 Faron Bracy
Updated