package items; import pokemon.Pokemon; import storage.Trainer; import java.util.List; /** * This class represents a master ball item */ public class MasterBall extends AbstractPokeBall { public MasterBall() { super("Master ball", "The best Poké Ball with the ultimate level of performance. With it, " + "you will catch any wild Pokémon without fail."); } @Override public boolean use(Pokemon target, List current, Trainer catcher) { return target.tryCapture(current, catcher, 0); } }