153154155156157158159160161162163
} 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
161162163164165166167168169170171
} if (p instanceof TNT) {// for instance of TNT TNT tnt = (TNT) p; TNTRectangle tRect = tnt.getRectangle(); if(tRect.intersects(rect)) { return false; } }
245246247248249250251252253254255
253254255256257258259260261262263
328329330331332333334335336337338
336337338339340341342343344345346