application.windows32/source/BattleCity_Tank.java
/**
 Returns true whether two squares overlap and false otherwise; x, y are corner position
 */
Returns true whether two squares overlap and false otherwise; x, y are corner position
Returns true whether two squares overlap and false otherwise ; x y are corner position
public boolean squaresOverlap(int x0, int y0, int size0, int x1, int y1, int size1) {
  if (x0 < x1 + size1 && x0 + size0 > x1 && y0 < y1 + size1 && y0 + size0 > y1) {
    return true;
  }
  return false;
}
public boolean squaresOverlap ( int x0 , int y0 , int size0 , int x1 , int y1 , int size1 ) { if ( x0 < x1 + size1 && x0 + size0 > x1 && y0 < y1 + size1 && y0 + size0 > y1 ) { return true ; } return false ; }
Returns true whether two squares overlap and false otherwise; x, y are corner position
Returns true whether two squares overlap and false otherwise ; x y are corner position