/*
	This is a data structure to go into a vector,
	containing the image of the block, and its coordinates
 */

import java.awt.Image;
import java.io.Serializable;


public class BlockContainer implements Serializable
{
	Image blockImage;
	int xPos,yPos;
	int blockNumber;


	public BlockContainer()
	{
		blockImage=null;
		xPos=-1;
		yPos=-1;
		blockNumber=0xffff;
	}

	public BlockContainer(Image img,int x,int y, int number)
	{
		blockImage=img;
		xPos=x;
		yPos=y;
		blockNumber=number;
	}
	
	/*
		Update contents of the block data
		
		Use this method to update the contents
		where it might not be appropriate to create
		a new instance
	 */
	
	public void updateBlockContainer(Image img,int x,int y, int number)
	{
	
		blockImage=img;
		xPos=x;
		yPos=y;
		blockNumber=number;
	
	}
}