| Conditions | 4 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package org.gannacademy.cdf.graphics.curriculum; |
||
| 21 | public boolean intersects(Sprite other) { |
||
| 22 | for(Drawable component : components) { |
||
| 23 | for (Drawable otherComponent : other.components) { |
||
| 24 | if (component.intersects(otherComponent.getBounds())) { |
||
| 25 | return true; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | } |
||
| 29 | return false; |
||
| 30 | } |
||
| 43 |