Wiki

Clone wiki

RogueSharp / RogueSharp / Map / SetCellProperties_1

MapSetCellProperties Method (Int32, Int32, Boolean, Boolean, Boolean)

Set the properties of a Cell to the specified values

Namespace: RogueSharp
Assembly:

Syntax

public void SetCellProperties(
    int x,
    int y,
    bool isTransparent,
    bool isWalkable,
    bool isExplored
)

Parameters

x

Type: SystemInt32
X location of the Cell to set properties on, starting with 0 as the farthest left

y

Type: SystemInt32
Y location of the Cell to set properties on, starting with 0 as the top

isTransparent

Type: SystemBoolean
True if line-of-sight is not blocked by this Cell. False otherwise

isWalkable

Type: SystemBoolean
True if a character could walk across the Cell normally. False otherwise

isExplored

Type: SystemBoolean
True if the Cell has ever been in the field-of-view of the player. False otherwise

Implements

IMapSetCellProperties(Int32, Int32, Boolean, Boolean, Boolean)

Remarks

IsInFov cannot be set through this method as it is always calculated by calling ComputeFov and/or AppendFov

See Also

Reference

Map Class
RogueSharp Namespace

[4]: 2014-2016 Faron Bracy

Updated