Method: Tile#initialize

Defined in:
lib/terminal_hero/classes/tile.rb

#initialize(symbol: "?", color: :default, blocking: false, event: nil, entity: nil) ⇒ Tile

Returns a new instance of Tile.



19
20
21
22
23
24
25
# File 'lib/terminal_hero/classes/tile.rb', line 19

def initialize(symbol: "?", color: :default, blocking: false, event: nil, entity: nil)
  @symbol = symbol.colorize(color)
  @color = color
  @blocking = blocking
  @event = event
  @entity = entity
end