Exemple #1
0
        private List <Pokemon> PokemonsValides()
        {
            List <Pokemon> pokemonValides = new List <Pokemon>();

            foreach (EmplacementPokemon emplacement in Depot.Emplacements)
            {
                if (Depot.Equipe(emplacement.Ordre) && emplacement.Pokemon.EncoreValide())
                {
                    pokemonValides.Add(emplacement.Pokemon);
                }
            }
            return(pokemonValides);
        }