Mercurial > boomslang
comparison pyntnclick/tools/rect_drawer.py @ 747:960af9761fb0 pyntnclick
apostrophe abuse
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sun, 20 Jan 2013 12:35:02 +0200 |
parents | 69a0349dce8e |
children | 763ff5a9ee42 |
comparison
equal
deleted
inserted
replaced
746:4d032d09d599 | 747:960af9761fb0 |
---|---|
183 print " Rects", my_rect, other_rect | 183 print " Rects", my_rect, other_rect |
184 print | 184 print |
185 | 185 |
186 def find_intersecting_rects(self, d): | 186 def find_intersecting_rects(self, d): |
187 """Find if any rect collections intersect""" | 187 """Find if any rect collections intersect""" |
188 # I loath N^X brute search algorithm's, but whatever, hey | 188 # I loath N^X brute search algorithms, but whatever, hey |
189 scene = self._scene | 189 scene = self._scene |
190 for (num, col) in enumerate(d): | 190 for (num, col) in enumerate(d): |
191 rect_list = d[col] | 191 rect_list = d[col] |
192 for thing in scene.things.itervalues(): | 192 for thing in scene.things.itervalues(): |
193 for interact_name in thing.interacts: | 193 for interact_name in thing.interacts: |