lib/gamebox/lib/rect.rb
# Iterate through all elements in the given Array, and return
# an Array containing the *indices* of every element that is a Rect
# that collides with the caller.
Iterate through all elements in the given Array, and return
an Array containing the *indices* of every element that is a Rect
that collides with the caller.
Iterate through all elements in the given Array and return an Array containing the * indices * of every element that is a Rect that collides with the caller .
def collide_array_all(array_rects)
    indexes = []
    for i in (0...(array_rects.length))
      if array_rects[i].collide_rect?(self)
        indexes += [i]
      end
    end
    return indexes
  end
def collide_array_all ( array_rects ) indexes = [ ] for i in ( 0 ... ( array_rects . length ) ) if array_rects [ i ] . collide_rect? ( self ) indexes += [ i ] end end return indexes end
Iterate through all elements in the given Array, and return
an Array containing the *indices* of every element that is a Rect
that collides with the caller.
Iterate through all elements in the given Array and return an Array containing the * indices * of every element that is a Rect that collides with the caller .
array_rects
<not_specific>