Class: Building
Overview
Represents a building item on a tile
Constant Summary collapse
- TOWN_RENDER_PRIORITY =
DEFAULT_RENDER_PRIORITY + 1
- HOUSE =
"\u{1F3E0}"
Constants inherited from TileItem
TileItem::DEFAULT_RENDER_PRIORITY
Instance Attribute Summary
Attributes inherited from TileItem
#colour, #id, #obj, #render_priority, #render_symbol
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(render_symbol) ⇒ Building
constructor
A new instance of Building.
Methods inherited from TileItem
Constructor Details
#initialize(render_symbol) ⇒ Building
Returns a new instance of Building.
13 14 15 |
# File 'lib/building.rb', line 13 def initialize(render_symbol) super self, render_symbol: render_symbol, render_priority: TOWN_RENDER_PRIORITY end |