Wiki
Clone wikiRogueSharp / RogueSharp / Map / IsWalkable
MapIsWalkable Method
Get the walkability of the Cell i.e. if a character could normally move across the Cell without difficulty
Namespace: RogueSharp
Assembly:
Syntax
public bool IsWalkable( 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 a character could move across this Cell, false otherwise
Implements
Examples
A Cell representing an empty stone floor would be walkable A Cell representing a glass wall may not be walkable (even though it could be transparent) A Cell representing a solid stone wall would not be walkable
See Also
Reference
Map Class
RogueSharp Namespace
[4]: 2014-2016 Faron Bracy
Updated