diff --git a/src/main/java/cactusServer/models/StageManager.java b/src/main/java/cactusServer/models/StageManager.java deleted file mode 100644 index b32a379..0000000 --- a/src/main/java/cactusServer/models/StageManager.java +++ /dev/null @@ -1,44 +0,0 @@ -package cactusServer.models; - -import java.io.IOException; -import java.util.HashMap; - -import javax.inject.Singleton; - -import org.ntlab.radishforandroidstudio.framework.model3D.Model3D; -import org.ntlab.radishforandroidstudio.framework.model3D.ModelFactory; -import org.ntlab.radishforandroidstudio.framework.model3D.ModelFileFormatException; -import org.ntlab.radishforandroidstudio.framework.model3D.Object3D; - -@Singleton -public class StageManager { - private static StageManager theInstance = null; - private HashMap model = new HashMap<>(); - - private StageManager() { - try { - setStage(0,ModelFactory.loadModel("/CactusServer/src/main/assets/konan/konan.stl")); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (ModelFileFormatException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - public static StageManager getInstance() { - if (theInstance == null) { - theInstance = new StageManager(); - } - return theInstance; - } - - public void setStage(int key, Model3D model3d) { - model.put(key, model3d); - } - - public Model3D getStage(int stageID) { - return model.get(stageID); - } -}