コード例 #1
0
ファイル: Pokemon.cs プロジェクト: Errbs/Komplettering
 public List <Pokemon> PokemonsExisting(Outside outside, Pikachu pika, Pidgey pidge, Squirtle squi)
 {
     outside.existingPokemon.Add(pika);
     outside.existingPokemon.Add(pidge);
     outside.existingPokemon.Add(squi);
     return(outside.existingPokemon);
     //This method adds Pokemon instances to the Outside class instance outside's existingPokemon list and returns it.
 }
コード例 #2
0
 public override Location ChangeLocation(Location newLocation)
 {
     return(newLocation = new Outside());
     //This method changes the value of the Location parameter newLocation and returns it.
 }