public Economy(Faction faction, DwarfBux currentMoney, WorldManager worldManager, CompanyInformation CompanyInformation) { this.WorldManager = worldManager; Company = Company.GenerateRandom(currentMoney, 1.0m, Company.Sector.Exploration); Company.Information = CompanyInformation; Company.Assets = currentMoney; CurrentMoney = currentMoney; Faction = faction; Market = new List <Company> { Company, Company.GenerateRandom(1000m, 1.0m, Company.Sector.Exploration), Company.GenerateRandom(1200m, 5.0m, Company.Sector.Exploration), Company.GenerateRandom(1500m, 10.0m, Company.Sector.Exploration), Company.GenerateRandom(1300m, 10.0m, Company.Sector.Manufacturing), Company.GenerateRandom(1200m, 10.0m, Company.Sector.Manufacturing), Company.GenerateRandom(1500m, 15.0m, Company.Sector.Military), Company.GenerateRandom(1300m, 10.0m, Company.Sector.Military), Company.GenerateRandom(1200m, 15.0m, Company.Sector.Military), Company.GenerateRandom(1500m, 25.0m, Company.Sector.Magic), Company.GenerateRandom(1200m, 30.0m, Company.Sector.Magic), Company.GenerateRandom(1300m, 40.0m, Company.Sector.Magic), Company.GenerateRandom(1500m, 50.0m, Company.Sector.Finance), Company.GenerateRandom(1800m, 60.0m, Company.Sector.Finance) }; if (worldManager != null) { WorldManager.Time.NewDay += Time_NewDay; } }
public Economy(Faction faction, float currentMoney, PlayState state, string companyName, string companyMotto, NamedImageFrame companyLogo, Color companyColor) { PlayState = state; Company = Company.GenerateRandom(currentMoney, 1.0f, Company.Sector.Exploration); Company.Name = companyName; Company.SecondaryColor = Color.White; Company.Logo = companyLogo; Company.Motto = companyMotto; Company.Assets = currentMoney; Company.BaseColor = companyColor; CurrentMoney = currentMoney; Faction = faction; Market = new List <Company> { Company, Company.GenerateRandom(1000, 1.0f, Company.Sector.Exploration), Company.GenerateRandom(1200, 5.0f, Company.Sector.Exploration), Company.GenerateRandom(1500, 10.0f, Company.Sector.Exploration), Company.GenerateRandom(1300, 10.0f, Company.Sector.Manufacturing), Company.GenerateRandom(1200, 10.0f, Company.Sector.Manufacturing), Company.GenerateRandom(1500, 15.0f, Company.Sector.Military), Company.GenerateRandom(1300, 10.0f, Company.Sector.Military), Company.GenerateRandom(1200, 15.0f, Company.Sector.Military), Company.GenerateRandom(1500, 25.0f, Company.Sector.Magic), Company.GenerateRandom(1200, 30.0f, Company.Sector.Magic), Company.GenerateRandom(1300, 40.0f, Company.Sector.Magic), Company.GenerateRandom(1500, 50.0f, Company.Sector.Finance), Company.GenerateRandom(1800, 60.0f, Company.Sector.Finance) }; PlayState.Time.NewDay += Time_NewDay; }