コード例 #1
0
        public bool PracticalGameComparison_MapElements(PD_Game game_1, PD_Game game_2)
        {
            // inactive player pawns

            for (int t = 0; t < 4; t++)
            {
                if (
                    game_1.map_elements.available_infection_cubes__per__type[t]
                    !=
                    game_2.map_elements.available_infection_cubes__per__type[t]
                    )
                {
                    return(false);
                }
            }

            foreach (int city in game_1.map.cities)
            {
                for (int t = 0; t < 4; t++)
                {
                    if (
                        game_1.GQ_Num_InfectionCubes_OfType_OnCity(city, t)
                        !=
                        game_2.GQ_Num_InfectionCubes_OfType_OnCity(city, t)
                        )
                    {
                        return(false);
                    }
                }
            }

            if (game_1.map_elements.available_research_stations != game_2.map_elements.available_research_stations)
            {
                return(false);
            }
            else if (game_1.map_elements.research_stations__per__city.Dictionary_Equals(
                         game_2.map_elements.research_stations__per__city) == false)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }