328329330331332333334335336337338
} if (p instanceof FireRing) {// for instance of fireRing FireRing fr = (FireRing) p; FireRingRectangle tRect = fr.getRectangle(); if(tRect.intersects(rect)) { return false; } } if (p instanceof TNT) {// for instance of TNT
336337338339340341342343344345346
} if (p instanceof TNT) {// for instance of TNT TNT tnt = (TNT) p; TNTRectangle tRect = tnt.getRectangle(); if(tRect.intersects(rect)) { return false; } }