Class: Sea

Inherits:
Tile show all
Defined in:
lib/demigodGame/Tile.rb

Overview

Sea class, can raise plains, can’t be built on

Instance Attribute Summary

Attributes inherited from Tile

#built_on, #options, #x, #y

Instance Method Summary collapse

Methods inherited from Tile

#accepts?, #build, #check_cost, #to_s

Constructor Details

#initialize(x, y) ⇒ Sea

Returns a new instance of Sea.

[View source]

50
51
52
53
54
# File 'lib/demigodGame/Tile.rb', line 50

def initialize(x, y)
  super(x, y)
  @options = [:p]
  @type = '-'
end