public Demand() { ResourceDemand = new Resources(); AmountNeeded = new StringArray(Resource.ResourceTypeSize()); LifeValues = new StringArray(Resource.ResourceTypeSize()); SetDemand(ResourceTypes.GetResourceType("Fruit"), 1, 100); SetDemand(ResourceTypes.GetResourceType("Cloth"), 1, 10); TotalLifleValue = 100 + 10; }
public Region(bool fruits) { Negbours = new List <Region>(); internalMarket = new InternalMarket(); externalMarket = new ExternalMarket(this, Negbours); Populations = new List <Population>(); if (fruits) { Populations.Add(new Farmer(10000, ResourceTypes.GetResourceType("Fruit"))); } else { Populations.Add(new Farmer(10000, ResourceTypes.GetResourceType("Cloth"))); } }