Class: Wall
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
- #draw ⇒ Object
-
#initialize(window, coords) ⇒ Wall
constructor
A new instance of Wall.
Methods inherited from Tile
Constructor Details
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
5 6 7 |
# File 'lib/ruby-ai/wall.rb', line 5 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
5 6 7 |
# File 'lib/ruby-ai/wall.rb', line 5 def y @y end |
Instance Method Details
#draw ⇒ Object
13 14 15 |
# File 'lib/ruby-ai/wall.rb', line 13 def draw @image.draw(@x, @y, 1) end |