Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. public void Invocar(int x1, int y1,int x2, int y2,int x3, int y3,int x4, int y4,int x5, int y5,int x6, int y6){
  2.     for (int row = 0; row < 15; row++) {
  3.         for (int column = 0; column < 15; column++) {
  4.             if(row == x1 && column == y1){
  5.             CeldasTablero.MatrizTerreno[x1][y1]=1;
  6.            
  7.             System.out.println("entré");
  8.             }
  9.             else if(row == x2 && column == y2){
  10.             CeldasTablero.MatrizTerreno[x1][y2]=1;
  11.             }
  12.             else if(row == x3 && column == y3){
  13.             CeldasTablero.MatrizTerreno[x3][y3]=1;
  14.             }
  15.             else if(row == x4 && column == y4){
  16.             CeldasTablero.MatrizTerreno[x4][y4]=1;
  17.             }
  18.             else if(row == x5 && column == y5){
  19.             CeldasTablero.MatrizTerreno[x5][y5]=1;
  20.             }
  21.             else if(row == x6 && column == y6){
  22.             CeldasTablero.MatrizTerreno[x1][y1]=1;
  23.             }      
  24.         }
  25.     }
  26.    
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement