Wiki

Clone wiki

RogueSharp / RogueSharp / IMap / IsTransparent

IMapIsTransparent Method

Get the transparency of the Cell i.e. if line of sight would be blocked by this Cell

Namespace: RogueSharp
Assembly:

Syntax

bool IsTransparent(
    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 line-of-sight is not blocked by this Cell, false otherwise

Examples

A Cell representing an empty stone floor would be transparent A Cell representing a glass wall could be transparent (even though it may not be walkable) A Cell representing a solid stone wall would not be transparent

See Also

Reference

IMap Interface
RogueSharp Namespace

[3]: 2014-2016 Faron Bracy

Updated