Class: Dungeon
Instance Method Summary collapse
- #corridors ⇒ Object
-
#initialize(width = nil, height = nil) ⇒ Dungeon
constructor
A new instance of Dungeon.
- #rooms ⇒ Object
Methods inherited from Map
Constructor Details
#initialize(width = nil, height = nil) ⇒ Dungeon
Returns a new instance of Dungeon.
5 6 7 8 9 |
# File 'lib/delve/generator/dungeon.rb', line 5 def initialize(width=nil, height=nil) super width, height @rooms = Array.new @corridors = Array.new end |
Instance Method Details
#corridors ⇒ Object
15 16 17 |
# File 'lib/delve/generator/dungeon.rb', line 15 def corridors @corridors end |
#rooms ⇒ Object
11 12 13 |
# File 'lib/delve/generator/dungeon.rb', line 11 def rooms @rooms end |