public void LoadHistory()
        {
            List <Research> researchList = ProfileManager.LoadResearchList();

            researchHistory = new ResearchHistory(researchList);

            //research
            //researchHistory = new ResearchHistory();
            //MilleniumGoalsSet set = new MilleniumGoalsSet(1, 1, 1, 1, 1, 1);
            //set.Food = 1.1f;
            //Research r = new Research(set, 5000, ConstructionType.Food);
            //r.Name = "Improved Farming";
            //r.Description = "Increase food production by 10%";
            //r.YearAvailable = 1850;
            //researchHistory.AddResearchToList(r);

            //set.Food = 1.05f;
            //set.Health = 0.8f;
            //r = new Research(set, 10000, ConstructionType.Food);
            //r.Name = "Genetically altered crops";
            //r.Description = "Increase food production by 5%\nDecrease health by 10%";
            //r.YearAvailable = 1980;
            //researchHistory.AddResearchToList(r);

            //set.Food = 1.5f;
            //set.Education = 0.5f;
            //r = new Research(set, 10000, ConstructionType.Food);
            //r.Name = "Rednecks immigration";
            //r.Description = "Increase food production by 50%\nDecrease education by 50%";
            //r.YearAvailable = 1950;
            //r.CompleteResearch(1980);
            //researchHistory.AddResearchToList(r);
            //
            //
            //population
            popManager = new PopulationManager(this.Game);
            popManager.CreateDefaultPopulation();
            for (int year = StartingTravelYear; year < EndTravelYear; year++)
            {
                popManager.UpdatePopulation(year);
            }
            //
            timeMachine.UpgradeTimeMachine();
            timeMachine.UpgradeTimeMachine();
            timeMachine.UpgradeTimeMachine();
        }
예제 #2
0
        public void LoadHistory()
        {
            List<Research> researchList = ProfileManager.LoadResearchList();
            researchHistory = new ResearchHistory(researchList);

            //research
            //researchHistory = new ResearchHistory();
            //MilleniumGoalsSet set = new MilleniumGoalsSet(1, 1, 1, 1, 1, 1);
            //set.Food = 1.1f;
            //Research r = new Research(set, 5000, ConstructionType.Food);
            //r.Name = "Improved Farming";
            //r.Description = "Increase food production by 10%";
            //r.YearAvailable = 1850;
            //researchHistory.AddResearchToList(r);

            //set.Food = 1.05f;
            //set.Health = 0.8f;
            //r = new Research(set, 10000, ConstructionType.Food);
            //r.Name = "Genetically altered crops";
            //r.Description = "Increase food production by 5%\nDecrease health by 10%";
            //r.YearAvailable = 1980;
            //researchHistory.AddResearchToList(r);

            //set.Food = 1.5f;
            //set.Education = 0.5f;
            //r = new Research(set, 10000, ConstructionType.Food);
            //r.Name = "Rednecks immigration";
            //r.Description = "Increase food production by 50%\nDecrease education by 50%";
            //r.YearAvailable = 1950;
            //r.CompleteResearch(1980);
            //researchHistory.AddResearchToList(r);
            //
            //
            //population
            popManager = new PopulationManager(this.Game);
            popManager.CreateDefaultPopulation();
            for (int year = StartingTravelYear; year < EndTravelYear; year++)
            {
                popManager.UpdatePopulation(year);
            }
            //
            timeMachine.UpgradeTimeMachine();
            timeMachine.UpgradeTimeMachine();
            timeMachine.UpgradeTimeMachine();
        }