package org.ntlab.SproutServer.battles; import framework.model3D.ModelFactory; import framework.model3D.Object3D; public class PlayerModel { String modelFileName = null; String animationFileName = null; public PlayerModel(String modelFileName, String animationFileName) { this.animationFileName = animationFileName; this.modelFileName = modelFileName; } public Object3D createObject() { Object3D object3D = null; try { object3D = ModelFactory.loadModel(modelFileName, false, false).createObject(); } catch (Exception e) { } return object3D; } }