Class: Plains

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

Overview

Plains class, can be raised to ridge or forest, can build house, chapel and sheeps

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) ⇒ Plains



70
71
72
73
74
# File 'lib/demigodGame/Tile.rb', line 70

def initialize(x, y)
  super(x, y)
  @options = [:r, :f, :h, :c, :s]
  @type = 'P'
end