Class: Wall

Inherits:
BaseTile show all
Defined in:
lib/cave_gen/tile.rb

Instance Attribute Summary

Attributes inherited from BaseTile

#opacity, #symbol, #touched, #x, #y

Instance Method Summary collapse

Methods inherited from BaseTile

#get_tile, #is_floor?, #print_tile

Constructor Details

#initialize(y, x, opacity = 0, touched = 0) ⇒ Wall

Returns a new instance of Wall.



47
48
49
50
# File 'lib/cave_gen/tile.rb', line 47

def initialize(y, x, opacity = 0, touched = 0)
  super(y, x, opacity, touched)
  @symbol = "#"
end