Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/main/java/com/pokegoapi/api/pokemon/EvolutionForm.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.pokegoapi.api.pokemon;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add license header


import java.util.List;

import POGOProtos.Enums.PokemonIdOuterClass;

public class EvolutionForm {
private static PokemonIdOuterClass.PokemonId pokemonId;

EvolutionForm(PokemonIdOuterClass.PokemonId pokemonId) {
this.pokemonId = pokemonId;
}

public boolean isFullyEvolved() {
return EvolutionInfo.isFullyEvolved(pokemonId);
}

public List<EvolutionForm> getEvolutionForms() {
return EvolutionInfo.getEvolutionForms(pokemonId);
}

public int getEvolutionStage() {
return EvolutionInfo.getEvolutionStage(pokemonId);
}

public static PokemonIdOuterClass.PokemonId getPokemonId() {
return pokemonId;
}
}
Loading