Class: Empty

Inherits:
Tile show all
Defined in:
lib/ruby-ai/empty.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Tile

#[], #inspect

Constructor Details

#initialize(window, coords) ⇒ Empty

Returns a new instance of Empty.



7
8
9
10
# File 'lib/ruby-ai/empty.rb', line 7

def initialize(window, coords)
  @x = coords[:x]
  @y = coords[:y]
end

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x.



5
6
7
# File 'lib/ruby-ai/empty.rb', line 5

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



5
6
7
# File 'lib/ruby-ai/empty.rb', line 5

def y
  @y
end