Wiki

Clone wiki

RogueSharp / RogueSharp.MapCreation / RandomRoomsMapCreationStrategy_1 / CreateMap

RandomRoomsMapCreationStrategyTCreateMap Method

Creates a new IMap of the specified type.

Namespace: RogueSharp.MapCreation
Assembly:

Syntax

public T CreateMap()

Return Value

Type: T
An IMap of the specified type

Implements

IMapCreationStrategyTCreateMap

Remarks

The Map will be generated by trying to place rooms up to the maximum number specified in random locations around the Map. Each room will have a height and width between the minimum and maximum room size. If a room would be placed in such a way that it overlaps another room, it will not be placed. Once all rooms have have been placed, or thrown out because they overlap, cooridors will be created between rooms in a random manner.

See Also

Reference

RandomRoomsMapCreationStrategyT Class
RogueSharp.MapCreation Namespace

[4]: 2014-2016 Faron Bracy

Updated