Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1.      public void vykresli () {
  2.         System.out.print("\f");
  3.         for (int r = 0; r < aSteny.length; r++) {
  4.             for (int s = 0; s < aSteny[r].length; s++) {
  5.                 Pozicia moja = new Pozicia(r,s);
  6.                 if (aSteny[r][s] == 1) {
  7.                     System.out.print("# ");
  8.                 } else {
  9.                     if (aDuch.dajPoziciu() == moja) {
  10.                         System.out.println("A ");
  11.                     } else {
  12.                         if (aPacman.dajPoziciu() == moja) {
  13.                             System.out.print("C ");
  14.                         } else {
  15.                             System.out.print("  ");
  16.                         }
  17.                     }
  18.                 }
  19.             }
  20.             System.out.println();
  21.         }
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement