package de.IF_EF.BermudaMain;
import java.util.ArrayList;
import de.IF_EF.BermudaThings.Cube;
public class Cubes {
private static ArrayList<Cube> cubes;
public Cubes()
{
cubes=new ArrayList<Cube>();
cubes.add(null);
}
public static void addCube(int x, int y, int z, String filepath)
{
cubes.add(new Cube(filepath));
int id = cubes.size() -1;
if(Raster.setCubeId(x, y, z, id))
{
}
}
public static void draw()
{
for (Cube cube:cubes)
{
cube.draw();
}
}
}