Exemple #1
0
        public void Equiper(int indexPokemon, Emplacement emplacement)
        {
            Pokemon pokemon = Depot.PokemonsAchetes[indexPokemon];

            if (pokemon.Equipe)
            {
                Echanger(pokemon.Emplacement, emplacement);
            }
            else
            {
                Desequiper(emplacement);
                Depot.EquiperPokemon(emplacement, indexPokemon);
            }
        }