private void InitializePlayersAndBasicCards(List <string> nameList) { for (int i = 0; i < NumberOfPlayers; i++) { if (MainWindow.GameMode > 0) { Players.Add(new Player(nameList[i], i, MyIndex)); } else { Players.Add(new Player("Player " + i.ToString(), i, MyIndex)); } //Create six cards UrbanBuildingCard Age_A_Philosophy = new UrbanBuildingCard("AgeAPhilosophy", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Philosophy), 3, 0, 0, 0, 1, UrbanBuildingType.Lab) { Unit = 1 }; UrbanBuildingCard Age_A_Religion = new UrbanBuildingCard("AgeAReligion", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Religion), 3, 0, 1, 1, 0, UrbanBuildingType.Temple); AgriCard Age_A_Agri = new AgriCard("AgeAAgri", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Agriculture), 2, 0, 1) { Unit = 2 }; MineCard Age_A_Bronze = new MineCard("AgeABronze", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Bronze), 2, 0, 1) { Unit = 2 }; MilitaryTechCard Age_A_Warriors = new MilitaryTechCard(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Warriors), 2, 0, 1, "Warriors") { Unit = 1 }; GovCard Age_A_Despotism = new GovCard("Despotism", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Despotism), 4, 2, 2); players[i].CardsOnBoard.Add(Age_A_Philosophy); players[i].CardsOnBoard.Add(Age_A_Religion); players[i].CardsOnBoard.Add(Age_A_Agri); players[i].CardsOnBoard.Add(Age_A_Bronze); players[i].CardsOnBoard.Add(Age_A_Warriors); players[i].CardsOnBoard.Add(Age_A_Despotism); players[i].Gov = Age_A_Despotism; Players[i].AgriCardList.Add(Age_A_Agri); players[i].MineCardList.Add(Age_A_Bronze); players[i].UrbanBuildingCardList.Add(Age_A_Philosophy); players[i].UrbanBuildingCardList.Add(Age_A_Religion); players[i].MiliTechCardList.Add(Age_A_Warriors); } }
private void InitializeCardBoard(List <int> random) { GameBoard = new Board(NumberOfPlayers); //Finished //Action DirectActionCard Age_A_Work_of_Art = new DirectActionCard("AgeAWorkOfArt", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Work_of_Art), DataType.CulturePoint, 6); DirectActionCard Age_A_Revolutionary_Idea = new DirectActionCard("AgeARevolutionary", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Revolutionary_Idea), DataType.SciencePoint, 1); DirectActionCard Age_I_Bountiful_Harvest = new DirectActionCard("AgeIHarvest", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Bountiful_Harvest), DataType.Food, 2); DirectActionCard Age_I_Mineral_Deposits = new DirectActionCard("AgeIDeposits", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Mineral_Deposits_dsn), DataType.Ore, 2); DirectActionCard Age_I_Revolutionary_Idea = new DirectActionCard("AgeIRevolutionary", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Revolutionary_Idea_dsn), DataType.SciencePoint, 2); DirectActionCard Age_I_Work_of_Art = new DirectActionCard("AgeIWorkOfArt", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Work_of_Art), DataType.CulturePoint, 5); RichLand Age_A_RichLand = new RichLand(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Rich_Land), "RichLand", 1); Frugality Age_A_Frugality = new Frugality(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Frugality), "Frugality", 1); IdealBuildingSite Age_A_Ideal_Building_Site = new IdealBuildingSite(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Ideal_Building_Site), "IdealBuildingSite", 1); Frugality Age_I_Frugality = new Frugality(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Frugality), "Frugality_I", 2); IdealBuildingSite Age_I_Ideal_Building_Site = new IdealBuildingSite(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Ideal_Building_Site_dsn), "IdealBuildingSite_I", 2); RichLand Age_I_RichLand = new RichLand(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Rich_Land_dsn), "RichLand_I", 2); Patriotism Age_A_Patriotism = new Patriotism(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Patriotism), "Patriotism", 1); Patriotism Age_I_Patriotism = new Patriotism(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Patiotism_Age_1_dsn), "Patriotism_I", 2); Breakthrough Age_I_Breakthrough = new Breakthrough(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Breakthrough), "Breakthrough"); //leader Leader.Hammurabi Age_A_Hammurabi = new Leader.Hammurabi(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Hammurabi), "Hammurabi"); Leader.Moses Age_A_Moses = new Leader.Moses(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Moses), "Moses"); Leader.Aristotle Age_A_Aristotle = new Leader.Aristotle(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Aristotle), "Aristotle"); Leader.Alexander Age_A_Alexander = new Leader.Alexander(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Alexander_the_Great), "Alexander"); Leader.Homer Age_A_Homer = new Leader.Homer(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Homer), "Homer"); Leader.Caesar Age_A_Julius_Caesar = new Leader.Caesar(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Julius_Caesar), "Caser"); Leader.Barbarossa Age_I_Barbarossa = new Leader.Barbarossa(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Frederick_Barbarrossa), "Barbarossa"); Leader.Khan Age_I_Khan = new Leader.Khan(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Genghis_Khan), "Khan"); Leader.Joan Age_I_Joan = new Leader.Joan(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Joan_of_Arc_dsn), "Joan"); Leader.DaVinci Age_I_DaVinci = new Leader.DaVinci(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Leonardo_da_Vinci_dsn), "DaVinci"); Leader.Mich Age_I_Mich = new Leader.Mich(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Michelangelo_dsn), "Mich"); //Unit AgriCard Age_I_Irrigation = new AgriCard("AgeIIrrigation", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Irrigation_dsn), 4, 3, 2); MineCard Age_I_Iron = new MineCard("AgeIIron", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Iron_dsn), 5, 5, 2); UrbanBuildingCard Age_I_Alchemy = new UrbanBuildingCard("AgeIAlchemy", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Alchemy), 6, 4, 0, 0, 2, UrbanBuildingType.Lab); UrbanBuildingCard Age_I_Bread = new UrbanBuildingCard("AgeIBread", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Bread_and_Circuses), 4, 3, 0, 2, 0, UrbanBuildingType.Arena); UrbanBuildingCard Age_I_PrintingPress = new UrbanBuildingCard("AgeIPrintingPress", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Printing_Press_1_dsn), 4, 3, 1, 0, 1, UrbanBuildingType.Lab); UrbanBuildingCard Age_I_Theology = new UrbanBuildingCard("AgeITheology", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Theology_dsn), 5, 2, 1, 2, 0, UrbanBuildingType.Temple); UrbanBuildingCard Age_I_Drama = new UrbanBuildingCard("AgeIDrama", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Drama), 5, 4, 2, 1, 0, UrbanBuildingType.Theater); MilitaryTechCard Age_I_Knights = new MilitaryTechCard(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___knights_dsn), 3, 4, 2, "Knights"); //Special DirectSpecialCard Age_I_CodeOfLaws = new DirectSpecialCard("AgeICodeOfLaws", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Code_of_Laws), 6, DataType.CivilPoint, 1); DirectSpecialCard Age_I_CartoGraphy = new DirectSpecialCard("AgeICartoGraphy", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Cartography), 4, DataType.Strength, 1); //Unfinished //Genhis han //breakthrough //barbarrossa //davinci //michenleglo //joan of arc //efficient upgrad Card Age_A_Engineering_Genius = new Card(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Engineering_Genius), "AgeAEngineering"); // In queue for finish List <Card> tempList = new List <Card>(); //Age A 13 cards tempList.Add(Age_A_Alexander); tempList.Add(Age_A_Aristotle); tempList.Add(Age_A_Engineering_Genius); tempList.Add(Age_A_Frugality); tempList.Add(Age_A_Hammurabi); tempList.Add(Age_A_Homer); tempList.Add(Age_A_Ideal_Building_Site); tempList.Add(Age_A_Julius_Caesar); tempList.Add(Age_A_Moses); tempList.Add(Age_A_Patriotism); tempList.Add(Age_A_Revolutionary_Idea); tempList.Add(Age_A_RichLand); tempList.Add(Age_A_Work_of_Art); //Age I 23 cards tempList.Add(Age_I_Breakthrough); tempList.Add(Age_I_DaVinci); tempList.Add(Age_I_Khan); tempList.Add(Age_I_Joan); tempList.Add(Age_I_Barbarossa); tempList.Add(Age_I_Knights); tempList.Add(Age_I_Bountiful_Harvest); tempList.Add(Age_I_Patriotism); tempList.Add(Age_I_Frugality); tempList.Add(Age_I_Irrigation); tempList.Add(Age_I_Alchemy); tempList.Add(Age_I_Bread); tempList.Add(Age_I_Ideal_Building_Site); tempList.Add(Age_I_Iron); tempList.Add(Age_I_Mineral_Deposits); tempList.Add(Age_I_Revolutionary_Idea); tempList.Add(Age_I_RichLand); tempList.Add(Age_I_Work_of_Art); tempList.Add(Age_I_CodeOfLaws); tempList.Add(Age_I_PrintingPress); tempList.Add(Age_I_Theology); tempList.Add(Age_I_CartoGraphy); tempList.Add(Age_I_Drama); AddCards(tempList, random); //Need redesign //Create Clone CloneList.Add(new DirectActionCard("AgeAWorkOfArt", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Work_of_Art), DataType.CulturePoint, 6)); CloneList.Add(new DirectActionCard("AgeARevolutionary", 0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Revolutionary_Idea), DataType.SciencePoint, 1)); CloneList.Add(new DirectActionCard("AgeIHarvest", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Bountiful_Harvest), DataType.Food, 2)); CloneList.Add(new DirectActionCard("AgeIDeposits", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Mineral_Deposits_dsn), DataType.Ore, 2)); CloneList.Add(new DirectActionCard("AgeIRevolutionary", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Revolutionary_Idea_dsn), DataType.SciencePoint, 2)); CloneList.Add(new DirectActionCard("AgeIWorkOfArt", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Work_of_Art), DataType.CulturePoint, 5)); CloneList.Add(new RichLand(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Rich_Land), "RichLand", 1)); CloneList.Add(new Frugality(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Frugality), "Frugality", 1)); CloneList.Add(new IdealBuildingSite(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Ideal_Building_Site), "IdealBuildingSite", 1)); CloneList.Add(new Frugality(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Frugality), "Frugality_I", 2)); CloneList.Add(new IdealBuildingSite(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Ideal_Building_Site_dsn), "IdealBuildingSite_I", 2)); CloneList.Add(new RichLand(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Rich_Land_dsn), "RichLand_I", 2)); CloneList.Add(new Patriotism(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Patriotism), "Patriotism", 1)); CloneList.Add(new Patriotism(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Patiotism_Age_1_dsn), "Patriotism_I", 2)); CloneList.Add(new Breakthrough(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Breakthrough), "Breakthrough")); //leader CloneList.Add(new Leader.Hammurabi(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Hammurabi), "Hammurabi")); CloneList.Add(new Leader.Moses(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Moses), "Moses")); CloneList.Add(new Leader.Aristotle(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Aristotle), "Aristotle")); CloneList.Add(new Leader.Alexander(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Alexander_the_Great), "Alexander")); CloneList.Add(new Leader.Homer(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Homer), "Homer")); CloneList.Add(new Leader.Caesar(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Julius_Caesar), "Caser")); CloneList.Add(new Leader.Barbarossa(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Frederick_Barbarrossa), "Barbarossa")); CloneList.Add(new Leader.Khan(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Genghis_Khan), "Khan")); CloneList.Add(new Leader.Joan(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Joan_of_Arc_dsn), "Joan")); CloneList.Add(new Leader.DaVinci(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Leonardo_da_Vinci_dsn), "DaVinci")); CloneList.Add(new Leader.Mich(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Michelangelo_dsn), "Mich")); //Unit CloneList.Add(new AgriCard("AgeIIrrigation", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Irrigation_dsn), 4, 3, 2)); CloneList.Add(new MineCard("AgeIIron", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Iron_dsn), 5, 5, 2)); CloneList.Add(new UrbanBuildingCard("AgeIAlchemy", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Alchemy), 6, 4, 0, 0, 2, UrbanBuildingType.Lab)); CloneList.Add(new UrbanBuildingCard("AgeIBread", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Bread_and_Circuses), 4, 3, 0, 2, 0, UrbanBuildingType.Arena)); CloneList.Add(new UrbanBuildingCard("AgeIPrintingPress", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Printing_Press_1_dsn), 4, 3, 1, 0, 1, UrbanBuildingType.Lab)); CloneList.Add(new UrbanBuildingCard("AgeITheology", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Theology_dsn), 5, 2, 1, 2, 0, UrbanBuildingType.Temple)); CloneList.Add(new UrbanBuildingCard("AgeIDrama", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Drama), 5, 4, 2, 1, 0, UrbanBuildingType.Theater)); CloneList.Add(new MilitaryTechCard(1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___knights_dsn), 3, 4, 2, "Knights")); //Special CloneList.Add(new DirectSpecialCard("AgeICodeOfLaws", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Code_of_Laws), 6, DataType.CivilPoint, 1)); CloneList.Add(new DirectSpecialCard("AgeICartoGraphy", 1, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_I___Cartography), 4, DataType.Strength, 1)); //Unfinished //Genhis han //breakthrough //barbarrossa //davinci //michenleglo //joan of arc //efficient upgrad CloneList.Add(new Card(0, BitmapConversion.ToWpfBitmap(Ages_Resource.Age_A___Engineering_Genius), "AgeAEngineering")); }