Wiki

Clone wiki

RogueSharp / RogueSharp / Map / ToString_1

MapToString Method (Boolean)

Provides a simple visual representation of the map using the following symbols: - %: Cell is not in field-of-view - .: Cell is transparent, walkable, and in field-of-view - s: Cell is walkable and in field-of-view (but not transparent) - o: Cell is transparent and in field-of-view (but not walkable) - #: Cell is in field-of-view (but not transparent or walkable)

Namespace: RogueSharp
Assembly:

Syntax

public string ToString(
    bool useFov
)

Parameters

useFov

Type: SystemBoolean
True if field-of-view calculations will be used when creating the string represenation of the Map. False otherwise

Return Value

Type: String
A string representation of the map using special symbols to denote Cell properties

Implements

IMapToString(Boolean)

See Also

Reference

Map Class
RogueSharp Namespace

[4]: 2014-2016 Faron Bracy

Updated