Wiki

Clone wiki

RogueSharp / RogueSharp / IMap / IsWalkable

IMapIsWalkable Method

Get the walkability of the Cell i.e. if a character could normally move across the Cell without difficulty

Namespace: RogueSharp
Assembly:

Syntax

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

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

IMap Interface
RogueSharp Namespace

[3]: 2014-2016 Faron Bracy

Updated