Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void vykresli () {
- System.out.print("\f");
- for (int r = 0; r < aSteny.length; r++) {
- for (int s = 0; s < aSteny[r].length; s++) {
- Pozicia moja = new Pozicia(r,s);
- if (aSteny[r][s] == 1) {
- System.out.print("# ");
- } else {
- if (aDuch.dajPoziciu() == moja) {
- System.out.println("A ");
- } else {
- if (aPacman.dajPoziciu() == moja) {
- System.out.print("C ");
- } else {
- System.out.print(" ");
- }
- }
- }
- }
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement