package gui.simulator;

import gui.main.Main;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;

import javax.imageio.ImageIO;

public class Images{

	public static ArrayList<BufferedImage> images = new ArrayList<BufferedImage>();

	static{
		try{
			images.add(ImageIO.read(Main.class.getResource("/sand.jpg"))); 
			images.add(ImageIO.read(Main.class.getResource("/grass.jpg")));
			images.add(ImageIO.read(Main.class.getResource("/street.jpg")));
			images.add(ImageIO.read(Main.class.getResource("/simulator/ingang.png")));
			images.add(ImageIO.read(Main.class.getResource("/simulator/toilet.png")));
			images.add(ImageIO.read(Main.class.getResource("/simulator/tent.png")));
			images.add(ImageIO.read(Main.class.getResource("/simulator/uitgang.png")));
			images.add(ImageIO.read(Main.class.getResource("/simulator/snackbar.png")));
			images.add(ImageIO.read(Main.class.getResource("/simulator/border.png")));
			images.add(ImageIO.read(Main.class.getResource("/visitor.png")));
			images.add(ImageIO.read(Main.class.getResource("/add.png")));
			images.add(ImageIO.read(Main.class.getResource("/ground_stone.jpg")));
			images.add(ImageIO.read(Main.class.getResource("/rotate.gif")));
			images.add(ImageIO.read(Main.class.getResource("/path.gif")));
			
			//images.add(ImageIO.read(Main.class.getResource("")));
			
		}catch(IOException e){
			e.printStackTrace();
		}
	}
	public static BufferedImage getImage(ImageType img)
	{
		return images.get(img.ordinal());
	}

	public enum ImageType
	{
		Sand,
		Grass,
		Street,
		Entrance,
		Toilet,
		Tent,
		Exit,
		Snackbar,
		Border,
		Visitor,
		Add,
		Pad,
		RotateCursor,
		PathCursor
	}
}
//enum ImageEnum
//{
//	Podium1("test.png"),
//	Podium2("test.png"),
//	Podium3("test.png"),
//	Podium4("test.png");
//
//	private BufferedImage image;
//	ImageEnum(String filename)
//	{
//		try {
//			this.image = ImageIO.read(Images.class.getResource(filename));
//
//
//		} catch (IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//	}
//	public Image getImage() {
//		return image;
//	}



