package jogo;
import java.awt.Point;
public class MapeiaTela {
int[][] tela1 = new int[12][16];
Point[][] tela2 = new Point [12][16];
int i;
int j;
int x, y;
int largura=0,altura=0;
//Point coord;
public MapeiaTela(){
for(i=0; i<12; i++){
for(j=0; j<16; j++){
tela1[i][j] = 0;
}
}
for(i=0; i<12; i++){
for(j=0; j<16; j++){
tela2[i][j].x=largura;
tela2[i][j].y=altura;
largura += 50;
}
altura +=50;
}
}
public void validar(Blocos b){
x=(int )b.x;
y= (int)b.y;
for(i=0;i<12; i++){
for(j=0; j<16; j++){
if(tela2[i][j].x == x-50 && tela2[i][j].y == y-50 ){
tela1[i][j] = 1;
}
}
}
}
import java.awt.Point; /** *}
@author roney */ public class MapeiaTela { int[][] tela1 = new int[12][16]; Point[][] tela2 = new Point [12][16]; int i; int j; int x, y; int largura=0,altura=0; //Point coord;
public MapeiaTela(){
for(i=0; i<12; i++){ for(j=0; j<16; j++){ tela1[i][j] = 0; } } for(i=0; i<12; i++){ for(j=0; j<16; j++){ tela2[i][j].x=largura; tela2[i][j].y=altura; largura += 50; } altura +=50; }
}
public void validar(Blocos b){
x=(int )b.x; y= (int)b.y; for(i=0;i<12; i++){ for(j=0; j<16; j++){ if(tela2[i][j].x == x-50 && tela2[i][j].y == y-50 ){ tela1[i][j] = 1; } } }
} }