///////////////////// /// Constructors /// //////////////////// public Citizen(string name, int money, float healthValue, float happinessValue, CityPart.PLACE livingPlace, ENVIROMENTAL_COMMITMENT envCommitment, City city) { this.enviromentalCommitment = envCommitment; this.city = city; ID = idCount++; this.name = name; this.money = money; Health = new DependentIndex("Salud", "Salud de " + name, healthValue); Happiness = new DependentIndex("Felicidad", "Felicidad de " + name, happinessValue); LivingPlace = livingPlace; acceptedJob = new IndustrySector.AcceptedJob(new Coords(), Job.TYPE.NONE, 0, 0, 0, 999, CityPart.PLACE.CENTER); ResetDailySchedule(); }
public void SetEnviromentalCommitment(ENVIROMENTAL_COMMITMENT newCommitment) => this.enviromentalCommitment = newCommitment;