lib/gamebox/lib/rect.rb
# Iterate through all elements in the given Array, and return
# the *index* of the first element which is a Rect that collides with
# the caller.
Iterate through all elements in the given Array, and return
the *index* of the first element which is a Rect that collides with
the caller.
Iterate through all elements in the given Array and return the * index * of the first element which is a Rect that collides with the caller .
def collide_array(array_rects)
    for i in (0...(array_rects.length))
      if array_rects[i].collide_rect?(self)
        return i
      end
    end
    return nil
  end
def collide_array ( array_rects ) for i in ( 0 ... ( array_rects . length ) ) if array_rects [ i ] . collide_rect? ( self ) return i end end return nil end
Iterate through all elements in the given Array, and return
the *index* of the first element which is a Rect that collides with
the caller.
Iterate through all elements in the given Array and return the * index * of the first element which is a Rect that collides with the caller .
array_rects
<not_specific>