Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isZaklinowany() {
- if (this.getAuto().intersects(kwadratDL)) {
- for (Auto a : listaAut) {
- if (a != this && a.getAuto().intersects(kwadratDP)) {
- for (Auto b : listaAut) {
- if (b != this && b.getAuto().intersects(kwadratGL)) {
- for (Auto c : listaAut) {
- if (c != this && c.getAuto().intersects(kwadratGP)) {
- return true;
- } else return false;
- }
- } else return false;
- }
- } else return false;
- }
- }
- if (this.getAuto().intersects(kwadratDP)) {
- for (Auto a : listaAut) {
- if (a != this && a.getAuto().intersects(kwadratDL)) {
- for (Auto b : listaAut) {
- if (b != this && b.getAuto().intersects(kwadratGL)) {
- for (Auto c : listaAut) {
- if (c != this && c.getAuto().intersects(kwadratGP)) {
- return true;
- }
- else return false;
- }
- } else return false;
- }
- } else return false;
- }
- }
- if (this.getAuto().intersects(kwadratGL)) {
- for (Auto a : listaAut) {
- if (a != this && a.getAuto().intersects(kwadratDP)) {
- for (Auto b : listaAut) {
- if (b != this && b.getAuto().intersects(kwadratDL)) {
- for (Auto c : listaAut) {
- if (c != this && c.getAuto().intersects(kwadratGP)) {
- return true;
- }
- else return false;
- }
- } else return false;
- }
- } else return false;
- }
- }
- if (this.getAuto().intersects(kwadratGP)) {
- for (Auto a : listaAut) {
- if (a != this && a.getAuto().intersects(kwadratDP)) {
- for (Auto b : listaAut) {
- if (b != this && b.getAuto().intersects(kwadratGL)) {
- for (Auto c : listaAut) {
- if (c != this && c.getAuto().intersects(kwadratDL)) {
- return true;
- }
- else return false;
- }
- } else return false;
- }
- } else return false;
- }
- }
- }
Add Comment
Please, Sign In to add comment