Module ROT.Map.Dungeon
The Dungeon-style map Prototype.
This class is extended by ROT.Map.Digger and ROT.Map.Uniform
Functions
init (width, height) | Constructor. |
getRooms () | Get rooms Get a table of rooms on the map |
getDoors () | Get doors Get a table of doors on the map |
getCorridors () | Get corridors Get a table of corridors on the map |
Functions
- init (width, height)
-
Constructor.
Called with ROT.Map.Cellular:new()
Parameters:
- width int Width in cells of the map
- height int Height in cells of the map
- getRooms ()
-
Get rooms
Get a table of rooms on the map
Returns:
-
table
A table containing objects of the type ROT.Map.Room
- getDoors ()
-
Get doors
Get a table of doors on the map
Returns:
-
table
A table {{x=int, y=int},...} for doors.
- getCorridors ()
-
Get corridors
Get a table of corridors on the map
Returns:
-
table
A table containing objects of the type ROT.Map.Corridor