Newer
Older
CarrotServer / src / framework / gameMain / GameModel.java
t-nakanishi on 18 Jul 2017 556 bytes [add] project
package framework.gameMain;
import framework.animation.Animation3D;
import framework.model3D.Model3D;

public class GameModel {

	private Model3D model = null;
	private String fileName;

	public GameModel(String fileName) {
		this.fileName = fileName;
	}

	public Animation3D getAnimation() {
		return new Animation3D();
	}
	
	public Model3D getModel() {
		if(model == null && fileName != null) {
//			model = ModelFactory.loadModel(fileName, false, true);
		}
		return model;
	}
	
	public void clearModel(){
		model = null;
	}
}