Guest User

Untitled

a guest
Jun 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. public boolean isZaklinowany() {
  2.  
  3. if (this.getAuto().intersects(kwadratDL)) {
  4.  
  5. for (Auto a : listaAut) {
  6. if (a != this && a.getAuto().intersects(kwadratDP)) {
  7.  
  8. for (Auto b : listaAut) {
  9. if (b != this && b.getAuto().intersects(kwadratGL)) {
  10.  
  11. for (Auto c : listaAut) {
  12. if (c != this && c.getAuto().intersects(kwadratGP)) {
  13. return true;
  14.  
  15. } else return false;
  16. }
  17. } else return false;
  18. }
  19. } else return false;
  20. }
  21. }
  22.  
  23. if (this.getAuto().intersects(kwadratDP)) {
  24.  
  25. for (Auto a : listaAut) {
  26. if (a != this && a.getAuto().intersects(kwadratDL)) {
  27.  
  28. for (Auto b : listaAut) {
  29. if (b != this && b.getAuto().intersects(kwadratGL)) {
  30.  
  31. for (Auto c : listaAut) {
  32. if (c != this && c.getAuto().intersects(kwadratGP)) {
  33. return true;
  34. }
  35. else return false;
  36. }
  37. } else return false;
  38. }
  39. } else return false;
  40. }
  41. }
  42.  
  43. if (this.getAuto().intersects(kwadratGL)) {
  44.  
  45. for (Auto a : listaAut) {
  46. if (a != this && a.getAuto().intersects(kwadratDP)) {
  47.  
  48. for (Auto b : listaAut) {
  49. if (b != this && b.getAuto().intersects(kwadratDL)) {
  50.  
  51. for (Auto c : listaAut) {
  52. if (c != this && c.getAuto().intersects(kwadratGP)) {
  53. return true;
  54. }
  55. else return false;
  56. }
  57. } else return false;
  58. }
  59. } else return false;
  60. }
  61. }
  62.  
  63. if (this.getAuto().intersects(kwadratGP)) {
  64.  
  65. for (Auto a : listaAut) {
  66. if (a != this && a.getAuto().intersects(kwadratDP)) {
  67.  
  68. for (Auto b : listaAut) {
  69. if (b != this && b.getAuto().intersects(kwadratGL)) {
  70.  
  71. for (Auto c : listaAut) {
  72. if (c != this && c.getAuto().intersects(kwadratDL)) {
  73. return true;
  74. }
  75. else return false;
  76. }
  77. } else return false;
  78. }
  79. } else return false;
  80. }
  81. }
  82. }
Add Comment
Please, Sign In to add comment