class Theseus::TransparentMask
This is the default mask used by a maze when an explicit mask is not given. It simply reports every cell as available.
mask = Theseus::TransparentMask.new(20, 20) maze = Theseus::OrthogonalMaze.new(mask: mask)
Attributes
height[R]
width[R]
Public Class Methods
new(width=0, height=0)
click to toggle source
# File lib/theseus/mask.rb, line 103 def initialize(width=0, height=0) @width = width @height = height end
Public Instance Methods
[](x,y)
click to toggle source
Always returns true
.
# File lib/theseus/mask.rb, line 109 def [](x,y) true end