package Game;
import java.awt.*;
import javax.swing.*;
public class Tile {
Image tile;
int x,y,height,width;
public Tile(int x, int y){
ImageIcon tileTemp = new ImageIcon("src//Game//tile.png");
tile = tileTemp.getImage();
width = tileTemp.getIconWidth();
height = tileTemp.getIconHeight();
this.x = x;
this.y = y;
}
//get the Bounds of bullet for collision
public Rectangle getBounds(){
return new Rectangle(x,y,width,height);
}
public int getY(){
return y;
}
public int getX(){
return x;
}
public Image getImage(){
return tile;
}
public int getHeight(){
return height;
}
public int getWidth(){
return width;
}
}