/* 
	Base.java

	[ more java @ mlab - 10-17.1.2000 - juhuu@katastro.fi ]

*/
import java.awt.*;

public class Base
{
	int		nX_coord;
	int		nY_coord;
	Image	imgTarget;

	int		nImgWidth;
	int		nImgHeight;
	
	// Base constructor :	x			- x coordinate of the target
	//						y			- y coordinate of the target
	//						imgTarget	- image of the target
	public Base(int x, int y, Image img)
	{
		nX_coord 	= x;
		nY_coord 	= y;
		imgTarget	= img;

		nImgWidth	= img.getWidth(null);
		nImgHeight	= img.getHeight(null);
	}

	public void draw(Graphics g)
	{
		g.drawImage(imgTarget, nX_coord, nY_coord, null);
	}

	public int getX()
	{
		return nX_coord;
	}

	public int getY()
	{
		return nY_coord;
	}

	public int getWidth()
	{
		return nImgWidth;
	}

	public int getHeight()
	{
		return nImgHeight;
	}
}
