/** * @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; }