Wiki
Clone wikiRogueSharp / RogueSharp / FieldOfView / IsInFov
FieldOfViewIsInFov Method
Check if the Cell is in the currently computed field-of-view 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
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
FieldOfView Class
RogueSharp Namespace
[3]: 2014-2016 Faron Bracy
Updated