Package de.IF_EF.BermudaMain

Source Code of de.IF_EF.BermudaMain.Cubes

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();
    }
  }
 
}
TOP

Related Classes of de.IF_EF.BermudaMain.Cubes

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.