Wiki
Clone wikiRogueSharp / RogueSharp / Map / IsTransparent
MapIsTransparent Method
Get the transparency of the Cell i.e. if line of sight would be blocked by this Cell
Namespace: RogueSharp
Assembly:
Syntax
public 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
Implements
IMapIsTransparent(Int32, Int32)
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
Map Class
RogueSharp Namespace
[4]: 2014-2016 Faron Bracy
Updated