public ShellObject(BodyData bodyData, int type) { this.shellType = type; this.bodyData = bodyData; this.importExportData = new ImportExportData(1000, 10000, 10, 100, 10000); this.shellView = new ShellView(this, "shell.png"); super.init(bodyData, this.shellView); }
public BodyObject( BodyData.BodyType type, String planetImage, float distance, float size, float reach) { bodyView = new BodyView(planetImage); bodyData = new BodyData(type, distance, size * bodyView.getWidth(), reach); bodyView.setData(bodyData); this.shellObject = null; super.init(bodyData, bodyView); }