Spaces:
Running
Running
File size: 565 Bytes
87b3b3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
/**
* @class Dungeon map: has rooms and corridors
* @augments ROT.Map
*/
ROT.Map.Dungeon = function(width, height) {
ROT.Map.call(this, width, height);
this._rooms = []; /* list of all rooms */
this._corridors = [];
}
ROT.Map.Dungeon.extend(ROT.Map);
/**
* Get all generated rooms
* @returns {ROT.Map.Feature.Room[]}
*/
ROT.Map.Dungeon.prototype.getRooms = function() {
return this._rooms;
}
/**
* Get all generated corridors
* @returns {ROT.Map.Feature.Corridor[]}
*/
ROT.Map.Dungeon.prototype.getCorridors = function() {
return this._corridors;
}
|