Class: Empty
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(window, coords) ⇒ Empty
constructor
A new instance of Empty.
Methods inherited from Tile
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
#x ⇒ Object (readonly)
Returns the value of attribute x.
5 6 7 |
# File 'lib/ruby-ai/empty.rb', line 5 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
5 6 7 |
# File 'lib/ruby-ai/empty.rb', line 5 def y @y end |