Class: Forest
Overview
Forst class, can be raised to ridge, can build woodcutter, chapel, house
Instance Attribute Summary
Attributes inherited from Tile
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Forest
constructor
A new instance of Forest.
Methods inherited from Tile
#accepts?, #build, #check_cost, #to_s
Constructor Details
#initialize(x, y) ⇒ Forest
80 81 82 83 84 |
# File 'lib/demigodGame/Tile.rb', line 80 def initialize(x, y) super(x, y) = [:w, :c, :h, :r] @type = 'F' end |