Wiki

Clone wiki

RogueSharp / RogueSharp / Cell / IsInFov

CellIsInFov Property

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 { get; }

Property Value

Type: Boolean

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

Cell Class
RogueSharp Namespace

[3]: 2014-2016 Faron Bracy

Updated