public void Start() { CivilianPopulationAdapter adapter = new KSPAdapter(); CivilianPopulationConfiguration configuration = new CivilianPopulationConfiguration(); configuration.setTimeBetweenRents(RENT_DELAY); configuration.setRentAmountPerCivilian(RENT_PER_CIVILIAN); core = new CivilianPopulationCore(adapter, configuration); ui = new CivilianPopulationUI(adapter, core); }
public CivilianPopulationCore(CivilianPopulationAdapter adapter, CivilianPopulationConfiguration configuration) { this.adapter = adapter; this.configuration = configuration; nextTaxesDate = getNextTaxesDate(); }