Class: Sea
Overview
Sea class, can raise plains, can’t be built on
Instance Attribute Summary
Attributes inherited from Tile
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Sea
constructor
A new instance of Sea.
Methods inherited from Tile
#accepts?, #build, #check_cost, #to_s
Constructor Details
permalink #initialize(x, y) ⇒ Sea
Returns a new instance of Sea.
50 51 52 53 54 |
# File 'lib/demigodGame/Tile.rb', line 50 def initialize(x, y) super(x, y) @options = [:p] @type = '-' end |