private static boolean checkCollide ( Area area , Collidable other ) { final List < Rectangle > others = other . getCollisionBounds ( ) ; final int size = others . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { final Area current = others . get ( i ) ; if ( area . intersects ( current ) ) { return true ; } } return false ; }
Check if current area collides other collidable area .