Wiki

Clone wiki

RogueSharp / RogueSharp / FieldOfView / README

FieldOfView Class

A class for performing field-of-view calculations to determine what is observable in a Map from a given Cell within a given light radius

Inheritance Hierarchy

SystemObject
RogueSharpFieldOfView

Namespace: RogueSharp
Assembly:

Syntax

publicclassFieldOfView

The FieldOfView type exposes the following members.

Constructors

Name Description
FieldOfView Constructs a new FieldOfView class for the specified Map

Methods

Name Description
AppendFov Performs a field-of-view calculation with the specified parameters and appends it any existing field-of-view calculations. Field-of-view (FOV) is basically a calculation of what is observable in the Map from a given Cell with a given light radius.
Clone Create and return a deep copy of an existing FieldOfView class
ComputeFov Performs a field-of-view calculation with the specified parameters. Field-of-view (FOV) is basically a calculation of what is observable in the Map from a given Cell with a given light radius. Any existing field-of-view calculations will be overwritten when calling this method.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetType Gets the Type of the current instance. (Inherited from Object.)
IsInFov 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
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
ToString Returns a string that represents the current object. (Inherited from Object.)

See Also

Reference

RogueSharp Namespace

Other Resources

Based on the visibility determination algorithm described here

[8]: 2014-2016 Faron Bracy

Updated