Package org.pokenet.server.battle

Examples of org.pokenet.server.battle.PokemonEgg


  public PokemonEgg generateEgg(Pokemon poke1, Pokemon poke2) throws Exception{
    Pokemon poke = null;
    if (canBreed(poke1, poke2)) {
      try{
        poke = generateHatchling(generateEggSpecies());
        return new PokemonEgg(poke, 200);
      } catch (Exception e) {
        e.printStackTrace();
        throw new Exception("BreedingException: Egg generation issue");
      }
    } else {
View Full Code Here

TOP

Related Classes of org.pokenet.server.battle.PokemonEgg

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.