Skip to content

Commit ce63142

Browse files
svarzeeGrover-c13
authored andcommitted
Add evolution auxiliaries (#400)
1 parent d635044 commit ce63142

File tree

3 files changed

+474
-0
lines changed

3 files changed

+474
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.pokegoapi.api.pokemon;
2+
3+
import java.util.List;
4+
5+
import POGOProtos.Enums.PokemonIdOuterClass;
6+
7+
public class EvolutionForm {
8+
private static PokemonIdOuterClass.PokemonId pokemonId;
9+
10+
EvolutionForm(PokemonIdOuterClass.PokemonId pokemonId) {
11+
this.pokemonId = pokemonId;
12+
}
13+
14+
public boolean isFullyEvolved() {
15+
return EvolutionInfo.isFullyEvolved(pokemonId);
16+
}
17+
18+
public List<EvolutionForm> getEvolutionForms() {
19+
return EvolutionInfo.getEvolutionForms(pokemonId);
20+
}
21+
22+
public int getEvolutionStage() {
23+
return EvolutionInfo.getEvolutionStage(pokemonId);
24+
}
25+
26+
public static PokemonIdOuterClass.PokemonId getPokemonId() {
27+
return pokemonId;
28+
}
29+
}

0 commit comments

Comments
 (0)