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. }
public override Location ChangeLocation(Location newLocation) { return(newLocation = new Outside()); //This method changes the value of the Location parameter newLocation and returns it. }