Fixed some errors and issue #14.

Capturing pokemon now happens inside the Trainer object. usersPokemon is no longer used.
This commit is contained in:
2017-11-27 11:11:31 +01:00
parent b242cfd183
commit 666c89fa8f
4 changed files with 15 additions and 10 deletions

View File

@ -23,6 +23,10 @@ public class Trainer {
return this.pokemon;
}
public void addPokemon(Pokemon pokemon) {
this.pokemon.add(pokemon);
}
public ArrayList<Pokemon> getConsciousPokemon() {
ArrayList<Pokemon> pokemon = new ArrayList<Pokemon>();
for (Pokemon singlePokemon : this.pokemon) {